-
Notifications
You must be signed in to change notification settings - Fork 324
/
_mixins.scss
59 lines (51 loc) · 1.31 KB
/
_mixins.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
/*********************************************
* SASS Mixins
*********************************************/
/**
* A consistent box shadow style we apply across elements.
*/
@mixin box-shadow() {
box-shadow:
0 0.2rem 0.5rem var(--pst-color-shadow),
0 0 0.0625rem var(--pst-color-shadow) !important;
}
/**
* Set background of some cell outputs to white-ish to make sure colors work
* This is because many libraries make output that only looks good on white
*/
@mixin cell-output-background {
color: var(--pst-color-on-background);
background-color: var(--pst-color-text-base);
border-radius: 0.25rem;
padding: 0.5rem;
}
@mixin table-colors {
color: var(--pst-color-table);
border: 1px solid var(--pst-color-table-outer-border);
th,
td {
~ th,
~ td {
border-left: 1px solid var(--pst-color-table-inner-border);
}
}
thead {
tr {
background-color: var(--pst-color-table-heading-bg);
border-bottom: 2px solid var(--pst-color-primary);
}
}
tbody {
tr {
&:nth-child(odd) {
background-color: var(--pst-color-table-row-zebra-low-bg);
}
&:nth-child(even) {
background-color: var(--pst-color-table-row-zebra-high-bg);
}
&:hover {
background-color: var(--pst-color-table-row-hover-bg);
}
}
}
}