-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add scaffolding to compound styles #10
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
@import '../abstracts/variables'; | ||
|
||
body, | ||
html { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
*, | ||
*:after, | ||
*:before { | ||
box-sizing: border-box; | ||
} | ||
|
||
[class*='container'] { | ||
margin: 0 auto; | ||
padding-right: $column-gutter; | ||
padding-left: $column-gutter; | ||
} | ||
.container-small { | ||
max-width: $device-sm; | ||
} | ||
.container { | ||
position: relative; | ||
max-width: 66rem; | ||
} | ||
.container-large { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we currently have references to these container names already in |
||
position: relative; | ||
max-width: $device-lg; | ||
} | ||
|
||
.row { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again would want to check this class name for usage in webb3 to make sure we don't screw up any existing alignments. |
||
display: flex; | ||
flex-flow: row wrap; | ||
margin-right: -($column-gutter/2); | ||
margin-left: -($column-gutter/2); | ||
&.align-middle { | ||
align-items: center; | ||
} | ||
&.align-bottom { | ||
align-items: flex-end; | ||
} | ||
&.align-stretch { | ||
align-items: stretch; | ||
} | ||
&.align-left { | ||
justify-content: flex-start; | ||
} | ||
&.align-center { | ||
justify-content: center; | ||
} | ||
&.align-right { | ||
justify-content: flex-end; | ||
} | ||
&.align-between { | ||
justify-content: space-between; | ||
} | ||
&.reverse { | ||
flex-wrap: wrap-reverse; | ||
} | ||
} | ||
|
||
[class*='col'] { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's do a small adjustment to match only on |
||
flex-basis: 100%; | ||
padding: 0 $column-gutter/2; | ||
} | ||
|
||
@mixin col-size($col) { | ||
flex-basis: (100% * $col / 12); | ||
max-width: (100% * $col / 12); | ||
} | ||
|
||
@each $col in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) { | ||
.col-xs-#{$col} { | ||
@include col-size($col); | ||
} | ||
} | ||
|
||
@media (min-width: $device-sm) { | ||
html, | ||
body { | ||
font-size: 14px; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we probably don't want this font size to propagate lest we break webb3? Also font changes like this should probably stay in typography. |
||
@each $col in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) { | ||
.col-sm-#{$col} { | ||
@include col-size($col); | ||
} | ||
} | ||
.col-sm-auto { | ||
flex-basis: auto; | ||
} | ||
} | ||
|
||
@media (min-width: $device-md) { | ||
html, | ||
body { | ||
font-size: 15px; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dittO: we probably don't want this font size to propagate lest we break webb3? Also font changes like this should probably stay in typography. |
||
@each $col in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) { | ||
.col-md-#{$col} { | ||
@include col-size($col); | ||
} | ||
} | ||
.col-md-auto { | ||
flex-basis: auto; | ||
} | ||
} | ||
|
||
@media (min-width: $device-lg) { | ||
html, | ||
body { | ||
font-size: 16px; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditt: we probably don't want this font size to propagate lest we break webb3? Also font changes like this should probably stay in typography. |
||
@each $col in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) { | ||
.col-lg-#{$col} { | ||
@include col-size($col); | ||
} | ||
} | ||
.col-lg-auto { | ||
flex-basis: auto; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely should not take this class, it's been super annoying to use so let's not migrate this over.