Skip to content

Commit

Permalink
Merge pull request #1706 from jhawthorn/remove_bourbon_css_prefixes
Browse files Browse the repository at this point in the history
Replace deprecated bourbon mixins with unprefixed CSS
  • Loading branch information
jhawthorn authored Feb 7, 2017
2 parents 730d324 + 08c86da commit 71dbc1c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ nav.menu {
&:before {
position: absolute;
left: 1em;
@include transform(translateX(-50%));
transform: translateX(-50%);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
bottom: 0;
z-index: 1000;
opacity: 0.8;
@include calc(width, "100% - #{$width-sidebar}");
width: calc(100% - #{$width-sidebar});

.wrapper {
border-radius: 10px;
Expand Down Expand Up @@ -40,15 +40,15 @@
height: 30px;
border: 6px solid rgba($color-spinner, 0.2);
border-left-color: rgba($color-spinner, 1);
@include animation(spinner 1s infinite linear);
animation: spinner 1s infinite linear;
border-radius: 50%;
}

@include keyframes(spinner) {
@keyframes spinner {
from {
@include transform(rotate(0));
transform: rotate(0);
}
to {
@include transform(rotate(360deg));
transform: rotate(360deg);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tabs {
@include display(flex);
display: flex;
margin: 1em 0;
border-bottom: 1px solid $color-border;
white-space: nowrap;
Expand All @@ -18,8 +18,8 @@
}

.tabs > li:not(.in-dropdown) {
@include flex-grow(0);
@include flex-shrink(0);
flex-grow: 0;
flex-shrink: 0;

// Move down one pixel to sit on top of the ul's border-bottom
position: relative;
Expand Down Expand Up @@ -54,13 +54,13 @@
}

.tabs-overflowed.tabs > li:not(.tabs-dropdown) {
@include flex-grow(1);
@include flex-shrink(1);
flex-grow: 1;
flex-shrink: 1;
}

.tabs-dropdown {
@include flex-grow(0);
@include flex-shrink(0);
flex-grow: 0;
flex-shrink: 0;
position: relative;

.tabs:not(.tabs-overflowed) & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.style-guide {
@include display(flex);
display: flex;

&-sidebar {
width: 225px;
Expand All @@ -23,7 +23,7 @@
}

&-main-content {
@include flex(1);
flex: 1;
}

ul {
Expand Down Expand Up @@ -109,12 +109,12 @@
}

.color-variables {
@include display(flex);
@include flex-wrap(wrap);
display: flex;
flex-wrap: wrap;
}

.color-variable {
@include flex-shrink(0);
flex-shrink: 0;
width: 240px;
padding: 1rem;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ span.info {

&.checkbox {
min-height: 73px;
@include display(flex);
@include align-items(center);
display: flex;
align-items: center;

input[type="checkbox"] {
display: inline-block;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.main-header {
@include display(flex);
@include align-items(center);
display: flex;
align-items: center;
padding: 15px $grid-gutter-width;
background-color: very-light($color-3, 4);
border-bottom: 1px solid $color-border;
Expand All @@ -25,7 +25,7 @@
}

.header-actions {
@include flex-grow(1);
flex-grow: 1;
text-align: right;
line-height: 38px;

Expand Down

0 comments on commit 71dbc1c

Please sign in to comment.