mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 10:46:10 +01:00
595e8abd68
- Slightly decrease size of reaction buttons - Remove tooltip inside menu, it's obvious by the picture alone - Fix top menu triangle - Use `display: grid` to align icons in menu - Use regular tooltip for reaction users - Fix bug that deleted the reaction bar on clicking already reacted reaction in dropdown <img width="490" alt="Screenshot 2023-05-17 at 00 03 42" src="https://github.com/go-gitea/gitea/assets/115237/61588b37-facb-4829-b75b-e1cb5dda8ca4"> <img width="67" alt="Screenshot 2023-05-17 at 00 11 14" src="https://github.com/go-gitea/gitea/assets/115237/29605589-3b5f-40c6-8ad4-09923094bb8e"> <img width="211" alt="Screenshot 2023-05-17 at 00 29 30" src="https://github.com/go-gitea/gitea/assets/115237/7d2725da-6a3d-4e42-a351-53647f79f762"> <img width="210" alt="Screenshot 2023-05-17 at 00 29 54" src="https://github.com/go-gitea/gitea/assets/115237/b50f8364-033c-4445-ba25-61a814bb2d92"> <img width="892" alt="Screenshot 2023-05-17 at 00 12 20" src="https://github.com/go-gitea/gitea/assets/115237/30a46424-406a-46e5-b4de-47172eb8679d"> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
212 lines
7.1 KiB
CSS
212 lines
7.1 KiB
CSS
@import "../chroma/base.css";
|
|
@import "../chroma/dark.css";
|
|
@import "../codemirror/dark.css";
|
|
|
|
:root {
|
|
--is-dark-theme: true;
|
|
--color-primary: #87ab63;
|
|
--color-primary-contrast: #ffffff;
|
|
--color-primary-dark-1: #93b373;
|
|
--color-primary-dark-2: #9fbc82;
|
|
--color-primary-dark-3: #abc492;
|
|
--color-primary-dark-4: #b7cda1;
|
|
--color-primary-dark-5: #cfddc1;
|
|
--color-primary-dark-6: #e7eee0;
|
|
--color-primary-dark-7: #f8faf6;
|
|
--color-primary-light-1: #7a9e55;
|
|
--color-primary-light-2: #6c8c4c;
|
|
--color-primary-light-3: #5f7b42;
|
|
--color-primary-light-4: #516939;
|
|
--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: #525767;
|
|
--color-secondary-dark-1: #5c6374;
|
|
--color-secondary-dark-2: #666e81;
|
|
--color-secondary-dark-3: #7c8497;
|
|
--color-secondary-dark-4: #8990a1;
|
|
--color-secondary-dark-5: #959cab;
|
|
--color-secondary-dark-6: #a2a8b5;
|
|
--color-secondary-dark-7: #afb4c0;
|
|
--color-secondary-dark-8: #bcc0ca;
|
|
--color-secondary-dark-9: #c9cbd4;
|
|
--color-secondary-dark-10: #d6d7de;
|
|
--color-secondary-dark-11: #e2e3e8;
|
|
--color-secondary-dark-12: #eeeff2;
|
|
--color-secondary-dark-13: #fbfbfc;
|
|
--color-secondary-light-1: #454a57;
|
|
--color-secondary-light-2: #383c47;
|
|
--color-secondary-light-3: #2c2f37;
|
|
--color-secondary-light-4: #1f2226;
|
|
--color-secondary-alpha-10: #52576719;
|
|
--color-secondary-alpha-20: #52576733;
|
|
--color-secondary-alpha-30: #5257674b;
|
|
--color-secondary-alpha-40: #52576766;
|
|
--color-secondary-alpha-50: #52576780;
|
|
--color-secondary-alpha-60: #52576799;
|
|
--color-secondary-alpha-70: #525767b3;
|
|
--color-secondary-alpha-80: #525767cc;
|
|
--color-secondary-alpha-90: #525767e1;
|
|
/* console colors */
|
|
--color-console-fg: #ffffff;
|
|
--color-console-bg: #262936;
|
|
--color-console-border: #ffffff16;
|
|
--color-console-hover-bg: #ffffff16;
|
|
--color-console-active-bg: #383c47;
|
|
/* named 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-black: #2e323e;
|
|
/* 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-black-light: #292d38;
|
|
/* other colors */
|
|
--color-grey: #505665;
|
|
--color-grey-light: #a1a6b7;
|
|
--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: #373b47;
|
|
--color-box-header: #404652;
|
|
--color-box-body: #2a2e3a;
|
|
--color-box-body-highlight: #353945;
|
|
--color-text-dark: #dbe0ea;
|
|
--color-text: #cbd0da;
|
|
--color-text-light: #bbbfca;
|
|
--color-text-light-1: #aaafb9;
|
|
--color-text-light-2: #9a9ea9;
|
|
--color-text-light-3: #8a8e99;
|
|
--color-footer: #2e323e;
|
|
--color-timeline: #4c525e;
|
|
--color-input-text: #dfe3ec;
|
|
--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: #ffffff19;
|
|
--color-active: #ffffff24;
|
|
--color-menu: #2e323e;
|
|
--color-card: #2e323e;
|
|
--color-markup-table-row: #ffffff06;
|
|
--color-markup-code-block: #ffffff16;
|
|
--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: #8a8e99;
|
|
--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-hover-bg: var(--color-primary-light-4);
|
|
--color-reaction-active-bg: var(--color-primary-light-5);
|
|
--color-tooltip-text: #ffffff;
|
|
--color-tooltip-bg: #000000f0;
|
|
--color-header-bar: #2e323e;
|
|
--color-label-text: #dfe3ec;
|
|
--color-label-bg: #7c84974b;
|
|
--color-label-hover-bg: #7c8497a0;
|
|
--color-label-active-bg: #7c8497ff;
|
|
--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;
|
|
}
|
|
|
|
/* 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);
|
|
}
|