diff --git a/app/assets/stylesheets/extranet/sites/rancoper.sass b/app/assets/stylesheets/extranet/sites/rancoper.sass deleted file mode 100644 index 06bd1ae7441e1681e1bf70a681b9445bad927217..0000000000000000000000000000000000000000 --- a/app/assets/stylesheets/extranet/sites/rancoper.sass +++ /dev/null @@ -1,82 +0,0 @@ -// FONTS - -@font-face - font-display: swap - font-family: Aestetico - font-style: normal - font-weight: 400 - src: url(https://osuny.s3.fr-par.scw.cloud/fonts/Aestetico-Light/font.woff2) format("woff2"), url(https://osuny.s3.fr-par.scw.cloud/fonts/Aestetico-Light/font.woff) format("woff") -@font-face - font-display: swap - font-family: Aestetico - font-style: italic - font-weight: 400 - src: url(https://osuny.s3.fr-par.scw.cloud/fonts/Aestetico-LightIt/font.woff2) format("woff2"), url(https://osuny.s3.fr-par.scw.cloud/fonts/Aestetico-LightIt/font.woff) format("woff") -@font-face - font-display: swap - font-family: Aestetico - font-style: normal - font-weight: 700 - src: url(https://osuny.s3.fr-par.scw.cloud/fonts/Aestetico-Regular/font.woff2) format("woff2"), url(https://osuny.s3.fr-par.scw.cloud/fonts/Aestetico-Regular/font.woff) format("woff") -@font-face - font-display: swap - font-family: Aestetico - font-style: italic - font-weight: 700 - src: url(https://osuny.s3.fr-par.scw.cloud/fonts/Aestetico-RegularIt/font.woff2) format("woff2"), url(https://osuny.s3.fr-par.scw.cloud/fonts/Aestetico-RegularIt/font.woff) format("woff") - -// VARIABLES -$color-accent: #134b3e -$color-background-alt: #E7EDEC - -// TYPOGRAPHY - -body - font-family: "Aestetico", sans-serif !important - font-weight: 300 - - h1, .h1 - font-weight: 400 - @media screen and (max-width: 768px) - font-size: 3.75rem - line-height: 5rem - a - color: $color-accent - -// Header -header, .header - background-color: $color-background-alt - .header__additional_data - transform: translateY(-60%) - -// Navbar -nav.navbar - > .container - align-items: flex-start - .navbar-brand img - max-width: 191px - width: 100% - .navbar-nav a - font-size: 1.125rem - font-weight: 300 - &::after - margin-left: 1rem - &.dropdown-toggle i - margin-right: 1rem - &.dropdown-item:active - background-color: transparentize($color-accent, .5) - .active .nav-link - color: $color-accent - text-decoration: underline - text-decoration-color: $color-accent - text-underline-offset: 2px - -// Breadcrumb -nav[aria-label="breadcrumb"] - position: relative - z-index: 3 - -// Blocks -.extranet - .block-call_to_action - background-color: $color-accent !important \ No newline at end of file diff --git a/app/models/communication/extranet/with_style.rb b/app/models/communication/extranet/with_style.rb index f3d5e22a20738005e14b489f1e7223eda8ba0b53..cb8709cd240056215c956adc11b3db969b296635 100644 --- a/app/models/communication/extranet/with_style.rb +++ b/app/models/communication/extranet/with_style.rb @@ -8,6 +8,6 @@ module Communication::Extranet::WithStyle protected def generate_css - self.css = SassC::Sass2Scss.convert sass + self.css = SassC::Engine.new(sass, syntax: :sass, style: :compressed).render end end \ No newline at end of file