Skip to content
This repository was archived by the owner on Mar 13, 2019. It is now read-only.

Commit b6f3e7b

Browse files
author
Luke Harrison
committed
Added italic utility and replaced responsive-mixin with sass-mq
1 parent c901a57 commit b6f3e7b

28 files changed

Lines changed: 243 additions & 402 deletions

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/bower_components
33
/test/test.main.css
44
/test/test.main.css.map
5-
npm-debug.log
5+
npm-debug.log
6+
package-lock.json

01 - settings/_settings.breakpoints.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// BREAKPOINTS
33
//--------------------------------------------------------------------------------------------------------------------------------------
44

5-
$breakpoints: (
5+
$mq-breakpoints: (
66
"sm": 370px,
77
"sm2": 425px,
88
"sm3": 500px,

02 - tools/_tools.responsive-breakpoints.scss

Lines changed: 0 additions & 175 deletions
This file was deleted.

05 - objects/_objects.box.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ to better visually balance a box.
5151
// Create responsive variants using settings.breakpoints
5252
// Changes padding when breakpoint is hit
5353
// Example: o-box--spacing-tiny@md
54-
@each $bp-name, $bp-value in $breakpoints {
55-
@include bp(#{$bp-name}) {
54+
@each $bp-name, $bp-value in $mq-breakpoints {
55+
@include mq(#{$bp-name}) {
5656
@each $sp-name, $sp-value in $spacing {
5757
.o-box--spacing-#{$sp-name}\@#{$bp-name} {
5858
padding:rem($sp-value);
@@ -66,8 +66,8 @@ to better visually balance a box.
6666

6767
// Changes padding until breakpoint is hit
6868
// Example: o-box--spacing-tiny@max-md
69-
@each $bp-name, $bp-value in $breakpoints {
70-
@include bpMax(#{$bp-name}) {
69+
@each $bp-name, $bp-value in $mq-breakpoints {
70+
@include mq($until: #{$bp-name}) {
7171
@each $sp-name, $sp-value in $spacing {
7272
.o-box--spacing-#{$sp-name}\@max-#{$bp-name} {
7373
padding:rem($sp-value);
@@ -103,8 +103,8 @@ Generates fixed width and height variants using data from settings.spacing
103103
// Changes padding when breakpoint is hit
104104
// Example: o-box--width-tiny@md
105105
// Example: o-box--height-tiny@md
106-
@each $bp-name, $bp-value in $breakpoints {
107-
@include bp(#{$bp-name}) {
106+
@each $bp-name, $bp-value in $mq-breakpoints {
107+
@include mq(#{$bp-name}) {
108108
@each $sp-name, $sp-value in $spacing {
109109
.o-box--width-#{$sp-name}\@#{$bp-name} {
110110
width:rem($sp-value);
@@ -119,8 +119,8 @@ Generates fixed width and height variants using data from settings.spacing
119119
// Changes padding until breakpoint is hit
120120
// Example: o-box--width-tiny@max-md
121121
// Example: o-box--height-tiny@max-md
122-
@each $bp-name, $bp-value in $breakpoints {
123-
@include bpMax(#{$bp-name}) {
122+
@each $bp-name, $bp-value in $mq-breakpoints {
123+
@include mq($until:#{$bp-name}) {
124124
@each $sp-name, $sp-value in $spacing {
125125
.o-box--width-#{$sp-name}\@max-#{$bp-name} {
126126
width:rem($sp-value);

05 - objects/_objects.container.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Modifiers to tweak the containers outer spacing.
4949
// Create responsive variants using settings.breakpoints
5050
// Changes outer spacing when breakpoint is hit
5151
// Example: o-container--spacing-small@md
52-
@each $bp-name, $bp-value in $breakpoints {
53-
@include bp(#{$bp-name}) {
52+
@each $bp-name, $bp-value in $mq-breakpoints {
53+
@include mq(#{$bp-name}) {
5454
@each $sp-name, $sp-value in $spacing {
5555
.o-container--spacing-#{$sp-name}\@#{$bp-name} {
5656
padding-left:rem($sp-value);
@@ -63,8 +63,8 @@ Modifiers to tweak the containers outer spacing.
6363
// Create responsive variants using settings.breakpoints
6464
// Changes outer spacing until breakpoint is hit
6565
// Example: o-container--spacing-small@max-md
66-
@each $bp-name, $bp-value in $breakpoints {
67-
@include bpMax(#{$bp-name}) {
66+
@each $bp-name, $bp-value in $mq-breakpoints {
67+
@include mq($until: #{$bp-name}) {
6868
@each $sp-name, $sp-value in $spacing {
6969
.o-container--spacing-#{$sp-name}\@max-#{$bp-name} {
7070
padding-left:rem($sp-value);

05 - objects/_objects.expander.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ global-line-height variable defined in settings.typography.
5757
// Create responsive variants using settings.breakpoints
5858
// Changes amount of visible text once breakpoint is hit
5959
// Example: o-expander--partial-tiny@md
60-
@each $bp-name, $bp-value in $breakpoints {
61-
@include bp(#{$bp-name}) {
60+
@each $bp-name, $bp-value in $mq-breakpoints {
61+
@include mq(#{$bp-name}) {
6262
.o-expander--partial-tiny\@#{$bp-name} {
6363
max-height:$global-line-height * 3em;
6464
}
@@ -83,8 +83,8 @@ global-line-height variable defined in settings.typography.
8383

8484
// Changes amount of visible text until breakpoint is hit
8585
// Example: o-expander--partial-tiny@max-md
86-
@each $bp-name, $bp-value in $breakpoints {
87-
@include bpMax(#{$bp-name}) {
86+
@each $bp-name, $bp-value in $mq-breakpoints {
87+
@include mq($until: #{$bp-name}) {
8888
.o-expander--partial-tiny\@max-#{$bp-name} {
8989
max-height:$global-line-height * 3em;
9090
}
@@ -151,8 +151,8 @@ Disables the expander once a certain breakpoint has been hit.
151151
*/
152152

153153
// Example: o-expander--disable@md
154-
@each $bp-name, $bp-value in $breakpoints {
155-
@include bp(#{$bp-name}) {
154+
@each $bp-name, $bp-value in $mq-breakpoints {
155+
@include mq(#{$bp-name}) {
156156
.o-expander--disable\@#{$bp-name} {
157157
max-height:none;
158158
overflow:visible;
@@ -165,8 +165,8 @@ Enables the expander once a certain breakpoint has been hit.
165165
*/
166166

167167
// Example: o-expander--enable@md
168-
@each $bp-name, $bp-value in $breakpoints {
169-
@include bpMax(#{$bp-name}) {
168+
@each $bp-name, $bp-value in $mq-breakpoints {
169+
@include mq($until: #{$bp-name}) {
170170
.o-expander--enable\@#{$bp-name} {
171171
max-height:none;
172172
overflow:visible;

0 commit comments

Comments
 (0)