-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVersitileLayout.css
More file actions
181 lines (168 loc) · 3.94 KB
/
VersitileLayout.css
File metadata and controls
181 lines (168 loc) · 3.94 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
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
173
174
175
176
177
178
179
180
181
/*Some elements need explicit heights on large screens which are used to calculate the size of full-height components. */
.site-header {
height: 4rem;
position: relative;
z-index: 2;
background-color: #fff;
box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.1);
padding: 0 1rem;
}
.site-title {
font-size: 1.25rem;
line-height: 4rem;
}
/*.site-main contains everything except the header. On large screens, it fills the remaining height of the window.*/
.site-main {
position: relative;
z-index: 1;
/*large screens*/
}
@media screen and (min-width: 64em) {
.site-main {
height: calc(100vh - 4rem);
}
}
.search-container {
position: relative;
z-index: 3;
box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
padding: 0.5rem 0.25rem 0.25rem;
/* On medium screens, search is removed from the grid layout and positioned absolute at the top of the sidebar.*/
/*On large screens, search and sidebar move to the left. */
}
@media print, screen and (min-width: 40em) {
.search-container {
position: absolute;
top: 0;
right: 0;
width: 15rem;
height: 3.25rem;
overflow: visible;
background-color: WhiteSmoke;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1), -4px 0 0 rgba(0, 0, 0, 0.1);
}
}
@media screen and (min-width: 64em) {
.search-container {
right: auto;
left: 0;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1), 4px 0 0 rgba(0, 0, 0, 0.1);
}
}
.search {
margin: 0;
}
.search-results {
display: none;
margin: 0;
/*medium screens*/
}
@media print, screen and (min-width: 40em) {
.search-results {
position: absolute;
top: 100%;
right: 0;
min-width: 100%;
box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}
}
.search-results li {
border-top: 1px solid #ddd;
padding: 0.25rem;
}
.search:focus + .search-results {
display: block;
background-color: White;
}
.map-container {
height: 80vh;
/* large screens*/
}
@media screen and (min-width: 64em) {
.map-container {
height: 100%;
}
}
iframe {
width: 100%;
height: 100%;
}
.sidebar {
z-index: 2;
padding: 1rem;
background-color: WhiteSmoke;
/* On medium screens, the sidebar is set to match the height of the map minus search.*/
/* On large screens, the sidebar is full-height*/
}
@media print, screen and (min-width: 40em) {
.sidebar {
margin-top: 3.25rem;
height: calc(60vh - 3.25rem);
overflow-y: auto;
box-shadow: -4px 0 0 0 rgba(0, 0, 0, 0.1);
}
}
@media screen and (min-width: 64em) {
.sidebar {
height: calc(100% - 3.25rem);
box-shadow: 4px 0 0 0 rgba(0, 0, 0, 0.1);
}
}
.content-close-button-container {
position: relative;
z-index: 4;
width: 100%;
box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.1);
background-color: White;
text-align: right;
padding: 1rem 1rem 0;
margin-bottom: -1rem;
/* large screens*/
}
@media screen and (min-width: 64em) {
.content-close-button-container {
padding: 0;
margin-bottom: 0;
}
}
.content-close-button {
color: #6b717b;
font-size: 2rem;
line-height: 1;
position: relative;
margin: 0;
width: 1em;
/* On large screens, the close button is positioned on the edge of the content area, overlapping the map. */
}
@media screen and (min-width: 64em) {
.content-close-button {
display: block;
position: fixed;
z-index: 3;
top: 4.5rem;
right: 41.66667%;
background-color: White;
margin-right: -4px;
padding: 0 0.375rem 0.1875rem;
box-shadow: -4px 4px 0 rgba(0, 0, 0, 0.1);
}
}
.content {
padding: 1rem;
z-index: 3;
/* On medium screens, the content area is set to match the height of the map*/
}
@media screen and (min-width: 64em) {
.content {
box-shadow: -4px 0 0 0 rgba(0, 0, 0, 0.1);
height: calc(100%);
overflow-y: auto;
}
}
/* On medium screens, if the content area is not open, make the map and sidebar full-height.*/
@media print, screen and (min-width: 40em) {
.site-main:not(.has-content-open) .map-container,
.site-main:not(.has-content-open) .sidebar {
height: calc(100vh - 4rem);
}
}