|
1 | | -///////////////////////////////////////////////////////// |
2 | | -/// PUNICA CSS > COMPONENTS : BILLBOARD |
3 | | -///////////////////////////////////////////////////////// |
4 | 1 | /// |
5 | | -/// if billboard is enable |
| 2 | +/// Punica CSS Framework |
| 3 | +/// Components : Billboard |
6 | 4 | /// |
| 5 | + |
| 6 | +@use "../../_global/_getters" as *; |
| 7 | +@use "../../_global/mixins" as *; |
| 8 | +@use "../../_themes/_getters" as *; |
| 9 | +@use "../../_themes/_setters" as *; |
| 10 | +@use "variables"; |
| 11 | + |
| 12 | +/// if billboard is enable |
7 | 13 | @if options('billboard', 'enable') { |
8 | 14 | .#{class('billboard', 'name')} { |
9 | 15 | @include set-style(theme('color', 'background'), theme('color', 'text')) { |
|
19 | 25 | /// STYLES |
20 | 26 | /// |
21 | 27 | @if options('billboard', 'features', 'styles') { |
22 | | - @each $style-name, $bg-color in $billboard-styles { |
| 28 | + @each $style-name, $bg-color in variables.$styles { |
23 | 29 | @include set-style($bg-color, theme('color', 'negative'), $style-name) { |
24 | 30 | border-color: darken($bg-color, 4.5%); |
25 | 31 | }; |
|
29 | 35 | /// SIZES |
30 | 36 | /// |
31 | 37 | @if options('billboard', 'features', 'sizes') { |
32 | | - @each $size-name, $padding, $font-size in $billboard-sizes { |
| 38 | + @each $size-name, $padding, $font-size in variables.$sizes { |
33 | 39 | @include set-size($font-size, $padding, $size-name) { |
34 | 40 | .#{class('billboard', 'body')} { |
35 | 41 | padding: $padding; |
|
50 | 56 | justify-content: center; |
51 | 57 | flex-direction: column; |
52 | 58 | } |
53 | | - } |
54 | | - /// |
55 | | - /// COVER |
56 | | - /// |
57 | | - @if options('billboard', 'features', 'cover') { |
58 | | - &.#{class('billboard', 'cover')} { |
59 | | - min-height: 100vh; |
60 | | - max-height: 100%; |
61 | | - min-width: 100%; |
62 | | - border: 0; |
63 | | - background-size: cover; |
64 | | - background-position: center center; |
65 | | - background-repeat: no-repeat; |
| 59 | + /// |
| 60 | + /// COVER |
| 61 | + /// |
| 62 | + @if options('billboard', 'features', 'cover') { |
| 63 | + &.#{class('billboard', 'cover')} { |
| 64 | + min-height: 100vh; |
| 65 | + max-height: 100%; |
| 66 | + min-width: 100%; |
| 67 | + border: 0; |
| 68 | + background-size: cover; |
| 69 | + background-position: center center; |
| 70 | + background-repeat: no-repeat; |
| 71 | + } |
66 | 72 | } |
67 | | - } |
| 73 | + } |
68 | 74 | /// |
69 | 75 | /// |
70 | 76 | /// |
|
84 | 90 | /// SIZES |
85 | 91 | /// |
86 | 92 | @if options('billboard', 'features', 'sizes') { |
87 | | - @each $size, $padding, $font-size in $billboard-responsive-sizes { |
| 93 | + @each $size, $padding, $font-size in variables.$responsive-sizes { |
88 | 94 | &.#{$size} { |
89 | 95 | padding: $padding; |
90 | 96 | .#{class('billboard', 'body')} { |
|
0 commit comments