Size mixin
See original GitHub issueThe size
mixin is not documented in the docs.
https://github.com/twbs/bootstrap/blob/29f178d89129732d35ae812667709c64cdb28a6f/scss/mixins/_size.scss#L1-L6
Shall we:
- document this
- or remove the mixin (
width
andheight
are not the most complex properties to remember)
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Sass: @mixin and @include
Mixins allow you to define styles that can be re-used throughout your stylesheet. They make it easy to avoid using non-semantic classes like...
Read more >How to Use Mixins in Sass and Pass Arguments – With Code ...
We need font-size, color, and background properties here. Now I should pass arguments by turning them into variables. @mixin text($font-size,$ ...
Read more >Using a Mixin to Take the Math out of Responsive Font Sizes
In this case, a font size of 40px is passed into the mixin. That value serves as the maximum font size of the...
Read more >Sass Mixins: Keep Your Stylesheets DRY - Toptal
In this article, I have listed ten of my favorite Sass mixins for ... When the browser doesn't support rem sizing, the mixin...
Read more >Writing Media Queries with Sass Mixins | by Timothy Robards
Say we want to use a mixin to reduce the font size of our header text on mobile devices. We add the mixin...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hmm, at the moment there’s no dedicated place in the documentation for the sass mixins. They are mentioned a couple of times but under their section (i.e. grid and float).
I think we would have to add a root level doc for the mixins because I’m not sure it fits anywhere else.
I personally find it very useful, especially in complex SCSS files.