diff options
| author | Antoine Ouvrard <antoine.ouvrard@nereide.fr> | 2021-09-17 15:27:59 +0200 |
|---|---|---|
| committer | Antoine Ouvrard <antoine.ouvrard@nereide.fr> | 2021-09-17 15:27:59 +0200 |
| commit | 9e54cbbd7dbcf5b854d15016a316e557146c3966 (patch) | |
| tree | d06ab037cccf1a017ba9a21b1669f28b7758c93f /assets/sass/layout/_bg.scss | |
| parent | 5e97fdcb3b05a4d8d494ba243fabef9c7c595569 (diff) | |
changement de template html5up + retouche du logo
Diffstat (limited to 'assets/sass/layout/_bg.scss')
| -rw-r--r-- | assets/sass/layout/_bg.scss | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/assets/sass/layout/_bg.scss b/assets/sass/layout/_bg.scss new file mode 100644 index 0000000..ab1b8b6 --- /dev/null +++ b/assets/sass/layout/_bg.scss @@ -0,0 +1,68 @@ +///
+/// Dimension by HTML5 UP
+/// html5up.net | @ajlkn
+/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+///
+
+/* BG */
+
+ #bg {
+ @include vendor('transform', 'scale(1.0)');
+ -webkit-backface-visibility: hidden;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100vh;
+ z-index: 1;
+
+ &:before, &:after {
+ content: '';
+ display: block;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ }
+
+ &:before {
+ @include vendor('transition', 'background-color #{_duration(bg)} ease-in-out');
+ @include vendor('transition-delay', '#{_duration(intro)}');
+ background-image: linear-gradient(to top, #{_palette(bg-overlay)}, #{_palette(bg-overlay)}),
+ url('../../images/overlay.png');
+ background-size: auto,
+ 256px 256px;
+ background-position: center,
+ center;
+ background-repeat: no-repeat,
+ repeat;
+ z-index: 2;
+ }
+
+ &:after {
+ @include vendor('transform', 'scale(1.125)');
+ @include vendor('transition', (
+ 'transform #{_duration(article)} ease-in-out',
+ 'filter #{_duration(article)} ease-in-out'
+ ));
+ background-image: url('../../images/bg.jpg');
+ background-position: center;
+ background-size: cover;
+ background-repeat: no-repeat;
+ z-index: 1;
+ }
+
+ body.is-article-visible & {
+ &:after {
+ @include vendor('transform', 'scale(1.0825)');
+ @include vendor('filter', 'blur(0.2rem)');
+ }
+ }
+
+ body.is-preload & {
+ &:before {
+ background-color: _palette(bg-alt);
+ }
+ }
+ }
\ No newline at end of file |
