-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathThemeColors.module.scss
65 lines (56 loc) · 1.14 KB
/
ThemeColors.module.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.themeColorsPalette {
display: grid;
grid-template-columns: repeat(15, 1fr);
gap: 1px;
align-items: center;
.swatch {
display: flex;
aspect-ratio: 4/3;
align-items: flex-start;
justify-content: flex-end;
}
}
.themeColors {
--swatch-height: 24px;
--column-gap: 14px;
display: grid;
column-gap: var(--column-gap);
// Add as many columns as will fit in the container each 210px wide.
// Row height is set to the swatch height (35px) by dynamic `grid-row` style
// attributes set in ThemeColors.tsx.
grid-template-columns: repeat(auto-fit, 210px);
.label {
display: block;
padding: 1rem 0;
font-weight: bold;
&.capitalize {
text-transform: capitalize;
}
}
.swatch {
display: flex;
align-items: center;
height: var(--swatch-height);
gap: 4px;
margin-bottom: 1px;
span {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.themeColors,
.themeColorsPalette {
.swatch {
// hide copy swatch button until hover
button {
opacity: 0;
}
&:hover {
button {
opacity: 1;
}
}
}
}