PATH:
root
/
mbmassetsscss
body.js { &:before { background: white; content: ""; display: block; height: 100%; left: 0; opacity: 0; position: absolute; top: 0; width: 100%; z-index: -1; transition: 0.66s all, 0.66s z-index linear; } &.loading { height: 100%; width: 100%; &:before { opacity: 1; top: 0; z-index: 10000; } } } @import "init"; // FONTELLO BEGIN // FONTELLO END .lg-actions { top: 50%; top: calc(50% - 39px / 2); } .lSAction { position: absolute; left: 0; right: 0; top: 50%; & > a { background: none !important; margin: 0; opacity: 1; transform: translateY(-50%); } & > .lSPrev, & > .lSNext { // background-position: center; // background-repeat: no-repeat; } & > .lSPrev { // background-position-x: right; left: 0; } & > .lSNext { // background-position-x: left; right: 0; } } // ACTUAL STYLES html, body { background-color: map-get($colors, 'background'); background-color: var(--color-background); color: map-get($colors, 'text'); color: var(--color-text); font-family: map-get($fonts, main), map-get($fonts, main-fallback); font-family: var(--font-main), var(--font-main-fallback); } // IE SCROLLBARS /* html, body { // scrollbar-3dlight-color: #000; // scrollbar-arrow-color: #000; scrollbar-base-color: map-get($colors, 'dark-10-darker'); scrollbar-base-color: var(--color-dark-10-darker); // scrollbar-darkshadow-color: #000; // scrollbar-face-color: #000; // scrollbar-highlight-color: #000; // scrollbar-shadow-color: #000; scrollbar-track-color: map-get($colors, 'light-10-lighter'); scrollbar-track-color: var(--color-light-10-lighter); } // Chrome & Safari (WebKit) SCROLLBARS ::-webkit-scrollbar { width: 0.66em; } ::-webkit-scrollbar-button { // background-color: #000; } ::-webkit-scrollbar-track { background-color: map-get($colors, 'light-10-lighter'); background-color: var(--color-light-10-lighter); } ::-webkit-scrollbar-track-piece { // background-color: transparent; } ::-webkit-scrollbar-thumb { background-color: map-get($colors, 'dark-10-darker'); background-color: var(--color-dark-10-darker); border-radius: 1em 1em 1em 1em; transition: $transitions-duration all; transition: var(--transitions-duration) all; &:hover { // background-color: lighten(map-get($colors, 'dark-10-darker), 25%'); } } ::-webkit-scrollbar-corner { // background-color: transparent; } ::-webkit-resizer { // background-color: transparent; } // Firefox (Gecko) html, body { scrollbar-color: map-get($colors, 'dark-10-darker'); scrollbar-color: var(--color-dark-10-darker); } */ img, iframe, video, picture { border: none; height: auto; max-width: 100%; } img { height: auto; } a { color: inherit; transition: $transitions-duration all; transition: var(--transitions-duration) all; &:focus, &:hover { @include useColor(color, 'blue-1'); text-decoration: underline; } } .button { background-color: map-get($colors, 'logo-accent'); background-color: var(--color-logo-accent); color: map-get($colors, 'main-background'); color: var(--color-main-background); display: inline-block; line-height: 1.25; padding: $padding-buttons-v - 2px $padding-buttons-v * 2; padding: rem-size($padding-buttons-v - 2px) rem-size($padding-buttons-v * 2); text-decoration: none; transition: $transitions-duration all; transition: var(--transitions-duration) all; &:hover { background-color: map-get($colors, 'main-text'); background-color: var(--color-main-text); color: map-get($colors, 'main-background'); color: var(--color-main-background); } } .image-to-shadow { background-position: bottom center; background-repeat: no-repeat; background-size: contain; bottom: 0; filter: brightness(0) blur($shadow-blur); filter: brightness(0) blur(rem-size($shadow-blur)); height: 100%; left: 0; opacity: $shadow-opacity; position: absolute; right: 0; top: 0; transform-origin: bottom center; transform: skew($shadow-skew) scale(0.5, 0.2) translateY(-2 * $shadow-blur); transform: skew($shadow-skew) scale(0.5, 0.2) translateY(rem-size(-2 * $shadow-blur)); z-index: 0; } div.grid { --items: 3; display: flex; flex-wrap: wrap; justify-content: space-between; @include remSize((margin-left, margin-right), $margin-grid-item-space-h / -2); &.left { justify-content: flex-start; } &.right { justify-content: flex-end; } &.h-center { justify-content: center; } &.v-center { align-items: center; } &.v-center-stretched { align-items: stretch; & > * { display: flex; flex-flow: column; justify-content: center; } } .text-center { text-align: center; } & > * { flex: 0 0 (100% / 3); flex: 0 0 calc(100% / var(--items)); flex: 0 0 calc(100% / var(--items) - #{$margin-grid-item-space-h}); flex: 0 0 calc(100% / var(--items) - #{rem-size($margin-grid-item-space-h)}); @include remSize((margin-bottom, margin-top), $margin-grid-item-space-v / 2); @include remSize((margin-left, margin-right), $margin-grid-item-space-h / 2); &:not(.no-width) { width: 100% / 3; width: calc(100% / 3); width: calc(100% / var(--items)); } @media (max-width: rem-size(999px * $mod, $font-size-base, true)) { flex-grow: 1; } } .bordered { @include useColor(border-color, 'light-border'); @include remSize((padding-bottom, padding-top), $padding-grid-item-v); @include remSize((padding-left, padding-right), $padding-grid-item-h); } & > div { display: flex; flex-flow: column; justify-content: space-between; & > .bordered { margin-top: auto; @include remSize(min-height, 357px); } } & > .growing { flex-grow: 1; } & > .shrinking { flex-shrink: 1; } & > .min-space { flex-basis: 0px; } & > .max-space { flex-basis: auto; } &.margin { @include emSize((margin-left, margin-right), $font-size-base * -1, $font-size-base); & > * { @include emSize(margin, $font-size-base, $font-size-base); } } &.padding { @include emSize((margin-left, margin-right), $font-size-base * -1, $font-size-base); & > * { @include emSize(padding, $font-size-base, $font-size-base); } } @media (max-width: rem-size(767px * $mod, $font-size-base, true)) { --items: 2; & > * { flex: 0 0 (100% / 2); flex: 0 0 calc(100% / var(--items)); flex: 0 0 calc(100% / var(--items) - #{$margin-grid-item-space-h}); flex: 0 0 calc(100% / var(--items) - #{rem-size($margin-grid-item-space-h)}); @include remSize((margin-bottom, margin-top), $margin-grid-item-space-v / 2); @include remSize((margin-left, margin-right), $margin-grid-item-space-h / 2); &:not(.no-width) { width: 100% / 2; width: calc(100% / 2); width: calc(100% / var(--items)); } } } @media (max-width: rem-size(479px * $mod, $font-size-base, true)) { --items: 1; & > * { flex: 0 0 (100% / 1); flex: 0 0 calc(100% / var(--items)); flex: 0 0 calc(100% / var(--items) - #{$margin-grid-item-space-h}); flex: 0 0 calc(100% / var(--items) - #{rem-size($margin-grid-item-space-h)}); @include remSize((margin-bottom, margin-top), $margin-grid-item-space-v / 2); @include remSize((margin-left, margin-right), $margin-grid-item-space-h / 2); &:not(.no-width) { width: 100% / 1; width: calc(100% / 1); width: calc(100% / var(--items)); } } } } .border-hexagon { align-items: center; display: flex; flex-flow: column; justify-content: center; @include remSize(min-height, $min-height-hexagon); text-align: center; img { height: auto; @include remSize(max-width, $max-width-hexagon-image); @include remSize((padding-bottom, padding-top), $font-size-base); width: 100%; } &:after { background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-ramka.png"); background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-ramka.svg"); background-position: center; background-repeat: no-repeat; background-size: contain; content: ""; display: block; height: 100%; left: 0; pointer-events: none; position: absolute; top: 0; width: 100%; } } .corner-arrow { &:after { background-image: url("../../userfiles/grafiki/ikona-ptaszek.svg"); background-position: center; background-repeat: no-repeat; background-size: contain; content: ""; display: block; @include remSize(height, $height-corner-arrow); pointer-events: none; position: absolute; transition: $transitions-duration all; transition: var(--transitions-duration) all; @include remSize(width, $width-corner-arrow); z-index: 1; } &.bottom { &:after { @include remSize(bottom, -7px); top: unset; } } &.left { &:after { @include remSize(left, -11px); right: unset; } } &.right { &:after { left: unset; @include remSize(right, -11px); } } &.top { &:after { bottom: unset; @include remSize(top, -7px); } } &.bottom.right { &:after { transform: rotate(-60deg); } } &.top.left { &:after { transform: rotate(120deg); } } &.top.right { &:after { transform: rotate(180deg); } } $h: 0.5; $v: 0.5; &:hover, &:focus { &.bottom { &:after { @include remSize(bottom, -7px - 7px * $v); } } &.left { &:after { @include remSize(left, -11px - 11px * $h); } } &.right { &:after { @include remSize(right, -11px - 11px * $h); } } &.top { &:after { @include remSize(top, -7px - 7px * $v); } } } } .hyperlink-overlay { cursor: pointer; height: 100%; left: 0; position: absolute; top: 0; width: 100%; } /*-----*/ .header { align-items: center; @include useColor(background-color, 'main-background'); @include useColor(color, 'darkgray-text'); display: flex; @include useEmSize(font-size, 'top-bar'); font-weight: 500; padding: 100px; &__logo { display: inline-block; &--wrapper { flex: 0 1 auto; max-width: 100%; } img { height: auto; width: 100%; } } &__text { display: flex; flex: 2 1 auto; justify-content: space-evenly; line-height: (24 / 14); & > * { @include emSize((margin-left, margin-right), map-get($font-sizes, 'top-bar') * 2, map-get($font-sizes, 'top-bar')); } a { text-decoration: none; } } &__langs { list-style-type: none; @include emSize(padding, map-get($font-sizes, 'top-bar') * 0.2); & > li { transition: $transitions-duration all; transition: var(--transitions-duration) all; &:not(:first-child) { margin-bottom: -1.3em; opacity: 0; } } &:hover, &:focus { & > li { margin-bottom: 0; opacity: 1; } } } @media (max-width: rem-size(959px * $mod, $font-size-base, true)) { flex-wrap: wrap; &__logo { &--wrapper { order: 1; } } &__text { justify-content: space-between; @include emSize((margin-left, margin-right), map-get($font-sizes, 'top-bar') * -2, map-get($font-sizes, 'top-bar')); @include emSize(margin-top, map-get($font-sizes, 'top-bar') * 2, map-get($font-sizes, 'top-bar')); order: 3; width: 100%; } &__langs { flex: 0 0 0px; @include emSize(margin-left, map-get($font-sizes, 'top-bar')); order: 2; } } @media (max-width: rem-size(575px * $mod, $font-size-base, true)) { flex-flow: column; &__text { flex-flow: column; margin-left: 0; margin-right: 0; text-align: center; & > * { margin-left: 0; margin-right: 0; } } &__langs { @include emSize(margin-top, map-get($font-sizes, 'top-bar') * 2, map-get($font-sizes, 'top-bar')); } } } .breadcrumbs { &__wrapper { background-image: url("../../userfiles/tla/okruszki.jpg"); background-position: center; background-repeat: no-repeat; background-size: cover; @include useColor(color, 'breadcrumbs-text'); display: flex; flex-flow: column; @include useEmSize(font-size, 'breadcrumbs'); font-weight: 500; justify-content: flex-end; min-height: 109px; @include emSize((padding-bottom, padding-top), $padding-breadcrumbs-v, map-get($font-sizes, 'breadcrumbs-text')); } a { color: inherit; text-decoration: none; &:focus, &:hover, &:active { text-decoration: underline; } } } .nav { @include useColor(color, 'nav-text'); pointer-events: all; &__wrapper { @include useColor(background-color, 'nav-background'); @include useEmSize(font-size, 'nav-item'); pointer-events: none; position: sticky; top: 0; z-index: 500; } &__checkbox[type="checkbox"] { display: none; & + .nav { overflow: hidden; transform: translateX(calc(-100% + #{$width-corner-arrow + 2 * map-get($font-sizes, 'nav-item')})) translateY(calc(-100% + #{$height-corner-arrow + 1.5 * map-get($font-sizes, 'nav-item')})); transform: translateX(calc(-100% + #{rem-size($width-corner-arrow + 2 * map-get($font-sizes, 'nav-item'), map-get($font-sizes, 'nav-item'), true)})) translateY(calc(-100% + #{rem-size($height-corner-arrow + 1.5 * map-get($font-sizes, 'nav-item'), map-get($font-sizes, 'nav-item'), true)})); & > ul { visibility: hidden; } } &:checked + .nav { overflow: auto; transform: translateX(0) translateY(0); & > ul { visibility: visible; } } } &__toggler { @include emSize(bottom, map-get($font-sizes, 'nav-item'), map-get($font-sizes, 'nav-item')); cursor: pointer; display: block; @include emSize(height, $height-corner-arrow, map-get($font-sizes, 'nav-item')); @include emSize(margin-bottom, map-get($font-sizes, 'nav-item'), map-get($font-sizes, 'nav-item')); margin-left: auto; margin-right: 0; // auto; position: sticky; @include emSize(width, $width-corner-arrow, map-get($font-sizes, 'nav-item')); &:after { transform: rotate(-30deg); @at-root .nav__checkbox:checked + .nav & { transform: rotate(150deg); } } } & > ul { align-items: baseline; display: flex; justify-content: space-between; list-style-type: none; padding: 0; margin-bottom: 0; margin-top: 0; @include emSize((margin-left, margin-right), $margin-nav-item-h / -2, map-get($font-sizes, 'nav-item')); li { @include emSize((margin-left, margin-right), $margin-nav-item-h / 2, map-get($font-sizes, 'nav-item')); } & > li { font-weight: 600; text-align: center; } ul { display: none; list-style-type: none; @include emSize(padding-left, map-get($font-sizes, 'nav-item'), map-get($font-sizes, 'nav-item')); @media (min-width: rem-size(1024px * $mod, $font-size-base, true)) { display: none !important; } } } a { display: inline-block; @include emSize(padding-bottom, $padding-nav-item-bottom, map-get($font-sizes, 'nav-item')); @include emSize(padding-top, $padding-nav-item-top, map-get($font-sizes, 'nav-item')); position: relative; text-decoration: none; &:before, &:after { background-color: transparent; bottom: 0; content: ""; display: block; height: 0; left: 0; pointer-events: none; position: absolute; right: 0; transition: $transitions-duration all; transition: var(--transitions-duration) all; } &.active, &:active { &:before { @include useColor(background-color, 'nav-underscore'); @include emSize(height, $height-nav-item-underscore, map-get($font-sizes, 'nav-item')); } } &:focus, &:hover { color: inherit; &:after { @include useColor(background-color, 'arrows'); @include emSize(height, $height-nav-item-underscore, map-get($font-sizes, 'nav-item')); } } } @media (min-width: rem-size(1024px * $mod, $font-size-base, true)) { & > ul { li { &.corner-arrow { &:after { display: none; } } } } &__checkbox[type="checkbox"] { & + .nav { overflow: auto; transform: translateX(0) translateY(0); & > ul { visibility: visible; } } } &__toggler { display: none; } } @media (max-width: rem-size(1023px * $mod, $font-size-base, true)) { @include useColor(background-color, 'nav-background'); max-height: 100vh; // opacity: 0.25; overflow: auto; @include emSize((padding-left, padding-right), map-get($font-sizes, 'nav-item'), map-get($font-sizes, 'nav-item')); transition: $transitions-duration all; transition: var(--transitions-duration) all; // transition-delay: 1s; width: unset; &:hover, &:focus { // opacity: 1; // transition-delay: 0s; } &__wrapper { background-color: transparent; left: 0; max-height: 100%; max-height: 100vh; overflow: auto; position: fixed; right: 0; top: 0; } & > ul { display: block; & > li { text-align: left; } li { // @include useColor(border-bottom-color, 'light-border'); // border-bottom-style: solid; // @include emSize(border-bottom-width, 1px, map-get($font-sizes, 'nav-item')); margin-right: 0; @include emSize(padding-bottom, $padding-nav-item-bottom / 3, map-get($font-sizes, 'nav-item')); // @include emSize(padding-right, map-get($font-sizes, 'nav-item') * 3, map-get($font-sizes, 'nav-item')); @include emSize(padding-top, $padding-nav-item-top / 3, map-get($font-sizes, 'nav-item')); &.corner-arrow { &:after { bottom: unset !important; top: map-get($font-sizes, 'nav-item') * 0.5 !important; top: 0.5em !important; right: 0 !important; transform-origin: 50% 100%; } &.expanded { &:after { transform: rotate(-30deg); } } } &:focus, &:hover { @include useColor(border-bottom-color, 'arrows'); } & > a { &:focus, &:hover { @include useColor(color, 'arrows'); } } &:last-child { border-bottom: none; } &.dropdown { &:after { content: ""; display: block; transition: $transitions-duration all; transition: var(--transitions-duration) all; } &.expanded { } } li:last-child { @include emSize(margin-bottom, $padding-nav-item-bottom / -3, map-get($font-sizes, 'nav-item')); padding-bottom: 0; } } ul { &[style*="display: none"] { display: block !important; height: 0; opacity: 0; pointer-events: none; visibility: hidden; } } } a { @include emSize(padding-bottom, $padding-nav-item-bottom / 3, map-get($font-sizes, 'nav-item')); @include emSize(padding-top, $padding-nav-item-top / 3, map-get($font-sizes, 'nav-item')); &:before, &:after { display: none; } &.active { @include useColor(color, 'nav-underscore'); } } } } .banner { &__wrapper { @include useColor(background-color, 'banner-background'); background-position: center; background-repeat: no-repeat; background-size: cover; @include useColor(color, 'banner-text'); @include useEmSize(font-size, 'banner'); font-weight: 600; } &__header, & > h1:first-child { } &__bar { display: flex; &--wrapper { @include emSize((margin-left, margin-right), $margin-banner-bar-blocks-offset-h * -1, map-get($font-sizes, 'banner')); } &--blue-1, &--blue-2, &--violet-1, &--violet-2 { flex: 0 0 25%; // 1 1 auto; line-height: (26px / 18px); @include emSize((padding-left, padding-right), $padding-banner-bar-blocks-h, map-get($font-sizes, 'banner')); @include emSize((padding-bottom, padding-top), $padding-banner-bar-blocks-v, map-get($font-sizes, 'banner')); white-space: nowrap; & > * { margin: 0; } a { text-decoration: none; &:hover, &:focus { color: inherit; text-decoration: underline; } } &-image { display: inline-block; @include emSize(height, $height-homepage-bar-icon, map-get($font-sizes, 'banner')); margin-right: 25px * 100% / 257.984px; // 31px @include emSize(min-width, $width-homepage-bar-icon, map-get($font-sizes, 'banner')); object-fit: contain; object-position: left center; width: auto; & + * { display: inline-block; @include useEmSize(font-size, 'banner', map-get($font-sizes, 'banner')); text-decoration: inherit; white-space: pre-wrap; width: 50%; } } } &--blue-1 { @include useColor(background-color, 'blue-1'); } &--blue-2 { @include useColor(background-color, 'blue-2'); } &--violet-1 { @include useColor(background-color, 'violet'); } &--violet-2 { @include useColor(background-color, 'violet-2'); } @media (max-width: rem-size(1359px * $mod, $font-size-base, true)) { flex-wrap: wrap; &--wrapper { @include emSize((margin-left, margin-right), $padding-container-default-sides * -1, map-get($font-sizes, 'banner')); } &--blue-1, &--blue-2, &--violet-1, &--violet-2 { flex-basis: 50%; width: 50%; } } @media (max-width: rem-size(767px * $mod, $font-size-base, true)) { &--blue-1, &--blue-2, &--violet-1, &--violet-2 { flex-basis: 100%; @include emSize((padding-bottom, padding-top), $padding-banner-bar-blocks-v / 2, map-get($font-sizes, 'banner')); width: 100%; &-image { @include emSize(height, $height-homepage-bar-icon * 0.75, map-get($font-sizes, 'banner')); @include emSize(min-width, $width-homepage-bar-icon * 0.75, map-get($font-sizes, 'banner')); } } } } @media (max-width: rem-size(1023px * $mod, $font-size-base, true)) { &__wrapper { padding-bottom: 0; @include emSize(padding-top, $padding-banner-v / 3, map-get($font-sizes, 'banner')); } &__header { @include emSize(font-size, map-get($font-sizes, 'banner-header') * 0.75, map-get($font-sizes, 'banner')); @include emSize(margin-bottom, $margin-banner-header-bottom / 3, map-get($font-sizes, 'banner-header') / 2); @include emSize(margin-top, $margin-banner-header-top / 3 - $padding-banner-v, map-get($font-sizes, 'banner-header') / 2); text-align: center; } } @media (max-width: rem-size(767px * $mod, $font-size-base, true)) { &__header, & > h1:first-child { @include emSize(font-size, map-get($font-sizes, 'banner-header') * 0.75, map-get($font-sizes, 'banner')); @include emSize(margin-bottom, $margin-banner-header-bottom * 0.33, map-get($font-sizes, 'banner-header') * 0.75); @include emSize(margin-top, ($margin-banner-header-top - $padding-banner-v) * 0.33, map-get($font-sizes, 'banner-header') * 0.75); } } } .offer { line-height: (24px / 17px); text-align: center; &__wrapper { @include useColor(background-color, 'main-background'); @include useEmSize(font-size, 'offer'); @include emSize(padding-bottom, $padding-offer-bottom - $padding-offer-grid-item-v / 2, map-get($font-sizes, 'offer')); @include emSize(padding-top, $padding-offer-top, map-get($font-sizes, 'offer')); } &__grid { &-item { cursor: pointer; display: flex; flex-flow: column; flex-grow: 1; flex-shrink: 0; justify-content: flex-end; line-height: (24px / 17px); max-width: 100%; @include emSize((padding-bottom, padding-top), $padding-offer-grid-item-v / 2, map-get($font-sizes, 'offer')); @include emSize((padding-left, padding-right), $padding-offer-grid-item-h / 2, map-get($font-sizes, 'offer')); text-align: center; // @include emSize(width, map-get($containers, 'default') / 3, map-get($font-sizes, 'offer')); width: map-get($containers, 'default') / 3 !important; width: rem-size(map-get($containers, 'default') / 3, map-get($font-sizes, 'offer'), true) !important; & > * { width: 100%; } a { font-weight: 500; text-decoration: none; &:focus, &:hover, &:active { text-decoration: underline; } } & > img { margin-left: auto; margin-right: auto; @include emSize(max-width, $max-width-offer-grid-item-image, map-get($font-sizes, 'offer')); transition: $transitions-duration all; transition: var(--transitions-duration) all; & + h2 { @include useEmSize(font-size, 'offer-grid-item-header', map-get($font-sizes, 'offer')); line-height: (24px / 20px); & + p { margin-top: auto; & + a { margin-left: auto; margin-right: auto; @include emSize(margin-top, map-get($font-sizes, 'offer') * 0.5, map-get($font-sizes, 'offer')); width: unset; } } } } &:focus, &:hover { img { transform: scale($hover-logo-scale); } a { text-decoration: underline; } } } } h1 { @include useEmSize(font-size, 'offer-header', map-get($font-sizes, 'header')); } & > * { &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } @media (max-width: rem-size(767px * $mod, $font-size-base, true)) { &__wrapper { @include emSize(padding-bottom, ($padding-offer-bottom - $padding-offer-grid-item-v) / 2 * 0.5, map-get($font-sizes, 'offer')); @include emSize(padding-top, $padding-offer-top * 0.5, map-get($font-sizes, 'offer')); } &__grid { &-item { @include emSize((padding-bottom, padding-top), $padding-offer-grid-item-v / 2 * 0.5, map-get($font-sizes, 'offer')); } } } } .page { &__wrapper { @include useEmSize(font-size, 'page'); @include emSize((margin-bottom, margin-top), $margin-page-v, map-get($font-sizes, 'page')); } .page { @include useEmSize(font-size, 'page', map-get($font-sizes, 'page')); line-height: (24px / 17px); h1 { @include useEmSize(font-size, 'page-h1', map-get($font-sizes, 'page')); } h2 { @include useEmSize(font-size, 'page-h2', map-get($font-sizes, 'page')); } h3 { @include useEmSize(font-size, 'page-h3', map-get($font-sizes, 'page')); } h4 { @include useEmSize(font-size, 'page-h4', map-get($font-sizes, 'page')); } & > ol { & > li { @include emSize((margin-bottom, margin-top), map-get($font-sizes, 'page') * 1.8, map-get($font-sizes, 'page')); } } @at-root .page--categories .page > div.grid-wrapper { @include emSize((margin-bottom, margin-top), map-get($font-sizes, 'page') * 2, map-get($font-sizes, 'page')); & > *[class*="grid-cell"] { // @include emSize(padding, map-get($font-sizes, 'page') * 0.6, map-get($font-sizes, 'page')); @media (min-width: rem-size(1024px * $mod, $font-size-base, true)) { &:nth-of-type(2n) { @include emSize(padding-left, map-get($font-sizes, 'page') * 3, map-get($font-sizes, 'page')); } &:nth-of-type(2n+1) { @include emSize(padding-right, map-get($font-sizes, 'page') * 3, map-get($font-sizes, 'page')); } } } } } & > .grid { @include useEmSize(font-size, 'page-grid', map-get($font-sizes, 'page')); h1 { @include useEmSize(font-size, 'page-h1', map-get($font-sizes, 'page-grid')); } h2 { @include useEmSize(font-size, 'page-h2', map-get($font-sizes, 'page-grid')); } h3 { @include useEmSize(font-size, 'page-h3', map-get($font-sizes, 'page-grid')); } h4 { @include useEmSize(font-size, 'page-h4', map-get($font-sizes, 'page-grid')); } &:first-of-type { & > .bordered { justify-content: flex-start; p > img { height: auto; @include emSize(max-width, 75px, map-get($font-sizes, 'page-grid')); } } } &--logotypes { & > .bordered { justify-content: center !important; @include emSize(min-height, 314px, map-get($font-sizes, 'page-grid')); @include emSize((padding-bottom, padding-left, padding-right, padding-top), $padding-grid-item-h, map-get($font-sizes, 'page-grid')); } img { object-fit: contain; object-position: center; } } } } .category-tree { @include useColor(color, 'category-tree'); @include useEmSize(font-size, 'page-category-tree', map-get($font-sizes, 'page')); font-weight: 600; line-height: (21px / 18px); margin-top: 0; padding-left: 0 !important; padding-right: 0 !important; ul { list-style-type: none; ul { @include emSize(padding-left, $padding-category-tree-left, map-get($font-sizes, 'page-category-tree')); &:not(.current) { display: none; } } } li { @include emSize((margin-bottom, margin-top), $margin-page-category-tree-item-v, map-get($font-sizes, 'page-category-tree')); } & > ul > li { @include emSize(max-width, $max-width-category-tree-item, map-get($font-sizes, 'page-category-tree')); } & > ul ul li { @include emSize((margin-bottom, margin-top), $margin-page-category-tree-item-v / 2, map-get($font-sizes, 'page-category-tree')); } a { color: inherit; display: block; @include emSize(padding-right, map-get($font-sizes, 'page-category-tree') * 1.2, map-get($font-sizes, 'page-category-tree')); text-decoration: none; &:focus, &:hover, &.active { @include useColor(color, 'category-tree-active'); } } ul ul.current a { @include useColor(color, 'category-tree-active'); } & > ul { padding-left: 0; } .corner-arrow { &:after { bottom: unset; cursor: pointer; pointer-events: all; @include emSize(right, map-get($font-sizes, 'page-category-tree') * -1.5, map-get($font-sizes, 'page-category-tree')); @include emSize(top, map-get($font-sizes, 'page-category-tree') * 0.4, map-get($font-sizes, 'page-category-tree')); z-index: 10; } &:hover, &:focus, &.expanded { &:after { @include emSize(right, map-get($font-sizes, 'page-category-tree') * -1.75, map-get($font-sizes, 'page-category-tree')); @include emSize(top, map-get($font-sizes, 'page-category-tree') * 0.6, map-get($font-sizes, 'page-category-tree')); } } } .dropdown.expanded { & > .corner-arrow:after { transform: rotate(-30deg); } & > ul { display: block; } } & + * { & > div.grid-wrapper { @include emSize(margin-left, map-get($font-sizes, 'page') * -1, map-get($font-sizes, 'page')); @include emSize(margin-top, map-get($font-sizes, 'page') * 3, map-get($font-sizes, 'page')); & > *[class*="grid-cell-"] { @include emSize(padding-left, map-get($font-sizes, 'page') * 1, map-get($font-sizes, 'page')); } a { text-decoration: none; &:hover, &:focus { text-decoration: underline; } } .border-hexagon { & + * { @include emSize(margin-bottom, map-get($font-sizes, 'page') * 2, map-get($font-sizes, 'page')); & + * { @include emSize(margin-top, map-get($font-sizes, 'page') * 2, map-get($font-sizes, 'page')); } } } @media (max-width: rem-size(899px * $mod, $font-size-base, true)) { & > *[class*="grid-cell-"] { width: 50%; } } @media (max-width: rem-size(539px * $mod, $font-size-base, true)) { margin-left: 0; & > *[class*="grid-cell-"] { padding-left: 0; width: 100%; } .border-hexagon img { height: auto; width: 30%; } } } & > *:first-child { margin-top: 0; } } &__mobile-toggler { &--checkbox { display: none; } &--label { display: none; transition: $transitions-duration all; transition: var(--transitions-duration) all; } } @media (max-width: rem-size(1023px * $mod, $font-size-base, true)) { @include useColor(background-color, 'category-tree-mobile-background'); @include useColor(color, 'category-tree-mobile'); bottom: 0; left: 0; position: fixed; right: 0; top: 0; transform: translateX(-100%); transition: $transitions-duration all; transition: var(--transitions-duration) all; width: 100% !important; z-index: 100; a { &:hover, &:focus, &.active { @include useColor(color, 'arrows'); } } & + * { flex-basis: 100%; width: 100%; } ul { &, & ul { padding-left: 0; } } li { margin: 0 !important; padding: 0 !important; a { @include emSize((padding-bottom, padding-top), map-get($font-sizes, 'page-category-tree') * 0.5, map-get($font-sizes, 'page-category-tree')); } &:not(:last-child) a { @include useColor(border-bottom-color, 'category-tree'); border-bottom-style: solid; @include emSize(border-bottom-width, 1px, map-get($font-sizes, 'page-category-tree')); } } $sel: 'ul li'; @for $i from 1 through 5 { #{$sel} ul li a { @include emSize(padding-left, map-get($font-sizes, 'page-category-tree') * ($i * 1.5), map-get($font-sizes, 'page-category-tree')); } $sel: #{$sel + ' ul li'}; } .corner-arrow { &:after { right: 0; } &:hover, &:focus, &:active { &:after { right: 0; } } } &__mobile-toggler { &--label { @include useColor(background-color, 'category-tree-mobile-background'); cursor: pointer; display: block; @include emSize(height, $width-corner-arrow * 1.75, map-get($font-sizes, 'page-category-tree')); left: 100%; position: absolute; @include emSize(top, map-get($font-sizes, 'page-category-tree') * 3, map-get($font-sizes, 'page-category-tree')); @include emSize(width, $height-corner-arrow * 1.75, map-get($font-sizes, 'page-category-tree')); &, &:after { pointer-events: all; } &:after { left: 5%; top: 28% !important; transform: rotate(-120deg); } } } } @at-root .category-tree__mobile-toggler { &--checkbox:checked + .category-tree { overflow-x: hidden; overflow-y: auto; transform: none; .category-tree { &__mobile-toggler { &--label { @include useColor(background-color, 'nav-background'); transform: translateX(-100%); &:after { left: 20%; transform: rotate(60deg); } } } } & > ul { & > li { max-width: unset; } } @media (max-width: rem-size(1023px * $mod, $font-size-base, true)) { padding-left: $padding-category-tree-mobile-h !important; padding-left: rem-size($padding-category-tree-mobile-h, map-get($font-sizes, 'page-category-tree'), true) !important; padding-top: map-get($font-sizes, 'page-category-tree') * 2 !important; padding-top: rem-size(map-get($font-sizes, 'page-category-tree') * 2, map-get($font-sizes, 'page-category-tree'), true) !important; padding-right: $padding-category-tree-mobile-h !important; padding-right: rem-size($padding-category-tree-mobile-h, map-get($font-sizes, 'page-category-tree'), true) !important; } @media (max-width: rem-size(479px * $mod, $font-size-base, true)) { padding-left: $padding-category-tree-mobile-h / 3 !important; padding-left: rem-size($padding-category-tree-mobile-h / 3, map-get($font-sizes, 'page-category-tree'), true) !important; & > ul { @include emSize(font-size, map-get($font-sizes, 'page-category-tree') * 0.75, map-get($font-sizes, 'page')); } } } } } .page--category, .page--product { .category-tree + * { & > .grid-wrapper { // justify-content: space-between; @include emSize(margin-bottom, $margin-category-product-wrapper, map-get($font-sizes, 'page')); @include emSize(margin-top, map-get($font-sizes, 'page'), map-get($font-sizes, 'page')); &:after { display: none; } .border-hexagon { background: none; max-height: unset; max-width: unset; position: relative; width: unset; img { @include emSize(height, $height-category-product-hexagon, map-get($font-sizes, 'page')); max-height: unset; max-width: unset; padding: 0; width: auto; } &:after { background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-nakladka.png"); // background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-nakladka.svg"); background-size: 100% 100%; height: 100%; @include emSize(left, map-get($font-sizes, 'page'), map-get($font-sizes, 'page')); pointer-events: none; position: absolute; top: 0; width: calc(100% - 1em); } } .item { &__card { @include emSize(flex-basis, $width-category-product-item-card-text, map-get($font-sizes, 'page-category-product-item-card')); flex-grow: 0; flex-shrink: 0; @include useEmSize(font-size, 'page-category-product-item-card', map-get($font-sizes, 'page')); font-weight: 500; line-height: (30 / 24); a { @include useColor(background-color, 'category-product-item-card-button-background'); @include useColor(color, 'category-product-item-card-button-text'); display: inline-block; @include useEmSize(font-size, 'page-category-product-item-card-button', map-get($font-sizes, 'page-category-product-item-card')); font-weight: 600; line-height: (24 / 20); @include emSize(margin-top, map-get($font-sizes, 'page-category-product-item-card') * 0.5, map-get($font-sizes, 'page-category-product-item-card')); @include emSize((padding-bottom, padding-top), $padding-category-product-item-card-button-v, map-get($font-sizes, 'page-category-product-item-card')); @include emSize((padding-left, padding-right), $padding-category-product-item-card-button-h, map-get($font-sizes, 'page-category-product-item-card')); &:hover, &:focus { @include useColor(background-color, 'category-product-item-card-button-background-hover'); } } } } } .item { &__name { @include useEmSize(font-size, 'page-category-product-item-name', map-get($font-sizes, 'page')); } &__desc { h1, h2, h3 { display: inline-block; } } } } @media (max-width: rem-size(1023px * $mod, $font-size-base, true)) { .category-tree + * { & > .grid-wrapper { justify-content: space-around; } } } @media (max-width: rem-size(829px * $mod, $font-size-base, true)) { .category-tree + * { & > .grid-wrapper { margin: 0; padding: 0; .item { &__image { flex-basis: 100%; margin: 0; @include emSize(margin-bottom, $margin-category-product-wrapper / 4, map-get($font-sizes, 'page')); padding: 0; width: 100%; img { height: auto; @include emSize(max-width, $height-category-products-product-image, map-get($font-sizes, 'page')); width: 100%; } &:before, &:after { left: 0 !important; margin: 0; padding: 0; width: 100% !important; } } &__card { flex-basis: 100%; margin: 0; @include emSize(margin-top, $margin-category-product-wrapper / 4, map-get($font-sizes, 'page-category-product-item-card')); padding: 0; text-align: center; width: 100%; a { @include emSize(margin-top, map-get($font-sizes, 'page-category-product-item-card'), map-get($font-sizes, 'page-category-product-item-card')); } } } } } } } .page--category { .category-products { .category-product { @include useEmSize(font-size, 'page-category-products-names', map-get($font-sizes, 'page')); font-weight: 600; @include emSize(margin-bottom, $margin-category-products-product-v, map-get($font-sizes, 'page')); text-align: center; &__image { display: block; @include emSize(margin-bottom, map-get($font-sizes, 'page-category-products-names') * 0.5, map-get($font-sizes, 'page-category-products-names')); img { @include emSize(height, $height-category-products-product-image, map-get($font-sizes, 'page-category-products-names')); object-fit: cover; position: relative; z-index: 1; } &:before, &:after { background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-nakladka.png"); // background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-nakladka.svg"); background-size: 100% 100%; content: ""; display: block; height: calc(100% - 0.4em); @include emSize(left, map-get($font-sizes, 'page-category-products-names') * 0.5, map-get($font-sizes, 'page-category-products-names')); pointer-events: none; position: absolute; top: 0; width: calc(100% - 1em); z-index: 2; } &:after { background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-ramka.png"); background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-ramka.svg"); height: calc(100% - 0.3em); } } } } @media (max-width: rem-size(829px * $mod, $font-size-base, true)) { .category-products { .category-product { &__image { img { @include emSize(max-width, $height-category-products-product-image, map-get($font-sizes, 'page')); @media (max-width: rem-size(319px * $mod, $font-size-base, true)) { height: auto; width: 100%; } } &:before, &:after { left: 0 !important; margin: 0; padding: 0; width: 100% !important; } } } } } } .page--product { .category-tree + * { & > .grid-wrapper { .border-hexagon { &:before, &:after { background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-nakladka.png"); // background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-nakladka.svg"); background-size: 100% 100%; height: 100%; @include emSize(left, map-get($font-sizes, 'page'), map-get($font-sizes, 'page')); pointer-events: none; position: absolute; top: 0; width: calc(100% - 1em); } &:after { background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-ramka.png"); background-image: url("../../userfiles/grafiki/szesciokaty/szesciokat-ramka.svg"); } } } } } .footer { &__wrapper { @include useColor(background-color, 'main-background'); } &-sentences { display: flex; justify-content: space-between; @include emSize((padding-left, padding-right), $padding-container-default-sides - map-get($font-sizes, 'footer-sentences'), map-get($font-sizes, 'footer-sentences')); &__wrapper { background-image: url("../../userfiles/tla/trzy-kolumny-pasek.jpg"); background-repeat: no-repeat; background-size: cover; @include useColor(color, 'footer-sentences-text'); @include useEmSize(font-size, 'footer-sentences'); line-height: (28 / 17); @include emSize(padding-bottom, $padding-footer-sentences-bottom, map-get($font-sizes, 'footer-sentences')); @include emSize(padding-top, $padding-footer-sentences-top, map-get($font-sizes, 'footer-sentences')); } & > * { margin: 0; @include emSize((margin-left, margin-right), map-get($font-sizes, 'footer-sentences'), map-get($font-sizes, 'footer-sentences')); & > img:first-child { float: left; @include emSize(height, $height-footer-sentences-icon, map-get($font-sizes, 'footer-sentences')); @include emSize((margin-right, margin-bottom), map-get($font-sizes, 'footer-sentences'), map-get($font-sizes, 'footer-sentences')); opacity: $sentences-icons-opacity; transition: $transitions-duration all; transition: var(--transitions-duration) all; width: auto; } &:focus, &:hover { & > img:first-child { opacity: 1; } } } @media (max-width: rem-size(959px * $mod, $font-size-base, true)) { flex-wrap: wrap; & > * { @include emSize((margin-bottom, margin-top), map-get($font-sizes, 'footer-sentences'), map-get($font-sizes, 'footer-sentences')); &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } & > img { &:first-child { @include emSize(margin-top, map-get($font-sizes, 'footer-sentences') * 0.5, map-get($font-sizes, 'footer-sentences')); } } } } @media (max-width: rem-size(479px * $mod, $font-size-base, true)) { & > * { & > img { &:first-child { float: none; display: table; @include emSize(margin-bottom, map-get($font-sizes, 'footer-sentences'), map-get($font-sizes, 'footer-sentences')); margin-left: auto; margin-right: auto; } } } } } @at-root .clients, &-clients { @include useEmSize(font-size, 'footer-clients'); @include emSize(margin-bottom, $margin-footer-clients-bottom, map-get($font-sizes, 'footer-clients')); @include emSize(margin-top, $margin-footer-clients-top, map-get($font-sizes, 'footer-clients')); text-align: center; &__header, & > h1:first-child { @include useEmSize(font-size, 'footer-clients-header', map-get($font-sizes, 'footer-clients')); } &__logos, & > div:last-of-type { align-items: center; display: flex; flex-wrap: wrap; justify-content: center; @include emSize((margin-left, margin-right), map-get($font-sizes, 'footer-clients') * -1, map-get($font-sizes, 'footer-clients')); @media (min-width: rem-size(1200px * $mod, $font-size-base, true)) { justify-content: space-between; } } &__logo, & > div:last-of-type > img { @include emSize((margin-bottom, margin-top), $margin-footer-clients-logo-v / 2, map-get($font-sizes, 'footer-clients')); @include emSize((margin-left, margin-right), map-get($font-sizes, 'footer-clients'), map-get($font-sizes, 'footer-clients')); } } &-contact { display: flex; justify-content: space-between; &__wrapper { @include useColor(background-color, 'footer-contact-background'); @include useColor(color, 'footer-contact-text'); @include useEmSize(font-size, 'footer-contact'); @include emSize(padding-bottom, $padding-footer-contact-bottom, map-get($font-sizes, 'footer-contact')); @include emSize(padding-top, $padding-footer-contact-top, map-get($font-sizes, 'footer-contact')); } a { text-decoration: none; &:focus, &:hover, &:active { text-decoration: underline; } } &__logo { display: inline-block; flex: 1 0 auto; max-width: 100%; @include emSize(width, $width-logo, map-get($font-sizes, 'footer-contact')); &--wrapper { display: flex; flex: 0 1 auto; flex-flow: column; justify-content: space-between; margin-left: 0; @include emSize(margin-right, $margin-footer-contact-logo-right - map-get($font-sizes, 'footer-contact') * 2, map-get($font-sizes, 'footer-contact')); @include emSize(margin-top, $margin-footer-contact-logo-top, map-get($font-sizes, 'footer-contact')); } img { height: auto; width: 100%; } } &__back-to-top { font-weight: 700; &-triangle { @include useColor(background-color, 'footer-contact-text'); @include useColor(color, 'main-background'); border-radius: 100em; display: inline-table; width: 1.3em; height: 1.3em; text-align: center; vertical-align: middle; } &:hover, &:focus, &:active { text-decoration: none; } } &__text { display: flex; justify-content: space-between; @include emSize((margin-left, margin-right), map-get($font-sizes, 'footer-contact'), map-get($font-sizes, 'footer-contact')); & > * { flex: 1 1 auto; margin-bottom: 0; margin-top: 0; @include emSize((margin-left, margin-right), map-get($font-sizes, 'footer-contact'), map-get($font-sizes, 'footer-contact')); } } &__socials { flex: 0 0 auto; @include emSize(margin-left, $margin-footer-contact-socials-left - map-get($font-sizes, 'footer-contact') * 2, map-get($font-sizes, 'footer-contact')); a.fab { display: table; @include useEmSize(font-size, 'footer-contact-socials', map-get($font-sizes, 'footer-contact')); @include emSize((margin-bottom, margin-top), $margin-footer-contact-socials-v, map-get($font-sizes, 'footer-contact-socials')); @include emSize(min-width, map-get($font-sizes, 'footer-contact-socials'), map-get($font-sizes, 'footer-contact-socials')); text-align: center; text-decoration: none; } } @media (max-width: rem-size(1023px * $mod, $font-size-base, true)) { flex-wrap: wrap; &__logo { &--wrapper { order: 1; } } &__text { flex: 1 1 auto; @include emSize((margin-left, margin-right), map-get($font-sizes, 'footer-contact') * -1, map-get($font-sizes, 'footer-contact')); @include emSize(margin-top, map-get($font-sizes, 'footer-contact') * 3, map-get($font-sizes, 'footer-contact')); order: 3; width: 100%; & > * { flex: 0 1 auto; &:last-child { white-space: pre; } } } &__socials { order: 2; a.fab { margin-left: auto; margin-right: 0; } } } @media (max-width: rem-size(575px * $mod, $font-size-base, true)) { &__logo { flex: 0 1 auto; @include emSize(margin-bottom, map-get($font-sizes, 'footer-contact'), map-get($font-sizes, 'footer-contact')); margin-left: auto; margin-right: auto; &--wrapper { flex: 1 1 auto; margin-left: 0; margin-right: 0; text-align: center; width: 100%; } } &__back-to-top { @include emSize((margin-bottom, margin-top), map-get($font-sizes, 'footer-contact') * 2, map-get($font-sizes, 'footer-contact')); } &__socials { margin-left: auto; margin-right: auto; text-align: center; a.fab { margin-left: auto; margin-right: auto; } } &__text { flex-wrap: wrap; margin-left: 0; margin-right: 0; @include emSize((margin-bottom, margin-top), map-get($font-sizes, 'footer-contact'), map-get($font-sizes, 'footer-contact')); text-align: center; & > * { flex: 1 1 auto; margin-left: 0; margin-right: 0; @include emSize((margin-bottom, margin-top), map-get($font-sizes, 'footer-contact'), map-get($font-sizes, 'footer-contact')); width: 100%; &:last-child { white-space: initial; } } } } } &-copyright { align-items: center; display: flex; justify-content: space-between; &__wrapper { @include useColor(background-color, 'footer-copyright-background'); @include useColor(color, 'footer-copyright-text'); @include useEmSize(font-size, 'footer-copyright'); @include emSize(padding-bottom, $padding-footer-copyright-bottom, map-get($font-sizes, 'footer-copyright')); @include emSize(padding-top, $padding-footer-copyright-top, map-get($font-sizes, 'footer-copyright')); } a { text-decoration: none; &:focus, &:hover, &:active { @include useColor(color, 'darkgray-text'); text-decoration: underline; } } &__text { & > *:first-child { margin-top: 0; } & > *:last-child { margin-bottom: 0; } } &__separator { @include emSize((margin-left, margin-right), map-get($font-sizes, 'footer-copyright') / 3 * 1.5); } &__kaczka { flex: 0 0 auto; @include useEmSize(font-size, 'footer-copyright-kaczka', map-get($font-sizes, 'footer-copyright')); } @media (max-width: rem-size(803px * $mod, $font-size-base, true)) { flex-wrap: wrap; &__text { flex: 1 1 auto; @include emSize(margin-bottom, map-get($font-sizes, 'footer-copyright'), map-get($font-sizes, 'footer-copyright')); text-align: center; width: 100%; } &__kaczka { flex: 1 1 auto; @include emSize(margin-top, map-get($font-sizes, 'footer-copyright'), map-get($font-sizes, 'footer-copyright-kaczka')); text-align: center; width: 100%; } } } } .user-modal { max-height: 50vh; max-height: calc(100vh - #{($width-modal-border-filled + $width-modal-border-transparent + $padding-modal-v) * 2}); max-height: calc(100vh - #{rem-size(($width-modal-border-filled + $width-modal-border-transparent + $padding-modal-v) * 2, map-get($font-sizes, 'modal'), true)}); overflow: auto; &__wrapper { @include useColor(background-color, 'modal-background'); line-height: (36px / 20px); margin: auto; max-height: 90%; max-height: calc(100% - #{($width-modal-border-filled + $width-modal-border-transparent) * 2}); max-height: calc(100% - #{rem-size(($width-modal-border-filled + $width-modal-border-transparent) * 2, map-get($font-sizes, 'modal'), true)}); max-width: 90%; max-width: calc(100% - #{($width-modal-border-filled + $width-modal-border-transparent) * 2}); max-width: calc(100% - #{rem-size(($width-modal-border-filled + $width-modal-border-transparent) * 2, map-get($font-sizes, 'modal'), true)}); @include emSize((padding-left, padding-right), $padding-modal-h, map-get($font-sizes, 'modal')); @include emSize((padding-bottom, padding-top), $padding-modal-v, map-get($font-sizes, 'modal')); position: relative; &--overlay { @include useColor(background-color, 'modal-overlay'); bottom: 0; @include useEmSize(font-size, 'modal'); left: 0; position: fixed; right: 0; top: 0; z-index: 1000; } &:before { @include useColor(border-color, 'modal-border'); border-style: solid; @include emSize(border-width, $width-modal-border-filled, map-get($font-sizes, 'modal')); content: ""; display: block; position: absolute; @include emSize((bottom, left, right, top), -$width-modal-border-filled - $width-modal-border-transparent, map-get($font-sizes, 'modal')); } } & > * { &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } &__close-btn { cursor: pointer; @include emSize((height, width), $modal-close-button-size, map-get($font-sizes, 'modal')); position: absolute; right: 0; top: 0; transition: $transitions-duration all; transition: var(--transitions-duration) all; &:before, &:after { @include useColor(background-color, 'main-text'); border-radius: 2em; content: ""; display: block; position: absolute; transition: $transitions-duration all; transition: var(--transitions-duration) all; } &:before { @include emSize(bottom, $modal-close-button-space, map-get($font-sizes, 'modal')); left: 50%; @include emSize(top, $modal-close-button-space, map-get($font-sizes, 'modal')); transform: translateX(-50%) rotate(45deg); @include emSize(width, $modal-close-button-width, map-get($font-sizes, 'modal')); } &:after { @include emSize(left, $modal-close-button-space, map-get($font-sizes, 'modal')); top: 50%; @include emSize(right, $modal-close-button-space, map-get($font-sizes, 'modal')); transform: translateY(-50%) rotate(45deg); @include emSize(height, $modal-close-button-width, map-get($font-sizes, 'modal')); } &:hover, &:focus { @include useColor(background-color, 'main-text'); &:before, &:after { @include useColor(background-color, 'main-background'); } &:before { transform: translateX(-50%) rotate(225deg); } &:after { transform: translateY(-50%) rotate(225deg); } } } @media (max-width: rem-size(1023px * $mod, $font-size-base, true)) { br.mobile-no-line-wrap { display: none; } } @media (max-width: rem-size(767px * $mod, $font-size-base, true)) { &__wrapper { &--overlay { @include emSize(font-size, map-get($font-sizes, 'modal') * 0.75); } } } } div.gallery { --items: 3; display: flex; flex-wrap: wrap; @include useEmSize(font-size, 'page', map-get($font-sizes, 'page')); @include emSize((margin-left, margin-right), $margin-gallery-grid-space-h / -2, map-get($font-sizes, 'page')); &__item, & > a { flex: 0 0 (100% / 3); flex: 0 0 calc(100% / var(--items)); flex: 0 0 calc(100% / var(--items) - #{$margin-gallery-grid-space-h}); flex: 0 0 calc(100% / var(--items) - #{rem-size($margin-gallery-grid-space-h)}); @include emSize((margin-left, margin-right), $margin-gallery-grid-space-h / 2, map-get($font-sizes, 'page')); @include emSize((margin-bottom, margin-top), $margin-gallery-grid-space-v / 2, map-get($font-sizes, 'page')); &:not(.no-width) { width: 100% / 3; width: calc(100% / 3); width: calc(100% / var(--items)); } @media (max-width: rem-size(999px * $mod, $font-size-base, true)) { flex-grow: 1; } } &__image, & > a > img { height: 100%; object-fit: cover; object-position: center; width: 100%; } @media (max-width: rem-size(767px * $mod, $font-size-base, true)) { --items: 2; &__item, & > a { flex: 0 0 (100% / 2); flex: 0 0 calc(100% / var(--items)); flex: 0 0 calc(100% / var(--items) - #{$margin-grid-item-space-h}); flex: 0 0 calc(100% / var(--items) - #{rem-size($margin-grid-item-space-h)}); @include remSize((margin-bottom, margin-top), $margin-grid-item-space-v / 2); @include remSize((margin-left, margin-right), $margin-grid-item-space-h / 2); &:not(.no-width) { width: 100% / 2; width: calc(100% / 2); width: calc(100% / var(--items)); } } } @media (max-width: rem-size(479px * $mod, $font-size-base, true)) { --items: 1; &__item, & > a { flex: 0 0 (100% / 1); flex: 0 0 calc(100% / var(--items)); flex: 0 0 calc(100% / var(--items) - #{$margin-grid-item-space-h}); flex: 0 0 calc(100% / var(--items) - #{rem-size($margin-grid-item-space-h)}); @include remSize((margin-bottom, margin-top), $margin-grid-item-space-v / 2); @include remSize((margin-left, margin-right), $margin-grid-item-space-h / 2); &:not(.no-width) { width: 100% / 1; width: calc(100% / 1); width: calc(100% / var(--items)); } } } } // AFTER STYLES .float-left { margin-bottom: 1em; margin-right: 2em; } .float-right { margin-bottom: 1em; margin-left: 2em; } .float-left, .float-right { display: block; } @media (max-width: rem-size(511px * $mod, $font-size-base, true)) { .float-left, .float-right { clear: both; float: none; margin-left: auto !important; margin-right: auto !important; } } .l-spacing-1 { letter-spacing: 1px; letter-spacing: rem-size(1px); } .bordered { border-style: solid; border-width: 1px; border-width: rem-size(1px); } .square:before{ content: ""; display: block; padding-top: 100%; /* initial ratio of 1:1*/ } .no-overflow-x { overflow-x: hidden; } .line-through { display: table; margin-left: auto; margin-right: auto; &:before, &:after { background-color: map-get($colors, 'dark'); background-color: var(--color-dark); content: ""; display: block; height: 2px; height: rem-size(2px); position: absolute; top: 58%; width: 10000px; width: 100vw; } &:before { left: 130%; left: calc(100% + 55px); left: calc(100% + #{rem-size(55px)}); } &:after { right: 130%; right: calc(100% + 55px); right: calc(100% + #{rem-size(55px)}); } } body.js { *[class*="fade-in"], *[class*="rotate-in"], *[class*="zoom-in"] { visibility: hidden; } } img[src*="img/loader.gif"] { object-fit: scale-down; } .cookies-box { background-color: rgba(0, 0, 0, 0.6); border-top: 2px solid rgba(0, 0, 0, 0.6); border-top: rem-size(2px) solid rgba(0, 0, 0, 0.6); color: white; position: fixed; bottom: 0; z-index: 99999; padding: rem-size(16px) rem-size(16px); line-height: rem-size(24px); text-align: center; width: 100%; .cookies-box-error { color: #ff5b5b; font-weight: bold; } a { color: inherit; text-decoration: underline; &:hover { color: map-get($colors, 'light'); color: var(--color-light); } } input[type="submit"], button[type="submit"] { background: none; border: none; color: inherit; cursor: pointer; text-decoration: underline; transition: $transitions-duration all; transition: var(--transitions-duration) all; &:hover { color: map-get($colors, 'light'); color: var(--color-light); } } div:first-of-type { float: left; } div:last-of-type { float: right; } display: flex; flex-wrap: wrap; justify-content: space-between; div { flex: 1 1 auto; padding: 0.5em 1em; text-align: center; } p { line-height: 1.25em; margin-bottom: 0; margin-top: 0; } }
[-] lg-core.scss
[edit]
[-] lg-variables.scss
[edit]
[+]
..
[-] lg-fullscreen.scss
[edit]
[-] lg-rotate.scss
[edit]
[-] lg-video.scss
[edit]
[-] lg-zoom.scss
[edit]
[-] lg-fb-comment-box.scss
[edit]
[-] _style-ie9.scss
[edit]
[-] lg-thumbnail.scss
[edit]
[-] lg-share.scss
[edit]
[-] lg-autoplay.scss
[edit]
[-] lg-fonts.scss
[edit]
[-] lg-transitions.scss
[edit]
[-] _config.scss
[edit]
[-] style.scss
[edit]
[-] lg-animations.scss
[edit]
[-] _responsive.scss
[edit]
[+]
assets
[-] lg-pager.scss
[edit]
[-] _init.scss
[edit]
[-] style-ie.scss
[edit]
[-] lightgallery.scss
[edit]
[-] lg-mixins.scss
[edit]
[-] lg-theme-default.scss
[edit]