Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(layout): add [flex-{sm,md,etc}] attr for 100% flex on screen size
Browse files Browse the repository at this point in the history
Closes #706. Closes #707.
  • Loading branch information
jamspencer authored and ajoslin committed Nov 24, 2014
1 parent 12f2574 commit 7acca43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/style/layout.scss
Expand Up @@ -81,6 +81,11 @@
$flexName: 'flex-#{$name}';
}

[#{$flexName}] {
flex: 0 0 100%;
max-width: 100%;
}

// (0-19) * 5 = 0-95%
@for $i from 0 through 19 {
[#{$flexName}="#{$i * 5}"] {
Expand Down

0 comments on commit 7acca43

Please sign in to comment.