generated from mikepierce/conference-website-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path#temp#
172 lines (146 loc) · 2.84 KB
/
#temp#
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*************************
* GRID SCHEDULE LAYOUT
*************************/
@media screen and (min-width:700px) {
.schedule {
display: grid;
grid-gap: 1em;
grid-template-rows:
[tracks] auto
[time-0800] 1fr
[time-0830] 1fr
[time-0900] 1fr
[time-0930] 1fr
[time-1000] 1fr
[time-1030] 1fr
[time-1100] 1fr
[time-1130] 1fr
[time-1200] 1fr;
/* Note 1:
Use 24hr time for gridline names for simplicity
Note 2: Use "auto" instead of "1fr" for a more compact schedule where height of a slot is not proportional to the session length. Implementing a "compact" shortcode attribute might make sense for this!
Try 0.5fr for more compact equal rows. I don't quite understand how that works :)
*/
grid-template-columns:
[times] 4em
[track-1-start] 1fr
[track-1-end track-2-start] 1fr
[track-2-end track-3-start] 1fr
[track-3-end track-4-start] 1fr
[track-4-end];
}
}
.time-slot {
grid-column: times;
}
.track-slot {
display: none; /* hidden on small screens and browsers without grid support */
}
@supports( display:grid ) {
@media screen and (min-width:700px) {
.track-slot {
display: block;
padding: 10px 5px 5px;
position: sticky;
top: 0;
z-index: 1000;
background-color: rgba(255,255,255,.9);
}
}
}
/* Small-screen & fallback styles */
.session {
margin-bottom: 1em;
}
@supports( display:grid ) {
@media screen and (min-width: 700px) {
.session {
margin: 0;
}
}
}
/*************************
* VISUAL STYLES
* Design-y stuff ot particularly important to the demo
*************************/
/*
body {
padding: 50px;
max-width: 1100px;
margin: 0 auto;
line-height: 1.5;
}
*/
.session {
padding: .5em;
border-radius: 2px;
font-size: 14px;
box-shadow:
rgba(255,255,255,.6) 1px 1px 0,
rgba(0,0,0,.3) 4px 4px 0;
}
.session-title,
.session-time,
.session-track,
.session-presenter {
display: block;
}
.session-title,
.time-slot {
margin: 0;
font-size: 1em;
}
.session-title a {
color: #fff;
text-decoration-style: dotted;
&:hover {
font-style: italic;
}
&:focus {
outline: 2px dotted rgba(255,255,255,.8);
}
}
.track-slot,
.time-slot {
font-weight: bold;
font-size:.75em;
}
.track-1 {
background-color: #1259B2;
color: #fff;
}
.track-2 {
background-color: #687f00;
color: #fff;
}
.track-3 {
background-color: #544D69;
color: #fff;
}
.track-4 {
background-color: #c35500;
color: #fff;
}
.track-all {
display: flex;
justify-content: center;
align-items: center;
background: #ccc;
color: #000;
box-shadow: none;
}
.text {
max-width: 750px;
font-size: 18px;
margin: 0 auto 50px;
}
.meta {
color: #555;
font-style: italic;
}
.meta a {
color: #555;
}
hr {
margin: 40px 0;
}