-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstyle.css
150 lines (131 loc) · 2.35 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
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
html, body {
width: 100%;
height: 100%;
margin: 0;
}
figure {
margin: 0;
}
img, video {
max-width: 100%;
}
figure > * {
max-width: 100%;
width: auto;
max-height: 80vh;
height: auto;
}
main.oui-interaction {
/* Each child element is as wide as main in a single row */
display: grid;
grid-auto-flow: column;
grid-auto-columns: 100%;
grid-template-rows: 1fr;
/* This element will overflow scroll and scroll-snap */
overflow-x: scroll;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
margin-bottom: 0;
padding: 0;
}
/* On small screens use proximity instead for a slightly different experience */
/* @media only screen and (max-width: 480px) {
main {
scroll-snap-type: x proximity;
}
} */
main>article {
scroll-snap-align: start;
scroll-snap-stop: always;
}
/**
article layout
**/
body {
font-family: 'Sen', sans-serif;
display: grid;
grid-template-rows: min-content 1fr;
}
header.oui-viewing {
padding: 0.2em 2em;
background: var(--color1);
min-height: auto;
}
article {
height: 100%;
overflow-y: auto;
padding: 10px 20px;
}
article:after {
content: '';
padding-bottom: 20vh;
display: block;
}
article>* {
margin: revert;
padding: revert;
list-style: revert;
}
.article-nav, .lang-nav {
position: absolute;
bottom: 1em;
z-index: 2;
}
.article-nav {
right: 1em;
}
.lang-nav {
left: 1em;
}
b {
font-weight: bold;
}
/* On Desktop Break Open the Menus to make the most of the space*/
@media screen and (min-width: 600px) {
body.container {
display: grid;
grid-template: min-content min-content 1fr/max-content 1fr;
margin: 0;
max-width: none;
gap: 1em;
}
.article-nav, .lang-nav {
position: static;
z-index: auto;
}
/* .article-nav>details, .lang-nav>details {
display: contents;
} */
/* .article-nav>details>summary, .lang-nav>details>summary {
display: none;
} */
.article-nav>details>ul, .lang-nav>details>ul {
/* position: static;
opacity: 1 !important;
transform: none; */
left: 0 !important;
top: 0 !important;
bottom: auto !important;
right: auto !important;
z-index: 4;
}
main.oui-interaction {
grid-column: 2;
grid-row: 2/span 2;
display: block;
scroll-snap-type: none;
overflow-x: auto;
max-width: 1024px;
margin: 0 auto;
}
header {
grid-column-end: span 2;
}
main>article {
height: auto;
padding-bottom: 2em;
}
main>article:after {
content: none;
}
}