]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki.css
webapps.wiki: only top/bottom margin to zero
[factor.git] / extra / webapps / wiki / wiki.css
1 input, textarea, select {
2     font-size: 12pt;
3     border: 1px solid #dbdbdb;
4     border-radius: 5px;
5     padding: 5px;
6 }
7
8 textarea {
9     width: 100%;
10 }
11
12 table {
13     table-layout: fixed;
14 }
15
16 td {
17     word-wrap: break-word;
18 }
19
20 table.comparison {
21     width: 100%;
22 }
23
24 table.comparison th {
25     width: 50%;
26 }
27
28 table.comparison th, table.comparison td {
29     border: 1px solid #ccc;
30 }
31
32 .insert {
33     background-color: #9f9;
34     color: black;
35 }
36
37 .delete {
38     background-color: #f99;
39     color: black;
40 }
41
42 table.revisions {
43     width: 100%;
44 }
45
46 table.revisions td, table.revisions th {
47     margin: 0;
48     padding: 4px;
49 }
50
51 table.revisions, table.revisions th, table.revisions td {
52     border: 1px solid #ccc;
53 }
54
55 /* Dark mode */
56 @media (prefers-color-scheme: dark) {
57     table.comparison, table.comparison th, table.comparison td {
58         border-color: #666;
59     }
60
61     table.revisions, table.revisions th, table.revisions td {
62         border-color: #666;
63     }
64 }
65
66 .description {
67     line-height: 150%;
68 }
69
70 .description pre {
71     padding: 5px;
72     border: 1px dashed #ccc;
73     background-color: #f5f5f5;
74 }
75
76 .description h1 { font-size: 1.5em; }
77 .description h2 { font-size: 1.17em; }
78 .description h3 { font-size: 1.0em; }
79 .description h4 { font-size: 0.83em; }
80 .description h5 { font-size: 0.67em; }
81
82 .description p:first-child { margin-top: 0px; }
83 .description p:last-child { margin-bottom: 0px; }
84
85 #left {
86     position: absolute;
87     top: 0;
88     left: calc(min(100vw - 200px, 800px));
89     width: 200px;
90     z-index: 99;
91     border: none;
92     border-left: 1px dashed #ccc;
93 }
94
95 #right {
96     width: calc(100vw - 200px);
97     max-width: calc(min(100vw - 230px, 770px));
98 }
99
100 .contents {
101     font-size: 90%;
102     margin: 0;
103     padding: 15px;
104     padding-top: 0px;
105     line-height: 130%;
106 }
107
108 .contents ul {
109     list-style-type: none;
110     margin: 0;
111     padding-left: 20px;
112 }
113
114 .page nav {
115     margin: -15px;
116     margin-top: 0px;
117     background: none;
118 }
119
120 .page img {
121     max-width: 100%;
122 }
123
124 .page hr {
125     height: 1px;
126 }
127
128 nav img {
129     margin-right: 5px;
130     display: none;
131 }
132
133 nav input {
134     border-radius: 3px;
135     padding: 3px;
136     margin-top: 0px;
137     margin-bottom: 0px;
138 }
139
140 .page nav {
141     width: calc(100vw - 200px);
142     max-width: 800px;
143     left: 0;
144     border-top: 1px dashed #ccc;
145     border-bottom: 1px dashed #ccc;
146     margin-top: 15px;
147 }
148
149 .page footer {
150     padding: 15px;
151     padding-left: 0;
152     padding-right: 0;
153     font-size: smaller;
154 }
155
156 @media screen and (max-width: 600px) {
157     #left {
158         position: absolute;
159         display: none;
160         left: 0;
161         top: 0;
162         background: #f5f5f5;
163         border: none;
164         border-right: 1px solid #ccc;
165         border-bottom: 1px solid #ccc;
166         padding-top: 0px;
167         box-shadow: 5px 5px 10px #aaa;
168     }
169
170     #right {
171         width: 100%;
172         max-width: 100%;
173     }
174
175     nav img {
176         display: inline;
177     }
178
179     .page {
180         width: 100%;
181     }
182
183     .page nav {
184         width: 100vw;
185     }
186 }
187
188 /* Dark mode */
189 @media (prefers-color-scheme: dark) {
190     nav img {
191         filter: invert(80%);
192     }
193
194     nav input {
195         font-size: smaller;
196     }
197
198     #left {
199         border: none;
200         border-left: 1px dashed #666;
201     }
202
203     .description pre {
204         color: black;
205     }
206
207     .page nav {
208         border-top: 1px dashed #666;
209         border-bottom: 1px dashed #666;
210     }
211 }
212
213 @media screen and (max-width: 600px) and (prefers-color-scheme: dark) {
214
215     #left {
216         background-color: #373e48;
217         border: none;
218         border-right: 1px solid #666;
219         border-bottom: 1px solid #666;
220         box-shadow: 5px 5px 10px #333;
221     }
222 }