From a186d29cd93b399133435028781b0f5ac3b84356 Mon Sep 17 00:00:00 2001 From: ouidade Date: Wed, 19 May 2021 12:08:35 +0200 Subject: [PATCH] taille logo header et debubar --- user/config/system.yaml | 2 +- .../epau-antimatter/css-compiled/template.css | 23 ++++++++++--------- .../scss/template/_custom.scss | 8 +++++-- .../scss/template/_extensions.scss | 2 +- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/user/config/system.yaml b/user/config/system.yaml index 4e62413..6bbe4c0 100644 --- a/user/config/system.yaml +++ b/user/config/system.yaml @@ -150,7 +150,7 @@ log: syslog: facility: local6 debugger: - enabled: true + enabled: false provider: debugbar censored: false shutdown: diff --git a/user/themes/epau-antimatter/css-compiled/template.css b/user/themes/epau-antimatter/css-compiled/template.css index 77295cd..13c4bb9 100644 --- a/user/themes/epau-antimatter/css-compiled/template.css +++ b/user/themes/epau-antimatter/css-compiled/template.css @@ -52,10 +52,10 @@ b, strong, label, th { .right { float: right; } -.default-animation, #body, #header, #header #logo h3, #header #navbar ul.navigation, .modular .showcase .button { - -webkit-transition: all 0.5s ease; - -moz-transition: all 0.5s ease; - transition: all 0.5s ease; } +.default-animation, #body, #header, #header #logo h3, #header #navbar ul.navigation, #header.scrolled img, .modular .showcase .button { + -webkit-transition: all 0.5s ease-in-out; + -moz-transition: all 0.5s ease-in-out; + transition: all 0.5s ease-in-out; } .padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, #footer { padding-left: 7rem; @@ -815,6 +815,12 @@ ul.pagination { #header.scrolled { padding-left: 2rem; padding-right: 2rem; } + #header.scrolled img { + -webkit-transform: scale(0.75); + -moz-transform: scale(0.75); + -ms-transform: scale(0.75); + -o-transform: scale(0.75); + transform: scale(0.75); } #header #navbar ul.navigation li a { font-family: "Sarabun", sans-serif; @@ -840,15 +846,10 @@ ul.pagination { #logo { position: relative; display: flex; - flex-direction: row; - -webkit-transform: scale(0.75); - -moz-transform: scale(0.75); - -ms-transform: scale(0.75); - -o-transform: scale(0.75); - transform: scale(0.75); } + flex-direction: row; } #logo img { padding: 0.5rem; - height: 3rem; + height: 3.5rem; margin: auto; } #logo img #gouv { padding-right: 2rem; diff --git a/user/themes/epau-antimatter/scss/template/_custom.scss b/user/themes/epau-antimatter/scss/template/_custom.scss index a87eef7..1a39eac 100644 --- a/user/themes/epau-antimatter/scss/template/_custom.scss +++ b/user/themes/epau-antimatter/scss/template/_custom.scss @@ -36,6 +36,10 @@ #header.scrolled { padding-left: 2rem; padding-right: 2rem; + img { + @include transform(scale(0.75)); + @extend .default-animation; + } } #header #navbar ul.navigation li a { @@ -69,7 +73,7 @@ position: relative; display: flex; flex-direction: row; - @include transform(scale(0.75)); + // @include transform(scale(0.75)); // &.active { // a:after { // top: 0; @@ -80,7 +84,7 @@ img { padding: 0.5rem; - height: 3rem; + height: 3.5rem; margin:auto; #gouv { padding-right: 2rem; diff --git a/user/themes/epau-antimatter/scss/template/_extensions.scss b/user/themes/epau-antimatter/scss/template/_extensions.scss index 6a9b1b0..bcbd9d8 100644 --- a/user/themes/epau-antimatter/scss/template/_extensions.scss +++ b/user/themes/epau-antimatter/scss/template/_extensions.scss @@ -1,5 +1,5 @@ .default-animation { - @include transition(all 0.5s ease); + @include transition(all 0.5s ease-in-out); } .padding-horiz {