Merge branch 'hotfix/v1.2.0-rc6'

This commit is contained in:
CJ Patoilo 2016-09-10 02:31:11 -03:00
commit ff497a2bf5
13 changed files with 66 additions and 99 deletions

82
dist/milligram.css vendored
View File

@ -80,8 +80,8 @@ button[disabled],
input[type='button'][disabled], input[type='button'][disabled],
input[type='reset'][disabled], input[type='reset'][disabled],
input[type='submit'][disabled] { input[type='submit'][disabled] {
opacity: .5;
cursor: default; cursor: default;
opacity: .5;
} }
.button[disabled]:focus, .button[disabled]:hover, .button[disabled]:focus, .button[disabled]:hover,
@ -102,8 +102,8 @@ button.button-outline,
input[type='button'].button-outline, input[type='button'].button-outline,
input[type='reset'].button-outline, input[type='reset'].button-outline,
input[type='submit'].button-outline { input[type='submit'].button-outline {
color: #9b4dca;
background-color: transparent; background-color: transparent;
color: #9b4dca;
} }
.button.button-outline:focus, .button.button-outline:hover, .button.button-outline:focus, .button.button-outline:hover,
@ -115,9 +115,9 @@ input[type='reset'].button-outline:focus,
input[type='reset'].button-outline:hover, input[type='reset'].button-outline:hover,
input[type='submit'].button-outline:focus, input[type='submit'].button-outline:focus,
input[type='submit'].button-outline:hover { input[type='submit'].button-outline:hover {
color: #606c76;
background-color: transparent; background-color: transparent;
border-color: #606c76; border-color: #606c76;
color: #606c76;
} }
.button.button-outline[disabled]:focus, .button.button-outline[disabled]:hover, .button.button-outline[disabled]:focus, .button.button-outline[disabled]:hover,
@ -129,8 +129,8 @@ input[type='reset'].button-outline[disabled]:focus,
input[type='reset'].button-outline[disabled]:hover, input[type='reset'].button-outline[disabled]:hover,
input[type='submit'].button-outline[disabled]:focus, input[type='submit'].button-outline[disabled]:focus,
input[type='submit'].button-outline[disabled]:hover { input[type='submit'].button-outline[disabled]:hover {
color: #9b4dca;
border-color: inherit; border-color: inherit;
color: #9b4dca;
} }
.button.button-clear, .button.button-clear,
@ -138,9 +138,9 @@ button.button-clear,
input[type='button'].button-clear, input[type='button'].button-clear,
input[type='reset'].button-clear, input[type='reset'].button-clear,
input[type='submit'].button-clear { input[type='submit'].button-clear {
color: #9b4dca;
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
color: #9b4dca;
} }
.button.button-clear:focus, .button.button-clear:hover, .button.button-clear:focus, .button.button-clear:hover,
@ -152,9 +152,9 @@ input[type='reset'].button-clear:focus,
input[type='reset'].button-clear:hover, input[type='reset'].button-clear:hover,
input[type='submit'].button-clear:focus, input[type='submit'].button-clear:focus,
input[type='submit'].button-clear:hover { input[type='submit'].button-clear:hover {
color: #606c76;
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
color: #606c76;
} }
.button.button-clear[disabled]:focus, .button.button-clear[disabled]:hover, .button.button-clear[disabled]:focus, .button.button-clear[disabled]:hover,
@ -181,11 +181,9 @@ code {
pre { pre {
background: #f4f5f6; background: #f4f5f6;
border-left: 0.3rem solid #9b4dca; border-left: 0.3rem solid #9b4dca;
font-family: 'Menlo', 'Consolas', 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Monaco', monospace;
} }
pre > code { pre > code {
background: transparent;
border-radius: 0; border-radius: 0;
display: block; display: block;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
@ -215,6 +213,7 @@ select {
border: 0.1rem solid #d1d1d1; border: 0.1rem solid #d1d1d1;
border-radius: .4rem; border-radius: .4rem;
box-shadow: none; box-shadow: none;
box-sizing: inherit;
height: 3.8rem; height: 3.8rem;
padding: .6rem 1.0rem; padding: .6rem 1.0rem;
width: 100%; width: 100%;
@ -229,7 +228,7 @@ input[type='text']:focus,
input[type='url']:focus, input[type='url']:focus,
textarea:focus, textarea:focus,
select:focus { select:focus {
border: 0.1rem solid #9b4dca; border-color: #9b4dca;
outline: 0; outline: 0;
} }
@ -244,8 +243,6 @@ select:focus {
textarea { textarea {
min-height: 6.5rem; min-height: 6.5rem;
padding-bottom: .6rem;
padding-top: .6rem;
} }
label, label,
@ -324,6 +321,14 @@ input[type='radio'] {
align-items: baseline; align-items: baseline;
} }
.row.row-no-padding {
padding: 0;
}
.row.row-no-padding > .column {
padding: 0;
}
.row .column { .row .column {
display: block; display: block;
flex: 1; flex: 1;
@ -332,18 +337,6 @@ input[type='radio'] {
width: 100%; width: 100%;
} }
.row .column .col-top {
align-self: flex-start;
}
.row .column .col-bottom {
align-self: flex-end;
}
.row .column .col-center {
align-self: center;
}
.row .column.column-offset-10 { .row .column.column-offset-10 {
margin-left: 10%; margin-left: 10%;
} }
@ -435,7 +428,19 @@ input[type='radio'] {
max-width: 90%; max-width: 90%;
} }
@media (min-width: 640px) { .row .column .column-top {
align-self: flex-start;
}
.row .column .column-bottom {
align-self: flex-end;
}
.row .column .column-center {
align-self: center;
}
@media (min-width: 40rem) {
.row { .row {
flex-direction: row; flex-direction: row;
margin-left: -1.0rem; margin-left: -1.0rem;
@ -452,13 +457,14 @@ a {
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover, a:focus {
color: #606c76; color: #606c76;
} }
dl, dl,
ol, ol,
ul { ul {
list-style: none;
margin-top: 0; margin-top: 0;
padding-left: 0; padding-left: 0;
} }
@ -476,10 +482,6 @@ ul ul {
margin: 1.5rem 0 1.5rem 3.0rem; margin: 1.5rem 0 1.5rem 3.0rem;
} }
dl {
list-style: none;
}
ol { ol {
list-style: decimal inside; list-style: decimal inside;
} }
@ -488,17 +490,14 @@ ul {
list-style: circle inside; list-style: circle inside;
} }
.button,
button,
dd, dd,
dt, dt,
li { li {
margin-bottom: 1.0rem; margin-bottom: 1.0rem;
} }
button,
.button {
margin-bottom: 1.0rem;
}
fieldset, fieldset,
input, input,
select, select,
@ -524,7 +523,7 @@ table {
td, td,
th { th {
border-bottom: 0.1rem solid #f4f5f6; border-bottom: 0.1rem solid #e1e1e1;
padding: 1.2rem 1.5rem; padding: 1.2rem 1.5rem;
text-align: left; text-align: left;
} }
@ -550,25 +549,23 @@ h4,
h5, h5,
h6 { h6 {
font-weight: 300; font-weight: 300;
letter-spacing: -.1rem;
margin-bottom: 2.0rem; margin-bottom: 2.0rem;
margin-top: 0; margin-top: 0;
} }
h1 { h1 {
font-size: 4.0rem; font-size: 4.0rem;
letter-spacing: -.1rem;
line-height: 1.2; line-height: 1.2;
} }
h2 { h2 {
font-size: 3.6rem; font-size: 3.6rem;
letter-spacing: -.1rem;
line-height: 1.25; line-height: 1.25;
} }
h3 { h3 {
font-size: 3.0rem; font-size: 3.0rem;
letter-spacing: -.1rem;
line-height: 1.3; line-height: 1.3;
} }
@ -590,7 +587,7 @@ h6 {
line-height: 1.4; line-height: 1.4;
} }
@media (min-width: 640px) { @media (min-width: 40rem) {
h1 { h1 {
font-size: 5.0rem; font-size: 5.0rem;
} }
@ -615,15 +612,8 @@ img {
max-width: 100%; max-width: 100%;
} }
.clearfix {
*zoom: 1;
}
.clearfix:after { .clearfix:after {
clear: both; clear: both;
}
.clearfix:after, .clearfix:before {
content: ' '; content: ' ';
display: table; display: table;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
// //
// The base font-size is set at 62.5% for having the convenience // The base font-size is set at 62.5% for having the convenience
// of sizing rems in a way that is similar to using px. 1.6rem=16px // of sizing rems in a way that is similar to using px: 1.6rem = 16px
html html
box-sizing: border-box box-sizing: border-box
font-size: 62.5% font-size: 62.5%

View File

@ -13,10 +13,8 @@ code
pre pre
background: $color-tertiary background: $color-tertiary
border-left: .3rem solid $color-primary border-left: .3rem solid $color-primary
font-family: 'Menlo', 'Consolas', 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Monaco', monospace
& > code & > code
background: transparent
border-radius: 0 border-radius: 0
display: block display: block
padding: 1rem 1.5rem padding: 1rem 1.5rem

View File

@ -16,12 +16,13 @@ select
border: .1rem solid $color-quaternary border: .1rem solid $color-quaternary
border-radius: .4rem border-radius: .4rem
box-shadow: none box-shadow: none
box-sizing: inherit // Forced to replace inherit values of the normalize.css
height: 3.8rem height: 3.8rem
padding: .6rem 1.0rem // The .6rem vertically centers text on FF, ignored by Webkit padding: .6rem 1.0rem // The .6rem vertically centers text on FF, ignored by Webkit
width: 100% width: 100%
&:focus &:focus
border: .1rem solid $color-primary border-color: $color-primary
outline: 0 outline: 0
select select
@ -33,8 +34,6 @@ select
textarea textarea
min-height: 6.5rem min-height: 6.5rem
padding-bottom: .6rem
padding-top: .6rem
label, label,
legend legend

View File

@ -151,7 +151,7 @@
align-self: center align-self: center
// Larger than mobile screen // Larger than mobile screen
@media (min-width: 640px) @media (min-width: 40.0rem) // Safari desktop has a bug using `rem`, but Safari mobile works
.row .row
flex-direction: row flex-direction: row

View File

@ -5,6 +5,7 @@
dl, dl,
ol, ol,
ul ul
list-style: none
margin-top: 0 margin-top: 0
padding-left: 0 padding-left: 0
@ -14,16 +15,8 @@ ul
font-size: 90% font-size: 90%
margin: 1.5rem 0 1.5rem 3.0rem margin: 1.5rem 0 1.5rem 3.0rem
dl
list-style: none
ol ol
list-style: decimal inside list-style: decimal inside
ul ul
list-style: circle inside list-style: circle inside
dd,
dt,
li
margin-bottom: 1.0rem

View File

@ -2,8 +2,11 @@
// Spacing // Spacing
// //
.button,
button, button,
.button dd,
dt,
li
margin-bottom: 1.0rem margin-bottom: 1.0rem
fieldset, fieldset,

View File

@ -12,22 +12,20 @@ h4,
h5, h5,
h6 h6
font-weight: 300 font-weight: 300
letter-spacing: -.1rem
margin-bottom: 2.0rem margin-bottom: 2.0rem
margin-top: 0 margin-top: 0
h1 h1
font-size: 4.0rem font-size: 4.0rem
letter-spacing: -.1rem
line-height: 1.2 line-height: 1.2
h2 h2
font-size: 3.6rem font-size: 3.6rem
letter-spacing: -.1rem
line-height: 1.25 line-height: 1.25
h3 h3
font-size: 3.0rem font-size: 3.0rem
letter-spacing: -.1rem
line-height: 1.3 line-height: 1.3
h4 h4
@ -46,7 +44,7 @@ h6
line-height: 1.4 line-height: 1.4
// Larger than mobile screen // Larger than mobile screen
@media (min-width: 640px) @media (min-width: 40.0rem) // Safari desktop has a bug using `rem`, but Safari mobile works
h1 h1
font-size: 5.0rem font-size: 5.0rem

View File

@ -4,14 +4,10 @@
// Clear a float with .clearfix // Clear a float with .clearfix
.clearfix .clearfix
*zoom: 1
&:after &:after
clear: both clear: both
content: ' ' // The space content is one way to avoid an Opera bug.
&:after,
&:before
content: ''
display: table display: table
// Float either direction // Float either direction

View File

@ -123,52 +123,42 @@
<ul> <ul>
<li>Unordered list item 1</li> <li>Unordered list item 1</li>
<li>Unordered list item 2</li> <li>Unordered list item 2</li>
<li> <li>Unordered list item 3
<ul> <ul>
<li>Unordered list item 1</li> <li>Unordered list item 3.1</li>
<li>Unordered list item 2</li> <li>Unordered list item 3.2</li>
<li> <li>Unordered list item 3.3</li>
<ul>
<li>Unordered list item 1</li>
<li>Unordered list item 2</li>
</ul> </ul>
</li> </li>
</ul>
</li>
<li>Unordered list item 3</li>
<li>Unordered list item 4</li> <li>Unordered list item 4</li>
<li>Unordered list item 5</li>
</ul> </ul>
</div> </div>
<div class="column"> <div class="column">
<ol> <ol>
<li>Ordered list item 1</li> <li>Ordered list item 1</li>
<li>Ordered list item 2</li> <li>Ordered list item 2</li>
<li> <li>Ordered list item 3
<ol> <ol>
<li>Ordered list item 1</li> <li>Ordered list item 3.1</li>
<li>Ordered list item 2</li> <li>Ordered list item 3.2</li>
<li> <li>Ordered list item 3.3</li>
<ol>
<li>Ordered list item 1</li>
<li>Ordered list item 2</li>
</ol> </ol>
</li> </li>
</ol>
</li>
<li>Ordered list item 3</li>
<li>Ordered list item 4</li> <li>Ordered list item 4</li>
<li>Ordered list item 5</li>
</ol> </ol>
</div> </div>
<div class="column"> <div class="column">
<dl> <dl>
<dt>Description list item 1</dt> <dt>Description list item 1</dt>
<dd>Description list item 1.1</dd>
<dd>Description list item 1.2</dd>
<dd>Description list item 1.3</dd>
<dt>Description list item 2</dt> <dt>Description list item 2</dt>
<dd>Description list item 2.1</dd>
<dt>Description list item 3</dt> <dt>Description list item 3</dt>
<dd>Description list item 3.1</dd> <dd>Description list item 3.1</dd>
<dd>Description list item 3.2</dd>
<dd>Description list item 3.3</dd>
<dt>Description list item 4</dt>
<dt>Description list item 5</dt>
</dl> </dl>
</div> </div>
</div> </div>