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