-
Notifications
You must be signed in to change notification settings - Fork 179
/
Copy pathExpandableCard.module.css
52 lines (41 loc) · 1.02 KB
/
ExpandableCard.module.css
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
.expandable_card_container {
/*
Reduce the padding so we can increase the size of the header to
make it easily clickable w/o making it look rediculous
*/
padding-top: .5rem;
padding-bottom: .5rem;
margin-top: .5rem;
margin-bottom: .5rem;
/* When we scroll to a card, make sure its not cutoff by the header */
scroll-margin-top: 7rem;
}
.expandable_card_container:hover {
background-color: var(--color-light-background-accent);
}
.expandable_card_container_selected {
background-color: var(--color-light-background-accent);
padding-bottom: 2rem;
}
.header {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
cursor: pointer;
height: 20px;
}
.header p {
margin-top: 0 !important;
}
.expandable_card_container p:first-of-type {
margin-top: 0;
}
@media only screen and (min-width: 50em) {
.expandable_card_container {
max-width: 70rem;
}
.header {
height: 70px;
}
}