summaryrefslogtreecommitdiff
path: root/assets/css/vars.css
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/vars.css')
-rw-r--r--assets/css/vars.css74
1 files changed, 74 insertions, 0 deletions
diff --git a/assets/css/vars.css b/assets/css/vars.css
new file mode 100644
index 0000000..01fba59
--- /dev/null
+++ b/assets/css/vars.css
@@ -0,0 +1,74 @@
1:root {
2 --main-width: 780px;
3 --main-padding: 1.4em;
4 --main-padding-bottom: 3rem;
5
6 --caption-padding: calc(.25 * var(--main-padding));
7
8 /* header settings */
9 --header-top-gap: 2rem;
10 --header-bottom-gap: 2rem;
11 --header-menu-side-gap: .5rem;
12 --header-menu-top-gap: 1rem;
13
14 /* Typography */
15 --h1-margin-top: 2rem;
16 --h1-margin-bottom: 1.5rem;
17 --h2-margin-top: 2rem;
18 --h2-margin-bottom: 1.5rem;
19 --hx-margin-top: 1.5rem;
20 --hx-margin-bottom: 1rem;
21 --p-margin-top: 1rem;
22 --p-margin-bottom: 1rem;
23 --code-margin-top: 2rem;
24 --code-margin-bottom: 2rem;
25
26 --h1-font-size: 2em;
27 --h2-font-size: 1.8em;
28 --hx-font-size: 1.3em;
29 --p-font-size: 1em;
30 --p-line-height: 1.5em;
31 --caption-font-size: .8em;
32
33 /* List indentation */
34 --li-indent: 1.5rem;
35 --ul-margin-top: 1rem;
36 --ul-margin-bottom: 1rem;
37
38 --toc-margin-top: 2rem;
39 --toc-margin-bottom: 3rem;
40
41 /* Code */
42 --code-padding: 1.5rem;
43 --code-border-radius: 10px;
44
45 /* Social section */
46 --social-icons-bottom-margin: 3rem;
47
48 /* Footer */
49 --footer-height: 3rem;
50
51 /* Content */
52 --content-height: calc(100vh - var(--footer-height));
53
54 /* Tables */
55 --table-cell-padding: .5rem;
56 --table-margin-top: 1.5rem;
57 --table-margin-bottom: 1.5rem;
58}
59
60@media screen and (max-width: 1024px) {
61 :root {
62 --main-width: 750px;
63 --header-top-gap: 1rem;
64 --caption-padding: calc(.25 * var(--main-padding));
65 }
66}
67
68@media screen and (max-width: 640px) {
69 :root {
70 --header-top-gap: 1rem;
71 --social-icons-bottom-margin: 0rem;
72 --caption-padding: calc(2 * var(--main-padding));
73 }
74} \ No newline at end of file