summaryrefslogtreecommitdiff
path: root/assets/css/core/theme-vars.css
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-03-27 11:28:55 +0530
committerGitHub <noreply@github.com>2021-03-27 11:28:55 +0530
commite503367a1adff7a62f4d7773f06f071f910ffc5a (patch)
treec50374b50fc19c82f46af7f613dc42af74f94322 /assets/css/core/theme-vars.css
parentb6af9eddee7f816b01a68836344b36d30de4a492 (diff)
[BREAKING] Split-up css into sub-parts (#317)
* Move styles into 3 different locations - core - common - hljs * Load all stylesheets in proper order
Diffstat (limited to 'assets/css/core/theme-vars.css')
-rw-r--r--assets/css/core/theme-vars.css38
1 files changed, 38 insertions, 0 deletions
diff --git a/assets/css/core/theme-vars.css b/assets/css/core/theme-vars.css
new file mode 100644
index 0000000..bda1f31
--- /dev/null
+++ b/assets/css/core/theme-vars.css
@@ -0,0 +1,38 @@
+:root {
+ --gap: 24px;
+ --content-gap: 20px;
+ --nav-width: 1024px;
+ --main-width: 720px;
+ --header-height: 60px;
+ --footer-height: 60px;
+ --radius: 8px;
+ --theme: #fff;
+ --entry: #fff;
+ --primary: rgba(0, 0, 0, 0.88);
+ --secondary: rgba(0, 0, 0, 0.56);
+ --tertiary: rgba(0, 0, 0, 0.16);
+ --content: rgba(0, 0, 0, 0.88);
+ --hljs-bg: #1c1d21;
+ --code-bg: #f5f5f5;
+ --border: #eee;
+}
+
+.dark {
+ --theme: #1d1e20;
+ --entry: #2e2e33;
+ --primary: rgba(255, 255, 255, 0.84);
+ --secondary: rgba(255, 255, 255, 0.56);
+ --tertiary: rgba(255, 255, 255, 0.16);
+ --content: rgba(255, 255, 255, 0.74);
+ --hljs-bg: #2e2e33;
+ --code-bg: #37383e;
+ --border: #333;
+}
+
+.list {
+ background: var(--code-bg);
+}
+
+.dark.list {
+ background: var(--theme);
+}