hugo-book/assets/_utils.scss

97 lines
1.1 KiB
SCSS
Raw Normal View History

2018-11-24 14:10:43 +00:00
.flex {
display: flex;
}
2019-05-22 14:17:55 +00:00
.flex-auto {
flex: 1 1 auto;
}
.flex-even {
flex: 1 1;
}
2019-06-18 21:20:29 +00:00
.flex-wrap {
flex-wrap: wrap;
}
2018-11-24 14:10:43 +00:00
.justify-start {
justify-content: flex-start;
}
.justify-end {
justify-content: flex-end;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.align-center {
align-items: center;
}
.mx-auto {
margin: 0 auto;
}
.text-center {
text-align: center;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-small {
font-size: .875em;
}
2019-07-16 12:34:02 +00:00
.hidden {
display: none;
}
input.toggle {
height: 0;
width: 0;
overflow: hidden;
opacity: 0;
position: absolute;
}
.clearfix::after {
content: "";
display: table;
clear: both;
}
@mixin spin($duration) {
animation: spin $duration ease infinite;
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
}
2018-11-24 14:10:43 +00:00
@mixin fixed {
position: fixed;
top: 0;
bottom: 0;
overflow-x: hidden;
overflow-y: auto;
2018-11-24 14:10:43 +00:00
}
@mixin outline {
outline-style: auto;
outline-color: currentColor;
outline-color: -webkit-focus-ring-color;
}