|
4 | 4 | @function boxThemeSelector($name) {
|
5 | 5 | @return ".#{module.$prefix__default}--tm-#{$name}";
|
6 | 6 | }
|
7 |
| -@function boxSquareSelector($name) { |
| 7 | +@function boxSquareSizeSelector($name) { |
8 | 8 | @return ".#{module.$prefix__default}--square-#{$name}";
|
9 | 9 | }
|
10 | 10 |
|
|
33 | 33 | }
|
34 | 34 | }
|
35 | 35 |
|
| 36 | + // borderStyle |
| 37 | + // |
| 38 | + // @group Modifiers |
| 39 | + &.#{module.$prefix__default}--bdr-dashed { |
| 40 | + border-style: dashed; |
| 41 | + } |
| 42 | + |
36 | 43 | // size
|
37 | 44 | //
|
38 | 45 | // @group Modifiers
|
| 46 | + &.#{module.$prefix__default}--size-xs { |
| 47 | + border-radius: 0.7rem; |
| 48 | + } |
| 49 | + &.#{module.$prefix__default}--size-sm { |
| 50 | + border-radius: 0.85rem; |
| 51 | + } |
39 | 52 | &,
|
40 |
| - &.#{module.$prefix__default}--size { |
| 53 | + &.#{module.$prefix__default}--size, |
| 54 | + &.#{module.$prefix__default}--size-md { |
41 | 55 | border-radius: 1rem;
|
42 | 56 | }
|
43 | 57 | &.#{module.$prefix__default}--size-lg {
|
44 |
| - border-radius: 1.667rem; |
| 58 | + border-radius: 1.3rem; |
45 | 59 | }
|
46 |
| - &.#{module.$prefix__default}--size-md { |
47 |
| - border-radius: 1.333rem; |
| 60 | + &.#{module.$prefix__default}--size-xl { |
| 61 | + border-radius: 1.6rem; |
| 62 | + } |
| 63 | + &.#{module.$prefix__default}--size-xx { |
| 64 | + border-radius: 2.2rem; |
| 65 | + } |
| 66 | + &.#{module.$prefix__default}--size-mx { |
| 67 | + border-radius: 3rem; |
48 | 68 | }
|
49 | 69 |
|
50 |
| - // Comment theme |
| 70 | + // Box theme |
51 | 71 | //
|
52 | 72 | // @group Modifiers
|
53 | 73 | @include module.extend-color-modifiers(
|
54 | 74 | meta.get-function("boxThemeSelector")
|
55 | 75 | )
|
56 | 76 | using($name, $value, $isDefault) {
|
| 77 | + &.#{module.$prefix__default}--bdr-solid, |
| 78 | + &.#{module.$prefix__default}--bdr-dashed { |
| 79 | + border-color: module.color($name, 0.1); |
| 80 | + } |
57 | 81 | &:not([class*="--bgColor"]) {
|
58 | 82 | background: module.color($name, 0.1);
|
59 | 83 | }
|
|
74 | 98 | // border-color: module.color($name, 0.3);
|
75 | 99 | }
|
76 | 100 | }
|
77 |
| - &.#{module.$prefix__default}--button &, |
78 |
| - &.#{module.$prefix__default}--#{module.$component__button} & { |
79 |
| - box-shadow: 3px 3px 9px module.color($name, 0.3); |
| 101 | + &.#{module.$prefix__default}--button, |
| 102 | + &.#{module.$prefix__default}--#{module.$component__button} { |
| 103 | + .#{module.$component__box} { |
| 104 | + &:not(.#{module.$prefix__default}--bdr-solid):not(.#{module.$prefix__default}--bdr-dashed) { |
| 105 | + box-shadow: 3px 3px 9px module.color($name, 0.3); |
| 106 | + } |
| 107 | + } |
80 | 108 | }
|
81 | 109 | }
|
82 | 110 |
|
| 111 | + // Box theme |
| 112 | + // alternate color |
| 113 | + // |
| 114 | + // @group Modifiers |
83 | 115 | &.#{module.$prefix__default}--tm-lightComplement {
|
| 116 | + &.#{module.$prefix__default}--bdr-solid, |
| 117 | + &.#{module.$prefix__default}--bdr-dashed { |
| 118 | + border-color: module.color(dark, 0.1); |
| 119 | + } |
84 | 120 | &:not([class*="--bgColor"]) {
|
85 | 121 | background: module.color(light);
|
86 | 122 | }
|
|
101 | 137 | // border-color: module.color(light, 0.3);
|
102 | 138 | }
|
103 | 139 | }
|
104 |
| - &.#{module.$prefix__default}--button &, |
105 |
| - &.#{module.$prefix__default}--#{module.$component__button} & { |
106 |
| - box-shadow: 3px 3px 9px module.color(light, 0.3); |
| 140 | + &.#{module.$prefix__default}--button, |
| 141 | + &.#{module.$prefix__default}--#{module.$component__button} { |
| 142 | + .#{module.$component__box} { |
| 143 | + &:not(.#{module.$prefix__default}--bdr-solid):not(.#{module.$prefix__default}--bdr-dashed) { |
| 144 | + box-shadow: 3px 3px 9px module.color(light, 0.3); |
| 145 | + } |
| 146 | + } |
107 | 147 | }
|
108 | 148 | }
|
109 | 149 |
|
|
116 | 156 | p {
|
117 | 157 | text-align: center;
|
118 | 158 | }
|
119 |
| - } |
120 |
| - &.#{module.$prefix__default}--button &, |
121 |
| - &.#{module.$prefix__default}--#{module.$component__button} & { |
122 |
| - border-color: transparent !important; |
| 159 | + .#{module.$component__box} { |
| 160 | + &:not(.#{module.$prefix__default}--bdr-solid):not(.#{module.$prefix__default}--bdr-dashed) { |
| 161 | + border-color: transparent !important; |
| 162 | + } |
| 163 | + } |
123 | 164 | }
|
124 | 165 |
|
125 | 166 | & & {
|
126 |
| - border-radius: 1rem; |
127 |
| - |
128 | 167 | // Square shape
|
129 | 168 | // this assummes there is only one child
|
130 | 169 | //
|
131 | 170 | // @group Modifiers
|
132 | 171 | @include module.extend-map-modifiers(
|
133 | 172 | module.$elementSizes,
|
134 |
| - meta.get-function("boxSquareSelector"), |
135 |
| - md |
| 173 | + meta.get-function("boxSquareSizeSelector"), |
| 174 | + md, |
| 175 | + ".--square" |
136 | 176 | )
|
137 | 177 | using($name, $value, $isDefault) {
|
138 | 178 | width: $value;
|
|
0 commit comments