-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
executable file
·111 lines (97 loc) · 2.25 KB
/
style.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
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
@font-face {
font-family: 'Product Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/productsans/v5/HYvgU2fE2nRJvZ5JFAumwegdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
}
* {
font-family: Product Sans;
}
html {
width: 100%;
/* 100% width of parent (root) element */
height: 100vh;
/* 100% height of viewport */
/* background: rgb(0, 0, 0, 0.1); */
/* 10% opacity black (very light gray) */
font-size: 1.0em;
/* our root font size */
}
body {
margin: 0;
/* content goes to edge of viewport */
height: 100vh;
/* and spans height of viewport */
}
div.container {
min-height: 25rem;
/* mainbody height never squishes < 25rem */
display: grid;
width: 100%;
height: 100%;
grid-template-columns:
[left] 10rem auto 10rem [right];
grid-template-rows:
[top] 5rem auto 5rem [bottom];
grid-template-areas:
"head head head"
"panleft mainbody panright"
"foot foot foot";
}
div.header {
/* background: rgb(0, 0, 0, 0.2); */
/* 20% black */
grid-area: head;
/* head corresponds to name in template */
}
div.footer {
/* background: rgb(0, 0, 0, 0.2); */
grid-area: foot;
}
div.panel {
overflow-x: auto;
/* div elements with "panel" class */
/* background: rgb(0, 0, 0, 0.1); */
/* 10% black */
}
div.panel.left {
/* with both "panel" and "left" class */
grid-area: panleft;
}
div.panel.right {
grid-area: panright;
}
div.mainbody {
grid-area: mainbody;
/* width: 30rem; */
overflow-x: auto;
text-align: justify;
text-justify: inter-word;
border-top: 0%;
/* mainbody width is fixed */
/* justify-self: center; */
/* and always centered in grid area */
}
@media screen and (max-width: 50rem) {
/* if viewport width < 50rem */
div.panel.left {
grid-column-end: left;
/* left panel stops at left edge */
}
div.panel.right {
grid-column-start: right;
/* right panel starts at right edge */
}
div.panel {
display: none;
overflow-x: auto;
/* neither panel is displayed */
}
div.mainbody {
grid-column-start: left;
overflow-x: auto;
/* mainbody starts at left edge */
grid-column-end: right;
/* mainbody ends at right edge */
}
}