-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Make small changes and additions to variables #80
Conversation
kylefiedler
commented
Jun 17, 2014
- Rearrange size variables
- Add z-index variables
- Make header-line-height unitless
$unitless-header-line-height: $header-line-height / ($header-line-height * 0 + 1); // Strip units from line-height: https://developer.mozilla.org/en-US/docs/Web/CSS/line-height#Prefer_unitless_numbers_for_line-height_values | ||
|
||
// Other Sizes | ||
$base-border-radius: em(3); |
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.
This is one of the few dimensions that I like a consistent value that's not relative to font-size. Maybe rem(3)
?
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.
rem(3)
would also force Bourbon 4.0 and Sass 3.3.
I get what you are saying though. If someone bumps up the font size you don't want the radius to change. 3rem
or 3px
?
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.
I'd prefer 3px
to em(3)
. Like if code
has a $small-font-size
and a border with radius, it's no longer consistent with the rest of the app.
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.
👍 I much prefer border radius to be specified in pixels.
👍 Wish 3.3 everywhere. |
@@ -6,14 +6,14 @@ table { | |||
} | |||
|
|||
th { | |||
border-bottom: 1px solid darken($base-border-color, 15%); | |||
border-bottom: 1px solid darken($base-border-color, 15); |
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.
It's fine if deliberate, but these don't output the same values.
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.
^ Disregard, I'm dumb
💸 |
// Line height | ||
$base-line-height: $base-font-size * 1.5; | ||
$unitless-line-height: $base-line-height / ($base-line-height * 0 + 1); // Strip units from line-height: https://developer.mozilla.org/en-US/docs/Web/CSS/line-height#Prefer_unitless_numbers_for_line-height_values | ||
$header-line-height: $base-font-size * 1.25; |
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.
Where do see this being used now that there is $unitless-header-line-height
? I feel as though the line-heights are getting overly complicated.
Merge, merge, merge 😃 |
* Rearrange size variables * Add z-index variables * Make header-line-height unitless