73 lines
1.7 KiB
SCSS
73 lines
1.7 KiB
SCSS
///
|
|
/// Stellar by HTML5 UP
|
|
/// html5up.net | @ajlkn
|
|
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
|
///
|
|
|
|
/* Basic */
|
|
|
|
// MSIE: Required for IEMobile.
|
|
@-ms-viewport {
|
|
width: device-width;
|
|
}
|
|
|
|
// MSIE: Prevents scrollbar from overlapping content.
|
|
body {
|
|
-ms-overflow-style: scrollbar;
|
|
}
|
|
|
|
// Ensures page width is always >=320px.
|
|
@include breakpoint("<=xsmall") {
|
|
html,
|
|
body {
|
|
min-width: 320px;
|
|
}
|
|
}
|
|
|
|
// Set box model to border-box.
|
|
// Based on css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice
|
|
html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
*,
|
|
*:before,
|
|
*:after {
|
|
box-sizing: inherit;
|
|
}
|
|
|
|
body {
|
|
background-color: _palette(bg);
|
|
@include vendor(
|
|
"background-image",
|
|
(
|
|
"linear-gradient(45deg,#{_palette(accent)} 0.00%,#{_palette(accent1)} 6.67%,#{_palette(accent2)} 13.33%,#{_palette(accent3)} 20.00%,#{_palette(accent4)} 26.67%,#{_palette(accent5)} 33.33%,#{_palette(accent4)} 40.00%,#{_palette(accent3)} 46.67%,#{_palette(accent2)} 53.33%,#{_palette(accent1)} 60.00%,#{_palette(accent)} 66.67%,#{_palette(accent1)} 73.33%,#{_palette(accent2)} 80.00%,#{_palette(accent3)} 86.67%,#{_palette(accent4)} 93.33%,#{_palette(accent5)} 100.00%)"
|
|
)
|
|
);
|
|
background-size: 300% 300%;
|
|
background-position: 100% 0%;
|
|
|
|
// Stops initial animations until page loads.
|
|
&.is-preload {
|
|
*,
|
|
*:before,
|
|
*:after {
|
|
@include vendor("animation", "none !important");
|
|
@include vendor("transition", "none !important");
|
|
}
|
|
}
|
|
|
|
&.animate {
|
|
animation: ScrollBackground 5s linear infinite;
|
|
}
|
|
}
|
|
|
|
@keyframes ScrollBackground {
|
|
0% {
|
|
background-position: 100% 0%;
|
|
}
|
|
100% {
|
|
background-position: 0% 100%;
|
|
}
|
|
}
|