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/base/_page.scss | |
| parent | 5e97fdcb3b05a4d8d494ba243fabef9c7c595569 (diff) | |
changement de template html5up + retouche du logo
Diffstat (limited to 'assets/sass/base/_page.scss')
| -rw-r--r-- | assets/sass/base/_page.scss | 118 |
1 files changed, 41 insertions, 77 deletions
diff --git a/assets/sass/base/_page.scss b/assets/sass/base/_page.scss index a4eb57d..2c33426 100644 --- a/assets/sass/base/_page.scss +++ b/assets/sass/base/_page.scss @@ -1,78 +1,42 @@ -@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; - } - } +///
+/// Dimension 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;
+ }
+
+ // 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: _palette(bg);
+
+ // Stops initial animations until page loads.
+ &.is-preload {
+ *, *:before, *:after {
+ @include vendor('animation', 'none !important');
+ @include vendor('transition', 'none !important');
+ }
+ }
+
}
\ No newline at end of file |
