source: code/trunk/static/partage.css@ 15

Last change on this file since 15 was 15, checked in by dev, 4 years ago

Add style to pages

File size: 947 bytes
Line 
1body {
2 padding: 5%;
3 margin: auto;
4 max-width: 540px;
5 text-align: center;
6 font-family: serif;
7 font-size: 1.5rem;
8 background-color: #eeeeee;
9 color: #222222;
10}
11
12header {
13 display: flex;
14 align-items: center;
15 align-content: center;
16 justify-content: center;
17 max-height: 30vh;
18 gap: 8px;
19}
20
21
22h1 { font-size: 3rem; }
23img#logo { height: 4rem; }
24ul { list-style: none; padding: 0; }
25
26/* font attributes are not inherited by default */
27input, input::file-selector-button {
28 text-align: inherit;
29 font-family: inherit;
30 font-size: inherit;
31}
32
33
34@media (orientation: portrait) {
35 header { flex-direction: column; max-height: 50vh; }
36 h1 { font-size: 3rem; }
37 img#logo { height: 30vh; }
38}
39
40@media (prefers-color-scheme: light) {
41 a { color: black; }
42 body {
43 color: #222222;
44 background-color: #eeeeee;
45 }
46}
47
48@media (prefers-color-scheme: dark) {
49 a { color: white; }
50 body {
51 color: #eeeeee;
52 background-color: #222222;
53 }
54}
55
Note: See TracBrowser for help on using the repository browser.