-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy path_summary-card.scss
More file actions
98 lines (80 loc) · 1.87 KB
/
_summary-card.scss
File metadata and controls
98 lines (80 loc) · 1.87 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.summary-card {
background-color: var(--site-raised-bgColor-translucent);
border-radius: var(--site-radius);
border: 1px solid var(--site-inset-borderColor);
margin-block: 1rem;
header {
padding: 1rem 1.2rem 1.2rem;
display: flex;
align-items: center;
>div {
flex: 1;
color: var(--site-base-fgColor-lighter);
}
h3 {
margin: 0;
font-size: 1.25rem;
font-weight: 700;
color: var(--site-base-fgColor);
}
.summary-card-completed {
color: var(--site-alert-tip-color);
}
}
.summary-card-item {
display: flex;
align-items: center;
gap: 1rem;
border-top: 1px solid var(--site-inset-borderColor);
padding: 0.8rem 1.2rem;
>:first-child {
font-size: 0.875rem;
background-color: var(--site-primary-color-highlight);
color: var(--site-primary-color);
border-radius: 0.5rem;
padding: 0.5rem;
}
.summary-card-item-title {
flex: 1;
font-size: 1rem;
font-weight: 500;
font-family: var(--site-ui-fontFamily);
}
}
details {
margin: 0;
summary {
margin: 0;
cursor: pointer;
list-style: none;
>.material-symbols {
transition: transform .25s ease-out;
transform: rotate(180deg);
transform-origin: center;
}
}
&[open] {
summary>.material-symbols {
transform: rotate(0);
}
}
.summary-card-item-details {
margin: 0;
border-top: 1px solid var(--site-inset-borderColor);
padding: .8rem 1.2rem;
color: var(--site-base-fgColor-lighter);
>:last-child {
margin-bottom: 0;
}
}
}
.summary-card-item-static {
.summary-card-item-details {
padding: .8rem 1.2rem;
color: var(--site-base-fgColor-lighter);
>:last-child {
margin-bottom: 0;
}
}
}
}