2015-09-11 14:41:01 +05:30
|
|
|
/**
|
|
|
|
* 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) {
|
2015-09-25 12:07:36 +05:30
|
|
|
.page-with-sidebar {
|
2016-06-22 15:30:34 +05:30
|
|
|
.toggle-nav-collapse,
|
|
|
|
.pin-nav-btn {
|
2016-06-16 23:09:34 +05:30
|
|
|
color: $color-light;
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
&:hover {
|
2016-06-16 23:09:34 +05:30
|
|
|
color: $white-light;
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-wrapper {
|
|
|
|
background: $color-darker;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-sidebar li {
|
|
|
|
a {
|
|
|
|
color: $color-light;
|
|
|
|
|
|
|
|
&:hover, &:focus, &:active {
|
|
|
|
background: $color-dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
color: $color-light;
|
|
|
|
}
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
path,
|
|
|
|
polygon {
|
|
|
|
fill: $color-light;
|
|
|
|
}
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
.count {
|
|
|
|
color: $color-light;
|
|
|
|
background: $color-dark;
|
|
|
|
}
|
2016-06-16 23:09:34 +05:30
|
|
|
|
|
|
|
svg {
|
|
|
|
position: relative;
|
|
|
|
top: 3px;
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.separate-item {
|
|
|
|
border-top: 1px solid $color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active a {
|
2016-06-16 23:09:34 +05:30
|
|
|
color: $white-light;
|
2015-09-11 14:41:01 +05:30
|
|
|
background: $color-dark;
|
|
|
|
|
|
|
|
&.no-highlight {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
2016-06-16 23:09:34 +05:30
|
|
|
color: $white-light
|
|
|
|
}
|
|
|
|
|
|
|
|
path,
|
|
|
|
polygon {
|
|
|
|
fill: $white-light;
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
$theme-charcoal: #3d454d;
|
2016-06-16 23:09:34 +05:30
|
|
|
$theme-charcoal-dark: #383f45;
|
|
|
|
$theme-charcoal-text: #b9bbbe;
|
|
|
|
|
|
|
|
$theme-blue: #2980b9;
|
2016-06-02 11:05:42 +05:30
|
|
|
$theme-graphite: #666;
|
2015-09-11 14:41:01 +05:30
|
|
|
$theme-gray: #373737;
|
|
|
|
$theme-green: #019875;
|
2016-06-02 11:05:42 +05:30
|
|
|
$theme-violet: #548;
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
body {
|
|
|
|
&.ui_blue {
|
2016-06-02 11:05:42 +05:30
|
|
|
@include gitlab-theme(#becde9, $theme-blue, #1970a9, #096099);
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.ui_charcoal {
|
2016-06-16 23:09:34 +05:30
|
|
|
@include gitlab-theme($theme-charcoal-text, #485157, $theme-charcoal, $theme-charcoal-dark);
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.ui_graphite {
|
2016-06-02 11:05:42 +05:30
|
|
|
@include gitlab-theme(#ccc, #777, $theme-graphite, #555);
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.ui_gray {
|
2016-06-02 11:05:42 +05:30
|
|
|
@include gitlab-theme(#979797, $theme-gray, #272727, #222);
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.ui_green {
|
2016-06-02 11:05:42 +05:30
|
|
|
@include gitlab-theme(#adc, $theme-green, #018865, #017855);
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.ui_violet {
|
2016-06-02 11:05:42 +05:30
|
|
|
@include gitlab-theme(#98c, $theme-violet, #436, #325);
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|