summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/gitlab-theme.scss
blob: fa9038ebaca12b0cd9b2efa1e213990e16709629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/**
 * 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: $color;
      border-color: $color;

      a {
        color: $color-light;

        h3 {
          color: $color-light;
        }
      }

      &:hover {
        background-color: $color-darker;
        a {
          color: #fff;
        }
      }
    }

    .collapse-nav a {
      color: #fff;
      background: $color;
    }

    .complex-sidebar .nav-primary {
      border-right: 1px solid lighten($color, 3%);
    }

    .sidebar-wrapper {
      background: $color-darker;

      .sidebar-user {
        border-top: 1px solid lighten($color, 3%);
        background: $color-darker;
        color: $color-light;

        &:hover {
          background-color: $color-dark;
          color: #fff;
          text-decoration: none;
        }
      }
    }

    .nav-sidebar li {
      a {
        color: $color-light;

        &:hover, &:focus, &:active {
          background: $color-dark;
        }

        i {
          color: $color-light;
        }

        .count {
          color: $color-light;
        }
      }

      &.separate-item {
        border-top: 1px solid $color;
      }

      &.active a {
        color: #fff;
        background: $color-dark;

        &.no-highlight {
          border: none;
        }

        i {
          color: #fff
        }
      }
    }
  }
}

$theme-blue: #2980b9;
$theme-charcoal: #333c47;
$theme-graphite: #888;
$theme-gray: #373737;
$theme-green: #019875;
$theme-violet: #548;

body {
  &.ui_blue {
    @include gitlab-theme(#becde9, $theme-blue, #1970a9, #096099);
  }

  &.ui_charcoal {
    @include gitlab-theme(#c5d0de, $theme-charcoal, #2b333d, #24272d);
  }

  &.ui_graphite {
    @include gitlab-theme(#ccc, $theme-graphite, #777, #666);
  }

  &.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);
  }
}