Compare commits

...

35 Commits
v2.4.0 ... main

Author SHA1 Message Date
54c0c7930d Merge pull request '1.19.0+dev' (#1) from 1.19.0+dev into main
Reviewed-on: #1
2023-01-19 02:13:18 +01:00
6f4827a7a2 fix
All checks were successful
Lila-Kuh/gitea-github-theme/pipeline/head This commit looks good
2022-12-08 22:53:35 +01:00
3802ffdc04 ci file 2022-12-08 22:52:50 +01:00
0043e83481 formating website url 2022-12-06 02:52:35 +01:00
4c36fad2c9 link fix README.md 2022-12-06 02:47:51 +01:00
58b4d76346 update README.md 2022-12-06 02:29:52 +01:00
3b9a00a852 "add color-header-bar"
add   --color-header-bar: #373e47; Update Fix Color Header-Bar
2022-12-06 01:08:35 +01:00
cf56b17498 "add color-header-bar"
add "--color-header-bar: #373e47;" for update Header-Bar Color Fix
2022-12-06 01:06:54 +01:00
pat-s
2bd47654dd
update screenshot 2022-11-08 21:41:03 +01:00
pat-s
bdb38bc4b9
Dark: overhaul borders 2022-11-08 21:30:20 +01:00
pat-s
f0cafd6f01
light: align background color of branch names in PRs 2022-09-22 14:37:08 +02:00
pat-s
f6e48f9fe1
adjust box-shadow of ssh cloning button when not in focus 2022-09-20 13:17:57 +02:00
pat-s
1c8d2c1b70
light: fix font color of repo archival dialog buttons 2022-09-16 15:33:31 +02:00
pat-s
41746283cb
dark: update color of timeline view icons in PR 2022-09-01 23:55:24 +02:00
pat-s
aff576e893
release v3.0 2022-08-22 12:57:34 +02:00
pat-s
1bd187680f
dark: set --is-dark-theme variable 2022-08-21 16:56:11 +02:00
pat-s
fc3ad49098
light: use black font color for "basic green button" 2021-12-01 16:29:28 +01:00
pat-s
de6bc969f6
light: adjust gpg banner color and commit banner background 2021-11-25 11:40:10 +01:00
pat-s
a3b8684ec1
dark: more chroma adjustments 2021-11-23 23:39:05 +01:00
pat-s
5c8e604e08
dark: optimize colors for highlighted code 2021-11-23 22:12:07 +01:00
pat-s
77948727fb
dark: more chroma color adjustments 2021-11-18 12:01:30 +01:00
pat-s
991975edc1
dark: reverse timline icons and adjust green colors in PRs 2021-11-11 11:59:00 +01:00
pat-s
d06350970a
dark: background of "pending" label in review 2021-11-08 20:04:46 +01:00
pat-s
a044c20906
dark: adjust input cursor color 2021-11-03 09:22:07 +01:00
pat-s
fd34ec3867
dark: adjust colors for added and removed code in diff view 2021-11-03 09:21:10 +01:00
pat-s
94f6d0e7b6
dark: Adjust color of cursor in text fields 2021-10-23 17:27:17 +02:00
pat-s
58ea9a9235
dark: adjust color of "search repository" right border 2021-10-21 11:03:24 +02:00
pat-s
e10635ffd0
dark: adjust PR timeline colors 2021-10-20 20:32:41 +02:00
pat-s
f40704f0cf
dark: adjust chroma nx color 2021-10-20 20:26:47 +02:00
pat-s
884764b08a
dark: adjust timeline icon size 2021-10-18 15:56:56 +02:00
pat-s
ea70ec08f0
dark: Adjust PR timeline colors 2021-10-18 10:16:16 +02:00
pat-s
67d0060173
dark: adjust colors of info message 2021-10-18 09:31:43 +02:00
pat-s
90a8d59165
dark: lighter chroma blue for diff view 2021-10-17 12:02:24 +02:00
pat-s
a42e4a9f67
dark: fix colors of gpg banner and commit box 2021-10-16 18:50:27 +02:00
pat-s
7e0ee572a6
dark: font color line numbers 2021-10-16 18:40:27 +02:00
9 changed files with 2028 additions and 44 deletions

11
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,11 @@
pipeline {
agent any
stages {
stage('Do nothing') {
steps {
sh '/bin/true'
}
}
}
}

View File

@ -1,18 +1,39 @@
# gitea-github-theme # gitea-github-theme
Opinionated GitHub-based light and dark themes for Gitea
Created and tested with Gitea v1.15. **Opinionated** GitHub-based light and dark themes for Gitea including an automatic theme switch option.
Created and tested with Gitea v1.15 - 1.17. (v1.19+dev)
The theme might work with future versions though Gitea devs might change some CSS classes in the meantime and things might potentially look odd - just try yourself :) The theme might work with future versions though Gitea devs might change some CSS classes in the meantime and things might potentially look odd - just try yourself :)
I might update the theme over time to fix oversights and other issues - no guarantee though. I might update the theme over time to fix oversights and other issues - no guarantee though.
---
### [Website](https://codeberg.org/pat-s/gitea-github-theme)
---
###### Index
* [Installation](#installation)
* [Using automatic theme switching](#using-automatic-theme-switching-based-on-system-preference)
* [Changes to default Gitea theme](#changes-to-default-gitea-theme)
* [Helm chart instructions](#helm-chart-instructions)
* [Screenshots](#screenshots)
---
## Installation ## Installation
1. If you do not have admin access to a Gitea instance, you can use the [Stylus](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne/related) browser extension and use the CSS provided in this repo for the Gitea URL 1. If you do not have admin access to a Gitea instance, you can use the [Stylus](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne/related) browser extension and use the CSS provided in this repo for the Gitea URL.
2. If you are an admin and want to make this theme available to all users: 2. If you are an admin and want to make this theme available to all users:
1. Put `theme-github.css` into `$GITEA_PUBLIC/public/css/theme-github.css` where `$GITEA_PUBLIC` is the "CustomPath" of your instance reported by `gitea help`. 1. Put `theme-github.css` into `$GITEA_PUBLIC/public/css/theme-github.css` where `$GITEA_PUBLIC` is the "CustomPath" of your instance reported by `gitea help`.
2. Add `github` to the comma-separated list in the setting `THEMES` in `app.ini` 2. Add `github` to the comma-separated list in the setting `THEMES` in `app.ini` ; (e.g.: `THEMES = auto,gitea,arc-green,github-auto,github,github-dark`).
3. Now users can select this theme in their settings under "account" 3. Now users can select this theme in their settings under "account".
4. (optional) If you want to make this theme the default of your instance, set it in `DEFAULT_THEME` in `app.ini` 4. (optional) If you want to make this theme the default of your instance, set it in `DEFAULT_THEME` in `app.ini`.
## Using automatic theme switching based on system preference
To use automatic theme switching, add `theme-github-auto.css` into your respective `themes` folder as described above.
This file contains both light and dark styles and selects the respective one based on the system preference selected by the user via the `@media (prefers-color-scheme:` CSS selector (tested on macOS).
For some reasons using `@imports` does not work and hence the file contains the c/p content of both the light and dark themes together.
If this is somehow possible and I did not managed to get it configured, please let me know!
## Changes to default Gitea theme ## Changes to default Gitea theme
@ -20,10 +41,53 @@ I might update the theme over time to fix oversights and other issues - no guara
- Aligned `border-radius` with GitHub - Aligned `border-radius` with GitHub
- Related theme by removing a lot of hover colors and dominant button background-colors - Related theme by removing a lot of hover colors and dominant button background-colors
- Aligned markup background to GitHub's value - Aligned markup background to GitHub's value
- Decreased navbar height and font size
- Many small overrides of colors and font-sizes
## Helm chart instructions
To use custom themes with the [Gitea helm chart](https://gitea.com/gitea/helm-chart):
1. Create a secret containing the CSS files (here's an example via `terraform`, plain k8s secrets will also work)
```hcl
resource "kubernetes_secret" "gitea-themes" {
metadata {
name = "gitea-themes"
namespace = "gitea"
}
data = {
"theme-github.css" = "${file("files/gitea/gitea-github-theme-light.css")}"
"theme-github-dark.css" = "${file("files/gitea/gitea-github-theme-dark.css")}"
"theme-github-auto.css" = "${file("files/gitea/gitea-github-theme-auto.css")}"
}
type = "Opaque"
}
```
2. Mount the secret via `extraVolumes` in `values.yaml`:
```yml
extraVolumes:
- name: gitea-themes
secret:
secretName: gitea-themes
```
3. Add the theme options into the config in `values.yaml`:
```yml
gitea:
config:
ui:
DEFAULT_THEME: github-auto
THEMES: auto,gitea,arc-green,github,github-dark,github-auto
```
## Screenshots ## Screenshots
| | | ![](figs/screenshot1.png)
| :----------------------------: | :----------------------------: |
| ![](figs/screenshot1.png) | ![](figs/screenshot2.png) | ![](figs/screenshot-dark1.png)
| ![](figs/screenshot-dark1.png) | ![](figs/screenshot-dark2.png) |

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

1288
theme-github-auto.css Normal file

File diff suppressed because it is too large Load Diff

453
theme-github-dark.css Normal file → Executable file
View File

@ -1,5 +1,6 @@
:root { :root {
--color-primary: #347d39; --color-primary: #347d39;
--color-secondary: #535865;
--border-radius: 6px; --border-radius: 6px;
--color-body: #373e47; --color-body: #373e47;
--color-navbar: #22272e; --color-navbar: #22272e;
@ -12,11 +13,22 @@
--color-light: #22272e; --color-light: #22272e;
--color-button: #22272e; --color-button: #22272e;
--color-input-background: #22272e; --color-input-background: #22272e;
--color-input-border-hover: #8e8c8c;
--color-input-text: #adbac7; --color-input-text: #adbac7;
--color-box-header: #22272e; --color-box-header: #22272e;
--color-active: #22272e; --color-active: #22272e;
--color-menu: #22272e; --color-menu: #22272e;
--color-secondary: #454a57; --color-caret: var(--color-text);
--is-dark-theme: true;
--color-blue: #539bf5;
--color-input-background: #22272e;
--color-header-bar: #373e47;
/* code editor colors are set in https://github.com/go-gitea/gitea/blob/f5b300ea77081a1b78ac044cb1c0f9225538d091/web_src/js/features/codeeditor.js#L82-L97. */
/* monaco editor dark theme is toggled via variable `--is-dark-theme` */
--color-primary-light-3: #71798e;
--color-editor-line-highlight: #71798e;
--color-code-bg: var(--color-input-background);
} }
.ui.list .list > .item > .content, .ui.list .list > .item > .content,
@ -63,28 +75,33 @@
.ui.green.buttons .button, .ui.green.buttons .button,
.ui.green.button { .ui.green.button {
background-color: #347d39; background-color: #347d39;
color: #fff !important; color: #ffffffe6 !important;
} }
.repository.file.list #repo-files-table tbody .svg.octicon-file-directory, .repository.file.list #repo-files-table tbody .svg.octicon-file-directory,
.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule { .repository.file.list #repo-files-table tbody .svg.octicon-file-submodule {
color: #768390; color: #768390;
} }
a, a,
.ui.breadcrumb a { .ui.breadcrumb a {
/* color: var(--color-text); */ /* color: var(--color-text); */
color: #539bf5; color: var(--color-blue);
} }
.repo-title a { .repo-title a {
color: #539bf5 !important; color: var(--color-blue) !important;
} }
.ui.table > thead > tr > th { .ui.table > thead > tr > th {
background: #636e7b1a; background: #636e7b1a;
color: #dbdbdb !important; color: #dbdbdb !important;
} }
.repository.file.list #repo-files-table tr { .repository.file.list #repo-files-table tr {
background: #22272e; background: #22272e;
} }
.repo-icon { .repo-icon {
display: inline-block; display: inline-block;
transform: scale(0.75); transform: scale(0.75);
@ -92,7 +109,7 @@ a,
} }
.repository.file.list #file-buttons .ui.button { .repository.file.list #file-buttons .ui.button {
color: #fff !important; color: #ffffffe6 !important;
} }
.ui.basic.green.button, .ui.basic.green.button,
@ -103,24 +120,28 @@ a,
box-shadow: inset 0 0 0 1px rgba(34, 36, 38, 0.15) !important; box-shadow: inset 0 0 0 1px rgba(34, 36, 38, 0.15) !important;
color: #dbdbdb !important; color: #dbdbdb !important;
} }
.ui.basic.green.button:focus, .ui.basic.green.button:focus,
.ui.basic.green.buttons .button:focus, .ui.basic.green.buttons .button:focus,
.ui.basic.primary.button:focus, .ui.basic.primary.button:focus,
.ui.basic.primary.buttons .button:focus { .ui.basic.primary.buttons .button:focus {
box-shadow: inset 0 0 0 0px #808080 !important; box-shadow: inset 0 0 0 0px #808080 !important;
} }
.ui.basic.green.button:hover, .ui.basic.green.button:hover,
.ui.basic.green.buttons .button:hover, .ui.basic.green.buttons .button:hover,
.ui.basic.primary.button:hover, .ui.basic.primary.button:hover,
.ui.basic.primary.buttons .button:hover { .ui.basic.primary.buttons .button:hover {
background-color: #22272e !important; background-color: #22272e !important;
} }
.ui.basic.green.button:hover, .ui.basic.green.button:hover,
.ui.basic.green.buttons .button:hover, .ui.basic.green.buttons .button:hover,
.ui.basic.primary.button:hover, .ui.basic.primary.button:hover,
.ui.basic.primary.buttons .button:hover { .ui.basic.primary.buttons .button:hover {
box-shadow: inset 0 0 0 0px #808080 !important; box-shadow: inset 0 0 0 0px #808080 !important;
} }
.issue.list { .issue.list {
list-style: none; list-style: none;
margin-top: 1rem; margin-top: 1rem;
@ -128,22 +149,28 @@ a,
border-radius: 6px; border-radius: 6px;
padding: 3px 10px 3px 10px; padding: 3px 10px 3px 10px;
} }
.ui.menu .item { .ui.menu .item {
background-color: #22272e; background-color: #22272e;
} }
.ui.horizontal.segments > .segment { .ui.horizontal.segments > .segment {
background-color: #22272e; background-color: #22272e;
border-radius: 6px; border-radius: 6px;
} }
.ui.attached.header { .ui.attached.header {
border-radius: 6px; border-radius: 6px;
} }
.repository.file.list .repo-description { .repository.file.list .repo-description {
color: #adbac7; color: #adbac7;
} }
.commit-summary a.default-link { .commit-summary a.default-link {
color: #adbac7 !important; color: #adbac7 !important;
} }
.markup h1, .markup h1,
.markup h2, .markup h2,
.markup h3, .markup h3,
@ -152,10 +179,12 @@ a,
.markup h6 { .markup h6 {
color: #adbac7; color: #adbac7;
} }
.markup code, .markup code,
.markup tt { .markup tt {
color: #adbac7; color: #adbac7;
} }
.markup p, .markup p,
.markup blockquote, .markup blockquote,
.markup details, .markup details,
@ -166,32 +195,41 @@ a,
.markup pre { .markup pre {
color: #adbac7; color: #adbac7;
} }
.repo-list-link { .repo-list-link {
color: #539bf5 !important; color: var(--color-blue) !important;
} }
.ui.menu.two.item .item { .ui.menu.two.item .item {
border: 1px solid var(--color-secondary); border: 1px solid var(--color-secondary);
} }
a, a,
.push.news { .push.news {
color: null; color: null;
} }
.ui.header { .ui.header {
color: #a6aab5; color: #a6aab5;
} }
.repo-description { .repo-description {
color: #a6aab5 !important; color: #a6aab5 !important;
} }
a.ui.label { a.ui.label {
/* color: #adbac7 !important; */ /* color: #adbac7 !important; */
border-color: var(--color-secondary) !important; border-color: var(--color-secondary) !important;
} }
.ui.label { .ui.label {
border-color: var(--color-secondary) !important; border-color: var(--color-secondary) !important;
} }
.ui.menu .item { .ui.menu .item {
color: #adbac7; color: #adbac7;
} }
.ui .sha.label { .ui .sha.label {
padding: 6px 10px 6px; padding: 6px 10px 6px;
} }
@ -270,15 +308,11 @@ textarea,
border-color: var(--color-secondary); border-color: var(--color-secondary);
} }
/* right border of "find repository" field */
.ui.action.input:not([class*="left action"]) > input {
border-right-color: var(--color-input-border-hover);
}
/* background color of code display */ /* background color of code display */
.lines-code { .lines-code {
background-color: #22272e; background-color: #22272e;
} }
.code-diff-unified .add-code, .code-diff-unified .add-code,
.code-diff-unified .add-code td, .code-diff-unified .add-code td,
.code-diff-split .add-code .lines-num-new, .code-diff-split .add-code .lines-num-new,
@ -289,6 +323,7 @@ textarea,
.code-diff-split .del-code .add-code.lines-code-new { .code-diff-split .del-code .add-code.lines-code-new {
background: #224035; background: #224035;
} }
.tag-code, .tag-code,
.tag-code td { .tag-code td {
background-color: var(--color-body); background-color: var(--color-body);
@ -311,6 +346,46 @@ textarea,
color: #96d0ff; color: #96d0ff;
} }
.chroma .nb {
color: var(--color-blue);
}
.chroma .nx {
color: var(--color-text);
}
.chroma .nv {
color: #08dddd;
}
.chroma .si {
color: #8ddb8c;
}
.chroma .nt {
color: #50eb75;
}
.chroma .nd {
color: #c4cfcf;
}
.chroma .o {
color: #eb3243;
}
.chroma .nc {
color: #16e9e9;
}
.chroma .nn {
color: #16e9e9;
}
.chroma .s {
color: #8ddb8c;
}
/* border color repo files */ /* border color repo files */
.repository.file.list #repo-files-table td { .repository.file.list #repo-files-table td {
border-bottom: 1px solid #373e47; border-bottom: 1px solid #373e47;
@ -322,7 +397,8 @@ textarea,
} }
.repository.file.list #repo-files-table td a { .repository.file.list #repo-files-table td a {
color: #7f8699 !important; /* color: #7f8699 !important; */
color: var(--color-blue) !important;
} }
/* gpg commit label */ /* gpg commit label */
@ -349,6 +425,7 @@ textarea,
.ui.basic.label:not(.tag):not(.image):not(.ribbon) { .ui.basic.label:not(.tag):not(.image):not(.ribbon) {
color: #adbac7; color: #adbac7;
} }
.repo-buttons .ui.labeled.button.disabled > .label { .repo-buttons .ui.labeled.button.disabled > .label {
color: #adbac7; color: #adbac7;
} }
@ -358,10 +435,12 @@ textarea,
background-color: #22272e; background-color: #22272e;
color: var(--color-text); color: var(--color-text);
} }
.ui.warning.message, .ui.warning.message,
.ui.attached.warning.message { .ui.attached.warning.message {
box-shadow: null; box-shadow: null;
} }
.ui.warning.message, .ui.warning.message,
.ui.attached.warning.message { .ui.attached.warning.message {
box-shadow: 0 0 0 0px #c9ba9b inset, 0 0 #0000; box-shadow: 0 0 0 0px #c9ba9b inset, 0 0 #0000;
@ -369,7 +448,7 @@ textarea,
/* repo svg icons */ /* repo svg icons */
.repository.view.issue .comment-list .timeline-item .badge .svg { .repository.view.issue .comment-list .timeline-item .badge .svg {
fill: white; fill: var(--color-text-light) !important;
} }
/* background emoji reactions */ /* background emoji reactions */
@ -379,11 +458,12 @@ textarea,
.ui.positive.message { .ui.positive.message {
background-color: #22272e; background-color: #22272e;
color: #fff; color: #ffffffe6;
} }
.ui.positive.message, .ui.positive.message,
.ui.attached.positive.message { .ui.attached.positive.message {
box-shadow: 0 0 0 1px #2c662d inset, 0 0 #0000; box-shadow: 0 0 0 1px #347d39 inset, 0 0 #0000;
} }
/* diff color deletion */ /* diff color deletion */
@ -404,6 +484,7 @@ textarea,
.lines-type-marker { .lines-type-marker {
background-color: var(--color-navbar); background-color: var(--color-navbar);
} }
a.blob-excerpt { a.blob-excerpt {
background: var(--color-body); background: var(--color-body);
} }
@ -420,13 +501,14 @@ a.blob-excerpt {
.ui.form .field .dropdown .menu > .item { .ui.form .field .dropdown .menu > .item {
background-color: var(--color-navbar); background-color: var(--color-navbar);
} }
.comment-code-cloud { .comment-code-cloud {
background-color: var(--color-navbar); background-color: var(--color-navbar);
} }
/* remove border of "new file" button */ /* remove border of "new file" button */
.ui.buttons .button:first-child { .ui.buttons .button:first-child {
border-left: 0px solid var(--color-light-border); border-left: 1px solid var(--color-markup-code-block);
} }
/* border color of dropdown svg */ /* border color of dropdown svg */
@ -437,7 +519,11 @@ a.blob-excerpt {
} }
/* hover font color */ /* hover font color */
.ui.secondary.pointing.menu .active.item, .ui.secondary.pointing.menu .active.item:hover, .ui.secondary.pointing.menu .dropdown.item:hover, .ui.secondary.pointing.menu .link.item:hover, .ui.secondary.pointing.menu a.item:hover { .ui.secondary.pointing.menu .active.item,
.ui.secondary.pointing.menu .active.item:hover,
.ui.secondary.pointing.menu .dropdown.item:hover,
.ui.secondary.pointing.menu .link.item:hover,
.ui.secondary.pointing.menu a.item:hover {
color: var(--color-text); color: var(--color-text);
} }
@ -445,18 +531,347 @@ a.blob-excerpt {
.user.profile .ui.card #profile-avatar { .user.profile .ui.card #profile-avatar {
background: var(--color-navbar); background: var(--color-navbar);
} }
.ui.cards>.card>.content, .ui.card>.content {
.ui.cards > .card > .content,
.ui.card > .content {
background: var(--color-navbar); background: var(--color-navbar);
} }
.user.profile .ui.card .extra.content ul li:not(:last-child) { .user.profile .ui.card .extra.content ul li:not(:last-child) {
border-bottom: 1px solid var(--color-secondary); border-bottom: 1px solid var(--color-secondary);
background-color: var(--color-navbar); background-color: var(--color-navbar);
} }
.user.profile .ui.card .extra.content ul li { .user.profile .ui.card .extra.content ul li {
background-color: var(--color-navbar); background-color: var(--color-navbar);
} }
/* right border of profile search bar */ /* right border of profile search bar */
.ui.action.input:not([class*="left action"]) > input { .ui.action.input:not([class*="left action"]) > input {
border-right-color: var(--color-text); border-right-color: var(--color-secondary);
}
.ui.action.input:not([class*="left action"]) > input:focus {
border-right-color: var(--color-secondary);
}
/* font color line numbers */
.lines-num span:after {
color: var(--color-text);
}
/* gpg key signed message */
.repository .ui.attached.isSigned.isVerified.message {
background-color: var(--color-primary);
color: black;
}
.repository .ui.attached.isSigned.isVerified.message .ui.text {
color: var(--color-active);
}
.ui .info.segment.top {
background-color: var(--color-navbar) !important;
}
.repository .ui.attached.isSigned.isVerified.top,
.repository .ui.attached.isSigned.isVerified.message {
border-top: 0px solid var(--color-text);
}
.repository .ui.attached.isSigned.isVerified {
border-left: 0px solid var(--color-text);
border-right: 0px solid var(--color-text);
}
.repository .ui.attached.isSigned.isVerified:last-child,
.repository .ui.attached.isSigned.isVerified.bottom {
border-bottom: 0px solid #a3c293;
}
/* info message banner colors */
.ui.info.message {
background-color: var(--color-navbar);
color: var(--color-text);
}
/* PR timelines colors */
.repository.view.issue .comment-list .timeline-item .badge .svg {
fill: black;
}
.repository.view.issue .comment-list .timeline-item .badge {
background-color: var(--color-navbar);
color: var(--color-text);
width: 30px;
height: 30px;
margin-left: -31px;
}
.repository.view.issue .comment-list .timeline-item .badge.badge-commit {
border-color: var(--color-navbar);
background: var(--color-navbar);
}
.repository.view.issue .comment-list .timeline:before {
background-color: var(--color-secondary);
}
.repository.view.issue .comment-list .timeline-item .badge .svg {
width: 20px;
height: 20px;
padding: 3px;
}
input {
caret-color: var(--color-text);
}
.removed-code {
background: #b70f22;
color: var(--color-text);
}
.added-code {
background: #0d8b2c;
color: var(--color-text);
}
/* review - pending label */
.ui.basic.labels .yellow.label,
.ui.ui.ui.basic.yellow.label {
background: var(--color-project-board-bg);
color: #333 !important;
}
/* green checkmark background when approving PRs */
.bg-green {
background: var(--color-primary) !important;
}
i.green.icon.icon.icon.icon {
color: var(--color-primary);
}
span.green .svg {
color: var(--color-primary);
}
/* highlight color bg for highlighted lines */
.lines-code.active,
.lines-code .active {
border-radius: 6px;
background: #000000 !important;
}
.ui.ui.ui.ui.table tr.active,
.ui.ui.table td.active {
box-shadow: 0 0 #000000de inset;
background: #e0e0e0;
color: --var(--color-text);
}
/* navbar font size */
.ui.secondary.menu .item {
font-size: 13px;
}
#navbar .item {
margin: 0;
padding: 0.5em;
font-size: 14px;
}
.following.bar #navbar {
width: 100vw;
/* default 52px */
min-height: 40px;
padding: 0 0.5rem;
}
::-webkit-scrollbar-thumb {
box-shadow: inset 0 0 0 6px var(--color-navbar);
}
::-webkit-scrollbar-thumb:hover {
box-shadow: inset 0 0 0 6px var(--color-text);
}
.following.bar #navbar .brand {
margin-top: -2px;
}
/* border colors of search fields, e.g. "find repository" on main page */
input:hover,
textarea:hover,
.ui.input input:hover,
.ui.form input:not([type]):hover,
.ui.form select:hover,
.ui.form textarea:hover,
.ui.form input[type="date"]:hover,
.ui.form input[type="datetime-local"]:hover,
.ui.form input[type="email"]:hover,
.ui.form input[type="file"]:hover,
.ui.form input[type="number"]:hover,
.ui.form input[type="password"]:hover,
.ui.form input[type="search"]:hover,
.ui.form input[type="tel"]:hover,
.ui.form input[type="text"]:hover,
.ui.form input[type="time"]:hover,
.ui.form input[type="url"]:hover,
.ui.selection.dropdown:hover,
.ui.checkbox label:hover:before,
.ui.checkbox label:active:before,
.ui.radio.checkbox label:after,
.ui.radio.checkbox input:focus ~ label:before,
.ui.radio.checkbox input:checked ~ label:before {
border-color: var(--color-secondary);
}
a:hover,
a.muted:hover,
.ui.breadcrumb a:hover {
color: var(--color-blue);
}
input:focus,
textarea:focus,
.ui.input input:focus,
.ui.form input:not([type]):focus,
.ui.form select:focus,
.ui.form textarea:focus,
.ui.form input[type="date"]:focus,
.ui.form input[type="datetime-local"]:focus,
.ui.form input[type="email"]:focus,
.ui.form input[type="file"]:focus,
.ui.form input[type="number"]:focus,
.ui.form input[type="password"]:focus,
.ui.form input[type="search"]:focus,
.ui.form input[type="tel"]:focus,
.ui.form input[type="text"]:focus,
.ui.form input[type="time"]:focus,
.ui.form input[type="url"]:focus,
.ui.selection.dropdown:focus,
.ui.checkbox input:focus ~ label:before,
.ui.checkbox input:not([type="radio"]):indeterminate:focus ~ label:before,
.ui.checkbox input:checked:focus ~ label:before,
.ui.radio.checkbox input:focus:checked ~ label:before {
border-color: var(--color-secondary);
}
.repo-icon {
display: none;
}
/* reduce navbar bottom margin */
.ui.ui.ui.container:not(.fluid) {
margin-bottom: -3px;
}
.ui.green.button {
padding: 5px 16px;
line-height: 20px;
}
.ui.green.labels .label,
.ui.ui.ui.green.label {
padding: 5px 16px;
line-height: 20px;
}
.ui.tabular.menu .active.item {
margin-bottom: 2px;
}
/* repository icon for directories */
.repository.file.list #repo-files-table tbody .svg.octicon-file-directory-fill,
.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule {
color: #768390;
}
.ui.secondary.pointing.menu .item > .circular.label {
line-height: 10px;
}
.ui.grey.labels .label,
.ui.ui.ui.grey.label {
line-height: 10px;
}
.ui.primary.label,
.ui.primary.labels .label {
background-color: #768390 !important;
}
// timeline view icon color
.repository.view.issue .comment-list .timeline-item .badge .svg {
fill: #fff !important;
}
/* borders -------------------------------------------------------------------*/
// border width of active item in repo view
.ui.tabular.menu .active.item,
.ui.tabular.menu .active.item:hover {
border-width: initial;
}
// README border
.ui.attached:not(.message) + .ui.attached.segment:not(.top) {
border-width: inherit;
}
.ui.top.attached.header {
border-width: inherit;
}
.following.bar.light {
border-bottom: 0px solid var(--color-secondary);
}
.ui.action.input:not([class*="left action"]) > input {
border-width: inherit;
}
.ui.action.input > .dropdown:last-child,
.ui.action.input > .button:last-child,
.ui.action.input > .buttons:last-child > .button {
border-width: inherit;
}
.ui.action.input:not([class*="left action"])
> .ui.dropdown.selection:not(:focus):not(:hover) {
border-width: inherit;
}
.repository #clone-panel #repo-clone-https,
.repository #clone-panel #repo-clone-ssh {
border-width: inherit;
}
.ui.action.input > .dropdown:not(:first-child),
.ui.action.input > .button:not(:first-child),
.ui.action.input > .buttons:not(:first-child) > .button {
border-width: inherit;
}
.ui.segment,
.ui.segments,
.ui.attached.segment {
border-width: inherit;
}
.ui.table {
border-width: inherit;
}
footer {
border-width: inherit;
}
.page-content .ui.button {
border-width: inherit;
}
.repo-buttons .ui.labeled.button > .label {
border-width: inherit;
} }

