diff options
| author | aouvrard <antoine.ouvrard@nereide.fr> | 2018-02-04 19:13:13 +0100 |
|---|---|---|
| committer | aouvrard <antoine.ouvrard@nereide.fr> | 2018-02-04 19:13:13 +0100 |
| commit | 9eee010f8fa93b1738be7b74e30174b170078e08 (patch) | |
| tree | b2e726953945a30632c0a654ae5e2e394ae80cfe /assets/sass/base/_page.scss | |
ajout su site en construction
Diffstat (limited to 'assets/sass/base/_page.scss')
| -rw-r--r-- | assets/sass/base/_page.scss | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/assets/sass/base/_page.scss b/assets/sass/base/_page.scss new file mode 100644 index 0000000..a4eb57d --- /dev/null +++ b/assets/sass/base/_page.scss @@ -0,0 +1,78 @@ +@import '../libs/vars'; +@import '../libs/functions'; +@import '../libs/mixins'; + +/// +/// Identity by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Basic */ + + // Ensures page width is always >=320px. + @include breakpoint(xsmall) { + html, body { + min-width: 320px; + } + } + + body { + + // Prevents animation/transition "flicker" on page load. + // Automatically added/removed by js/main.js. + &.is-loading { + *, *:before, *:after { + @include vendor('animation', 'none !important'); + @include vendor('transition', 'none !important'); + } + } + + } + + html { + height: 100%; + } + + body { + height: 100%; + background-color: _palette(bg); + @include vendor('background-image', ( + 'url("images/overlay.png")', + 'linear-gradient(60deg, #{transparentize(_palette(accent1), 0.5)} 5%, #{transparentize(_palette(accent2), 0.65)})', + 'url("../../images/bg.jpg")' + )); + background-repeat: repeat, no-repeat, no-repeat; + background-size: 100px 100px, cover, cover; + background-position: top left, center center, bottom center; + background-attachment: fixed, fixed, fixed; + + &:after { + content: ''; + display: block; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: inherit; + opacity: 0; + z-index: 1; + + background-color: _palette(bg); + @include vendor('background-image', ( + 'url("images/overlay.png")', + 'linear-gradient(60deg, #{transparentize(_palette(accent1), 0.5)} 5%, #{transparentize(_palette(accent2), 0.65)})' + )); + background-repeat: repeat, no-repeat; + background-size: 100px 100px, cover; + background-position: top left, center center; + + @include vendor('transition', 'opacity #{_duration(bg)} ease-out'); + } + + &.is-loading { + &:after { + opacity: 1; + } + } + }
\ No newline at end of file |
