2020-11-24 15:15:51 +05:30
|
|
|
@import '../page_bundles/mixins_and_variables_and_functions';
|
|
|
|
/**
|
|
|
|
* Styles the GitLab application with a specific color theme
|
|
|
|
*/
|
|
|
|
@mixin gitlab-theme(
|
|
|
|
$search-and-nav-links,
|
2022-03-02 08:16:31 +05:30
|
|
|
$accent,
|
2020-11-24 15:15:51 +05:30
|
|
|
$border-and-box-shadow,
|
|
|
|
$sidebar-text,
|
|
|
|
$nav-svg-color,
|
|
|
|
$color-alternate
|
|
|
|
) {
|
2022-03-02 08:16:31 +05:30
|
|
|
// Set custom properties
|
|
|
|
|
|
|
|
--gl-theme-accent: #{$accent};
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
// Header
|
|
|
|
|
|
|
|
.navbar-gitlab {
|
|
|
|
background-color: $nav-svg-color;
|
|
|
|
|
|
|
|
.navbar-collapse {
|
|
|
|
color: $search-and-nav-links;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container-fluid {
|
|
|
|
.navbar-toggler {
|
|
|
|
border-left: 1px solid lighten($border-and-box-shadow, 10%);
|
2021-09-04 01:27:46 +05:30
|
|
|
color: $search-and-nav-links;
|
2020-11-24 15:15:51 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-sub-nav,
|
|
|
|
.navbar-nav {
|
|
|
|
> li {
|
|
|
|
> a,
|
|
|
|
> button {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: rgba($search-and-nav-links, 0.2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&.dropdown.show {
|
|
|
|
> a,
|
|
|
|
> button {
|
|
|
|
color: $nav-svg-color;
|
|
|
|
background-color: $color-alternate;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-separator {
|
|
|
|
border-left: 1px solid rgba($search-and-nav-links, 0.2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-sub-nav {
|
|
|
|
color: $search-and-nav-links;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
> li {
|
|
|
|
color: $search-and-nav-links;
|
|
|
|
|
2022-05-07 20:08:51 +05:30
|
|
|
&.header-search-new {
|
|
|
|
color: $sidebar-text;
|
|
|
|
}
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
> a {
|
2021-02-22 17:27:13 +05:30
|
|
|
.notification-dot {
|
|
|
|
border: 2px solid $nav-svg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.header-help-dropdown-toggle {
|
|
|
|
.notification-dot {
|
|
|
|
background-color: $search-and-nav-links;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
&.header-user-dropdown-toggle {
|
|
|
|
.header-user-avatar {
|
|
|
|
border-color: $search-and-nav-links;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
background-color: rgba($search-and-nav-links, 0.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
fill: currentColor;
|
|
|
|
}
|
|
|
|
|
2021-02-22 17:27:13 +05:30
|
|
|
.notification-dot {
|
|
|
|
will-change: border-color, background-color;
|
2022-07-23 23:45:48 +05:30
|
|
|
border-color: adjust-color($nav-svg-color, $red: 33, $green: 33, $blue: 33);
|
2020-11-24 15:15:51 +05:30
|
|
|
}
|
2021-02-22 17:27:13 +05:30
|
|
|
|
|
|
|
&.header-help-dropdown-toggle .notification-dot {
|
|
|
|
background-color: $white;
|
|
|
|
}
|
2020-11-24 15:15:51 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active > a,
|
|
|
|
&.dropdown.show > a {
|
|
|
|
color: $nav-svg-color;
|
|
|
|
background-color: $color-alternate;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
svg {
|
|
|
|
fill: $nav-svg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-22 17:27:13 +05:30
|
|
|
.notification-dot {
|
2020-11-24 15:15:51 +05:30
|
|
|
border-color: $white;
|
|
|
|
}
|
2021-02-22 17:27:13 +05:30
|
|
|
|
|
|
|
&.header-help-dropdown-toggle {
|
|
|
|
.notification-dot {
|
|
|
|
background-color: $nav-svg-color;
|
|
|
|
}
|
|
|
|
}
|
2020-11-24 15:15:51 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.impersonated-user,
|
|
|
|
.impersonated-user:hover {
|
|
|
|
svg {
|
|
|
|
fill: $nav-svg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar .title {
|
|
|
|
> a {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: rgba($search-and-nav-links, 0.2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-11 11:23:49 +05:30
|
|
|
.header-search {
|
|
|
|
background-color: rgba($search-and-nav-links, 0.2) !important;
|
2022-07-16 23:28:13 +05:30
|
|
|
border-radius: $border-radius-default;
|
2021-11-11 11:23:49 +05:30
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba($search-and-nav-links, 0.3) !important;
|
|
|
|
}
|
|
|
|
|
2022-05-07 20:08:51 +05:30
|
|
|
svg.gl-search-box-by-type-search-icon {
|
|
|
|
color: rgba($search-and-nav-links, 0.8);
|
2021-11-11 11:23:49 +05:30
|
|
|
}
|
|
|
|
|
2022-05-07 20:08:51 +05:30
|
|
|
|
2021-11-11 11:23:49 +05:30
|
|
|
input {
|
|
|
|
background-color: transparent;
|
|
|
|
color: rgba($search-and-nav-links, 0.8);
|
2022-01-26 12:08:38 +05:30
|
|
|
box-shadow: inset 0 0 0 1px rgba($search-and-nav-links, 0.4);
|
2021-11-11 11:23:49 +05:30
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
color: rgba($search-and-nav-links, 0.8);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
&::placeholder {
|
2022-03-02 08:16:31 +05:30
|
|
|
color: $gray-400;
|
2021-11-11 11:23:49 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-21 17:19:12 +05:30
|
|
|
|
|
|
|
&.is-not-active::after {
|
|
|
|
color: $search-and-nav-links;
|
|
|
|
background-color: rgba($search-and-nav-links, 0.2);
|
|
|
|
}
|
2021-11-11 11:23:49 +05:30
|
|
|
}
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
.search {
|
|
|
|
form {
|
|
|
|
background-color: rgba($search-and-nav-links, 0.2);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba($search-and-nav-links, 0.3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input::placeholder {
|
|
|
|
color: rgba($search-and-nav-links, 0.8);
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input-wrap {
|
|
|
|
.search-icon,
|
|
|
|
.clear-icon {
|
|
|
|
fill: rgba($search-and-nav-links, 0.8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.search-active {
|
|
|
|
form {
|
|
|
|
background-color: $white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input-wrap {
|
|
|
|
.search-icon {
|
|
|
|
fill: rgba($search-and-nav-links, 0.8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sidebar
|
2021-09-30 23:02:18 +05:30
|
|
|
.nav-sidebar li.active > a {
|
|
|
|
color: $sidebar-text;
|
2020-11-24 15:15:51 +05:30
|
|
|
}
|
|
|
|
|
2021-09-30 23:02:18 +05:30
|
|
|
.nav-sidebar {
|
|
|
|
.fly-out-top-item {
|
|
|
|
a,
|
|
|
|
a:hover,
|
|
|
|
&.active a,
|
|
|
|
.fly-out-top-item-container {
|
2021-11-18 22:05:49 +05:30
|
|
|
background-color: var(--gray-100, $gray-50);
|
|
|
|
color: var(--gray-900, $gray-900);
|
2021-09-30 23:02:18 +05:30
|
|
|
}
|
|
|
|
}
|
2020-11-24 15:15:51 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.branch-header-title {
|
|
|
|
color: $border-and-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ide-sidebar-link {
|
|
|
|
&.active {
|
|
|
|
color: $border-and-box-shadow;
|
|
|
|
|
|
|
|
&.is-right {
|
|
|
|
box-shadow: inset -3px 0 $border-and-box-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|