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
🎉 Switch to SASS #18
🎉 Switch to SASS #18
Changes from 1 commit
84cd298
17d7d34
f87b660
8363802
eb9fc8b
cabdc1d
fb8a822
8f5d1a9
037d4d7
061113a
7209cfa
ecbbeea
123042c
4de2d47
7ea009f
faa0876
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 |
---|---|---|
|
@@ -2,3 +2,7 @@ | |
display: block | ||
max-width: 45em | ||
margin: $spacing auto | ||
|
||
|
||
+media($landscape) | ||
padding: 0 60px |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,10 +48,16 @@ $landscape: '(orientation: landscape)' | |
$portrait: '(orientation: portrait)' | ||
|
||
// Mixins | ||
|
||
// +break(768) => @media (min-width: 768px) | ||
=break($min) | ||
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. Nechceme zahodit ty konstantní deklarace? |
||
@media (min-width: #{$min}px) | ||
@content | ||
|
||
// +media($break320M) => @media (max-width: 319px) | ||
=media($var) | ||
@media #{$var} | ||
@content | ||
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. Úplně se mi nelíbí, že jsou takhle dva separátní mixiny, a že navíc chybí něco jako 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. Wow. :) Hele, proč je tam 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. Je to takovej trik na zbavení se jednotky, pokud tam nějaká je. 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. Dík. :) Co to 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. Ano, přesně tak ‒ funguje to úplně stejně jako ve fyzice. Podobně jako 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. Oukej. :D :D 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. Tohle byla co nejjednodušší rychlovka... Codepen vypadá fajn, co k tomu přidat nějakou dokumentaci, ať to umí pak každej používat? :) |
||
|
||
// +absolute(0 10px 0 10px), order by specs: top right bottom left | ||
=absolute($properties: null null null null) | ||
|
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.
👍