Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:art: Adds new styles used by config editor

Alicia Sykescd314cb523f2
diff --git a/docs/theming.md b/docs/theming.md
index 7b6966fb..dcd8721b 100644
--- a/docs/theming.md
+++ b/docs/theming.md
@@ -118,6 +118,10 @@ You can target specific elements on the UI with these variables. All are optiona
- `--side-bar-color` - Color of icons and text within the sidebar. Defaults to `--primary`
- `--status-check-tooltip-background` - Background color for status check tooltips. Defaults to `--background-darker`
- `--status-check-tooltip-color` - Text color for the status check tooltips. Defaults to `--primary`
+- `--code-editor-color` - Text color used within raw code editors. Defaults to `--black`
+- `--code-editor-background` - Background color for raw code editors. Defaults to `--white`
+
+
#### Non-Color Variables
- `--outline-color` - Used to outline focused or selected elements
diff --git a/src/styles/color-palette.scss b/src/styles/color-palette.scss
index 24c734d7..059ed77d 100644
--- a/src/styles/color-palette.scss
+++ b/src/styles/color-palette.scss
@@ -76,4 +76,6 @@
--side-bar-color: var(--primary);
--status-check-tooltip-background: var(--background-darker);
--status-check-tooltip-color: var(--primary);
+ --code-editor-color: var(--black);
+ --code-editor-background: var(--white);
}
diff --git a/src/styles/media-queries.scss b/src/styles/media-queries.scss
index 5775ee53..43b60f59 100644
--- a/src/styles/media-queries.scss
+++ b/src/styles/media-queries.scss
@@ -65,3 +65,9 @@ $extra-large: 2800px;
@content;
}
}
+
+@mixin tablet-down {
+ @media (max-width: #{$small - 1px}) {
+ @content;
+ }
+}
\ No newline at end of file