]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki.css
webapps.wiki: form margin 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: 0px;
137 }
138
139 .page nav {
140     width: calc(100vw - 200px);
141     max-width: 800px;
142     left: 0;
143     border-top: 1px dashed #ccc;
144     border-bottom: 1px dashed #ccc;
145     margin-top: 15px;
146 }
147
148 .page footer {
149     padding: 15px;
150     padding-left: 0;
151     padding-right: 0;
152     font-size: smaller;
153 }
154
155 @media screen and (max-width: 600px) {
156     #left {
157         position: absolute;
158         display: none;
159         left: 0;
160         top: 0;
161         background: #f5f5f5;
162         border: none;
163         border-right: 1px solid #ccc;
164         border-bottom: 1px solid #ccc;
165         padding-top: 0px;
166         box-shadow: 5px 5px 10px #aaa;
167     }
168
169     #right {
170         width: 100%;
171         max-width: 100%;
172     }
173
174     nav img {
175         display: inline;
176     }
177
178     .page {
179         width: 100%;
180     }
181
182     .page nav {
183         width: 100vw;
184     }
185 }
186
187 /* Dark mode */
188 @media (prefers-color-scheme: dark) {
189     nav img {
190         filter: invert(80%);
191     }
192
193     nav input {
194         font-size: smaller;
195     }
196
197     #left {
198         border: none;
199         border-left: 1px dashed #666;
200     }
201
202     .description pre {
203         color: black;
204     }
205
206     .page nav {
207         border-top: 1px dashed #666;
208         border-bottom: 1px dashed #666;
209     }
210 }
211
212 @media screen and (max-width: 600px) and (prefers-color-scheme: dark) {
213
214     #left {
215         background-color: #373e48;
216         border: none;
217         border-right: 1px solid #666;
218         border-bottom: 1px solid #666;
219         box-shadow: 5px 5px 10px #333;
220     }
221 }