Fix animated fog background.
gitea/icedream/rekt-theme/master There was a failure building this commit
Details
gitea/icedream/rekt-theme/master There was a failure building this commit
Details
parent
3ee5f2d380
commit
6b83bc3c1b
|
@ -94,8 +94,10 @@ export default class Environment {
|
||||||
loader: 'postcss-loader',
|
loader: 'postcss-loader',
|
||||||
options: {
|
options: {
|
||||||
ident: 'postcss',
|
ident: 'postcss',
|
||||||
plugins: [
|
plugins: loader => [
|
||||||
postcssImportPlugin(),
|
postcssImportPlugin({
|
||||||
|
root: loader.resourcePath,
|
||||||
|
}),
|
||||||
postcssPresetEnvPlugin(),
|
postcssPresetEnvPlugin(),
|
||||||
postcssAutoprefixerPlugin(),
|
postcssAutoprefixerPlugin(),
|
||||||
],
|
],
|
||||||
|
|
|
@ -11,7 +11,7 @@ $icedream-text-color: #EEE !default;
|
||||||
$icedream-extended-line-height: 5vmin !default;
|
$icedream-extended-line-height: 5vmin !default;
|
||||||
|
|
||||||
// extra features
|
// extra features
|
||||||
$icedream-metadata-overlay: true !default;
|
$icedream-metadata-overlay: false !default;
|
||||||
$icedream-metadata-overlay-background-gradient-from: #000 !default;
|
$icedream-metadata-overlay-background-gradient-from: #000 !default;
|
||||||
$icedream-metadata-overlay-background-gradient-to: transparent !default;
|
$icedream-metadata-overlay-background-gradient-to: transparent !default;
|
||||||
$icedream-metadata-prefix: '🎶 Now playing: ' !default;
|
$icedream-metadata-prefix: '🎶 Now playing: ' !default;
|
||||||
|
|
Before Width: | Height: | Size: 328 KiB After Width: | Height: | Size: 328 KiB |
|
@ -2,12 +2,14 @@
|
||||||
@import 'page/stations';
|
@import 'page/stations';
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
background: $icedream-bg-color;
|
// background-color: #000;
|
||||||
|
background: transparent;
|
||||||
color: $icedream-text-color;
|
color: $icedream-text-color;
|
||||||
|
|
||||||
// seems like above colors get overwritten again when .active is added
|
// seems like above colors get overwritten again when .active is added
|
||||||
&.active {
|
&.active {
|
||||||
background: $icedream-bg-color;
|
// background-color: #000;
|
||||||
|
background: transparent;
|
||||||
color: $icedream-text-color;
|
color: $icedream-text-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,36 +2,36 @@
|
||||||
@if $icedream-fog-bg {
|
@if $icedream-fog-bg {
|
||||||
#main {
|
#main {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
min-width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
width: 100%;
|
||||||
|
overflow-x: hidden;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
opacity: .2;
|
opacity: .2;
|
||||||
background-image: url('whitefog.png');
|
background-image: url('../images/whitefog.png');
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
content: ' '; // sass-lint:disable-line variable-for-property
|
content: ' '; // sass-lint:disable-line variable-for-property
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@if not($icedream-fog-bg-animated) {
|
|
||||||
background-size: cover;
|
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
width: 100%;
|
|
||||||
|
@if not($icedream-fog-bg-animated) {
|
||||||
|
background-size: 200% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
// animate it so it moves right to left slowly?
|
// animate it so it moves right to left slowly?
|
||||||
@if $icedream-fog-bg-animated {
|
@if $icedream-fog-bg-animated {
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
min-width: 200%;
|
|
||||||
width: 200%;
|
|
||||||
animation: icedream-bg-slide linear $icedream-fog-bg-animation-length infinite;
|
animation: icedream-bg-slide linear $icedream-fog-bg-animation-length infinite;
|
||||||
|
transform: scale(2, 1) translateX(0);
|
||||||
|
transform-origin: left;
|
||||||
@keyframes icedream-bg-slide {
|
@keyframes icedream-bg-slide {
|
||||||
from {
|
|
||||||
transform: translateX(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
to {
|
||||||
transform: translateX(-50%);
|
transform: scale(2, 1) translateX(-50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,7 +171,7 @@ export default (options, { mode }) => {
|
||||||
loader: 'url-loader',
|
loader: 'url-loader',
|
||||||
options: {
|
options: {
|
||||||
...urlLoaderOptions,
|
...urlLoaderOptions,
|
||||||
fallback: 'responsive-loader',
|
// fallback: 'responsive-loader',
|
||||||
},
|
},
|
||||||
})),
|
})),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue