2021-11-18 22:05:49 +05:30
|
|
|
@import './themes/dark';
|
|
|
|
@import 'page_bundles/mixins_and_variables_and_functions';
|
|
|
|
@import './themes/theme_helper';
|
|
|
|
|
|
|
|
// Some hacks and overrides for things that don't properly support dark mode
|
|
|
|
.gl-label {
|
|
|
|
filter: brightness(0.9) contrast(1.1);
|
|
|
|
|
|
|
|
// This applies to the gl-label markups
|
|
|
|
// rendered and cached in the backend (labels_helper.rb)
|
|
|
|
&.gl-label-scoped {
|
|
|
|
.gl-label-text-scoped,
|
|
|
|
.gl-label-close {
|
|
|
|
color: $gray-900;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// white-ish text for light labels
|
|
|
|
.gl-label-text-light.gl-label-text-light {
|
|
|
|
color: $gray-900;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gl-label-text-dark.gl-label-text-dark {
|
|
|
|
color: $gray-10;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This applies to "gl-labels" from "gitlab-ui"
|
|
|
|
.gl-label.gl-label-scoped.gl-label-text-dark,
|
|
|
|
.gl-label.gl-label-scoped.gl-label-text-light {
|
|
|
|
.gl-label-text-scoped,
|
|
|
|
.gl-label-close {
|
|
|
|
color: $gray-900;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// duplicated class as the original .atwho-view style is added later
|
|
|
|
.atwho-view.atwho-view {
|
|
|
|
background-color: $white;
|
|
|
|
color: $gray-900;
|
|
|
|
border-color: $gray-800;
|
|
|
|
}
|
|
|
|
|
2022-07-23 23:45:48 +05:30
|
|
|
.nav-sidebar,
|
|
|
|
.toggle-sidebar-button,
|
|
|
|
.close-nav-button {
|
|
|
|
background-color: darken($gray-50, 4%);
|
|
|
|
border-right: 1px solid $gray-50;
|
|
|
|
}
|
|
|
|
|
2022-08-27 11:52:29 +05:30
|
|
|
.gl-avatar:not(.gl-avatar-identicon),
|
|
|
|
.avatar-container,
|
|
|
|
.avatar {
|
|
|
|
background: rgba($gray-950, 0.04);
|
|
|
|
}
|
|
|
|
|
|
|
|
.gl-avatar {
|
|
|
|
@include gl-border-none;
|
|
|
|
box-shadow: inset 0 0 0 1px rgba($gray-950, $gl-avatar-border-opacity);
|
|
|
|
}
|
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
.nav-sidebar {
|
2021-12-11 22:18:48 +05:30
|
|
|
li {
|
|
|
|
a {
|
|
|
|
color: var(--gray-600);
|
|
|
|
}
|
|
|
|
|
|
|
|
> a:hover {
|
2022-06-21 17:19:12 +05:30
|
|
|
background-color: var(--nav-active-bg);
|
2021-12-11 22:18:48 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
&:not(.fly-out-top-item) {
|
|
|
|
> a:not(.has-sub-items) {
|
2022-06-21 17:19:12 +05:30
|
|
|
background-color: var(--nav-active-bg);
|
2021-12-11 22:18:48 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-11-18 22:05:49 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-sub-level-items.fly-out-list {
|
|
|
|
box-shadow: none;
|
|
|
|
border: 1px solid $border-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-23 23:45:48 +05:30
|
|
|
aside.right-sidebar:not(.right-sidebar-merge-requests) {
|
|
|
|
background-color: $gray-10;
|
|
|
|
border-left-color: $gray-50;
|
|
|
|
}
|
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
body.gl-dark {
|
2021-12-11 22:18:48 +05:30
|
|
|
@include gitlab-theme($gray-900, $gray-400, $gray-500, $gray-900, $gray-900, $white);
|
2021-11-18 22:05:49 +05:30
|
|
|
|
2022-07-16 23:28:13 +05:30
|
|
|
.terms {
|
|
|
|
.logo-text {
|
|
|
|
fill: var(--black);
|
|
|
|
}
|
2021-11-18 22:05:49 +05:30
|
|
|
}
|
|
|
|
|
2022-07-16 23:28:13 +05:30
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
.navbar-gitlab {
|
|
|
|
background-color: var(--gray-50);
|
|
|
|
box-shadow: 0 1px 0 0 var(--gray-100);
|
|
|
|
|
|
|
|
.navbar-sub-nav,
|
|
|
|
.navbar-nav {
|
|
|
|
li {
|
|
|
|
> a:hover,
|
|
|
|
> a:focus,
|
|
|
|
> button:hover,
|
|
|
|
> button:focus {
|
|
|
|
color: var(--gl-text-color);
|
|
|
|
background-color: var(--gray-200);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li.active,
|
|
|
|
li.dropdown.show {
|
|
|
|
> a,
|
|
|
|
> button {
|
|
|
|
color: var(--gl-text-color);
|
|
|
|
background-color: var(--gray-200);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-search {
|
|
|
|
background-color: var(--gray-100) !important;
|
|
|
|
box-shadow: inset 0 0 0 1px var(--border-color) !important;
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--gray-100) !important;
|
|
|
|
box-shadow: inset 0 0 0 1px var(--blue-200) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search {
|
|
|
|
form {
|
|
|
|
background-color: var(--gray-100);
|
|
|
|
box-shadow: inset 0 0 0 1px var(--border-color);
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--gray-100);
|
|
|
|
box-shadow: inset 0 0 0 1px var(--blue-200);
|
|
|
|
}
|
2022-01-26 12:08:38 +05:30
|
|
|
|
|
|
|
.search-input {
|
|
|
|
color: var(--gl-text-color);
|
|
|
|
}
|
2021-11-18 22:05:49 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.md :not(pre.code) > code {
|
|
|
|
background-color: $gray-200;
|
|
|
|
}
|
|
|
|
}
|
2022-08-27 11:52:29 +05:30
|
|
|
|
|
|
|
.timeline-entry.internal-note:not(.note-form) {
|
|
|
|
// soften on darkmode
|
|
|
|
background-color: mix($gray-50, $orange-50, 75%);
|
|
|
|
}
|