mirror of
https://github.com/saegl5/Gitea-Red.git
synced 2025-07-09 03:04:06 -04:00
working on auto theme
This commit is contained in:
parent
ce82f540d1
commit
26ac953e01
@ -14,8 +14,8 @@ Soft, lite red theme. Utilizes Gitea's default theme but with some colors and im
|
||||
08. Add to the configuration file:
|
||||
```ini
|
||||
[ui]
|
||||
THEMES = auto,gitea,arc-green,red
|
||||
DEFAULT_THEME = red
|
||||
THEMES = auto,gitea,arc-green,auto-red,red,arc-red
|
||||
DEFAULT_THEME = auto-red
|
||||
THEME_COLOR_META_TAG = none
|
||||
```
|
||||
09. Restart Gitea
|
||||
@ -39,4 +39,4 @@ Using Dark Reader web browser extension:
|
||||
- [x] Directories sometimes turn blue (~~testing a fix~~ because of Dark Reader ~~and you cleared your browser history~~, just refresh browser page)
|
||||
- [x] Tooltips sometimes display white down arrow (because of Dark Reader, use filter mode)
|
||||
|
||||
Theme coded with ♥ in VSCodium
|
||||
Theme coded with ♥ in VSCodium
|
||||
|
279
public/css/theme-arc-red.css
Normal file
279
public/css/theme-arc-red.css
Normal file
@ -0,0 +1,279 @@
|
||||
/* source: https://github.com/go-gitea/gitea/blob/main/web_src/less/themes/theme-arc-green.less */
|
||||
/* custom colors are slightly brighter */
|
||||
/* custom alpha is slightly lower */
|
||||
|
||||
:root {
|
||||
--is-dark-theme: true;
|
||||
--color-primary: #e6051f !important; /* greater contributions heatmap, primary email address label, Regenerate Scratch Token, and more (below) */
|
||||
--color-primary-contrast: #ffffff;
|
||||
--color-primary-dark-1: #93b373;
|
||||
--color-primary-dark-2: #c40319 !important; /* greater contributions heatmap and more (below) */
|
||||
--color-primary-dark-3: #b00317 !important; /* dropdown actions button */
|
||||
--color-primary-dark-4: #a10315 !important; /* red buttons */
|
||||
--color-primary-dark-5: #cfddc1;
|
||||
--color-primary-dark-6: #780310 !important; /* red buttons hover */
|
||||
--color-primary-dark-7: #f8faf6;
|
||||
--color-primary-light-1: #eb142d !important; /* selection color */
|
||||
--color-primary-light-2: #e82138 !important; /* greater contributions heatmap */
|
||||
--color-primary-light-3: #5f7b42;
|
||||
--color-primary-light-4: #f04559 !important; /* greater contributions heatmap */
|
||||
--color-primary-light-5: #364626;
|
||||
--color-primary-light-6: #1b2313;
|
||||
--color-primary-light-7: #080b06;
|
||||
--color-primary-alpha-10: #87ab6319;
|
||||
--color-primary-alpha-20: #87ab6333;
|
||||
--color-primary-alpha-30: #87ab634b;
|
||||
--color-primary-alpha-40: #87ab6366;
|
||||
--color-primary-alpha-50: #87ab6380;
|
||||
--color-primary-alpha-60: #87ab6399;
|
||||
--color-primary-alpha-70: #87ab63b3;
|
||||
--color-primary-alpha-80: #87ab63cc;
|
||||
--color-primary-alpha-90: #87ab63e1;
|
||||
--color-secondary: #454a57;
|
||||
--color-secondary-dark-1: #505665;
|
||||
--color-secondary-dark-2: #5b6273;
|
||||
--color-secondary-dark-3: #71798e;
|
||||
--color-secondary-dark-4: #7f8699;
|
||||
--color-secondary-dark-5: #8c93a4;
|
||||
--color-secondary-dark-6: #9aa0af;
|
||||
--color-secondary-dark-7: #a8adba;
|
||||
--color-secondary-dark-8: #b6bac5;
|
||||
--color-secondary-dark-9: #c4c7d0;
|
||||
--color-secondary-dark-10: #d2d4db;
|
||||
--color-secondary-dark-11: #dfe1e6;
|
||||
--color-secondary-dark-12: #edeef1;
|
||||
--color-secondary-dark-13: #fbfbfc;
|
||||
--color-secondary-light-1: #373b46;
|
||||
--color-secondary-light-2: #292c34;
|
||||
--color-secondary-light-3: #1c1e23;
|
||||
--color-secondary-light-4: #0e0f11;
|
||||
--color-secondary-alpha-10: #454a5719;
|
||||
--color-secondary-alpha-20: #454a5733;
|
||||
--color-secondary-alpha-30: #454a574b;
|
||||
--color-secondary-alpha-40: #454a5766;
|
||||
--color-secondary-alpha-50: #454a5780;
|
||||
--color-secondary-alpha-60: #454a5799;
|
||||
--color-secondary-alpha-70: #f7dede1b !important; /* fewer contributions heatmap */
|
||||
--color-secondary-alpha-80: #454a57cc;
|
||||
--color-secondary-alpha-90: #454a57e1;
|
||||
/* colors */
|
||||
--color-red: #cc4848;
|
||||
--color-orange: #cc580c;
|
||||
--color-yellow: #cc9903;
|
||||
--color-olive: #91a313;
|
||||
--color-green: #87ab63;
|
||||
--color-teal: #00918a;
|
||||
--color-blue: #3a8ac6;
|
||||
--color-violet: #906ae1;
|
||||
--color-purple: #b259d0;
|
||||
--color-pink: #d22e8b;
|
||||
--color-brown: #a47252;
|
||||
--color-grey: #9ea2aa;
|
||||
--color-black: #1e222e;
|
||||
/* light variants - produced via Sass scale-color(color, $lightness: -10%) */
|
||||
--color-red-light: #c23636;
|
||||
--color-orange-light: #b84f0b;
|
||||
--color-yellow-light: #b88a03;
|
||||
--color-olive-light: #839311;
|
||||
--color-green-light: #7a9e55;
|
||||
--color-teal-light: #00837c;
|
||||
--color-blue-light: #347cb3;
|
||||
--color-violet-light: #7b4edb;
|
||||
--color-purple-light: #a742c9;
|
||||
--color-pink-light: #be297d;
|
||||
--color-brown-light: #94674a;
|
||||
--color-grey-light: #8d919b;
|
||||
--color-black-light: #1b1f29;
|
||||
/* other colors */
|
||||
--color-gold: #b1983b;
|
||||
--color-white: #ffffff;
|
||||
--color-diff-removed-word-bg: #6f3333;
|
||||
--color-diff-added-word-bg: #3c653c;
|
||||
--color-diff-removed-row-bg: #3c2626;
|
||||
--color-diff-moved-row-bg: #818044;
|
||||
--color-diff-added-row-bg: #283e2d;
|
||||
--color-diff-removed-row-border: #634343;
|
||||
--color-diff-moved-row-border: #bcca6f;
|
||||
--color-diff-added-row-border: #314a37;
|
||||
--color-diff-inactive: #353846;
|
||||
--color-error-border: #a04141;
|
||||
--color-error-bg: #522;
|
||||
--color-error-bg-active: #744;
|
||||
--color-error-bg-hover: #633;
|
||||
--color-error-text: #f9cbcb;
|
||||
--color-success-border: #458a57;
|
||||
--color-success-bg: #284034;
|
||||
--color-success-text: #6cc664;
|
||||
--color-warning-border: #bb9d00;
|
||||
--color-warning-bg: #3a3a30;
|
||||
--color-warning-text: #fbbd08;
|
||||
--color-info-border: #306090;
|
||||
--color-info-bg: #26354c;
|
||||
--color-info-text: #38a8e8;
|
||||
--color-red-badge: #db2828;
|
||||
--color-red-badge-bg: #db28281a;
|
||||
--color-red-badge-hover-bg: #db28284d;
|
||||
--color-green-badge: #21ba45;
|
||||
--color-green-badge-bg: #21ba451a;
|
||||
--color-green-badge-hover-bg: #21ba454d;
|
||||
--color-yellow-badge: #fbbd08;
|
||||
--color-yellow-badge-bg: #fbbd081a;
|
||||
--color-yellow-badge-hover-bg: #fbbd084d;
|
||||
--color-orange-badge: #f2711c;
|
||||
--color-orange-badge-bg: #f2711c1a;
|
||||
--color-orange-badge-hover-bg: #f2711c4d;
|
||||
--color-git: #f05133;
|
||||
/* target-based colors */
|
||||
--color-body: #383c4a;
|
||||
--color-box-header: #404652;
|
||||
--color-box-body: #2a2e3a;
|
||||
--color-box-body-highlight: #353945;
|
||||
--color-text-dark: #dbe0ea;
|
||||
--color-text: #bbc0ca;
|
||||
--color-text-light: #a6aab5;
|
||||
--color-text-light-1: #979ba6;
|
||||
--color-text-light-2: #8a8e99;
|
||||
--color-text-light-3: #707687;
|
||||
--color-footer: #2e323e;
|
||||
--color-timeline: #4c525e;
|
||||
--color-input-text: #d5dbe6;
|
||||
--color-input-background: #232933;
|
||||
--color-input-toggle-background: #454a57;
|
||||
--color-input-border: #454a57;
|
||||
--color-input-border-hover: #505667;
|
||||
--color-navbar: #2a2e3a;
|
||||
--color-navbar-transparent: #2a2e3a00;
|
||||
--color-light: #00000028;
|
||||
--color-light-mimic-enabled: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled)));
|
||||
--color-light-border: #ffffff28;
|
||||
--color-hover: #ffffff10;
|
||||
--color-active: #ffffff16;
|
||||
--color-menu: #2e323e;
|
||||
--color-card: #2e323e;
|
||||
--color-markup-table-row: #ffffff06;
|
||||
--color-markup-code-block: #ffffff0d;
|
||||
--color-button: #353846;
|
||||
--color-code-bg: #2a2e3a;
|
||||
--color-code-sidebar-bg: #2e323e;
|
||||
--color-shadow: #00000060;
|
||||
--color-secondary-bg: #2a2e3a;
|
||||
--color-text-focus: #fff;
|
||||
--color-expand-button: #3c404d;
|
||||
--color-placeholder-text: #6a737d;
|
||||
--color-editor-line-highlight: var(--color-primary-light-5);
|
||||
--color-project-board-bg: var(--color-secondary-light-2);
|
||||
--color-caret: var(--color-text); /* should ideally be --color-text-dark, see #15651 */
|
||||
--color-reaction-bg: #ffffff12;
|
||||
--color-reaction-active-bg: var(--color-primary-alpha-40);
|
||||
--color-header-bar: #2e323e;
|
||||
--color-label-active-bg: #4c525e;
|
||||
--color-accent: var(--color-primary-light-1);
|
||||
--color-small-accent: var(--color-primary-light-5);
|
||||
--color-active-line: #534d1b;
|
||||
|
||||
accent-color: var(--color-accent);
|
||||
color-scheme: dark;
|
||||
|
||||
--fonts-monospace: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace, var(--fonts-emoji) !important; /* replaced "SFMono-Regular" */
|
||||
}
|
||||
|
||||
/* invert emojis that are hard to read otherwise */
|
||||
.emoji[aria-label="check mark"],
|
||||
.emoji[aria-label="currency exchange"],
|
||||
.emoji[aria-label="TOP arrow"],
|
||||
.emoji[aria-label="END arrow"],
|
||||
.emoji[aria-label="ON! arrow"],
|
||||
.emoji[aria-label="SOON arrow"],
|
||||
.emoji[aria-label="heavy dollar sign"],
|
||||
.emoji[aria-label="copyright"],
|
||||
.emoji[aria-label="registered"],
|
||||
.emoji[aria-label="trade mark"],
|
||||
.emoji[aria-label="multiply"],
|
||||
.emoji[aria-label="plus"],
|
||||
.emoji[aria-label="minus"],
|
||||
.emoji[aria-label="divide"],
|
||||
.emoji[aria-label="curly loop"],
|
||||
.emoji[aria-label="double curly loop"],
|
||||
.emoji[aria-label="wavy dash"],
|
||||
.emoji[aria-label="paw prints"],
|
||||
.emoji[aria-label="musical note"],
|
||||
.emoji[aria-label="musical notes"] {
|
||||
filter: invert(100%) hue-rotate(180deg);
|
||||
}
|
||||
|
||||
/* not needed: .full.height */
|
||||
|
||||
.home a {
|
||||
color: var(--color-primary) !important; /* link and link hover color on home page, other links use --color-primary */
|
||||
}
|
||||
|
||||
.home .svg {
|
||||
color: var(--color-primary) !important; /* icons' color on home page */
|
||||
}
|
||||
|
||||
span.green .svg {
|
||||
color: var(--color-primary) !important; /* ssh/gpg key icon color */
|
||||
}
|
||||
|
||||
.ui.green.button {
|
||||
background-color: var(--color-primary) !important; /* "green" button color (e.g., Sign In, Verify), primary buttons use --color-primary */
|
||||
}
|
||||
|
||||
.ui.red.button {
|
||||
background-color: var(--color-primary-dark-4) !important; /* red button color (e.g., Confirm Deletion, Remove) */
|
||||
color: var(--color-body) !important; /* text color overrides text color for some buttons (e.g., Transfer Ownership) */
|
||||
}
|
||||
|
||||
.ui.green.button:hover, .ui.green.button:active {
|
||||
background-color: var(--color-primary-dark-2) !important; /* "green" button hover color, only this one has active element, primary buttons use --color-primary-dark-2 */
|
||||
}
|
||||
|
||||
.ui.red.button:hover {
|
||||
background-color: var(--color-primary-dark-6) !important; /* red button hover color */
|
||||
}
|
||||
|
||||
.ui.active.button:hover, .ui.active.button:active {
|
||||
color: var(--color-body) !important; /* text color overrides text color for some other buttons (e.g., commit Actions) */
|
||||
}
|
||||
|
||||
/* not needed: .ui.tabular.stackable.menu.navbar .active.item */
|
||||
|
||||
.ui.secondary.pointing.tabular.top.attached.borderless.menu.stackable.new-menu.navbar .active.item {
|
||||
background: unset !important; /* do not color secondary menu item, includes stackable ones */
|
||||
}
|
||||
|
||||
.ui.vertical.menu {
|
||||
background: unset !important; /* make issues, pull requests and milestones menus background match --color-background */
|
||||
}
|
||||
|
||||
#repo-files-table tr:hover {
|
||||
background-color: var(--color-secondary-alpha-70) !important; /* row highlight color */
|
||||
}
|
||||
|
||||
/* not needed: .ui.top.attached.pull.tabular.stackable.menu .active.item */
|
||||
|
||||
/* not needed: .ui.top.tabular.menu .active.write.item */
|
||||
|
||||
.repository .diff-detail-box {
|
||||
background: unset !important; /* make diff-detail-box background match --color-background */
|
||||
}
|
||||
|
||||
details {
|
||||
background-color: var(--color-secondary-light-3); /* make collapsible elements easier to distinguish from main body */
|
||||
border-radius: 4px; /* same as code blocks */
|
||||
padding: .2em .4em; /* same as code blocks */
|
||||
}
|
||||
|
||||
.js-clone-url {
|
||||
border: 1px solid var(--color-light-border) !important; /* use same border color as surrounding buttons */
|
||||
border-right: none !important; /* border already there */
|
||||
}
|
||||
|
||||
.color-preview {
|
||||
display: unset !important; /* remove little color preview square */
|
||||
margin-left: unset !important; /* remove subsequently redundant margin */
|
||||
}
|
||||
|
||||
.markup table tr:nth-child(2n) {
|
||||
background-color: unset !important; /* remove background color of alternating table rows, since distracting if such rows contain codes */
|
||||
}
|
384
public/css/theme-auto-red.css
Normal file
384
public/css/theme-auto-red.css
Normal file
@ -0,0 +1,384 @@
|
||||
/* @import does not work */
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
--color-primary: #cd041c !important; /* greater contributions heatmap, primary email address label, Regenerate Scratch Token, and more (below) */
|
||||
--color-primary-dark-2: #ab0316 !important; /* greater contributions heatmap and more (below) */
|
||||
--color-primary-dark-3: #960314 !important; /* dropdown actions button */
|
||||
--color-primary-dark-4: #870312 !important; /* red buttons */
|
||||
--color-primary-dark-6: #5f020d !important; /* red buttons hover */
|
||||
--color-primary-light-1: #d1152b !important; /* selection color */
|
||||
--color-primary-light-2: #ce2236 !important; /* greater contributions heatmap */
|
||||
--color-primary-light-4: #d54455 !important; /* greater contributions heatmap */
|
||||
--color-background: #fcfcfc !important; /* make some elements pop out more (below) */
|
||||
--color-secondary-alpha-70: #dedede4d !important; /* fewer contributions heatmap */
|
||||
--fonts-monospace: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace, var(--fonts-emoji) !important; /* replaced "SFMono-Regular" */
|
||||
}
|
||||
|
||||
.full.height {
|
||||
background-color: var(--color-background) !important; /* make some elements pop out more (e.g., Sign In box, Two-Factor Authentication boxes, Repositories list, Settings boxes, Search boxes) */
|
||||
}
|
||||
|
||||
.home a {
|
||||
color: var(--color-primary) !important; /* link and link hover color on home page, other links use --color-primary */
|
||||
}
|
||||
|
||||
.home .svg {
|
||||
color: var(--color-primary) !important; /* icons' color on home page */
|
||||
}
|
||||
|
||||
span.green .svg {
|
||||
color: var(--color-primary) !important; /* ssh/gpg key icon color */
|
||||
}
|
||||
|
||||
.ui.green.button {
|
||||
background-color: var(--color-primary) !important; /* "green" button color (e.g., Sign In, Verify), primary buttons use --color-primary */
|
||||
}
|
||||
|
||||
.ui.red.button {
|
||||
background-color: var(--color-primary-dark-4) !important; /* red button color (e.g., Confirm Deletion, Remove) */
|
||||
color: var(--color-body) !important; /* text color overrides text color for some buttons (e.g., Transfer Ownership) */
|
||||
}
|
||||
|
||||
.ui.green.button:hover, .ui.green.button:active {
|
||||
background-color: var(--color-primary-dark-2) !important; /* "green" button hover color, only this one has active element, primary buttons use --color-primary-dark-2 */
|
||||
}
|
||||
|
||||
.ui.red.button:hover {
|
||||
background-color: var(--color-primary-dark-6) !important; /* red button hover color */
|
||||
}
|
||||
|
||||
.ui.active.button:hover, .ui.active.button:active {
|
||||
color: var(--color-body) !important; /* text color overrides text color for some other buttons (e.g., commit Actions) */
|
||||
}
|
||||
|
||||
.ui.tabular.stackable.menu.navbar .active.item {
|
||||
background-color: var(--color-background) !important; /* make repo tabular menu item background match --color-background */
|
||||
}
|
||||
|
||||
.ui.secondary.pointing.tabular.top.attached.borderless.menu.stackable.new-menu.navbar .active.item {
|
||||
background: unset !important; /* do not color secondary menu item, includes stackable ones */
|
||||
}
|
||||
|
||||
.ui.vertical.menu {
|
||||
background: unset !important; /* make issues, pull requests and milestones menus background match --color-background */
|
||||
}
|
||||
|
||||
#repo-files-table tr:hover {
|
||||
background-color: var(--color-secondary-alpha-70) !important; /* row highlight color */
|
||||
}
|
||||
|
||||
.ui.top.attached.pull.tabular.stackable.menu .active.item {
|
||||
background-color: var(--color-background) !important; /* make pull requests top tabular menu item background match --color-background */
|
||||
}
|
||||
|
||||
.ui.top.tabular.menu .active.write.item {
|
||||
background-color: var(--color-background) !important; /* make new release tabular menu item background match --color-background */
|
||||
}
|
||||
|
||||
.repository .diff-detail-box {
|
||||
background: unset !important; /* make diff-detail-box background match --color-background */
|
||||
}
|
||||
|
||||
details {
|
||||
background-color: var(--color-secondary-light-3); /* make collapsible elements easier to distinguish from main body */
|
||||
border-radius: 4px; /* same as code blocks */
|
||||
padding: .2em .4em; /* same as code blocks */
|
||||
}
|
||||
|
||||
.js-clone-url {
|
||||
border: 1px solid var(--color-light-border) !important; /* use same border color as surrounding buttons */
|
||||
border-right: none !important; /* border already there */
|
||||
}
|
||||
|
||||
.color-preview {
|
||||
display: unset !important; /* remove little color preview square */
|
||||
margin-left: unset !important; /* remove subsequently redundant margin */
|
||||
}
|
||||
|
||||
.markup table tr:nth-child(2n) {
|
||||
background-color: unset !important; /* remove background color of alternating table rows, since distracting if such rows contain codes */
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
/* source: https://github.com/go-gitea/gitea/blob/main/web_src/less/themes/theme-arc-green.less */
|
||||
/* custom colors are slightly brighter */
|
||||
/* custom alpha is slightly lower */
|
||||
|
||||
:root {
|
||||
--is-dark-theme: true;
|
||||
--color-primary: #e6051f !important; /* greater contributions heatmap, primary email address label, Regenerate Scratch Token, and more (below) */
|
||||
--color-primary-contrast: #ffffff;
|
||||
--color-primary-dark-1: #93b373;
|
||||
--color-primary-dark-2: #c40319 !important; /* greater contributions heatmap and more (below) */
|
||||
--color-primary-dark-3: #b00317 !important; /* dropdown actions button */
|
||||
--color-primary-dark-4: #a10315 !important; /* red buttons */
|
||||
--color-primary-dark-5: #cfddc1;
|
||||
--color-primary-dark-6: #780310 !important; /* red buttons hover */
|
||||
--color-primary-dark-7: #f8faf6;
|
||||
--color-primary-light-1: #eb142d !important; /* selection color */
|
||||
--color-primary-light-2: #e82138 !important; /* greater contributions heatmap */
|
||||
--color-primary-light-3: #5f7b42;
|
||||
--color-primary-light-4: #f04559 !important; /* greater contributions heatmap */
|
||||
--color-primary-light-5: #364626;
|
||||
--color-primary-light-6: #1b2313;
|
||||
--color-primary-light-7: #080b06;
|
||||
--color-primary-alpha-10: #87ab6319;
|
||||
--color-primary-alpha-20: #87ab6333;
|
||||
--color-primary-alpha-30: #87ab634b;
|
||||
--color-primary-alpha-40: #87ab6366;
|
||||
--color-primary-alpha-50: #87ab6380;
|
||||
--color-primary-alpha-60: #87ab6399;
|
||||
--color-primary-alpha-70: #87ab63b3;
|
||||
--color-primary-alpha-80: #87ab63cc;
|
||||
--color-primary-alpha-90: #87ab63e1;
|
||||
--color-secondary: #454a57;
|
||||
--color-secondary-dark-1: #505665;
|
||||
--color-secondary-dark-2: #5b6273;
|
||||
--color-secondary-dark-3: #71798e;
|
||||
--color-secondary-dark-4: #7f8699;
|
||||
--color-secondary-dark-5: #8c93a4;
|
||||
--color-secondary-dark-6: #9aa0af;
|
||||
--color-secondary-dark-7: #a8adba;
|
||||
--color-secondary-dark-8: #b6bac5;
|
||||
--color-secondary-dark-9: #c4c7d0;
|
||||
--color-secondary-dark-10: #d2d4db;
|
||||
--color-secondary-dark-11: #dfe1e6;
|
||||
--color-secondary-dark-12: #edeef1;
|
||||
--color-secondary-dark-13: #fbfbfc;
|
||||
--color-secondary-light-1: #373b46;
|
||||
--color-secondary-light-2: #292c34;
|
||||
--color-secondary-light-3: #1c1e23;
|
||||
--color-secondary-light-4: #0e0f11;
|
||||
--color-secondary-alpha-10: #454a5719;
|
||||
--color-secondary-alpha-20: #454a5733;
|
||||
--color-secondary-alpha-30: #454a574b;
|
||||
--color-secondary-alpha-40: #454a5766;
|
||||
--color-secondary-alpha-50: #454a5780;
|
||||
--color-secondary-alpha-60: #454a5799;
|
||||
--color-secondary-alpha-70: #f7dede1b !important; /* fewer contributions heatmap */
|
||||
--color-secondary-alpha-80: #454a57cc;
|
||||
--color-secondary-alpha-90: #454a57e1;
|
||||
/* colors */
|
||||
--color-red: #cc4848;
|
||||
--color-orange: #cc580c;
|
||||
--color-yellow: #cc9903;
|
||||
--color-olive: #91a313;
|
||||
--color-green: #87ab63;
|
||||
--color-teal: #00918a;
|
||||
--color-blue: #3a8ac6;
|
||||
--color-violet: #906ae1;
|
||||
--color-purple: #b259d0;
|
||||
--color-pink: #d22e8b;
|
||||
--color-brown: #a47252;
|
||||
--color-grey: #9ea2aa;
|
||||
--color-black: #1e222e;
|
||||
/* light variants - produced via Sass scale-color(color, $lightness: -10%) */
|
||||
--color-red-light: #c23636;
|
||||
--color-orange-light: #b84f0b;
|
||||
--color-yellow-light: #b88a03;
|
||||
--color-olive-light: #839311;
|
||||
--color-green-light: #7a9e55;
|
||||
--color-teal-light: #00837c;
|
||||
--color-blue-light: #347cb3;
|
||||
--color-violet-light: #7b4edb;
|
||||
--color-purple-light: #a742c9;
|
||||
--color-pink-light: #be297d;
|
||||
--color-brown-light: #94674a;
|
||||
--color-grey-light: #8d919b;
|
||||
--color-black-light: #1b1f29;
|
||||
/* other colors */
|
||||
--color-gold: #b1983b;
|
||||
--color-white: #ffffff;
|
||||
--color-diff-removed-word-bg: #6f3333;
|
||||
--color-diff-added-word-bg: #3c653c;
|
||||
--color-diff-removed-row-bg: #3c2626;
|
||||
--color-diff-moved-row-bg: #818044;
|
||||
--color-diff-added-row-bg: #283e2d;
|
||||
--color-diff-removed-row-border: #634343;
|
||||
--color-diff-moved-row-border: #bcca6f;
|
||||
--color-diff-added-row-border: #314a37;
|
||||
--color-diff-inactive: #353846;
|
||||
--color-error-border: #a04141;
|
||||
--color-error-bg: #522;
|
||||
--color-error-bg-active: #744;
|
||||
--color-error-bg-hover: #633;
|
||||
--color-error-text: #f9cbcb;
|
||||
--color-success-border: #458a57;
|
||||
--color-success-bg: #284034;
|
||||
--color-success-text: #6cc664;
|
||||
--color-warning-border: #bb9d00;
|
||||
--color-warning-bg: #3a3a30;
|
||||
--color-warning-text: #fbbd08;
|
||||
--color-info-border: #306090;
|
||||
--color-info-bg: #26354c;
|
||||
--color-info-text: #38a8e8;
|
||||
--color-red-badge: #db2828;
|
||||
--color-red-badge-bg: #db28281a;
|
||||
--color-red-badge-hover-bg: #db28284d;
|
||||
--color-green-badge: #21ba45;
|
||||
--color-green-badge-bg: #21ba451a;
|
||||
--color-green-badge-hover-bg: #21ba454d;
|
||||
--color-yellow-badge: #fbbd08;
|
||||
--color-yellow-badge-bg: #fbbd081a;
|
||||
--color-yellow-badge-hover-bg: #fbbd084d;
|
||||
--color-orange-badge: #f2711c;
|
||||
--color-orange-badge-bg: #f2711c1a;
|
||||
--color-orange-badge-hover-bg: #f2711c4d;
|
||||
--color-git: #f05133;
|
||||
/* target-based colors */
|
||||
--color-body: #383c4a;
|
||||
--color-box-header: #404652;
|
||||
--color-box-body: #2a2e3a;
|
||||
--color-box-body-highlight: #353945;
|
||||
--color-text-dark: #dbe0ea;
|
||||
--color-text: #bbc0ca;
|
||||
--color-text-light: #a6aab5;
|
||||
--color-text-light-1: #979ba6;
|
||||
--color-text-light-2: #8a8e99;
|
||||
--color-text-light-3: #707687;
|
||||
--color-footer: #2e323e;
|
||||
--color-timeline: #4c525e;
|
||||
--color-input-text: #d5dbe6;
|
||||
--color-input-background: #232933;
|
||||
--color-input-toggle-background: #454a57;
|
||||
--color-input-border: #454a57;
|
||||
--color-input-border-hover: #505667;
|
||||
--color-navbar: #2a2e3a;
|
||||
--color-navbar-transparent: #2a2e3a00;
|
||||
--color-light: #00000028;
|
||||
--color-light-mimic-enabled: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled)));
|
||||
--color-light-border: #ffffff28;
|
||||
--color-hover: #ffffff10;
|
||||
--color-active: #ffffff16;
|
||||
--color-menu: #2e323e;
|
||||
--color-card: #2e323e;
|
||||
--color-markup-table-row: #ffffff06;
|
||||
--color-markup-code-block: #ffffff0d;
|
||||
--color-button: #353846;
|
||||
--color-code-bg: #2a2e3a;
|
||||
--color-code-sidebar-bg: #2e323e;
|
||||
--color-shadow: #00000060;
|
||||
--color-secondary-bg: #2a2e3a;
|
||||
--color-text-focus: #fff;
|
||||
--color-expand-button: #3c404d;
|
||||
--color-placeholder-text: #6a737d;
|
||||
--color-editor-line-highlight: var(--color-primary-light-5);
|
||||
--color-project-board-bg: var(--color-secondary-light-2);
|
||||
--color-caret: var(--color-text); /* should ideally be --color-text-dark, see #15651 */
|
||||
--color-reaction-bg: #ffffff12;
|
||||
--color-reaction-active-bg: var(--color-primary-alpha-40);
|
||||
--color-header-bar: #2e323e;
|
||||
--color-label-active-bg: #4c525e;
|
||||
--color-accent: var(--color-primary-light-1);
|
||||
--color-small-accent: var(--color-primary-light-5);
|
||||
--color-active-line: #534d1b;
|
||||
|
||||
accent-color: var(--color-accent);
|
||||
color-scheme: dark;
|
||||
|
||||
--fonts-monospace: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace, var(--fonts-emoji) !important; /* replaced "SFMono-Regular" */
|
||||
}
|
||||
|
||||
/* invert emojis that are hard to read otherwise */
|
||||
.emoji[aria-label="check mark"],
|
||||
.emoji[aria-label="currency exchange"],
|
||||
.emoji[aria-label="TOP arrow"],
|
||||
.emoji[aria-label="END arrow"],
|
||||
.emoji[aria-label="ON! arrow"],
|
||||
.emoji[aria-label="SOON arrow"],
|
||||
.emoji[aria-label="heavy dollar sign"],
|
||||
.emoji[aria-label="copyright"],
|
||||
.emoji[aria-label="registered"],
|
||||
.emoji[aria-label="trade mark"],
|
||||
.emoji[aria-label="multiply"],
|
||||
.emoji[aria-label="plus"],
|
||||
.emoji[aria-label="minus"],
|
||||
.emoji[aria-label="divide"],
|
||||
.emoji[aria-label="curly loop"],
|
||||
.emoji[aria-label="double curly loop"],
|
||||
.emoji[aria-label="wavy dash"],
|
||||
.emoji[aria-label="paw prints"],
|
||||
.emoji[aria-label="musical note"],
|
||||
.emoji[aria-label="musical notes"] {
|
||||
filter: invert(100%) hue-rotate(180deg);
|
||||
}
|
||||
|
||||
/* not needed: .full.height */
|
||||
|
||||
.home a {
|
||||
color: var(--color-primary) !important; /* link and link hover color on home page, other links use --color-primary */
|
||||
}
|
||||
|
||||
.home .svg {
|
||||
color: var(--color-primary) !important; /* icons' color on home page */
|
||||
}
|
||||
|
||||
span.green .svg {
|
||||
color: var(--color-primary) !important; /* ssh/gpg key icon color */
|
||||
}
|
||||
|
||||
.ui.green.button {
|
||||
background-color: var(--color-primary) !important; /* "green" button color (e.g., Sign In, Verify), primary buttons use --color-primary */
|
||||
}
|
||||
|
||||
.ui.red.button {
|
||||
background-color: var(--color-primary-dark-4) !important; /* red button color (e.g., Confirm Deletion, Remove) */
|
||||
color: var(--color-body) !important; /* text color overrides text color for some buttons (e.g., Transfer Ownership) */
|
||||
}
|
||||
|
||||
.ui.green.button:hover, .ui.green.button:active {
|
||||
background-color: var(--color-primary-dark-2) !important; /* "green" button hover color, only this one has active element, primary buttons use --color-primary-dark-2 */
|
||||
}
|
||||
|
||||
.ui.red.button:hover {
|
||||
background-color: var(--color-primary-dark-6) !important; /* red button hover color */
|
||||
}
|
||||
|
||||
.ui.active.button:hover, .ui.active.button:active {
|
||||
color: var(--color-body) !important; /* text color overrides text color for some other buttons (e.g., commit Actions) */
|
||||
}
|
||||
|
||||
/* not needed: .ui.tabular.stackable.menu.navbar .active.item */
|
||||
|
||||
.ui.secondary.pointing.tabular.top.attached.borderless.menu.stackable.new-menu.navbar .active.item {
|
||||
background: unset !important; /* do not color secondary menu item, includes stackable ones */
|
||||
}
|
||||
|
||||
.ui.vertical.menu {
|
||||
background: unset !important; /* make issues, pull requests and milestones menus background match --color-background */
|
||||
}
|
||||
|
||||
#repo-files-table tr:hover {
|
||||
background-color: var(--color-secondary-alpha-70) !important; /* row highlight color */
|
||||
}
|
||||
|
||||
/* not needed: .ui.top.attached.pull.tabular.stackable.menu .active.item */
|
||||
|
||||
/* not needed: .ui.top.tabular.menu .active.write.item */
|
||||
|
||||
.repository .diff-detail-box {
|
||||
background: unset !important; /* make diff-detail-box background match --color-background */
|
||||
}
|
||||
|
||||
details {
|
||||
background-color: var(--color-secondary-light-3); /* make collapsible elements easier to distinguish from main body */
|
||||
border-radius: 4px; /* same as code blocks */
|
||||
padding: .2em .4em; /* same as code blocks */
|
||||
}
|
||||
|
||||
.js-clone-url {
|
||||
border: 1px solid var(--color-light-border) !important; /* use same border color as surrounding buttons */
|
||||
border-right: none !important; /* border already there */
|
||||
}
|
||||
|
||||
.color-preview {
|
||||
display: unset !important; /* remove little color preview square */
|
||||
margin-left: unset !important; /* remove subsequently redundant margin */
|
||||
}
|
||||
|
||||
.markup table tr:nth-child(2n) {
|
||||
background-color: unset !important; /* remove background color of alternating table rows, since distracting if such rows contain codes */
|
||||
}
|
||||
}
|
@ -78,7 +78,7 @@ span.green .svg {
|
||||
}
|
||||
|
||||
details {
|
||||
background-color: var(--color-secondary-light-2); /* make collapsible elements easier to distinguish from main body */
|
||||
background-color: var(--color-secondary-light-3); /* make collapsible elements easier to distinguish from main body */
|
||||
border-radius: 4px; /* same as code blocks */
|
||||
padding: .2em .4em; /* same as code blocks */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user