Skip to content

Commit

Permalink
[refs #21] Consistent order for size variants.
Browse files Browse the repository at this point in the history
As per #21 (comment),
we want to define our size variants in the various objects
consistently.
  • Loading branch information
anselmh committed Mar 22, 2017
1 parent 0b3f05d commit 803f452
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 46 deletions.
2 changes: 1 addition & 1 deletion objects/_objects.box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@



/* Size variants
/* Size variants.
========================================================================== */

.o-box--flush {
Expand Down
24 changes: 14 additions & 10 deletions objects/_objects.flag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@
/* Size variants.
========================================================================== */

.o-flag--flush {

> .o-flag__img {
padding-right: 0;
padding-left: 0;
}

}


.o-flag--tiny {

> .o-flag__img {
Expand All @@ -98,6 +108,7 @@

}


.o-flag--small {

> .o-flag__img {
Expand All @@ -115,6 +126,7 @@

}


.o-flag--large {

> .o-flag__img {
Expand All @@ -132,6 +144,7 @@

}


.o-flag--huge {

> .o-flag__img {
Expand All @@ -149,16 +162,6 @@

}

.o-flag--flush {

> .o-flag__img {
padding-right: 0;
padding-left: 0;
}

}





Expand Down Expand Up @@ -206,6 +209,7 @@

}


.o-flag--bottom {

> .o-flag__img,
Expand Down
21 changes: 10 additions & 11 deletions objects/_objects.layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ $inuit-use-markup-fix: false !default;
/* Gutter size modifiers.
========================================================================== */

.o-layout--flush {
margin-left: 0;

> .o-layout__item {
padding-left: 0;
}

}


.o-layout--tiny {
margin-left: -$inuit-global-spacing-unit-tiny;

Expand Down Expand Up @@ -156,17 +166,6 @@ $inuit-use-markup-fix: false !default;
}


.o-layout--flush {
margin-left: 0;

> .o-layout__item {
padding-left: 0;
}

}





/* Vertical alignment modifiers.
Expand Down
44 changes: 20 additions & 24 deletions objects/_objects.media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,28 @@



/* Size variants
/* Size variants.
========================================================================== */

/**
* Modify the amount of space between our image and our text. We also have
* reversible options for all available sizes.
*/


/* Gutterless media objects.
========================================================================== */

.o-media--flush {

> .o-media__img {
margin-right: 0;
margin-left: 0;
}

}


.o-media--tiny {

> .o-media__img {
Expand All @@ -57,7 +71,7 @@

> .o-media__img {
margin-right: 0;
margin-left: $inuit-global-spacing-unit-tiny;
margin-left: $inuit-global-spacing-unit-tiny;
}

}
Expand All @@ -75,7 +89,7 @@

> .o-media__img {
margin-right: 0;
margin-left: $inuit-global-spacing-unit-small;
margin-left: $inuit-global-spacing-unit-small;
}

}
Expand All @@ -93,7 +107,7 @@

> .o-media__img {
margin-right: 0;
margin-left: $inuit-global-spacing-unit-large;
margin-left: $inuit-global-spacing-unit-large;
}

}
Expand All @@ -111,7 +125,7 @@

> .o-media__img {
margin-right: 0;
margin-left: $inuit-global-spacing-unit-huge;
margin-left: $inuit-global-spacing-unit-huge;
}

}
Expand All @@ -120,9 +134,7 @@





/* Reversed media objects
/* Reversed media objects.
========================================================================== */

.o-media--reverse {
Expand All @@ -134,19 +146,3 @@
}

}





/* Gutterless media objects
========================================================================== */

.o-media--flush {

> .o-media__img {
margin-right: 0;
margin-left: 0;
}

}

0 comments on commit 803f452

Please sign in to comment.