View File

@ -6,6 +6,7 @@
--color-markup-code-block: #f6f8fa; --color-markup-code-block: #f6f8fa;
--color-hover: none; --color-hover: none;
--color-purple: #8250df; --color-purple: #8250df;
--color-green: #1a7f37;
} }
.ui.label { .ui.label {
padding: 0.3em 0.5em; padding: 0.3em 0.5em;
@ -36,20 +37,21 @@
} }
.ui.green.buttons .button, .ui.green.buttons .button,
.ui.green.button { .ui.green.button {
background-color: #2da44e; background-color: #1a7f37;
color: #fff !important; color: #fff !important;
} }
.ui.green.labels .label, .ui.green.labels .label,
.ui.ui.ui.green.label { .ui.ui.ui.green.label {
background-color: #2da44e; background-color: #1a7f37;
color: #fff !important; color: #fff !important;
} }
.ui.label { .ui.label {
padding: 0.5em 0.5em; padding: 0.5em 0.5em;
} }
/* "edit" and "reopen" button font color */
.ui.basic.green.buttons .button, .ui.basic.green.buttons .button,
.ui.basic.green.button { .ui.basic.green.button {
color: #2da44e; color: #24292f;
} }
.feeds .list ul li.private { .feeds .list ul li.private {
background: none; background: none;
@ -58,10 +60,6 @@
.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule { .repository.file.list #repo-files-table tbody .svg.octicon-file-submodule {
color: #54aeff; color: #54aeff;
} }
a,
.ui.breadcrumb a {
color: var(--color-text) !important;
}
.repo-title a { .repo-title a {
color: var(--color-primary) !important; color: var(--color-primary) !important;
} }
@ -134,6 +132,7 @@ a.muted:hover,
.ui.basic.red.buttons .button, .ui.basic.red.buttons .button,
.ui.basic.red.button { .ui.basic.red.button {
color: #cf222e !important; color: #cf222e !important;
font-weight: 500;
} }
* { * {
scrollbar-width: thin; scrollbar-width: thin;
@ -165,26 +164,233 @@ a.ui.label {
} }
.ui.basic.green.buttons .button, .ui.basic.green.buttons .button,
.ui.basic.green.button { .ui.basic.green.button {
color: #2da44e !important; color: #1a7f37 !important;
} }
.ui.basic.labels .label, .ui.basic.labels .label,
.ui.basic.label { .ui.basic.label {
color: var(--color-text) !important; color: var(--color-text) !important;
} }
.repository #commits-table td.sha .sha.label.isSigned.isVerified .detail.icon, .repository #repo-files-table .sha.label.isSigned.isVerified .detail.icon, .repository #rev-list .sha.label.isSigned.isVerified .detail.icon, .repository .timeline-item.commits-list .singular-commit .sha.label.isSigned.isVerified .detail.icon { .repository #commits-table td.sha .sha.label.isSigned.isVerified .detail.icon,
border-left: 1px solid #2da44e; .repository #repo-files-table .sha.label.isSigned.isVerified .detail.icon,
color: #2da44e; .repository #rev-list .sha.label.isSigned.isVerified .detail.icon,
.repository
.timeline-item.commits-list
.singular-commit
.sha.label.isSigned.isVerified
.detail.icon {
border-left: 1px solid #1a7f37;
color: #1a7f37;
} }
.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isVerified { .repository.view.issue
border: 1px solid #2da44e; .comment-list
.timeline-item.commits-list
.singular-commit
.shabox
.sha.label.isSigned.isVerified {
border: 1px solid #1a7f37;
} }
.ui.labeled.icon.buttons>.button>.icon, .ui.labeled.icon.button>.icon { .ui.labeled.icon.buttons > .button > .icon,
.ui.labeled.icon.button > .icon {
border-right: 1px solid var(--color-secondary); border-right: 1px solid var(--color-secondary);
} }
.ui.buttons:not(.basic):not(.inverted) > .button:not(.basic):not(.inverted) { .ui.buttons:not(.basic):not(.inverted) > .button:not(.basic):not(.inverted) {
border-left: 1px solid var(--color-secondary); border-left: 1px solid var(--color-secondary);
} }
/* GPG verified msg banner */
.repository .ui.attached.isSigned.isVerified.message .ui.text {
color: black;
}
.repository .ui.attached.isSigned.isVerified:last-child,
.repository .ui.attached.isSigned.isVerified.bottom {
border-bottom: 1px solid #21ba45;
}
.repository .ui.attached.isSigned.isVerified.top,
.repository .ui.attached.isSigned.isVerified.message {
border-top: 1px solid var(--color-secondary);
}
.repository .ui.attached.isSigned.isVerified {
border-left: 1px solid var(--color-secondary);
border-right: 1px solid var(--color-secondary);
}
.repository .ui.attached.isSigned.isVerified.message {
box-shadow: none;
background-color: #21ba45;
color: black;
}
/* bg color of commit info box */
.ui .info.segment.top {
background-color: var(--color-navbar) !important;
}
.repo-icon {
display: none;
}
/* navbar font size */
.ui.secondary.menu .item {
font-size: 13px;
}
#navbar .item {
margin: 0;
padding: 0.5em;
font-size: 14px;
color: black !important;
}
.following.bar #navbar {
width: 100vw;
/* default 52px */
min-height: 40px;
padding: 0 0.5rem;
}
::-webkit-scrollbar-thumb {
box-shadow: inset 0 0 0 6px var(--color-navbar);
}
::-webkit-scrollbar-thumb:hover {
box-shadow: inset 0 0 0 6px var(--color-text);
}
.following.bar #navbar .brand {
margin-top: -2px;
}
/* reduce navbar bottom margin */
.ui.ui.ui.container:not(.fluid) {
margin-bottom: -3px;
}
/* Link color for repo breadcrumbs */
a,
.ui.breadcrumb a {
color: var(--color-primary) !important;
}
/* color for repo menu bar to overwrite link color */
.ui.tabular.menu .item {
color: var(--color-text) !important;
}
.repository .ui.segment.sub-menu .list .item a {
color: var(--color-text) !important;
}
.ui .menu:not(.vertical) .item > .button.compact {
color: var(--color-text) !important;
}
.ui.labeled.button.disabled > .button,
.ui.basic.buttons .button,
.ui.basic.button {
color: var(--color-text-light) !important;
}
#manage_topic {
font-size: 12px;
color: var(--color-text) !important;
}
.ui.menu .item {
color: var(--color-text) !important;
}
/* font weight of "danger zone" buttons in "delete repo" */
.ui.label {
background: rgba(175, 184, 193, 0.2);
}
.comment-header .actions a {
color: black !important;
}
.ui.dropdown > .text {
color: black !important;
}
.repository.compare.pull .choose.branch .svg {
color: black !important;
}
a.muted {
color: black !important;
}
.repository.file.list #repo-files-table tbody .svg.octicon-file-directory-fill,
.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule {
color: #54aeff !important;
}
.repository.file.list #repo-files-table td a {
color: black !important;
}
.ui.negative.buttons .button,
.ui.negative.button {
background-color: none;
color: #db2828;
}
.ui.green.button {
padding: 5px 16px;
line-height: 20px;
}
.ui.green.labels .label,
.ui.ui.ui.green.label {
padding: 5px 16px;
line-height: 20px;
}
.ui.tabular.menu .active.item {
margin-bottom: 2px;
}
.ui.menu .item > .label:not(.floating) {
padding: 0 6px;
line-height: 18px;
}
.ui.secondary.pointing.menu .item > .circular.label {
line-height: 10px;
}
.ui.grey.labels .label,
.ui.ui.ui.grey.label {
line-height: 10px;
}
/* yes/no dialog buttons for repo archival */
.ui.basic.inverted.buttons .button,
.ui.basic.inverted.button {
color: #f9fafb !important;
}
// border color of SSH/https cloning buttons (non-focused)
.ui.basic.blue.button,
.ui.basic.blue.buttons .button,
.ui.basic.primary.button,
.ui.basic.primary.buttons .button {
box-shadow: inset 0 0 0 1px transparent !important;
}
// same for hover
ui.basic.blue.button:hover,
.ui.basic.blue.buttons .button:hover,
.ui.basic.primary.button:hover,
.ui.basic.primary.buttons .button:hover {
box-shadow: inset 0 0 0 0px transparent !important;
}
// background color of branch name in PRs
.issue.list .branches .branch {
background-color: #afb8c133;
border-radius: 6px;
}