source: public/css/custom.css@ d829433

Last change on this file since d829433 was d829433, checked in by Mikhail Kirillov <w96k@…>, on Jan 5, 2020 at 11:50:26 PM

Fix mobile view

  • Property mode set to 100644
File size: 2.4 KB
Line 
1body {
2 padding: 1em;
3}
4
5article {
6 max-width: calc(80ch + 4em);
7 border-radius: 0.em;
8 margin: 0 var(--universal-padding);
9 padding: 1em;
10 background: #fefefe;
11 box-shadow: 0 1px 3px rgba(0,0,0,.1);
12 position: relative;
13}
14
15article h1:first-child,
16article h2:first-child,
17article h3:first-child,
18article h4:first-child,
19article h5:first-child,
20article h6:first-child {
21 margin-top: 0;
22 padding: 0;
23}
24
25.navbar {
26 background: #fefefe;
27 border: 0;
28}
29
30.navbar .button {
31 background: #fefefe;
32 text-transform: none;
33}
34
35/* 16:9 */
36.video {
37 padding-top: 56.25%;
38 position: relative;
39 width: calc(100% - 1em);
40}
41
42iframe {
43 width: 100%;
44 height: 100%;
45 position: absolute;
46 top: 0;
47 left: 0;
48 bottom: 0;
49 right: 0;
50}
51
52.cover {
53 margin: 0.5em 0;
54 border: 1px solid rgba(0,0,0,.3);
55 border-radius: 0.1em;
56}
57
58#youmu {
59 position: relative;
60 top: 1em;
61 margin-bottom: -0.5em;
62 max-width: 400px;
63 filter: drop-shadow(0 12px 4px rgba(0,0,0,.25));
64}
65
66#preamble {
67 max-width: calc(80ch + 6em);
68 margin: var(--universal-margin);
69 box-shadow: 0 1px 3px rgba(0,0,0,.1);
70}
71
72#postamble {
73 margin: var(--universal-margin);
74 max-width: calc(80ch + 6em);
75}
76
77#meta {
78 text-align: right;
79}
80
81@media screen and (max-width: 800px) {
82 #postamble, #meta {
83 text-align: center;
84 }
85}
86
87hr {
88 background: rgba(0,0,0,.05) !important;
89 height: 0.5rem !important;
90 margin: 1px !important;
91}
92
93#table-of-contents {
94 z-index: 1050;
95 font-size: 10pt;
96 position: fixed;
97 right: calc(var(--universal-margin) + 0.5em);
98 top: calc(var(--universal-margin) + 0.5em);
99 background: #fefefe;
100 line-height: 12pt;
101 box-shadow: 0 1px 3px rgba(0,0,0,.1);
102 border: none;
103 max-height: 80%;
104 overflow: auto;
105}
106
107#table-of-contents * {
108 padding: none;
109}
110
111#table-of-contents h2 {
112 font-size: 13pt;
113 border: 0;
114 font-weight: 400;
115 padding: .05em .5em;
116}
117
118#text-table-of-contents ul {
119 margin: 0 1em;
120}
121
122#text-table-of-contents ul li {
123 font-size: 11pt;
124 width: 100%;
125}
126
127#table-of-contents #text-table-of-contents {
128 display: none;
129 text-align: left;
130}
131
132#table-of-contents:hover #text-table-of-contents {
133 display:block;
134 padding: none;
135 margin: 0;
136 padding: 0;
137}
138
139#table-of-contents li {
140 clear:both
141}
142
143.licenses {
144 margin-top: 0.75em !important;
145}
146
147.licenses a:not(:first-child) {
148 margin-left: 0.5em;
149}
150
151.inline li {
152 display: inline-flex;
153}
Note: See TracBrowser for help on using the repository browser.