Skip to content

Commit

Permalink
Add more CSS variables for theming
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Oct 3, 2020
1 parent 0b37a02 commit b179dc0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/css/cloud-ui.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#cloudWidget {
background: url("../img/cloud.png") hsl(216, 100%, 93%);
background-color: var(--cloud-widget-surface);
margin: 0.5em 0;
min-width: max-content;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ code, .code {
}
hr {
border: 0;
border-top: 1px solid var(--hor-separator-color);
border-top: 1px solid var(--hr-ink);
margin: 1em 0;
}
textarea {
Expand Down
8 changes: 4 additions & 4 deletions src/css/epicker-ui.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
html#ublock0-epicker,
#ublock0-epicker body {
background: transparent;
color: black;
color: var(--default-ink);
cursor: not-allowed;
font: 12px sans-serif;
height: 100vh;
Expand Down Expand Up @@ -86,10 +86,10 @@ html#ublock0-epicker,
border-color: red;
}
#ublock0-epicker section textarea {
background-color: #fff;
background-color: var(--default-surface);
border: none;
box-sizing: border-box;
color: #000;
color: var(--default-ink);
font: 11px monospace;
height: 8em;
margin: 0;
Expand Down Expand Up @@ -225,7 +225,7 @@ html#ublock0-epicker,
border: 1px dotted var(--blue-50);
}
#ublock0-epicker #candidateFilters .changeFilter li:hover {
background-color: white;
background-color: var(--default-surface-hover);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/css/popup-fenix.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ a {
}
hr {
border: 0;
border-top: 1px solid #e3e2e3;
border-top: 1px solid var(--hr-ink);
margin: 0;
padding: 0;
}
Expand Down
11 changes: 8 additions & 3 deletions src/css/themes/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
--dark-gray-30: #42414d;
--dark-gray-40: #3a3944;
--dark-gray-50: #32313c;
--dark-gray-70: #23222b;
--dark-gray-80: #1c1b22;
--dark-gray-90: #15141a;
--ink-20: #312a65;
Expand Down Expand Up @@ -100,8 +101,6 @@
--fieldset-header-surface: transparent;
--fieldset-header-ink: var(--ink-20);

--hor-separator-color: var(--light-gray-30);

--button-surface: var(--light-gray-30);
--button-ink: var(--ink-20);
--button-surface-hover: var(--light-gray-40);
Expand Down Expand Up @@ -167,6 +166,12 @@
--bg-popup-cell-label-mixed: hsla(45, 100%, 38%, 1);
--popup-icon-x-ink: var(--red-60);

/* horizontal line separator */
--hr-ink: var(--light-gray-30);

/* cloud widget */
--cloud-widget-surface: var(--light-gray-20);

/* codemirror */
--cm-gutter-border: var(--light-gray-40);
--cm-gutter-ink: var(--light-gray-90);
Expand Down Expand Up @@ -252,7 +257,7 @@
--link-ink: #bb86fc;
--fieldset-header-surface: transparent;
--fieldset-header-ink: var(--light-gray-30);
--hor-separator-color: var(--dark-gray-50);
--hr-ink: var(--dark-gray-50);
--button-surface: var(--light-gray-10-a12);
--button-ink: var(--default-ink);
--button-surface-hover: var(--light-gray-10-a12);
Expand Down

0 comments on commit b179dc0

Please sign in to comment.