gitlab-org--gitlab-foss/app/assets/stylesheets/framework/gitlab-theme.scss

142 lines
2.5 KiB
SCSS
Raw Normal View History

/**
* Styles the GitLab application with a specific color theme
*
* $color-light -
* $color -
* $color-darker -
* $color-dark -
*/
@mixin gitlab-theme($color-light, $color, $color-darker, $color-dark) {
.page-with-sidebar {
.header-logo {
background: $color-darker;
a {
color: $color-light;
h3 {
color: $color-light;
}
}
&:hover {
background-color: $color-dark;
a {
2016-05-23 19:35:18 -04:00
color: $white-light;
h3 {
2016-05-23 19:35:18 -04:00
color: $white-light;
}
2015-02-25 01:19:14 -05:00
}
}
}
2015-02-25 01:19:14 -05:00
.collapse-nav a {
2016-05-23 19:35:18 -04:00
color: $white-light;
background: $color;
}
.sidebar-wrapper {
background: $color-darker;
.sidebar-user {
background: $color-darker;
color: $color-light;
&:hover {
background-color: $color-dark;
2016-05-23 19:35:18 -04:00
color: $white-light;
text-decoration: none;
}
}
}
.nav-sidebar li {
a {
color: $color-light;
&:hover, &:focus, &:active {
background: $color-dark;
2015-02-25 01:19:14 -05:00
}
i {
color: $color-light;
2015-02-25 01:19:14 -05:00
}
2016-05-23 19:35:18 -04:00
path,
polygon {
fill: $color-light;
}
.count {
2015-02-25 01:19:14 -05:00
color: $color-light;
background: $color-dark;
}
2016-05-23 19:35:18 -04:00
svg {
position: relative;
top: 3px;
}
}
2015-02-25 01:19:14 -05:00
&.separate-item {
border-top: 1px solid $color;
}
&.active a {
2016-05-23 19:35:18 -04:00
color: $white-light;
background: $color-dark;
&.no-highlight {
border: none;
2015-02-25 01:19:14 -05:00
}
i {
2016-05-23 19:35:18 -04:00
color: $white-light
}
path,
polygon {
fill: $white-light;
2015-02-25 01:19:14 -05:00
}
}
}
}
}
$theme-charcoal: #3d454d;
2016-06-06 22:31:28 -04:00
$theme-charcoal-dark: #383f45;
$theme-charcoal-text: #b9bbbe;
$theme-blue: #2980b9;
$theme-graphite: #666;
$theme-gray: #373737;
$theme-green: #019875;
$theme-violet: #548;
body {
&.ui_blue {
@include gitlab-theme(#becde9, $theme-blue, #1970a9, #096099);
}
&.ui_charcoal {
2016-06-06 22:31:28 -04:00
@include gitlab-theme($theme-charcoal-text, #485157, $theme-charcoal, $theme-charcoal-dark);
}
&.ui_graphite {
@include gitlab-theme(#ccc, #777, $theme-graphite, #555);
}
&.ui_gray {
@include gitlab-theme(#979797, $theme-gray, #272727, #222);
}
&.ui_green {
@include gitlab-theme(#adc, $theme-green, #018865, #017855);
}
&.ui_violet {
@include gitlab-theme(#98c, $theme-violet, #436, #325);
}
}