|
1 | 1 | // tiny reset |
| 2 | +@use "src/base.scss"; |
2 | 3 |
|
3 | | -// todo: high-contrast: https://mwichary.medium.com/dark-theme-in-a-day-3518dde2955a |
4 | | -* { |
5 | | - box-sizing: border-box; |
6 | | -} |
7 | | - |
8 | | -:root { |
9 | | - --sans-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; |
10 | | - |
11 | | - --background: #fff; |
12 | | - --accent-background: #dfe1e9; |
13 | | - --text: #252525; |
14 | | - --text-light: #585858; |
15 | | - --border: #cecfd4; |
16 | | - --accent: #fa986b; |
17 | | -} |
18 | | - |
19 | | -html { |
20 | | - font-family: var(--sans-font); |
21 | | - scroll-behavior: smooth; |
22 | | - font-size: 16pt; |
23 | | - color: var(--text); |
24 | | - background: var(--background); |
25 | | -} |
26 | | - |
27 | | -html[data-theme="dark"] { |
28 | | - --background: rgb(52, 51, 58); |
29 | | - --accent-background: rgb(81, 79, 90); |
30 | | - --text: #d8d8d8; |
31 | | - --text-light: #ffffff; |
32 | | -} |
33 | | - |
34 | | -html.theme-switch, |
35 | | -html.theme-switch *, |
36 | | -html.theme-switch *:before, |
37 | | -html.theme-switch *:after { |
38 | | - transition: all 650ms !important; |
39 | | - transition-delay: 0 !important; |
40 | | -} |
41 | | - |
42 | | -header { |
43 | | - color: var(--text); |
44 | | -} |
45 | | - |
46 | | -footer { |
47 | | - color: var(--text-light); |
48 | | -} |
49 | | - |
50 | | -body { |
51 | | - padding: 0 1rem; |
52 | | -} |
53 | | - |
54 | | -a { |
55 | | - color: #b44512; |
56 | | - text-decoration: underline; |
57 | | - &:visited { |
58 | | - color: var(--text); |
59 | | - text-decoration: dotted; |
60 | | - } |
61 | | - &:hover { |
62 | | - color: var(--accent); |
63 | | - text-decoration: none; |
64 | | - } |
65 | | -} |
66 | | - |
67 | | -nav { |
68 | | - font-size: 1rem; |
69 | | - line-height: 2; |
70 | | - padding: 1rem 0 0 0; |
71 | | - |
72 | | - align-content: space-around; |
73 | | - align-items: baseline; |
74 | | - display: flex; |
75 | | - flex-direction: row; |
76 | | - flex-wrap: wrap; |
77 | | - justify-content: space-evenly; |
78 | | - list-style-type: none; |
79 | | - |
80 | | - a, |
81 | | - a:visited { |
82 | | - margin: 0 1rem 1rem 0; |
83 | | - border: 1px solid var(--border); |
84 | | - border-radius: 5px; |
85 | | - color: var(--text); |
86 | | - display: inline-block; |
87 | | - padding: 0.1rem 1rem; |
88 | | - text-decoration: none; |
89 | | - &:hover { |
90 | | - color: var(--accent); |
91 | | - border-color: var(--accent); |
92 | | - } |
93 | | - } |
94 | | -} |
95 | | - |
96 | | -// table style |
97 | | -table { |
98 | | - border-collapse: collapse; |
99 | | - border-spacing: 0; |
100 | | - margin: 1rem 0 1rem 0; |
101 | | - width: 100%; |
102 | | - th { |
103 | | - color: var(--accent); |
104 | | - font-weight: 600; |
105 | | - text-align: left; |
106 | | - } |
107 | | - |
108 | | - td, |
109 | | - th { |
110 | | - padding: 0.75rem 0.75rem; |
111 | | - } |
112 | | - |
113 | | - thead { |
114 | | - border-bottom: solid 2px var(--border); |
115 | | - } |
116 | | - |
117 | | - tbody { |
118 | | - tr:nth-child(2n + 1) { |
119 | | - background-color: var(--accent-background); |
120 | | - } |
121 | | - tr { |
122 | | - border: solid 1px var(--border); |
123 | | - border-left: 0; |
124 | | - border-right: 0; |
125 | | - } |
126 | | - } |
127 | | - |
128 | | - tfoot { |
129 | | - border-top: solid 2px var(--border); |
130 | | - } |
131 | | -} |
132 | | - |
133 | | -input, |
134 | | -select, |
135 | | -textarea { |
136 | | - font-size: inherit; |
137 | | - font-family: inherit; |
138 | | - padding: 0.5rem; |
139 | | - margin-bottom: 0.5rem; |
140 | | - color: var(--text); |
141 | | - background-color: var(--background); |
142 | | - width: 100%; |
143 | | - display: inline-block; |
144 | | - border: 1px solid var(--border); |
145 | | -} |
146 | | - |
147 | | -input[type="checkbox"], |
148 | | -input[type="radio"] { |
149 | | - width: auto; |
150 | | -} |
| 4 | +@use "src/nav.scss"; |
| 5 | +@use "src/table.scss"; |
| 6 | +@use "src/forms.scss"; |
0 commit comments