Skip to content

Instantly share code, notes, and snippets.

View seven-phases-max's full-sized avatar

Max Mikhailov seven-phases-max

View GitHub Profile
.some {-:-}
.hide-element-at(@max-width) {
@media (max-width: @max-width) {
display: none;
}
}
.jp-sleek.jp-audio:not(.jp-state-no-volume-support) {
.jp-full-screen {.hide-element-at(400px)}
.jp-repeat {.hide-element-at(450px)}
.jp-download {.hide-element-at(630px)}
.type(hero, @mb: 1.25rem) {
margin-bottom: @mb;
font-size: 2.625rem;
line-height: 1.238095238;
}
.type(not-a-hero, @mb: 1.55rem) {
margin-bottom: @mb;
font-size: 3.333rem;
line-height: 4.444444444;
.text-align(@direction) {
text-align: @direction;
// and whatever else you need to associate with this
}
body {
.text-align(right);
}
.text-right {
.btn-base-styles {
&:hover, &:focus {/* styles */}
&.black {
background-color: black;
&:hover, &:focus {/* styles */}
}
&.red {
background-color: red;
&:hover, &:focus {/* styles */}
}
@classes: apple, pear, coconut, orange;
.make-chain(@classes);
.make-chain(@list, @i: 1)
when (@i <= length(@list)) {
@name: extract(@list, @i);
&:not(@{name}) {
.make-chain(@classes, @i + 1);
}
}