Repository navigation
Expand file tree
/
Copy pathDayStrip.css
More file actions
120 lines (103 loc) · 2.13 KB
/
Copy pathDayStrip.css
File metadata and controls
120 lines (103 loc) · 2.13 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.daystrip__lede {
max-width: 36ch;
}
.daystrip__line {
position: relative;
display: grid;
gap: 0.75rem;
margin-top: clamp(2rem, 5vw, 3.5rem);
}
/* Phones: a vertical line down the left. Wide screens: a line across. */
.daystrip__line::before {
content: '';
position: absolute;
left: calc(5.45rem - 1.5px);
top: 1.25rem;
bottom: 1.25rem;
border-left: 3px dotted var(--ink);
}
.daystrip__item {
position: relative;
display: grid;
justify-items: start;
gap: 0.35rem;
}
.daystrip__link {
display: grid;
grid-template-columns: 3.4rem auto minmax(0, 1fr);
grid-template-areas: 'time dot what' 'time dot go';
align-items: center;
column-gap: 0.75rem;
width: 100%;
padding: 0.5rem 0.6rem 0.5rem 0;
text-decoration: none;
}
.daystrip__time {
grid-area: time;
font-size: 1.5rem;
text-align: right;
}
.daystrip__dot {
grid-area: dot;
position: relative;
display: grid;
place-items: center;
width: 2.6rem;
height: 2.6rem;
border: 3px solid var(--ink);
background: var(--paper);
}
.daystrip__what {
grid-area: what;
font-weight: 650;
line-height: 1.25;
}
.daystrip__go {
grid-area: go;
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 0.2em;
}
.daystrip__link:hover .daystrip__dot {
background: var(--mint-pale);
}
.daystrip__link:hover .daystrip__what {
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 0.2em;
}
.daystrip__tag {
margin-left: 7.5rem;
font-size: 0.875rem;
}
@media (min-width: 52rem) {
.daystrip__line {
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 1rem;
}
.daystrip__line::before {
left: 10%;
right: 10%;
top: calc(4.1rem - 1.5px);
bottom: auto;
border-left: 0;
border-top: 3px dotted var(--ink);
}
.daystrip__item {
justify-items: center;
text-align: center;
}
.daystrip__link {
grid-template-columns: 1fr;
grid-template-areas: 'time' 'dot' 'what' 'go';
justify-items: center;
row-gap: 0.6rem;
padding: 0.5rem;
}
.daystrip__time {
text-align: center;
}
.daystrip__tag {
margin-left: 0;
}
}