common.scss 5.64 KB
Newer Older
1
/** COLORS **/
2
.cgray { color: $gl-gray; }
3
.clgray { color: #bbb }
4 5
.cred { color: $gl-text-red; }
.cgreen { color: $gl-text-green; }
6
.cdark { color: #444 }
7 8

/** COMMON CLASSES **/
Phil Hughes's avatar
Phil Hughes committed
9 10
.prepend-top-0 { margin-top: 0; }
.prepend-top-5 { margin-top: 5px; }
11
.prepend-top-10 { margin-top: 10px }
12
.prepend-top-default { margin-top: $gl-padding !important; }
13
.prepend-top-20 { margin-top: 20px }
Phil Hughes's avatar
Phil Hughes committed
14
.prepend-left-5 { margin-left: 5px }
15
.prepend-left-10 { margin-left: 10px }
Phil Hughes's avatar
Phil Hughes committed
16
.prepend-left-default { margin-left: $gl-padding; }
17
.prepend-left-20 { margin-left: 20px }
Phil Hughes's avatar
Phil Hughes committed
18
.append-right-5 { margin-right: 5px }
19
.append-right-10 { margin-right: 10px }
Phil Hughes's avatar
Phil Hughes committed
20
.append-right-default { margin-right: $gl-padding; }
21 22 23 24 25
.append-right-20 { margin-right: 20px }
.append-bottom-0 { margin-bottom: 0 }
.append-bottom-10 { margin-bottom: 10px }
.append-bottom-15 { margin-bottom: 15px }
.append-bottom-20 { margin-bottom: 20px }
26
.append-bottom-default { margin-bottom: $gl-padding; }
27
.inline { display: inline-block }
28
.center { text-align: center }
29

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
30
.underlined-link { text-decoration: underline; }
31
.hint { font-style: italic; color: #999; }
32
.light { color: $gl-gray; }
33

34
.slead {
35
  color: $gl-gray;
36
  font-size: 15px;
37 38 39 40
  margin-bottom: 12px;
  font-weight: normal;
  line-height: 24px;
}
41

42 43 44
.tab-content {
  overflow: visible;
}
45

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
46 47 48 49 50 51
pre {
  &.clean {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
52 53
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
54
  &.well-pre {
55
    border: 1px solid #eee;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
56 57 58
    background: #f9f9f9;
    border-radius: 0;
    color: #555;
59 60
  }
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
61

62 63 64 65
hr {
  margin: $gl-padding 0;
}

66
.str-truncated {
67
  @include str-truncated;
68
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
69

70 71
.item-title { font-weight: 600; }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
72 73
/** FLASH message **/
.author_link {
74
  color: $gl-link-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
}

.back-link {
  font-size: 14px;
}

table a code {
  position: relative;
  top: -2px;
  margin-right: 3px;
}

.loading {
  margin: 20px auto;
  height: 40px;
90 91 92
  color: #555;
  font-size: 32px;
  text-align: center;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
93 94 95 96 97 98 99 100 101 102 103 104 105 106
}

span.update-author {
  display: block;
  color: #999;
  font-weight: normal;
  font-style: italic;
  strong {
    font-weight: bold;
    font-style: normal;
  }
}

.user-mention {
107
  color: #2fa0bb;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
  font-weight: bold;
}

.field_with_errors {
  display: inline;
}

p.time {
  color: #999;
  font-size: 90%;
  margin: 30px 3px 3px 2px;
}

.highlight {
  text-shadow: none;
}

125
.thin_area {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
126 127 128 129 130
  height: 150px;
}

// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
131
  img { max-width: 100% }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
132 133
  .note-title {
    li {
134
      border-bottom: none !important;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
135 136 137 138 139 140 141 142 143 144
    }
  }
}

.markdown {
  img {
    max-width: 100%;
  }
}

145
.wiki_content code, .readme code {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
146 147 148
  background-color: inherit;
}

149
.project_member_show {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
  td:first-child {
    color: #aaa;
  }
}

.rss-icon {
  img {
    width: 24px;
    vertical-align: top;
  }

  strong {
    line-height: 24px;
  }
}

166
.show-suppressed-diff,
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
.show-all-commits {
  cursor: pointer;
}

.git_error_tips {
  @extend .col-md-6;
  text-align: left;
  margin-top: 40px;
  pre {
    background: white;
    border: none;
    font-size: 12px;
  }
}

.error-message {
  padding: 10px;
184
  background: #c67;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
185
  margin: 0;
186
  color: #fff;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
187 188 189 190 191 192 193

  a {
    color: #fff;
    text-decoration: underline;
  }
}

194 195 196
.browser-alert {
  padding: 10px;
  text-align: center;
197
  background: #c67;
198 199 200 201 202 203 204 205
  color: #fff;
  font-weight: bold;
  a {
    color: #fff;
    text-decoration: underline;
  }
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
.warning_message {
  border-left: 4px solid #ed9;
  color: #b90;
  padding: 10px;
  margin-bottom: 10px;
  background: #ffffe6;
  padding-left: 20px;

  &.centered {
    text-align: center;
  }
}

.gitlab-promo {
  a {
    color: #aaa;
    margin-right: 30px;
  }
}

.milestone {
  &.milestone-closed {
228
    background: #f9f9f9;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
  }
  .progress {
    margin-bottom: 0;
    margin-top: 4px;
  }
}

.control-group {
  .controls {
    span {
      &.descr {
        position: relative;
        top: 2px;
        left: 5px;
        color: #666;
      }
    }
  }
}

img.emoji {
  height: 20px;
  vertical-align: middle;
  width: 20px;
}

.chart {
  overflow: hidden;
  height: 220px;
}

.description-block {
  @extend .light-well;
  @extend .light;
  margin-bottom: 10px;
}

table {
  td.permission-x {
268
    background: #d9edf7 !important;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
269 270 271 272 273 274
    text-align: center;
  }
}

.dashboard-intro-icon {
  float: left;
275
  text-align: center;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
276
  font-size: 32px;
277
  color: #aaa;
278 279 280 281 282 283 284 285
  width: 60px;
}

.dashboard-intro-text {
  display: inline-block;
  margin-left: -60px;
  padding-left: 60px;
  width: 100%;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
286 287
}

288 289
.btn-sign-in {
  text-shadow: none;
290 291 292 293

  @media (min-width: $screen-sm-min) {
    margin-top: 11px;
  }
294 295
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
296 297 298 299 300
.side-filters {
  fieldset {
    margin-bottom: 15px;
  }
}
301

302 303 304 305 306
.footer-links {
  margin-bottom: 20px;
  a {
    margin-right: 15px;
  }
307
}
Robert Schilling's avatar
Robert Schilling committed
308

Douwe Maan's avatar
Douwe Maan committed
309
.well {
310
  margin-bottom: $gl-padding;
Douwe Maan's avatar
Douwe Maan committed
311 312
}

Robert Schilling's avatar
Robert Schilling committed
313
.search_box {
314
  @extend .well;
Robert Schilling's avatar
Robert Schilling committed
315 316 317
  text-align: center;
}

318
#nprogress .spinner {
319 320
  top: 15px !important;
  right: 10px !important;
321
}
322 323 324 325 326 327 328 329 330 331 332 333 334 335

.header-with-avatar {
  h3 {
    margin: 0;
    font-weight: bold;
  }

  .username {
    font-size: 18px;
    color: #666;
    margin-top: 8px;
  }

  .description {
336
    font-size: $gl-font-size;
337 338 339 340
    color: #666;
    margin-top: 8px;
  }
}
341 342

.profiler-results {
343
  top: 73px !important;
344 345 346

  .profiler-button,
  .profiler-controls {
347
    border-color: #eee !important;
348 349
  }
}
350

351 352 353 354 355 356 357
.dropzone .dz-preview .dz-progress {
  border-color: $border-color !important;
}

.dropzone .dz-preview .dz-progress .dz-upload {
  background: $gl-success !important;
}
358 359 360 361

.space-right {
  margin-right: 10px;
}
362 363 364 365

.alert, .progress {
  margin-bottom: $gl-padding;
}
366

367
.project-item-select-holder {
368
  display: inline-block;
369 370
  position: relative;

371
  .project-item-select {
372 373 374
    position: absolute;
    top: 0;
    right: 0;
375
    min-width: 250px;
376 377 378
    visibility: hidden;
  }
}
379 380 381 382 383 384

.content-separator {
  margin-left: -$gl-padding;
  margin-right: -$gl-padding;
  border-top: 1px solid $border-color;
}