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