update theme
This commit is contained in:
parent
830a2b8e44
commit
58ecd59719
53
gitea-github-theme/.gitignore
vendored
Normal file
53
gitea-github-theme/.gitignore
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
|
||||
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos
|
||||
|
||||
### macOS ###
|
||||
# General
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Icon must end with two \r
|
||||
Icon
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.com.apple.timemachine.donotpresent
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
### VisualStudioCode ###
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
### VisualStudioCode Patch ###
|
||||
# Ignore all local history of files
|
||||
.history
|
||||
.ionide
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos
|
||||
|
||||
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
|
||||
|
21
gitea-github-theme/LICENSE
Normal file
21
gitea-github-theme/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2021 Patrick Schratz
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
29
gitea-github-theme/README.md
Normal file
29
gitea-github-theme/README.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# gitea-github-theme
|
||||
Opinionated GitHub-based light and dark themes for Gitea
|
||||
|
||||
Created and tested with Gitea v1.15.
|
||||
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.
|
||||
## 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
|
||||
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`.
|
||||
2. Add `github` to the comma-separated list in the setting `THEMES` in `app.ini`
|
||||
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`
|
||||
|
||||
## Changes to default Gitea theme
|
||||
|
||||
- Aligned primary green, grey, red and blue colors with GitHub
|
||||
- Aligned `border-radius` with GitHub
|
||||
- Related theme by removing a lot of hover colors and dominant button background-colors
|
||||
- Aligned markup background to GitHub's value
|
||||
|
||||
## Screenshots
|
||||
|
||||
| | |
|
||||
| :----------------------------: | :----------------------------: |
|
||||
| ![](figs/screenshot1.png) | ![](figs/screenshot2.png) |
|
||||
| ![](figs/screenshot-dark1.png) | ![](figs/screenshot-dark2.png) |
|
BIN
gitea-github-theme/figs/screenshot-dark1.png
Normal file
BIN
gitea-github-theme/figs/screenshot-dark1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 230 KiB |
BIN
gitea-github-theme/figs/screenshot-dark2.png
Normal file
BIN
gitea-github-theme/figs/screenshot-dark2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 116 KiB |
BIN
gitea-github-theme/figs/screenshot1.png
Normal file
BIN
gitea-github-theme/figs/screenshot1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
BIN
gitea-github-theme/figs/screenshot2.png
Normal file
BIN
gitea-github-theme/figs/screenshot2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 93 KiB |
602
gitea-github-theme/theme-github-dark.css
Executable file
602
gitea-github-theme/theme-github-dark.css
Executable file
|
@ -0,0 +1,602 @@
|
|||
:root {
|
||||
--color-primary: #347d39;
|
||||
--border-radius: 6px;
|
||||
--color-body: #373e47;
|
||||
--color-navbar: #22272e;
|
||||
--color-footer: #22272e;
|
||||
--color-text-light: #a6aab5;
|
||||
--color-text-light-2: #adbac7;
|
||||
--color-text: #bbc0ca;
|
||||
--color-box-body: #22272e;
|
||||
--color-markup-code-block: #636e7b66;
|
||||
--color-light: #22272e;
|
||||
--color-button: #22272e;
|
||||
--color-input-background: #22272e;
|
||||
--color-input-text: #adbac7;
|
||||
--color-box-header: #22272e;
|
||||
--color-active: #22272e;
|
||||
--color-menu: #22272e;
|
||||
--color-secondary: #454a57;
|
||||
--color-caret: var(--color-text);
|
||||
}
|
||||
|
||||
.ui.list .list > .item > .content,
|
||||
.ui.list > .item > .content {
|
||||
color: unset;
|
||||
}
|
||||
|
||||
.ui.list .list > .item .description,
|
||||
.ui.list > .item .description {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.ui.repository.list,
|
||||
.ui.user.list {
|
||||
background: var(--color-box-body);
|
||||
padding: 1em;
|
||||
border-radius: 0.75em;
|
||||
}
|
||||
|
||||
.ui.header .sub.header {
|
||||
color: #636e7b;
|
||||
}
|
||||
|
||||
.ui .error.header {
|
||||
border-color: var(--color-red) !important;
|
||||
background-color: var(--color-red) !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.ui.modal > .header {
|
||||
background: var(--color-secondary);
|
||||
color: #dbdbdb;
|
||||
}
|
||||
|
||||
.ui.modal > .actions {
|
||||
background: var(--color-secondary);
|
||||
border-color: var(--color-secondary);
|
||||
}
|
||||
|
||||
.ui.modal > .content {
|
||||
background: #383c4a;
|
||||
}
|
||||
|
||||
.ui.green.buttons .button,
|
||||
.ui.green.button {
|
||||
background-color: #347d39;
|
||||
color: #fff !important;
|
||||
}
|
||||
.repository.file.list #repo-files-table tbody .svg.octicon-file-directory,
|
||||
.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule {
|
||||
color: #768390;
|
||||
}
|
||||
a,
|
||||
.ui.breadcrumb a {
|
||||
/* color: var(--color-text); */
|
||||
color: #539bf5;
|
||||
}
|
||||
.repo-title a {
|
||||
color: #539bf5 !important;
|
||||
}
|
||||
|
||||
.ui.table > thead > tr > th {
|
||||
background: #636e7b1a;
|
||||
color: #dbdbdb !important;
|
||||
}
|
||||
.repository.file.list #repo-files-table tr {
|
||||
background: #22272e;
|
||||
}
|
||||
.repo-icon {
|
||||
display: inline-block;
|
||||
transform: scale(0.75);
|
||||
margin-right: -0.05rem !important;
|
||||
}
|
||||
|
||||
.repository.file.list #file-buttons .ui.button {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
.ui.basic.green.button,
|
||||
.ui.basic.green.buttons .button,
|
||||
.ui.basic.primary.button,
|
||||
.ui.basic.primary.buttons .button {
|
||||
background-color: #22272e !important;
|
||||
box-shadow: inset 0 0 0 1px rgba(34, 36, 38, 0.15) !important;
|
||||
color: #dbdbdb !important;
|
||||
}
|
||||
.ui.basic.green.button:focus,
|
||||
.ui.basic.green.buttons .button:focus,
|
||||
.ui.basic.primary.button:focus,
|
||||
.ui.basic.primary.buttons .button:focus {
|
||||
box-shadow: inset 0 0 0 0px #808080 !important;
|
||||
}
|
||||
.ui.basic.green.button:hover,
|
||||
.ui.basic.green.buttons .button:hover,
|
||||
.ui.basic.primary.button:hover,
|
||||
.ui.basic.primary.buttons .button:hover {
|
||||
background-color: #22272e !important;
|
||||
}
|
||||
.ui.basic.green.button:hover,
|
||||
.ui.basic.green.buttons .button:hover,
|
||||
.ui.basic.primary.button:hover,
|
||||
.ui.basic.primary.buttons .button:hover {
|
||||
box-shadow: inset 0 0 0 0px #808080 !important;
|
||||
}
|
||||
.issue.list {
|
||||
list-style: none;
|
||||
margin-top: 1rem;
|
||||
background-color: #22272e;
|
||||
border-radius: 6px;
|
||||
padding: 3px 10px 3px 10px;
|
||||
}
|
||||
.ui.menu .item {
|
||||
background-color: #22272e;
|
||||
}
|
||||
.ui.horizontal.segments > .segment {
|
||||
background-color: #22272e;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.ui.attached.header {
|
||||
border-radius: 6px;
|
||||
}
|
||||
.repository.file.list .repo-description {
|
||||
color: #adbac7;
|
||||
}
|
||||
.commit-summary a.default-link {
|
||||
color: #adbac7 !important;
|
||||
}
|
||||
.markup h1,
|
||||
.markup h2,
|
||||
.markup h3,
|
||||
.markup h4,
|
||||
.markup h5,
|
||||
.markup h6 {
|
||||
color: #adbac7;
|
||||
}
|
||||
.markup code,
|
||||
.markup tt {
|
||||
color: #adbac7;
|
||||
}
|
||||
.markup p,
|
||||
.markup blockquote,
|
||||
.markup details,
|
||||
.markup ul,
|
||||
.markup ol,
|
||||
.markup dl,
|
||||
.markup table,
|
||||
.markup pre {
|
||||
color: #adbac7;
|
||||
}
|
||||
.repo-list-link {
|
||||
color: #539bf5 !important;
|
||||
}
|
||||
.ui.menu.two.item .item {
|
||||
border: 1px solid var(--color-secondary);
|
||||
}
|
||||
a,
|
||||
.push.news {
|
||||
color: null;
|
||||
}
|
||||
.ui.header {
|
||||
color: #a6aab5;
|
||||
}
|
||||
.repo-description {
|
||||
color: #a6aab5 !important;
|
||||
}
|
||||
a.ui.label {
|
||||
/* color: #adbac7 !important; */
|
||||
border-color: var(--color-secondary) !important;
|
||||
}
|
||||
.ui.label {
|
||||
border-color: var(--color-secondary) !important;
|
||||
}
|
||||
.ui.menu .item {
|
||||
color: #adbac7;
|
||||
}
|
||||
.ui .sha.label {
|
||||
padding: 6px 10px 6px;
|
||||
}
|
||||
|
||||
/* repo list dashboard */
|
||||
.feeds .list ul li.private {
|
||||
background-color: #22272e;
|
||||
}
|
||||
|
||||
/* ssh and search repository fields */
|
||||
input,
|
||||
textarea,
|
||||
.ui.input > input,
|
||||
.ui.form input:not([type]),
|
||||
.ui.form select,
|
||||
.ui.form textarea,
|
||||
.ui.form input[type="date"],
|
||||
.ui.form input[type="datetime-local"],
|
||||
.ui.form input[type="email"],
|
||||
.ui.form input[type="file"],
|
||||
.ui.form input[type="number"],
|
||||
.ui.form input[type="password"],
|
||||
.ui.form input[type="search"],
|
||||
.ui.form input[type="tel"],
|
||||
.ui.form input[type="text"],
|
||||
.ui.form input[type="time"],
|
||||
.ui.form input[type="url"],
|
||||
.ui.selection.dropdown,
|
||||
.ui.checkbox label:before,
|
||||
.ui.checkbox input:checked ~ label:before,
|
||||
.ui.checkbox input:not([type="radio"]):indeterminate ~ label:before {
|
||||
border-color: var(--color-input-background);
|
||||
}
|
||||
|
||||
/* hover repository rows */
|
||||
.repository.file.list #repo-files-table tr:hover {
|
||||
background-color: var(--color-hover);
|
||||
}
|
||||
|
||||
/* due date boxes */
|
||||
.repository .metas #deadlineForm input {
|
||||
border-color: var(--color-secondary);
|
||||
}
|
||||
|
||||
/* border color dependencies block in issues */
|
||||
#new-dependency-drop-list.ui.selection.dropdown {
|
||||
border-color: var(--color-secondary);
|
||||
}
|
||||
|
||||
.page-content .ui.button {
|
||||
border-color: var(--color-secondary);
|
||||
}
|
||||
|
||||
/* border color form fields settings page */
|
||||
input,
|
||||
textarea,
|
||||
.ui.input > input,
|
||||
.ui.form input:not([type]),
|
||||
.ui.form select,
|
||||
.ui.form textarea,
|
||||
.ui.form input[type="date"],
|
||||
.ui.form input[type="datetime-local"],
|
||||
.ui.form input[type="email"],
|
||||
.ui.form input[type="file"],
|
||||
.ui.form input[type="number"],
|
||||
.ui.form input[type="password"],
|
||||
.ui.form input[type="search"],
|
||||
.ui.form input[type="tel"],
|
||||
.ui.form input[type="text"],
|
||||
.ui.form input[type="time"],
|
||||
.ui.form input[type="url"],
|
||||
.ui.selection.dropdown,
|
||||
.ui.checkbox label:before,
|
||||
.ui.checkbox input:checked ~ label:before,
|
||||
.ui.checkbox input:not([type="radio"]):indeterminate ~ label:before {
|
||||
border-color: var(--color-secondary);
|
||||
}
|
||||
|
||||
/* right border of "find repository" field */
|
||||
.ui.action.input:not([class*="left action"]) > input {
|
||||
border-right-color: var(--color-light);
|
||||
}
|
||||
|
||||
/* background color of code display */
|
||||
.lines-code {
|
||||
background-color: #22272e;
|
||||
}
|
||||
.code-diff-unified .add-code,
|
||||
.code-diff-unified .add-code td,
|
||||
.code-diff-split .add-code .lines-num-new,
|
||||
.code-diff-split .add-code .lines-type-marker-new,
|
||||
.code-diff-split .add-code .lines-code-new,
|
||||
.code-diff-split .del-code .add-code.lines-num-new,
|
||||
.code-diff-split .del-code .add-code.lines-type-marker-new,
|
||||
.code-diff-split .del-code .add-code.lines-code-new {
|
||||
background: #224035;
|
||||
}
|
||||
.tag-code,
|
||||
.tag-code td {
|
||||
background-color: var(--color-body);
|
||||
}
|
||||
|
||||
/* green code color dark theme */
|
||||
.chroma .s2 {
|
||||
color: #8ddb8c;
|
||||
}
|
||||
|
||||
.chroma .k {
|
||||
color: #f47067;
|
||||
}
|
||||
|
||||
.chroma .m {
|
||||
color: #6cb6ff;
|
||||
}
|
||||
|
||||
.chroma .nf {
|
||||
color: #96d0ff;
|
||||
}
|
||||
|
||||
.chroma .nb {
|
||||
color: #539bf5;
|
||||
}
|
||||
.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 */
|
||||
.repository.file.list #repo-files-table td {
|
||||
border-bottom: 1px solid #373e47;
|
||||
}
|
||||
|
||||
/* text color repo files */
|
||||
.repository.file.list #repo-files-table td {
|
||||
color: #7f8699;
|
||||
}
|
||||
|
||||
.repository.file.list #repo-files-table td a {
|
||||
color: #7f8699 !important;
|
||||
}
|
||||
|
||||
/* gpg commit label */
|
||||
.repository #commits-table td.sha .sha.label.isSigned.isVerified,
|
||||
.repository #repo-files-table .sha.label.isSigned.isVerified,
|
||||
.repository #rev-list .sha.label.isSigned.isVerified,
|
||||
.repository
|
||||
.timeline-item.commits-list
|
||||
.singular-commit
|
||||
.sha.label.isSigned.isVerified {
|
||||
border: 1px solid #21ba45 !important;
|
||||
background: transparent;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
/* color of active tabular item, e.g. in PR view (conversations, commits, files changed) */
|
||||
.ui.tabular.menu .active.item,
|
||||
.ui.tabular.menu .active.item:hover {
|
||||
background: var(--color-navbar);
|
||||
}
|
||||
|
||||
/* repo watch and fork counters */
|
||||
.ui.basic.labels:not(.tag):not(.image):not(.ribbon) .label,
|
||||
.ui.basic.label:not(.tag):not(.image):not(.ribbon) {
|
||||
color: #adbac7;
|
||||
}
|
||||
.repo-buttons .ui.labeled.button.disabled > .label {
|
||||
color: #adbac7;
|
||||
}
|
||||
|
||||
/* border color of warning message */
|
||||
.ui.warning.message {
|
||||
background-color: #22272e;
|
||||
color: var(--color-text);
|
||||
}
|
||||
.ui.warning.message,
|
||||
.ui.attached.warning.message {
|
||||
box-shadow: null;
|
||||
}
|
||||
.ui.warning.message,
|
||||
.ui.attached.warning.message {
|
||||
box-shadow: 0 0 0 0px #c9ba9b inset, 0 0 #0000;
|
||||
}
|
||||
|
||||
/* repo svg icons */
|
||||
.repository.view.issue .comment-list .timeline-item .badge .svg {
|
||||
fill: var(--color-text-light)!important;
|
||||
}
|
||||
|
||||
/* background emoji reactions */
|
||||
.repository .segment.reactions .ui.label.basic.blue {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.ui.positive.message {
|
||||
background-color: #22272e;
|
||||
color: #fff;
|
||||
}
|
||||
.ui.positive.message,
|
||||
.ui.attached.positive.message {
|
||||
box-shadow: 0 0 0 1px #2c662d inset, 0 0 #0000;
|
||||
}
|
||||
|
||||
/* diff color deletion */
|
||||
.code-diff-unified .del-code,
|
||||
.code-diff-unified .del-code td,
|
||||
.code-diff-split .del-code .lines-num-old,
|
||||
.code-diff-split .del-code .lines-type-marker-old,
|
||||
.code-diff-split .del-code .lines-code-old {
|
||||
background: #7a341e;
|
||||
}
|
||||
|
||||
/* diff color neutral */
|
||||
.lines-num,
|
||||
.lines-code {
|
||||
background-color: var(--color-navbar);
|
||||
}
|
||||
|
||||
.lines-type-marker {
|
||||
background-color: var(--color-navbar);
|
||||
}
|
||||
a.blob-excerpt {
|
||||
background: var(--color-body);
|
||||
}
|
||||
|
||||
/* PR open label */
|
||||
.ui.green.labels .label,
|
||||
.ui.ui.ui.green.label {
|
||||
background-color: #347d39;
|
||||
}
|
||||
|
||||
/* bg color of PR comment form */
|
||||
.ui.form,
|
||||
.ui.form .field .dropdown,
|
||||
.ui.form .field .dropdown .menu > .item {
|
||||
background-color: var(--color-navbar);
|
||||
}
|
||||
.comment-code-cloud {
|
||||
background-color: var(--color-navbar);
|
||||
}
|
||||
|
||||
/* remove border of "new file" button */
|
||||
.ui.buttons .button:first-child {
|
||||
border-left: 1px solid var(--color-markup-code-block);
|
||||
}
|
||||
|
||||
/* border color of dropdown svg */
|
||||
.ui.form,
|
||||
.ui.form .field .dropdown,
|
||||
.ui.form .field .dropdown .menu > .item {
|
||||
background-color: var(--color-border);
|
||||
}
|
||||
|
||||
/* 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 {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
/* user avatar background */
|
||||
.user.profile .ui.card #profile-avatar {
|
||||
background: var(--color-navbar);
|
||||
}
|
||||
.ui.cards > .card > .content,
|
||||
.ui.card > .content {
|
||||
background: var(--color-navbar);
|
||||
}
|
||||
.user.profile .ui.card .extra.content ul li:not(:last-child) {
|
||||
border-bottom: 1px solid var(--color-secondary);
|
||||
background-color: var(--color-navbar);
|
||||
}
|
||||
.user.profile .ui.card .extra.content ul li {
|
||||
background-color: var(--color-navbar);
|
||||
}
|
||||
|
||||
/* right border of profile search bar */
|
||||
.ui.action.input:not([class*="left action"]) > input {
|
||||
border-right-color: var(--color-text);
|
||||
}
|
||||
|
||||
/* 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);
|
||||
}
|
216
gitea-github-theme/theme-github.css
Normal file
216
gitea-github-theme/theme-github.css
Normal file
|
@ -0,0 +1,216 @@
|
|||
:root {
|
||||
--border-radius: 6px;
|
||||
--color-primary: #0969da;
|
||||
--color-navbar: #f6f8fa;
|
||||
--color-active: #f6f8fa;
|
||||
--color-markup-code-block: #f6f8fa;
|
||||
--color-hover: none;
|
||||
--color-purple: #8250df;
|
||||
}
|
||||
.ui.label {
|
||||
padding: 0.3em 0.5em;
|
||||
background: var(--color-light);
|
||||
color: var(--color-text-light);
|
||||
border-radius: 6px;
|
||||
}
|
||||
.ui.blue.label,
|
||||
.ui.blue.labels .label,
|
||||
.ui.primary.label,
|
||||
.ui.primary.labels .label {
|
||||
border-color: var(--color-light) !important;
|
||||
background-color: #afb8c133 !important;
|
||||
border-radius: 6px;
|
||||
color: #24292f !important;
|
||||
}
|
||||
.ui.blue.button,
|
||||
.ui.blue.buttons .button,
|
||||
.ui.primary.button,
|
||||
.ui.primary.buttons .button {
|
||||
background-color: #f6f8fa !important;
|
||||
color: #24292f !important;
|
||||
}
|
||||
.repo-icon {
|
||||
display: inline-block;
|
||||
transform: scale(0.75);
|
||||
margin-right: -0.05rem !important;
|
||||
}
|
||||
.ui.green.buttons .button,
|
||||
.ui.green.button {
|
||||
background-color: #2da44e;
|
||||
color: #fff !important;
|
||||
}
|
||||
.ui.green.labels .label,
|
||||
.ui.ui.ui.green.label {
|
||||
background-color: #2da44e;
|
||||
color: #fff !important;
|
||||
}
|
||||
.ui.label {
|
||||
padding: 0.5em 0.5em;
|
||||
}
|
||||
/* "edit" and "reopen" button font color */
|
||||
.ui.basic.green.buttons .button,
|
||||
.ui.basic.green.button {
|
||||
color: #24292f;
|
||||
}
|
||||
.feeds .list ul li.private {
|
||||
background: none;
|
||||
}
|
||||
.repository.file.list #repo-files-table tbody .svg.octicon-file-directory,
|
||||
.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule {
|
||||
color: #54aeff;
|
||||
}
|
||||
a,
|
||||
.ui.breadcrumb a {
|
||||
color: var(--color-text) !important;
|
||||
}
|
||||
.repo-title a {
|
||||
color: var(--color-primary) !important;
|
||||
}
|
||||
.ui.basic.blue.button,
|
||||
.ui.basic.blue.buttons .button,
|
||||
.ui.basic.primary.button,
|
||||
.ui.basic.primary.buttons .button {
|
||||
background-color: #fff !important;
|
||||
box-shadow: inset 0 0 0 1px rgba(34, 36, 38, 0.15) !important;
|
||||
color: var(--color-text) !important;
|
||||
}
|
||||
.ui.basic.blue.button:focus,
|
||||
.ui.basic.blue.buttons .button:focus,
|
||||
.ui.basic.primary.button:focus,
|
||||
.ui.basic.primary.buttons .button:focus {
|
||||
box-shadow: inset 0 0 0 0px #808080 !important;
|
||||
}
|
||||
.ui.basic.blue.button:hover,
|
||||
.ui.basic.blue.buttons .button:hover,
|
||||
.ui.basic.primary.button:hover,
|
||||
.ui.basic.primary.buttons .button:hover {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
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 #808080 !important;
|
||||
}
|
||||
a:hover,
|
||||
a.muted:hover,
|
||||
.ui.breadcrumb a:hover {
|
||||
color: none;
|
||||
}
|
||||
.ui.tabular.menu .item:hover {
|
||||
color: none;
|
||||
}
|
||||
.ui.basic.labels .label,
|
||||
.ui.basic.label {
|
||||
background-color: #fff;
|
||||
}
|
||||
.ui.labeled.button.disabled > .button,
|
||||
.ui.basic.buttons .button,
|
||||
.ui.basic.button {
|
||||
background-color: #f6f8fa;
|
||||
}
|
||||
.ui.blue.button:hover,
|
||||
.ui.blue.buttons .button:hover,
|
||||
.ui.primary.button:hover,
|
||||
.ui.primary.buttons .button:hover {
|
||||
background-color: var(--color-hover) !important;
|
||||
}
|
||||
.repository .ui.segment.sub-menu .list .item a:hover {
|
||||
color: var(--color-text) !important;
|
||||
}
|
||||
.repo-buttons .ui.labeled.button > .label:hover {
|
||||
color: var(--color-text) !important;
|
||||
}
|
||||
.repository.file.list #repo-files-table tr:hover {
|
||||
background-color: #f6f8fa !important;
|
||||
}
|
||||
.ui .error.header {
|
||||
background-color: #cf222e !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.ui.red.buttons .button,
|
||||
.ui.red.button {
|
||||
color: #fff !important;
|
||||
}
|
||||
.ui.basic.red.buttons .button,
|
||||
.ui.basic.red.button {
|
||||
color: #cf222e !important;
|
||||
}
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #f6f8fa transparent !important;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
box-shadow: inset 0 0 0 6px #808080 !important;
|
||||
}
|
||||
.ui.purple.labels .label,
|
||||
.ui.ui.ui.purple.label {
|
||||
background-color: #8250df !important;
|
||||
}
|
||||
.repository #clone-panel input {
|
||||
background-color: #f6f8fa;
|
||||
}
|
||||
.ui.basic.green.buttons .button,
|
||||
.ui.basic.green.button {
|
||||
color: var(--color-text) !important;
|
||||
}
|
||||
ul.repo-owner-name-list {
|
||||
font-size: 13px;
|
||||
}
|
||||
a.ui.label {
|
||||
color: #fff !important;
|
||||
}
|
||||
.ui .sha.label {
|
||||
color: var(--color-text) !important;
|
||||
padding: 6px 10px 6px;
|
||||
}
|
||||
.ui.basic.green.buttons .button,
|
||||
.ui.basic.green.button {
|
||||
color: #2da44e !important;
|
||||
}
|
||||
.ui.basic.labels .label,
|
||||
.ui.basic.label {
|
||||
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 {
|
||||
border-left: 1px solid #2da44e;
|
||||
color: #2da44e;
|
||||
}
|
||||
|
||||
.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isVerified {
|
||||
border: 1px solid #2da44e;
|
||||
}
|
||||
|
||||
.ui.labeled.icon.buttons>.button>.icon, .ui.labeled.icon.button>.icon {
|
||||
border-right: 1px solid var(--color-secondary);
|
||||
}
|
||||
|
||||
.ui.buttons:not(.basic):not(.inverted)>.button:not(.basic):not(.inverted) {
|
||||
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;
|
||||
}
|
40
main.js
40
main.js
|
@ -1,41 +1 @@
|
|||
window.addEventListener('load', function() {
|
||||
try {
|
||||
var inputs = document.querySelectorAll('input[type="text"], input[autofocus], input[placeholder]');
|
||||
var inputsLength = inputs.length;
|
||||
|
||||
for (var u = 0; u < inputsLength; u++) {
|
||||
inputs[u].blur();
|
||||
}
|
||||
|
||||
/*var profile = document.querySelector('.profile');
|
||||
|
||||
if (profile) {
|
||||
var currentTab = profile.querySelector('.menu a.item.active');
|
||||
|
||||
if (currentTab && currentTab.getAttribute('href').indexOf('tab=activity') !== -1) {
|
||||
var feeds = profile.querySelector('.feeds');
|
||||
var news = profile.querySelector('.feeds > .news');
|
||||
|
||||
if (feeds && news) {
|
||||
var iframe = document.createElement('iframe');
|
||||
iframe.setAttribute('class', 'gitnet-activity-iframe');
|
||||
iframe.setAttribute('src', 'https://git.deblan.org/index2.php?username=' + document.querySelector('meta[property="og:title"]').getAttribute('content'));
|
||||
iframe.setAttribute('frameborder', '0');
|
||||
|
||||
feeds.insertBefore(iframe, news);
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
var stylusInterval = window.setInterval(function() {
|
||||
var stylus = document.querySelector('style.stylus');
|
||||
|
||||
if (stylus && !stylus.getAttribute('data-clean')) {
|
||||
stylus.innerHTML = '';
|
||||
stylus.setAttribute('data-clean', 1);
|
||||
window.clearInterval(stylusInterval);
|
||||
}
|
||||
}, 100);
|
||||
} catch (e) {}
|
||||
});
|
||||
|
|
70
old.theme.css
Normal file
70
old.theme.css
Normal file
|
@ -0,0 +1,70 @@
|
|||
.full > .ui.top.menu {
|
||||
color: #fff;
|
||||
background: #1e2430;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu i, .full > .ui.top.menu.sr-mobile-only, .full > .ui.top.menu .mobile-only {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu .dropdown .item i {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu.main a, .full > .ui.top.menu.main .text * {
|
||||
color: #fff;
|
||||
filled: #fff;
|
||||
}
|
||||
|
||||
.ui.top.new-menu a.item.active, .ui.top.new-menu a.item:hover {
|
||||
color: #333 !important;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.ui.top.tabular a.item.active, .ui.top.tabular a.item:hover {
|
||||
color: #333 !important;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu.main #navbar > a.item.active, .full > .ui.top.menu.main #navbar > a.item:hover {
|
||||
color: #fff !important;
|
||||
background: #505058;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu.main a.item.active, .full > .ui.top.menu.main a.item:hover {
|
||||
color: #333 !important;
|
||||
background: #505058;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
.header-wrapper .tabs .item.active {
|
||||
border-bottom: 1px solid #D4D4D5;
|
||||
border-radius: .28571429rem !important;
|
||||
}
|
||||
|
||||
.gitnet-activity-iframe {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.gitnet-activity-iframe {
|
||||
border: 0;
|
||||
width: 100%;
|
||||
height: 110px;
|
||||
}
|
||||
|
||||
.user.profile > .ui > .ui > .ui > .ui.card {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.user.profile > .ui > .ui > .ui > .ui.card > .content.wrap {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
#profile-avatar, .user.profile > .ui > .ui > .ui > .ui.card > .image {
|
||||
background: none;
|
||||
}
|
||||
|
||||
#profile-avatar img, .user.profile > .ui > .ui > .ui > .ui.card > .image img {
|
||||
border-radius: 100% 100% 100% 0;
|
||||
}
|
72
theme.css
72
theme.css
|
@ -1,70 +1,2 @@
|
|||
.full > .ui.top.menu {
|
||||
color: #fff;
|
||||
background: #1e2430;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu i, .full > .ui.top.menu.sr-mobile-only, .full > .ui.top.menu .mobile-only {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu .dropdown .item i {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu.main a, .full > .ui.top.menu.main .text * {
|
||||
color: #fff;
|
||||
filled: #fff;
|
||||
}
|
||||
|
||||
.ui.top.new-menu a.item.active, .ui.top.new-menu a.item:hover {
|
||||
color: #333 !important;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.ui.top.tabular a.item.active, .ui.top.tabular a.item:hover {
|
||||
color: #333 !important;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu.main #navbar > a.item.active, .full > .ui.top.menu.main #navbar > a.item:hover {
|
||||
color: #fff !important;
|
||||
background: #505058;
|
||||
}
|
||||
|
||||
.full > .ui.top.menu.main a.item.active, .full > .ui.top.menu.main a.item:hover {
|
||||
color: #333 !important;
|
||||
background: #505058;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
.header-wrapper .tabs .item.active {
|
||||
border-bottom: 1px solid #D4D4D5;
|
||||
border-radius: .28571429rem !important;
|
||||
}
|
||||
|
||||
.gitnet-activity-iframe {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.gitnet-activity-iframe {
|
||||
border: 0;
|
||||
width: 100%;
|
||||
height: 110px;
|
||||
}
|
||||
|
||||
.user.profile > .ui > .ui > .ui > .ui.card {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.user.profile > .ui > .ui > .ui > .ui.card > .content.wrap {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
#profile-avatar, .user.profile > .ui > .ui > .ui > .ui.card > .image {
|
||||
background: none;
|
||||
}
|
||||
|
||||
#profile-avatar img, .user.profile > .ui > .ui > .ui > .ui.card > .image img {
|
||||
border-radius: 100% 100% 100% 0;
|
||||
}
|
||||
@import "./gitea-github-theme/theme-github.css" all and (prefers-color-scheme: light);
|
||||
@import "./gitea-github-theme/theme-github-dark.css" all and (prefers-color-scheme: dark);
|
||||
|
|
Loading…
Reference in a new issue