@appartmint/css-mint 2.0.11 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,12 +35,15 @@ $header-break: sm;
35
35
  #{class(theme)} {
36
36
  &-dark {
37
37
  @include css-var-ref(header-bg, c-brand-2);
38
+ @include css-var-ref(header-fg, c-fg);
39
+ @include css-var-ref(header-link-fg, c-fg);
40
+ @include css-var-ref(menu-btn-fg, c-fg);
38
41
  }
39
42
  }
40
43
 
41
44
  body {
42
45
  &#{class(fixed)} {
43
- #{id(header)} {
46
+ #{class(header)} {
44
47
  position: fixed;
45
48
  top: 0;
46
49
  left: 0;
@@ -48,7 +51,7 @@ body {
48
51
  }
49
52
  }
50
53
 
51
- #{id(header)} {
54
+ #{class(header)} {
52
55
  position: relative;
53
56
  width: 100%;
54
57
  color: css-var(header-fg);
@@ -62,11 +65,11 @@ body {
62
65
  display: contents;
63
66
  }
64
67
 
65
- #{controls(wrapper)} {
68
+ #{class(menu-btn)} {
66
69
  display: none;
67
70
  }
68
71
 
69
- #{id(wrapper)} {
72
+ #{class(wrapper)} {
70
73
  position: static;
71
74
  display: flex !important;
72
75
  height: 100%;
