Files
hugo-fresh/assets/fresh/partials/_utils.scss

176 lines
2.9 KiB
SCSS
Raw Permalink Normal View History

2018-08-04 12:47:06 +02:00
// Resets
section:focus {
outline: none !important;
}
button {
&:focus, &:active {
outline: none;
}
}
// Preloader
#preloader {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: $white;
z-index: 99;
}
#status {
width: 200px;
height: 200px;
position: absolute;
left: 50%;
// centers the loading animation horizontally on the screen
top: 50%;
// centers the loading animation vertically on the screen
background-image: url(../images/loaders/rings.svg);
background-size: 80px 80px;
// path to loading animation
background-repeat: no-repeat;
background-position: center;
margin: -100px 0 0 -100px;
// width and height divided by two
}
// Back to top button
#backtotop {
position: fixed;
right: 0;
opacity: 0;
visibility: hidden;
bottom: 25px;
margin: 0 25px 0 0;
z-index: 9999;
transition: 0.35s;
transform: scale(0.7);
transition: all 0.5s;
}
#backtotop.visible {
opacity: 1;
visibility: visible;
transform: scale(1);
}
#backtotop.visible a:hover {
outline: none;
opacity: 0.9;
background: $secondary;
}
#backtotop a {
outline: none;
text-decoration: none;
border: 0 none;
display: block;
width: 46px;
height: 46px;
background-color: $medium-grey;
opacity: 1;
transition: all 0.3s;
border-radius: 50%;
text-align: center;
font-size: 26px
}
body #backtotop a {
outline: none;
color: #fff;
}
#backtotop a:after {
outline: none;
content: "\f106";
font-family: "FontAwesome";
position: relative;
display: block;
top: 50%;
-webkit-transform: translateY(-55%);
transform: translateY(-55%);
}
//Helpers
.is-disabled {
pointer-events: none;
opacity: 0.4;
cursor: default !important;
}
.is-hidden {
display: none !important;
}
.stuck {
position:fixed !important;
top: 0 !important;
z-index: 2 !important;
}
.light-text {
color: $white !important;
}
.mb-20 {
margin-bottom: 20px;
}
.mb-40 {
margin-bottom: 40px;
}
.mb-60 {
margin-bottom: 60px;
}
.mt-20 {
margin-top: 20px;
}
.mt-40 {
margin-top: 40px;
}
.mt-50 {
margin-top: 50px;
}
.mt-60 {
margin-top: 60px;
}
.ml-30 {
margin-left: 30px;
}
.huge-pb {
padding-bottom: 100px;
}
.pb-20 {
padding-bottom: 20px !important;
}
.pb-40 {
padding-bottom: 40px !important;
}
//Input placeholders
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: $placeholder;
}
::-moz-placeholder { /* Firefox 19+ */
color: $placeholder;
}
:-ms-input-placeholder { /* IE 10+ */
color: $placeholder;
}
:-moz-placeholder { /* Firefox 18- */
color: $placeholder;
}