noctemyth 0.0.36
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.
- package/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/css/noctemyth-skelton.css +11880 -0
- package/dist/css/noctemyth-skelton.css.map +1 -0
- package/dist/css/noctemyth-skelton.min.css +11880 -0
- package/dist/css/noctemyth-skelton.min.css.map +1 -0
- package/dist/css/noctemyth-utilities.css +142390 -0
- package/dist/css/noctemyth-utilities.css.map +1 -0
- package/dist/css/noctemyth-utilities.min.css +142390 -0
- package/dist/css/noctemyth-utilities.min.css.map +1 -0
- package/dist/css/noctemyth.css +51864 -0
- package/dist/css/noctemyth.css.map +1 -0
- package/dist/css/noctemyth.min.css +26439 -0
- package/dist/css/noctemyth.min.css.map +1 -0
- package/package.json +61 -0
- package/src/animations/fade.scss +41 -0
- package/src/animations/index.scss +1 -0
- package/src/backgrounds/dot.scss +55 -0
- package/src/backgrounds/gingham.scss +56 -0
- package/src/backgrounds/index.scss +5 -0
- package/src/backgrounds/rhombus.scss +49 -0
- package/src/backgrounds/stripe.scss +45 -0
- package/src/backgrounds/zigzag.scss +71 -0
- package/src/base/dub.scss +9 -0
- package/src/base/element.scss +5 -0
- package/src/base/index.scss +3 -0
- package/src/base/normalize.scss +394 -0
- package/src/components/accordion.scss +179 -0
- package/src/components/badge.scss +109 -0
- package/src/components/blockquote.scss +92 -0
- package/src/components/breadcrumbs.scss +47 -0
- package/src/components/button.scss +157 -0
- package/src/components/card.scss +89 -0
- package/src/components/dialogue.scss +452 -0
- package/src/components/div.scss +7 -0
- package/src/components/footer.scss +21 -0
- package/src/components/hamburger.scss +157 -0
- package/src/components/header.scss +36 -0
- package/src/components/heading.scss +40 -0
- package/src/components/image.scss +10 -0
- package/src/components/index.scss +26 -0
- package/src/components/input.scss +338 -0
- package/src/components/label.scss +17 -0
- package/src/components/link.scss +29 -0
- package/src/components/list.scss +16 -0
- package/src/components/loader.scss +72 -0
- package/src/components/main.scss +8 -0
- package/src/components/message.scss +53 -0
- package/src/components/modal.scss +41 -0
- package/src/components/nav.scss +387 -0
- package/src/components/paragraph.scss +12 -0
- package/src/components/progress.scss +43 -0
- package/src/components/section.scss +7 -0
- package/src/components/span.scss +7 -0
- package/src/css-variables/animation.scss +11 -0
- package/src/css-variables/border.scss +16 -0
- package/src/css-variables/color.scss +604 -0
- package/src/css-variables/components/breadcrumbs.scss +5 -0
- package/src/css-variables/components/button.scss +6 -0
- package/src/css-variables/components/dialogue.scss +15 -0
- package/src/css-variables/components/header.scss +7 -0
- package/src/css-variables/components/heading.scss +5 -0
- package/src/css-variables/components/index.scss +5 -0
- package/src/css-variables/index.scss +7 -0
- package/src/css-variables/miscellaneous.scss +8 -0
- package/src/css-variables/typography.scss +24 -0
- package/src/functions/index.scss +1 -0
- package/src/functions/string.scss +31 -0
- package/src/icons/check.scss +21 -0
- package/src/icons/chevron.scss +30 -0
- package/src/icons/index.scss +2 -0
- package/src/layouts/centering.scss +13 -0
- package/src/layouts/columns.scss +97 -0
- package/src/layouts/container.scss +59 -0
- package/src/layouts/index.scss +3 -0
- package/src/mixins/animation.scss +80 -0
- package/src/mixins/color.scss +33 -0
- package/src/mixins/element.scss +5 -0
- package/src/mixins/index.scss +5 -0
- package/src/mixins/responsive.scss +222 -0
- package/src/noctemyth-skelton.scss +12 -0
- package/src/noctemyth-utilities.scss +3 -0
- package/src/noctemyth.scss +9 -0
- package/src/utilities/border.scss +46 -0
- package/src/utilities/color.scss +327 -0
- package/src/utilities/decoration.scss +16 -0
- package/src/utilities/index.scss +7 -0
- package/src/utilities/positioning.scss +90 -0
- package/src/utilities/sizing.scss +142 -0
- package/src/utilities/spacing.scss +154 -0
- package/src/utilities/typography.scss +109 -0
- package/src/variables/animation.scss +8 -0
- package/src/variables/border.scss +81 -0
- package/src/variables/color.scss +1371 -0
- package/src/variables/components/breadcrumbs.scss +3 -0
- package/src/variables/components/button.scss +3 -0
- package/src/variables/components/dialogue.scss +12 -0
- package/src/variables/components/header.scss +3 -0
- package/src/variables/components/heading.scss +3 -0
- package/src/variables/components/index.scss +5 -0
- package/src/variables/index.scss +8 -0
- package/src/variables/layout.scss +28 -0
- package/src/variables/miscellaneous.scss +14 -0
- package/src/variables/typography.scss +26 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
@use "../mixins/index.scss" as mixins;
|
|
4
|
+
|
|
5
|
+
@mixin dialogue-message-arrow-base() {
|
|
6
|
+
&::after,
|
|
7
|
+
&::before {
|
|
8
|
+
border-top-color: transparent;
|
|
9
|
+
border-top-style: solid;
|
|
10
|
+
border-top-width: calc(
|
|
11
|
+
var(--#{variables.$prefix}dialogue-messege-arrow-height) / 2
|
|
12
|
+
);
|
|
13
|
+
border-bottom-color: transparent;
|
|
14
|
+
border-bottom-style: solid;
|
|
15
|
+
border-bottom-width: calc(
|
|
16
|
+
var(--#{variables.$prefix}dialogue-messege-arrow-height) / 2
|
|
17
|
+
);
|
|
18
|
+
content: "";
|
|
19
|
+
display: block;
|
|
20
|
+
height: 0;
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: var(--#{variables.$prefix}dialogue-messege-arrow-top-offset);
|
|
23
|
+
right: auto;
|
|
24
|
+
width: 0;
|
|
25
|
+
z-index: -1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.dialogue {
|
|
30
|
+
@include mixins.element();
|
|
31
|
+
--#{variables.$prefix}dialogue-avatar-size: var(
|
|
32
|
+
--#{variables.$prefix}dialogue-avatar-size-default
|
|
33
|
+
);
|
|
34
|
+
--#{variables.$prefix}dialogue-border-width: var(
|
|
35
|
+
--#{variables.$prefix}border-width-medium
|
|
36
|
+
);
|
|
37
|
+
--#{variables.$prefix}dialogue-messege-top-offset: calc(
|
|
38
|
+
(
|
|
39
|
+
var(--#{variables.$prefix}dialogue-name-padding-y) * 2 +
|
|
40
|
+
var(--#{variables.$prefix}dialogue-border-width) * 2 +
|
|
41
|
+
var(--#{variables.$prefix}dialogue-name-font-size)
|
|
42
|
+
) / 2
|
|
43
|
+
);
|
|
44
|
+
--#{variables.$prefix}dialogue-messege-arrow-top-offset: calc(
|
|
45
|
+
(-1 * var(--#{variables.$prefix}dialogue-messege-top-offset)) +
|
|
46
|
+
(-1 * var(--#{variables.$prefix}dialogue-border-width)) +
|
|
47
|
+
(-1 * var(--#{variables.$prefix}dialogue-messege-arrow-height) / 2) +
|
|
48
|
+
var(--#{variables.$prefix}dialogue-avatar-top-offset) +
|
|
49
|
+
(var(--#{variables.$prefix}dialogue-avatar-size) / 2)
|
|
50
|
+
);
|
|
51
|
+
--#{variables.$prefix}dialogue-name-text-shadow-inner-color: var(
|
|
52
|
+
--#{variables.$prefix}color-default-dialogue-name-back
|
|
53
|
+
);
|
|
54
|
+
--#{variables.$prefix}dialogue-name-text-shadow-outer-color: var(
|
|
55
|
+
--#{variables.$prefix}color-default-dialogue-name-shadow
|
|
56
|
+
);
|
|
57
|
+
--#{variables.$prefix}dialogue-name-text-shadow-inner-width: 0.1rem;
|
|
58
|
+
--#{variables.$prefix}dialogue-name-text-shadow-outer-width: 0.2rem;
|
|
59
|
+
|
|
60
|
+
display: flex;
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
margin: 0;
|
|
63
|
+
padding-bottom: var(--#{variables.$prefix}dialogue-messege-top-offset);
|
|
64
|
+
position: relative;
|
|
65
|
+
width: 100%;
|
|
66
|
+
&.is-avatar-small {
|
|
67
|
+
--#{variables.$prefix}dialogue-avatar-size: var(
|
|
68
|
+
--#{variables.$prefix}dialogue-avatar-size-small
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
&.is-avatar-large {
|
|
72
|
+
--#{variables.$prefix}dialogue-avatar-size: var(
|
|
73
|
+
--#{variables.$prefix}dialogue-avatar-size-large
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
&.is-avatar-circle {
|
|
77
|
+
--#{variables.$prefix}dialogue-messege-arrow-top-offset: calc(
|
|
78
|
+
(-1 * var(--#{variables.$prefix}dialogue-messege-top-offset)) +
|
|
79
|
+
(-1 * var(--#{variables.$prefix}dialogue-border-width)) +
|
|
80
|
+
(-1 * var(--#{variables.$prefix}dialogue-messege-arrow-height) / 2) +
|
|
81
|
+
var(--#{variables.$prefix}dialogue-avatar-top-offset) +
|
|
82
|
+
(
|
|
83
|
+
var(--#{variables.$prefix}dialogue-avatar-size) +
|
|
84
|
+
var(--#{variables.$prefix}dialogue-border-width) * 2
|
|
85
|
+
) / 2
|
|
86
|
+
);
|
|
87
|
+
> .dialogue-avatar-container {
|
|
88
|
+
> .dialogue-avatar {
|
|
89
|
+
background-color: var(
|
|
90
|
+
--#{variables.$prefix}color-default-dialogue-avatar-back
|
|
91
|
+
);
|
|
92
|
+
border-color: var(
|
|
93
|
+
--#{variables.$prefix}color-default-dialogue-avatar-border
|
|
94
|
+
);
|
|
95
|
+
border-style: solid;
|
|
96
|
+
border-width: var(--#{variables.$prefix}dialogue-border-width);
|
|
97
|
+
border-radius: var(--#{variables.$prefix}border-radius-circle);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@each $borderWidth in variables.$borderWidths {
|
|
103
|
+
$name: map.get($borderWidth, "name");
|
|
104
|
+
&.is-border-width-#{$name} {
|
|
105
|
+
--#{variables.$prefix}dialogue-border-width: var(
|
|
106
|
+
--#{variables.$prefix}border-width-#{$name}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
> .dialogue-avatar-container,
|
|
112
|
+
> .dialogue-content-container {
|
|
113
|
+
@include mixins.element();
|
|
114
|
+
display: block;
|
|
115
|
+
max-width: 100%;
|
|
116
|
+
margin: 0;
|
|
117
|
+
position: relative;
|
|
118
|
+
}
|
|
119
|
+
> .dialogue-avatar-container {
|
|
120
|
+
height: auto;
|
|
121
|
+
flex: 0 0 var(--#{variables.$prefix}dialogue-avatar-size);
|
|
122
|
+
padding-top: var(--#{variables.$prefix}dialogue-avatar-top-offset);
|
|
123
|
+
> .dialogue-avatar {
|
|
124
|
+
@include mixins.element();
|
|
125
|
+
aspect-ratio: 1;
|
|
126
|
+
display: block;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
height: auto;
|
|
130
|
+
width: var(--#{variables.$prefix}dialogue-avatar-size);
|
|
131
|
+
margin: 0 auto;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
> .dialogue-content-container {
|
|
136
|
+
flex: 1 1 auto;
|
|
137
|
+
min-height: calc(var(--#{variables.$prefix}dialogue-avatar-size) + 1.5rem);
|
|
138
|
+
> .dialogue-name,
|
|
139
|
+
> .dialogue-message {
|
|
140
|
+
min-height: 1rem;
|
|
141
|
+
border-radius: var(--#{variables.$prefix}border-radius-medium);
|
|
142
|
+
border-style: solid;
|
|
143
|
+
border-width: var(--#{variables.$prefix}dialogue-border-width);
|
|
144
|
+
}
|
|
145
|
+
> .dialogue-name {
|
|
146
|
+
@include mixins.element();
|
|
147
|
+
background-color: var(
|
|
148
|
+
--#{variables.$prefix}color-default-dialogue-name-back
|
|
149
|
+
);
|
|
150
|
+
border-color: var(
|
|
151
|
+
--#{variables.$prefix}color-default-dialogue-name-border
|
|
152
|
+
);
|
|
153
|
+
color: var(--#{variables.$prefix}color-default-dialogue-name-fore);
|
|
154
|
+
font-size: var(--#{variables.$prefix}dialogue-name-font-size);
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: 0;
|
|
157
|
+
padding: var(--#{variables.$prefix}dialogue-name-padding-y)
|
|
158
|
+
var(--#{variables.$prefix}dialogue-name-padding-x);
|
|
159
|
+
font-weight: var(--#{variables.$prefix}font-weight-bold);
|
|
160
|
+
z-index: 1;
|
|
161
|
+
&.has-text-shadow {
|
|
162
|
+
text-shadow: var(
|
|
163
|
+
--#{variables.$prefix}dialogue-name-text-shadow-inner-width
|
|
164
|
+
)
|
|
165
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
166
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
167
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-color),
|
|
168
|
+
calc(
|
|
169
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width) *
|
|
170
|
+
-1
|
|
171
|
+
)
|
|
172
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
173
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
174
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-color),
|
|
175
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
176
|
+
calc(
|
|
177
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width) *
|
|
178
|
+
-1
|
|
179
|
+
)
|
|
180
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
181
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-color),
|
|
182
|
+
calc(
|
|
183
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width) *
|
|
184
|
+
-1
|
|
185
|
+
)
|
|
186
|
+
calc(
|
|
187
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width) *
|
|
188
|
+
-1
|
|
189
|
+
)
|
|
190
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
191
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-color),
|
|
192
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width) 0
|
|
193
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
194
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-color),
|
|
195
|
+
0 var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
196
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
197
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-color),
|
|
198
|
+
calc(
|
|
199
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width) *
|
|
200
|
+
-1
|
|
201
|
+
)
|
|
202
|
+
0 var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
203
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-color),
|
|
204
|
+
0
|
|
205
|
+
calc(
|
|
206
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width) *
|
|
207
|
+
-1
|
|
208
|
+
)
|
|
209
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-width)
|
|
210
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-inner-color),
|
|
211
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
212
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
213
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
214
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-color),
|
|
215
|
+
calc(
|
|
216
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width) *
|
|
217
|
+
-1
|
|
218
|
+
)
|
|
219
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
220
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
221
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-color),
|
|
222
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
223
|
+
calc(
|
|
224
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width) *
|
|
225
|
+
-1
|
|
226
|
+
)
|
|
227
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
228
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-color),
|
|
229
|
+
calc(
|
|
230
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width) *
|
|
231
|
+
-1
|
|
232
|
+
)
|
|
233
|
+
calc(
|
|
234
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width) *
|
|
235
|
+
-1
|
|
236
|
+
)
|
|
237
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
238
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-color),
|
|
239
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width) 0
|
|
240
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
241
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-color),
|
|
242
|
+
0 var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
243
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
244
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-color),
|
|
245
|
+
calc(
|
|
246
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width) *
|
|
247
|
+
-1
|
|
248
|
+
)
|
|
249
|
+
0 var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
250
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-color),
|
|
251
|
+
0
|
|
252
|
+
calc(
|
|
253
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width) *
|
|
254
|
+
-1
|
|
255
|
+
)
|
|
256
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-width)
|
|
257
|
+
var(--#{variables.$prefix}dialogue-name-text-shadow-outer-color);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
> .dialogue-message {
|
|
261
|
+
@include mixins.element();
|
|
262
|
+
background-color: var(
|
|
263
|
+
--#{variables.$prefix}color-default-dialogue-message-back
|
|
264
|
+
);
|
|
265
|
+
border-color: var(
|
|
266
|
+
--#{variables.$prefix}color-default-dialogue-message-border
|
|
267
|
+
);
|
|
268
|
+
color: var(--#{variables.$prefix}color-default-dialogue-message-fore);
|
|
269
|
+
position: relative;
|
|
270
|
+
top: var(--#{variables.$prefix}dialogue-messege-top-offset);
|
|
271
|
+
padding-top: calc(
|
|
272
|
+
var(--#{variables.$prefix}dialogue-messege-top-offset) / 2
|
|
273
|
+
);
|
|
274
|
+
width: auto;
|
|
275
|
+
z-index: 0;
|
|
276
|
+
> .dialogue-message-inner {
|
|
277
|
+
padding: var(--#{variables.$prefix}dialogue-message-inner-padding-y)
|
|
278
|
+
var(--#{variables.$prefix}dialogue-message-inner-padding-x);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
&.is-left {
|
|
284
|
+
> .dialogue-content-container {
|
|
285
|
+
> .dialogue-name {
|
|
286
|
+
right: auto;
|
|
287
|
+
left: var(--#{variables.$prefix}dialogue-messege-arrow-width);
|
|
288
|
+
}
|
|
289
|
+
padding-left: var(--#{variables.$prefix}dialogue-messege-arrow-width);
|
|
290
|
+
> .dialogue-message {
|
|
291
|
+
right: auto;
|
|
292
|
+
@include dialogue-message-arrow-base();
|
|
293
|
+
&::after,
|
|
294
|
+
&::before {
|
|
295
|
+
border-left: none;
|
|
296
|
+
right: auto;
|
|
297
|
+
}
|
|
298
|
+
&::before {
|
|
299
|
+
border-right-color: var(
|
|
300
|
+
--#{variables.$prefix}color-default-dialogue-message-border
|
|
301
|
+
);
|
|
302
|
+
border-right-width: var(
|
|
303
|
+
--#{variables.$prefix}dialogue-messege-arrow-width
|
|
304
|
+
);
|
|
305
|
+
border-right-style: solid;
|
|
306
|
+
left: calc(
|
|
307
|
+
(-1 * var(--#{variables.$prefix}dialogue-messege-arrow-width))
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
&::after {
|
|
311
|
+
border-right-color: var(
|
|
312
|
+
--#{variables.$prefix}color-default-dialogue-message-back
|
|
313
|
+
);
|
|
314
|
+
border-right-width: var(
|
|
315
|
+
--#{variables.$prefix}dialogue-messege-arrow-width
|
|
316
|
+
);
|
|
317
|
+
border-right-style: solid;
|
|
318
|
+
left: calc(
|
|
319
|
+
(-1 * var(--#{variables.$prefix}dialogue-messege-arrow-width)) +
|
|
320
|
+
var(--#{variables.$prefix}dialogue-border-width) * 2
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
&.is-right {
|
|
327
|
+
> .dialogue-content-container {
|
|
328
|
+
padding-right: var(--#{variables.$prefix}dialogue-messege-arrow-width);
|
|
329
|
+
> .dialogue-name {
|
|
330
|
+
left: auto;
|
|
331
|
+
right: var(--#{variables.$prefix}dialogue-messege-arrow-width);
|
|
332
|
+
}
|
|
333
|
+
> .dialogue-message {
|
|
334
|
+
left: auto;
|
|
335
|
+
@include dialogue-message-arrow-base();
|
|
336
|
+
&::after,
|
|
337
|
+
&::before {
|
|
338
|
+
border-right: none;
|
|
339
|
+
left: auto;
|
|
340
|
+
}
|
|
341
|
+
&::before {
|
|
342
|
+
border-left-color: var(
|
|
343
|
+
--#{variables.$prefix}color-default-dialogue-message-border
|
|
344
|
+
);
|
|
345
|
+
border-left-width: var(
|
|
346
|
+
--#{variables.$prefix}dialogue-messege-arrow-width
|
|
347
|
+
);
|
|
348
|
+
border-left-style: solid;
|
|
349
|
+
right: calc(
|
|
350
|
+
(-1 * var(--#{variables.$prefix}dialogue-messege-arrow-width))
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
&::after {
|
|
354
|
+
border-left-color: var(
|
|
355
|
+
--#{variables.$prefix}color-default-dialogue-message-back
|
|
356
|
+
);
|
|
357
|
+
border-left-width: var(
|
|
358
|
+
--#{variables.$prefix}dialogue-messege-arrow-width
|
|
359
|
+
);
|
|
360
|
+
border-left-style: solid;
|
|
361
|
+
right: calc(
|
|
362
|
+
(-1 * var(--#{variables.$prefix}dialogue-messege-arrow-width)) +
|
|
363
|
+
var(--#{variables.$prefix}dialogue-border-width) * 2
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
@each $border-style in variables.$borderStyles {
|
|
370
|
+
&.is-border-style-#{$border-style} {
|
|
371
|
+
&.is-avatar-circle {
|
|
372
|
+
> .dialogue-avatar-container {
|
|
373
|
+
> .dialogue-avatar {
|
|
374
|
+
border-style: #{$border-style};
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
> .dialogue-content-container {
|
|
379
|
+
> .dialogue-name,
|
|
380
|
+
> .dialogue-message {
|
|
381
|
+
border-style: #{$border-style};
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
@if (not variables.$is-skelton) {
|
|
388
|
+
@each $color in variables.$colors {
|
|
389
|
+
$colorName: map.get($color, "name");
|
|
390
|
+
&.is-#{$colorName} {
|
|
391
|
+
> .dialogue-avatar-container {
|
|
392
|
+
> .dialogue-avatar {
|
|
393
|
+
background-color: var(
|
|
394
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-avatar-back
|
|
395
|
+
);
|
|
396
|
+
border-color: var(
|
|
397
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-avatar-border
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
> .dialogue-content-container {
|
|
402
|
+
> .dialogue-name {
|
|
403
|
+
background-color: var(
|
|
404
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-name-back
|
|
405
|
+
);
|
|
406
|
+
border-color: var(
|
|
407
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-name-border
|
|
408
|
+
);
|
|
409
|
+
color: var(
|
|
410
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-name-fore
|
|
411
|
+
);
|
|
412
|
+
&.has-text-shadow {
|
|
413
|
+
--#{variables.$prefix}dialogue-name-text-shadow-inner-color: var(
|
|
414
|
+
--#{variables.$prefix}-color-#{$colorName}-dialogue-name-back
|
|
415
|
+
);
|
|
416
|
+
--#{variables.$prefix}dialogue-name-text-shadow-outer-color: var(
|
|
417
|
+
--#{variables.$prefix}-color-#{$colorName}-dialogue-name-shadow
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
> .dialogue-message {
|
|
422
|
+
background-color: var(
|
|
423
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-message-back
|
|
424
|
+
);
|
|
425
|
+
border-color: var(
|
|
426
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-message-border
|
|
427
|
+
);
|
|
428
|
+
color: var(
|
|
429
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-message-fore
|
|
430
|
+
);
|
|
431
|
+
&::after {
|
|
432
|
+
border-right-color: var(
|
|
433
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-message-back
|
|
434
|
+
);
|
|
435
|
+
border-left-color: var(
|
|
436
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-message-back
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
&::before {
|
|
440
|
+
border-right-color: var(
|
|
441
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-message-border
|
|
442
|
+
);
|
|
443
|
+
border-left-color: var(
|
|
444
|
+
--#{variables.$prefix}color-#{$colorName}-dialogue-message-border
|
|
445
|
+
);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
@use "../mixins/index.scss" as mixins;
|
|
4
|
+
|
|
5
|
+
.footer {
|
|
6
|
+
@include mixins.element();
|
|
7
|
+
background-color: var(--#{variables.$prefix}color-default-footer-back);
|
|
8
|
+
color: var(--#{variables.$prefix}color-default-footer-fore);
|
|
9
|
+
padding: 2rem 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
|
|
12
|
+
@if (not variables.$is-skelton) {
|
|
13
|
+
@each $color in variables.$colors {
|
|
14
|
+
$colorName: map.get($color, "name");
|
|
15
|
+
&.is-#{$colorName} {
|
|
16
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-footer-back);
|
|
17
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-footer-fore);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
|
|
4
|
+
$hamburger-size: 3.5rem;
|
|
5
|
+
$hamburger-line-height: 0.2rem;
|
|
6
|
+
$hamburger-line-color: var(--#{variables.$prefix}color-default-border);
|
|
7
|
+
|
|
8
|
+
.hamburger {
|
|
9
|
+
color: var(--#{variables.$prefix}color-default-fore);
|
|
10
|
+
border-radius: 0.25rem;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
display: inline-block;
|
|
13
|
+
height: $hamburger-size;
|
|
14
|
+
position: relative;
|
|
15
|
+
touch-action: manipulation;
|
|
16
|
+
user-select: none;
|
|
17
|
+
width: $hamburger-size;
|
|
18
|
+
.crown,
|
|
19
|
+
.upperpatty,
|
|
20
|
+
.club,
|
|
21
|
+
.lowerpatty,
|
|
22
|
+
.heel {
|
|
23
|
+
display: inline-block;
|
|
24
|
+
opacity: 1;
|
|
25
|
+
position: absolute;
|
|
26
|
+
transform-origin: center;
|
|
27
|
+
left: 0;
|
|
28
|
+
margin: 0 auto;
|
|
29
|
+
right: 0;
|
|
30
|
+
}
|
|
31
|
+
.crown {
|
|
32
|
+
font-size: 0.5em;
|
|
33
|
+
line-height: 1;
|
|
34
|
+
text-align: center;
|
|
35
|
+
top: 0.25em;
|
|
36
|
+
width: $hamburger-size;
|
|
37
|
+
}
|
|
38
|
+
.upperpatty {
|
|
39
|
+
animation: hamburger-upperpatty .75s forwards;
|
|
40
|
+
background-color: $hamburger-line-color;
|
|
41
|
+
height: $hamburger-line-height;
|
|
42
|
+
top: calc((-1 * #{$hamburger-line-height}) - (#{$hamburger-size} / 5) + 50%);
|
|
43
|
+
width: calc(#{$hamburger-size} / 5 * 3);
|
|
44
|
+
}
|
|
45
|
+
.club {
|
|
46
|
+
background-color: $hamburger-line-color;
|
|
47
|
+
height: $hamburger-line-height;
|
|
48
|
+
top: calc((-1 * #{$hamburger-line-height}) + 50%);
|
|
49
|
+
transition: all .25s .25s;
|
|
50
|
+
width: calc(#{$hamburger-size} / 5 * 3);
|
|
51
|
+
}
|
|
52
|
+
.lowerpatty {
|
|
53
|
+
animation: hamburger-lowerpatty .75s forwards;
|
|
54
|
+
background-color: $hamburger-line-color;
|
|
55
|
+
height: $hamburger-line-height;
|
|
56
|
+
top: calc((-1 * #{$hamburger-line-height}) + (#{$hamburger-size}/ 5) + 50%);
|
|
57
|
+
width: calc(#{$hamburger-size} / 5 * 3);
|
|
58
|
+
}
|
|
59
|
+
.heel {
|
|
60
|
+
bottom: 0.5em;
|
|
61
|
+
font-size: 0.5em;
|
|
62
|
+
line-height: 1;
|
|
63
|
+
text-align: center;
|
|
64
|
+
width: $hamburger-size;
|
|
65
|
+
}
|
|
66
|
+
&.is-active {
|
|
67
|
+
.upperpatty {
|
|
68
|
+
animation: hamburger-upperpatty-is-active .75s forwards;
|
|
69
|
+
top: 50%;
|
|
70
|
+
}
|
|
71
|
+
.club {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
}
|
|
74
|
+
.lowerpatty {
|
|
75
|
+
animation: hamburger-lowerpatty-is-active .75s forwards;
|
|
76
|
+
top: 50%;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@if (not variables.$is-skelton) {
|
|
81
|
+
@each $color in variables.$colors {
|
|
82
|
+
$colorName: map.get($color, "name");
|
|
83
|
+
&.is-#{$colorName} {
|
|
84
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-fore);
|
|
85
|
+
.upperpatty {
|
|
86
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-border);
|
|
87
|
+
}
|
|
88
|
+
.club {
|
|
89
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-border);
|
|
90
|
+
}
|
|
91
|
+
.lowerpatty {
|
|
92
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-border);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
//#region keyframes
|
|
100
|
+
@keyframes hamburger-upperpatty {
|
|
101
|
+
0% {
|
|
102
|
+
transform: rotate(45deg);
|
|
103
|
+
top: calc((-1 * #{$hamburger-line-height}) + 50%);
|
|
104
|
+
}
|
|
105
|
+
50% {
|
|
106
|
+
transform: rotate(0deg);
|
|
107
|
+
top: calc((-1 * #{$hamburger-line-height}) + 50%);
|
|
108
|
+
}
|
|
109
|
+
100% {
|
|
110
|
+
transform: rotate(0deg);
|
|
111
|
+
top: calc((-1 * #{$hamburger-line-height}) - (#{$hamburger-size} / 5) + 50%);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@keyframes hamburger-upperpatty-is-active{
|
|
116
|
+
0% {
|
|
117
|
+
transform: rotate(0deg);
|
|
118
|
+
top: calc((-1 * #{$hamburger-line-height}) - (#{$hamburger-size} / 5) + 50%);
|
|
119
|
+
}
|
|
120
|
+
50% {
|
|
121
|
+
transform: rotate(0deg);
|
|
122
|
+
top: calc((-1 * #{$hamburger-line-height}) + 50%);
|
|
123
|
+
}
|
|
124
|
+
100%{
|
|
125
|
+
transform: rotate(45deg);
|
|
126
|
+
top: calc((-1 * #{$hamburger-line-height}) + 50%);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
@keyframes hamburger-lowerpatty {
|
|
130
|
+
0% {
|
|
131
|
+
transform: rotate(-45deg);
|
|
132
|
+
top: calc((-1 * #{$hamburger-line-height}) + 50%);
|
|
133
|
+
}
|
|
134
|
+
50% {
|
|
135
|
+
transform: rotate(0deg);
|
|
136
|
+
top: calc((-1 * #{$hamburger-line-height}) + 50%);
|
|
137
|
+
}
|
|
138
|
+
100% {
|
|
139
|
+
transform: rotate(0deg);
|
|
140
|
+
top: calc((-1 * #{$hamburger-line-height}) + (#{$hamburger-size} / 5) + 50%);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
@keyframes hamburger-lowerpatty-is-active {
|
|
144
|
+
0% {
|
|
145
|
+
transform: rotate(0deg);
|
|
146
|
+
top: calc((-1 * #{$hamburger-line-height}) + (#{$hamburger-size} / 5) + 50%);
|
|
147
|
+
}
|
|
148
|
+
50% {
|
|
149
|
+
transform: rotate(0deg);
|
|
150
|
+
top: calc((-1 * #{$hamburger-line-height}) + 50%);
|
|
151
|
+
}
|
|
152
|
+
100% {
|
|
153
|
+
transform: rotate(-45deg);
|
|
154
|
+
top: calc((-1 * #{$hamburger-line-height}) + 50%);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
//#endregion keyframes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
@use "../mixins/index.scss" as mixins;
|
|
4
|
+
|
|
5
|
+
.header {
|
|
6
|
+
@include mixins.element();
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
backdrop-filter: var(--#{variables.$prefix}header-backdrop-filter);
|
|
10
|
+
|
|
11
|
+
&.is-sticky {
|
|
12
|
+
position: sticky;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
width: 100%;
|
|
16
|
+
z-index: var(--#{variables.$prefix}header-z-index-is-sticky);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.is-fixed {
|
|
20
|
+
position: fixed;
|
|
21
|
+
top: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
width: 100%;
|
|
24
|
+
z-index: var(--#{variables.$prefix}header-z-index-is-fixed);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@if (not variables.$is-skelton) {
|
|
28
|
+
@each $color in variables.$colors {
|
|
29
|
+
$colorName: map.get($color, "name");
|
|
30
|
+
&.is-#{$colorName} {
|
|
31
|
+
background-color: oklch(var(--#{variables.$prefix}color-#{$colorName}-header-back-oklch) / 0.5);
|
|
32
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-header-fore);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|