@@ -158,7 +161,7 @@ body {
158
161
 
159
162
  #{class(spread)} {
160
163
  @include break-max($header-break) {
161
- #{id(wrapper)} {
164
+ #{class(wrapper)} {
162
165
  #{$has-controls} {
163
166
  display: none;
164
167
 
@@ -176,7 +179,7 @@ body {
176
179
  }
177
180
 
178
181
  &:not(#{class(expand)}) {
179
- #{id(wrapper)} {
182
+ #{class(wrapper)} {
180
183
  #{$has-controls} {
181
184
  display: none;
182
185
 
@@ -196,7 +199,7 @@ body {
196
199
  }
197
200
 
198
201
  #{class(tray)} {
199
- #{id(wrapper)} {
202
+ #{class(wrapper)} {
200
203
 
201
204
  a, button {
202
205
  padding: 0.75rem;
@@ -240,7 +243,7 @@ body {
240
243
  z-index: -1;
241
244
  }
242
245
 
243
- #{id(navbar)} {
246
+ #{class(navbar)} {
244
247
  display: flex;
245
248
  align-items: center;
246
249
  justify-content: flex-end;
@@ -279,7 +282,7 @@ body {
279
282
  }
280
283
  }
281
284
 
282
- #{controls(wrapper)} {
285
+ #{class(menu-btn)} {
283
286
  display: inline-block;
284
287
  position: relative;
285
288
  padding: css-var(menu-btn-p);
@@ -345,7 +348,7 @@ body {
345
348
  }
346
349
  }
347
350
 
348
- #{id(wrapper)} {
351
+ #{class(wrapper)} {
349
352
  background: css-var(card-bg);
350
353
 
351
354
  nav {
@@ -467,7 +470,7 @@ body {
467
470
  }
468
471
  }
469
472
 
470
- #{$has-controls}:not(#{controls(wrapper)}) {
473
+ #{$has-controls}:not(#{class(menu-btn)}) {
471
474
  &+ul {
472
475
  display: flex;
473
476
  flex-direction: column;
@@ -31,6 +31,8 @@
31
31
  &-dark {
32
32
  @include css-var-ref(btn-fg, c-fg);
33
33
  @include css-var-ref(btn-bg, c-brand-2);
34
+ @include css-var-ref(btn-fg-alt, c-brand-9);
35
+ @include css-var-ref(btn-fg-alt-hover, c-fg);
34
36
  }
35
37
  }
36
38
 
@@ -14,6 +14,13 @@
14
14
  @include css-var-ref(link-c-hover, c-accent-2);
15
15
  }
16
16
 
17
+ #{class(theme)} {
18
+ &-dark {
19
+ @include css-var-ref(link-c, c-brand-8);
20
+ @include css-var-ref(link-c-hover, c-accent-7);
21
+ }
22
+ }
23
+
17
24
  a {
18
25
  color: css-var(link-c);
19
26
  transition-duration: time(default);
@@ -165,6 +165,7 @@
165
165
  border-radius: css-var(card-br);
166
166
  width: 100%;
167
167
  overflow: hidden;
168
+ z-index: 10;
168
169
 
169
170
  & > * {
170
171
  margin-top: 0;
@@ -6,5 +6,4 @@
6
6
  @use 'shadow';
7
7
  @use 'structure';
8
8
  @use 'text';
9
- @use 'texture';
10
9
  @use 'themes';
@@ -50,24 +50,17 @@ html, body {
50
50
 
51
51
  p {
52
52
  line-height: css-var(font-h);
53
+ margin: 0;
53
54
  }
54
55
 
55
56
  @include headers () {
56
57
  font-family: css-var(font-title), css-var(font-title-backups);
57
58
  line-height: 1;
58
-
59
- &:first-child {
60
- margin-top: 0;
61
- }
62
-
63
- &:last-child {
64
- margin-bottom: 0;
65
- }
59
+ margin: 0;
66
60
  }
67
61
 
68
62
  @each $tag in map.keys($font-min) {
69
63
  #{$tag}, #{class($tag)} {
70
- margin: 1rem 0;
71
64
  font-size: min(css-var(font-min-#{$tag}), css-var(font-mobile-#{$tag}));
72
65
 
73
66
  @include break(xs) {
@@ -5,8 +5,8 @@
5
5
  @charset 'utf-8';
6
6
  @use '../util/selector' as *;
7
7
 
8
- #{id(header)} {
9
- #{id(wrapper)} {
8
+ #{class(header)} {
9
+ #{class(wrapper)} {
10
10
  position: unset !important;
11
11
  }
12
12
  }
@@ -1,153 +0,0 @@
1
- /// texture.scss - Texture styles
2
- /// @author App Art Mint LLC
3
- ///
4
- /// @group Global
5
- @charset 'utf-8';
6
-
7
- /// Imports
8
- @use 'sass:list';
9
- @use '../util/selector' as *;
10
- @use '../util/break' as *;
11
-
12
- /// Texture Mixin
13
- $texture-bc: null !default;
14
- $texture-bg: null !default;
15
- $texture-bi: null !default;
16
- $texture-alt-bg: null !default;
17
-
18
- :root {
19
- @include css-var(texture-bg, $texture-bg);
20
- @include css-var(texture-bg-s, cover);
21
- @include css-var(texture-bg-pos, top);
22
- @include css-var(texture-blend, normal);
23
- @include css-var(texture-filter, none);
24
- @include css-var(texture-opacity, 1);
25
- @include css-var(texture-alt-bg-s, cover);
26
- @include css-var(texture-alt-bg-pos, center);
27
- @include css-var(texture-alt-blend, normal);
28
- @include css-var(texture-alt-mask, none);
29
- @include css-var(texture-alt-opacity, 1);
30
- @include css-var(texture-p, 1rem);
31
- @include css-var(texture-bw, 1.25rem);
32
- @include css-var(texture-bc, $texture-bc);
33
- @include css-var(texture-bi, $texture-bi);
34
- @include css-var(texture-bis, 42 42);
35
- @include css-var(texture-bir, round);
36
- @include css-var(texture-bst, solid);
37
- }
38
-
39
- @mixin mint-texture () {
40
- position: relative;
41
- background-color: css-var(c-bg);
42
-
43
- &::before, &::after {
44
- content: '';
45
- position: absolute;
46
- top: 0;
47
- left: 0;
48
- width: 100%;
49
- height: 100%;
50
- pointer-events: none;
51
- }
52
-
53
- &::before {
54
- opacity: css-var(texture-opacity);
55
- background-image: css-var(texture-bg);
56
- background-size: css-var(texture-bg-s);
57
- background-position: css-var(texture-bg-pos);
58
- mix-blend-mode: css-var(texture-blend);
59
- filter: css-var(texture-filter);
60
- }
61
-
62
- &::after {
63
- opacity: css-var(texture-alt-opacity);
64
- background-size: css-var(texture-alt-bg-s);
65
- background-position: css-var(texture-alt-bg-pos);
66
- mask-image: css-var(texture-alt-mask);
67
- mix-blend-mode: css-var(texture-alt-blend);
68
- z-index: 1;
69
- }
70
-
71
- & > * {
72
- position: relative;
73
- z-index: 10;
74
- }
75
- }
76
-
77
- /// Border Mixin
78
- @mixin mint-border () {
79
- padding: calc(#{css-var(texture-p)} / 2 + #{css-var(texture-bw)});
80
- border-image-source: css-var(texture-bi);
81
- border-image-slice: css-var(texture-bis);
82
- border-image-repeat: css-var(texture-bir);
83
- border-image-width: css-var(texture-bw);
84
- border-style: css-var(texture-bst);
85
-
86
- @include break(sm) {
87
- padding: calc(#{css-var(texture-p)} + #{css-var(texture-bw)});
88
- }
89
- }
90
-
91
- /// Texture Styles
92
- #{class(texture)} {
93
- @if $texture-bg {
94
- @include mint-texture();
95
- }
96
- }
97
-
98
- /// Border Styles
99
- #{class(border)} {
100
- @extend #{class(texture)};
101
- @if $texture-bi {
102
- @include mint-border();
103
- } @else if $texture-bc {
104
- border: css-var(texture-bw) css-var(texture-bst) css-var(texture-bc);
105
- }
106
- }
107
-
108
- #{class(frame)} {
109
- height: fit-content;
110
- background-color: css-var(card-bg);
111
-
112
- @extend #{class(border)};
113
- @if $texture-bi {
114
- padding: css-var(texture-bw);
115
- } @else if $texture-bc {
116
- padding: 0;
117
- }
118
- }
119
-
120
- #{class(card)} {
121
- #{class(content)} {
122
- @extend #{class(border)};
123
- }
124
-
125
- &-grid {
126
- #{class(image)} {
127
- @extend #{class(border)};
128
- position: absolute;
129
- }
130
- }
131
- }
132
-
133
- /// Alt Texture Styles
134
- @if $texture-alt-bg and list.length($texture-alt-bg) > 0 {
135
- @for $num from 1 through list.length($texture-alt-bg) {
136
- #{class(texture-#{$num})} {
137
- #{class(content)} {
138
- &::after {
139
- background-image: url(#{list.nth($texture-alt-bg, $num)});
140
- }
141
- }
142
- }
143
- }
144
- }
145
-
146
- /// Overlay texture
147
- #{class(overlay)} {
148
- #{class(border)}, #{class(texture)} {
149
- &::before {
150
- z-index: 100;
151
- }
152
- }
153
- }