-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathgrid-theme-builder.sample.scss
More file actions
79 lines (69 loc) · 1.74 KB
/
Copy pathgrid-theme-builder.sample.scss
File metadata and controls
79 lines (69 loc) · 1.74 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@use '../../../projects/igniteui-angular/core/src/core/styles/themes' as *;
@use '../../styles/variables' as vars;
.sample {
display: flex;
flex-direction: column;
gap: 24px;
padding-block-end: 64px;
@include tokens(
grid-theme(
$schema: vars.$schema,
$background: #f7f4f0,
$accent-color: #5B8F8A,
)
);
&.has-header-overrides {
@include tokens(
grid-theme(
$schema: vars.$schema,
$background: #f7f4f0,
$accent-color: #5B8F8A,
$header-background: var(--ig-grid-header-background),
)
);
}
}
.color-pickers {
display: flex;
align-items: center;
gap: 24px;
padding: 8px 0;
}
.color-picker-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
input[type='color'] {
-webkit-appearance: none;
appearance: none;
width: 36px;
height: 36px;
border: 1px solid currentColor;
padding: 0;
cursor: pointer;
&::-webkit-color-swatch-wrapper { padding: 0; }
&::-webkit-color-swatch { border: none; }
&::-moz-color-swatch { border: none; }
}
.no-color {
position: relative;
width: 36px;
height: 36px;
border: 1px solid currentColor;
background: transparent;
cursor: pointer;
&::before,
&::after {
content: '';
position: absolute;
inset: 0;
margin: auto;
width: 1px;
height: 70%;
background: red;
}
&::before { transform: rotate(45deg); }
&::after { transform: rotate(-45deg); }
}
}