Skip to content

Commit

Permalink
refactor(styles): CSS style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Dec 20, 2015
1 parent edca955 commit 026d3b9
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions _app/assets/themes/curtana/_less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -213,19 +213,25 @@ body:hover .latest {
}
}

h2, h3, h4, h5, h6 {
h2,
h3,
h4,
h5,
h6 {
margin: 10vmin 0 1rem;
.sub-heading();
}

ul, ol {
ul,
ol {
margin-bottom: 1.8rem;
margin-left: 1.2em;

li {
line-height: (@line-height * 1.2);

> ul, ol {
> ul,
> ol {
margin-bottom: 0;
}
}
Expand All @@ -235,7 +241,10 @@ body:hover .latest {
margin-left: 1.75em;
}

img, video, iframe, .browser {
img,
video,
iframe,
.browser {
display: block;
width: calc(100% + (@space-xs * 2) + (@border-default * 2));
margin: 0 calc(-@space-xs - @border-default) 1.8rem;
Expand Down Expand Up @@ -314,7 +323,8 @@ body:hover .latest {
font-size: 75%;
}

code, pre {
code,
pre {
font-family: @fontstack-monospace;
color: @code-color;
}
Expand Down Expand Up @@ -370,7 +380,9 @@ body:hover .latest {
}

// Rest form validation styles, borrowed from Bootstrap
input, textarea, select {
input,
textarea,
select {

&:focus:required:invalid {

Expand Down

0 comments on commit 026d3b9

Please sign in to comment.