main.scss 4.41 KB
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1
@import "bootstrap";
randx's avatar
randx committed
2
@import "bootstrap-responsive";
3
@import 'font-awesome';
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
4

5
/** GitLab colors **/
6
$link_color:#3A89A3;
7
$blue_link: #2fa0bb;
8
$style_color: #474d57;
randx's avatar
randx committed
9
$hover: #D9EDF7;
10

11
/** GitLab Fonts **/
12
@font-face { font-family: Korolev; src: font-url('korolev-medium-compressed.otf'); }
13

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
14
/** MIXINS **/
15 16 17 18 19 20
@mixin shade {
  -moz-box-shadow: 0 0 3px #ddd;
  -webkit-box-shadow: 0 0 3px #ddd;
  box-shadow: 0 0 3px #ddd;
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
21
@mixin solid_shade {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
22 23 24 25 26
  -moz-box-shadow: 0 0 0 3px #eee;
  -webkit-box-shadow: 0 0 0 3px #eee;
  box-shadow: 0 0 0 3px #eee;
}

27 28 29 30 31
@mixin border-radius($radius) {
  -moz-border-radius: $radius;
  -webkit-border-radius: $radius;
  border-radius: $radius;
}
32

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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
@mixin round-borders-bottom($radius) {
  border-top: 1px solid #eaeaea;
  -moz-border-radius-bottomright: $radius;
  -moz-border-radius-bottomleft: $radius;
  border-bottom-right-radius: $radius;
  border-bottom-left-radius: $radius;
  -webkit-border-bottom-left-radius: $radius;
  -webkit-border-bottom-right-radius: $radius;
}

@mixin round-borders-top($radius) {
  border-top: 1px solid #eaeaea;
  -moz-border-radius-topright: $radius;
  -moz-border-radius-topleft: $radius;
  border-top-right-radius: $radius;
  border-top-left-radius: $radius;
  -webkit-border-top-left-radius: $radius;
  -webkit-border-top-right-radius: $radius;
}

@mixin round-borders-all($radius) {
  border: 1px solid #eaeaea;
  -moz-border-radius: $radius;
  -webkit-border-radius: $radius;
  border-radius: $radius;
}

60 61 62 63 64 65 66
@mixin bg-gradient($from, $to) {
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from($from), to($to));
  background-image: -webkit-linear-gradient($from, $to);
  background-image: -moz-linear-gradient($from, $to);
  background-image: -o-linear-gradient($from, $to);
}

67
@mixin bg-gray-gradient {
randx's avatar
randx committed
68 69 70 71 72 73
  background:#eee;
  background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
  background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
  background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
  background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
74

75
@mixin bg-dark-gray-gradient {
76 77 78 79 80 81
  background:#eee;
  background-image: -webkit-linear-gradient(#e9e9e9, #d7d7d7);
  background-image: -moz-linear-gradient(#e9e9e9, #d7d7d7);
  background-image: -o-linear-gradient(#e9e9e9, #d7d7d7);
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
82
/**
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
83
 * Header of application.
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
84 85
 * Contain application logo, search panel, profile icon
 */
randx's avatar
randx committed
86
@import "sections/header.scss";
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
87 88

/**
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
89
 * Navigation menu of application.
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
90 91
 * Panel with links to pages depends on project, profile or admin area
 */
randx's avatar
randx committed
92
@import "sections/nav.scss";
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
93

94
/**
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
95 96 97
 * This file represent some UI that can be changed
 * during web app restyle or theme select.
 *
98
 * Next items should be placed there
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
99 100 101
 * - link, button colors
 * - header restyles
 * - main menu restyles
102 103
 *
 */
104
@import "themes/ui_basic.scss";
105

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
106 107 108
/**
 * UI mars theme
 */
109 110 111 112 113 114
@import "themes/ui_mars.scss";

/**
 * UI Modern theme
 */
@import "themes/ui_modern.scss";
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
115

randx's avatar
randx committed
116
/**
117
 * GitLab bootstrap.
randx's avatar
randx committed
118
 * Overrides some styles of twitter bootstrap.
119
 * Also give some common classes for GitLab app
randx's avatar
randx committed
120
 */
121 122 123 124 125 126 127
@import "gitlab_bootstrap/common.scss";
@import "gitlab_bootstrap/typography.scss";
@import "gitlab_bootstrap/buttons.scss";
@import "gitlab_bootstrap/blocks.scss";
@import "gitlab_bootstrap/files.scss";
@import "gitlab_bootstrap/tables.scss";
@import "gitlab_bootstrap/lists.scss";
randx's avatar
randx committed
128 129


130 131 132 133
/**
 * Most of application styles placed here.
 * This file represent common UI that should not be changed between themes
 * or project restyling like form width or user avatar class or commit title
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
134
 *
135 136
 * TODO: clean it
 */
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
137
@import "common.scss";
Arthur Schreiber's avatar
Arthur Schreiber committed
138

139
/**
randx's avatar
randx committed
140
 * Styles related to specific part of app
141
 */
randx's avatar
randx committed
142
@import "sections/commits.scss";
143
@import "sections/issues.scss";
144
@import "sections/projects.scss";
randx's avatar
randx committed
145 146
@import "sections/merge_requests.scss";
@import "sections/graph.scss";
147
@import "sections/events.scss";
148

Arthur Schreiber's avatar
Arthur Schreiber committed
149 150
/**
 * This scss file redefine chozen selectbox styles for
151 152 153 154 155
 * project Branch/Tag select element
 */
@import "ref_select.scss";

/**
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
156
 * Code (files list) styles. Browsing project files there
157
 */
158
@import "sections/tree.scss";
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
159

160
/**
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
161
 * This file represent notes(comments) styles
162
 */
randx's avatar
randx committed
163
@import "sections/notes.scss";
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
164

165 166 167 168 169
/**
 * This file represent profile styles
 */
@import "sections/profile.scss";

170
/**
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
171
 * Devise styles
172
 */
randx's avatar
randx committed
173
@import "sections/login.scss";
vsizov's avatar
vsizov committed
174

175 176 177 178
/**
 * CODE HIGHTLIGHT BASE
 *
 */
randx's avatar
randx committed
179
@import "highlight/white.scss";
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
180

181 182 183 184
/**
 * CODE HIGHTLIGHT DARK schema
 *
 */
randx's avatar
randx committed
185
@import "highlight/dark.scss";
Valeriy Sizov's avatar
Valeriy Sizov committed
186 187 188 189 190 191

/**
 * File Editor styles
 *
 */
@import "sections/editor.scss";