personal collection of usefull SASS mixins
ul {
@include resetList(); // display:block default
}
.round {
@include roundedCorners(10px); // 5px default
}
.element {
@include shadow([settings]);
}
.element {
@include backgroundGradient([settings]);
}
body {
@include background-image('pattern');
}
p {
@include font-size(14px)
}
.sidebar {
width: 60%;
float: left;
margin: 0 2% 0 0;
@include bp-small {
width: 100%;
float: none;
margin: 0;
}
}
body {
@include background-image('pattern');
}
@include keyframes(slide-down) {
0% { opacity: 1; }
90% { opacity: 0; }
}
.element {
width: 100px;
height: 100px;
background: black;
@include animation('slide-down 5s 3');
}
a {
color: gray;
@include transition(color .3s ease);
&:hover {
color: black;
}
}
.faded-text {
@include opacity(0.8);
}
.container-with-floated-children {
@extend %clearfix;
}
<button class="mobile-navigation-trigger">
<b class="visually-hidden">Open the navigation</b>
<img src="img/mobile-navigation-icon.svg">
</button>
.visually-hidden {
@extend %visuallyhidden;
}