common.scss 7.6 KB
Newer Older
1
/** COLORS **/
2 3 4 5 6
.cgray { color: $common-gray; }
.clgray { color: $common-gray-light; }
.cred { color: $common-red; }
.cgreen { color: $common-green; }
.cdark { color: $common-gray-dark; }
7 8 9 10 11

.text-plain,
.text-plain:hover {
  color: $gl-text-color;
}
12

13 14 15
.text-secondary {
  color: $gl-text-color-secondary;
}
16

17 18 19 20
.text-tertiary {
  color: $gl-text-color-tertiary;
}

21 22 23 24 25
.text-primary,
.text-primary:hover {
  color: $brand-primary;
}

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
.text-success,
.text-success:hover {
  color: $brand-success;
}

.text-danger,
.text-danger:hover {
  color: $brand-danger;
}

.text-warning,
.text-warning:hover {
  color: $brand-warning;
}

.text-info,
.text-info:hover {
  color: $brand-info;
}

46 47
.hint { font-style: italic; color: $hint-color; }
.light { color: $common-gray; }
48

49
.slead {
50
  color: $common-gray;
51
  font-size: 14px;
52
  margin-bottom: 12px;
53
  font-weight: $gl-font-weight-normal;
54
  line-height: 24px;
55 56
}

57
.bold {
58
  font-weight: $gl-font-weight-bold;
59 60
}

61 62
.tab-content {
  overflow: visible;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
63 64
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
65 66 67
pre {
  &.clean {
    background: none;
68
    border: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
69 70
    margin: 0;
    padding: 0;
71 72
  }

Clement Ho's avatar
Clement Ho committed
73
  &.card.card-body-pre {
74
    border: 1px solid $well-pre-bg;
75
    background: $gray-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
76
    border-radius: 0;
77
    color: $well-pre-color;
78
  }
79 80 81 82 83

  &.wrap {
    word-break: break-word;
    white-space: pre-wrap;
  }
84
}
85

86
hr {
87
  margin: 24px 0;
88
  border-top: 1px solid darken($gray-normal, 8%);
89 90
}

91
.str-truncated {
92
  @include str-truncated;
93 94 95 96 97 98 99 100

  &-60 {
    @include str-truncated(60%);
  }

  &-100 {
    @include str-truncated(100%);
  }
101
}
102

103 104 105 106 107
.block-truncated {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

Clement Ho's avatar
Clement Ho committed
108
  > div:not(.block),
109 110 111 112 113
  .str-truncated {
    display: inline;
  }
}

114
.item-title { font-weight: $gl-font-weight-bold; }
115

116
/** FLASH message **/
117 118
.author_link,
.author-link {
119
  color: $gl-link-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
120 121
}

122 123 124 125
.author-link:hover {
  text-decoration: none;
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
126 127 128 129
.back-link {
  font-size: 14px;
}

130 131 132 133 134 135 136 137 138 139 140
table {
  a code {
    position: relative;
    top: -2px;
    margin-right: 3px;
  }

  td.permission-x {
    background: $table-permission-x-bg !important;
    text-align: center;
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
141 142 143 144 145
}

.loading {
  margin: 20px auto;
  height: 40px;
146
  color: $loading-color;
147 148
  font-size: 32px;
  text-align: center;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
149
}
150 151

span.update-author {
152
  display: block;
153
  color: $update-author-color;
154
  font-weight: $gl-font-weight-normal;
155
  font-style: italic;
156

157
  strong {
158
    font-weight: $gl-font-weight-bold;
159 160
    font-style: normal;
  }
161 162
}

163
.field_with_errors {
164
  display: inline;
165 166
}

167
p.time {
168
  color: $time-color;
169 170 171
  font-size: 90%;
  margin: 30px 3px 3px 2px;
}
172

173 174 175 176
.highlight {
  text-shadow: none;
}

177
.thin_area {
Valery Sizov's avatar
Valery Sizov committed
178 179
  height: 150px;
}
randx's avatar
randx committed
180

181 182
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
183
  img { max-width: 100%; }
184 185
  .note-title {
    li {
186
      border-bottom: 0 !important;
187 188
    }
  }
189
}
randx's avatar
randx committed
190

191 192
.markdown {
  img {
193
    max-width: 100%;
randx's avatar
randx committed
194 195
  }
}
196

197 198
.wiki_content code,
.readme code {
199 200
  background-color: inherit;
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
201

202
.project_member_show {
203
  td:first-child {
204
    color: $project-member-show-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
205 206
  }
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
207

208 209
.rss-icon {
  img {
210 211
    width: 24px;
    vertical-align: top;
212
  }
randx's avatar
randx committed
213

214
  strong {
215
    line-height: 24px;
randx's avatar
randx committed
216
  }
217
}
218

219
.show-suppressed-diff,
220
.show-all-commits {
221
  cursor: pointer;
222
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
223

224
.git_error_tips {
Clement Ho's avatar
Clement Ho committed
225
  @extend .col-lg-6;
226 227
  text-align: left;
  margin-top: 40px;
228

229
  pre {
230
    background: $white-light;
231
    border: 0;
232 233 234
    font-size: 12px;
  }
}
235

236
.error-message {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
237
  padding: 10px;
238
  background: $error-bg;
239
  margin: 0;
240
  color: $white-light;
241

242
  a {
243
    color: $white-light;
244
    text-decoration: underline;
245
  }
246
}
247

248
.warning_message {
249 250
  border-left: 4px solid $warning-message-border;
  color: $warning-message-color;
251 252
  padding: 10px;
  margin-bottom: 10px;
253
  background: $warning-message-bg;
254 255 256 257 258 259 260
  padding-left: 20px;

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

261 262
.gitlab-promo {
  a {
263
    color: $gl-promo-color;
264 265 266
    margin-right: 30px;
  }
}
267

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
268 269
.milestone {
  &.milestone-closed {
270
    background: $gray-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
271
  }
272

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
273 274 275
  .progress {
    margin-bottom: 0;
    margin-top: 4px;
276 277
    box-shadow: none;
    background-color: $border-gray-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
278
  }
279
}
280

281 282 283 284 285 286 287
.control-group {
  .controls {
    span {
      &.descr {
        position: relative;
        top: 2px;
        left: 5px;
288
        color: $control-group-descr-color;
289 290 291 292
      }
    }
  }
}
293 294 295

img.emoji {
  height: 20px;
296
  vertical-align: top;
297
  width: 20px;
298
  margin-top: 1px;
299
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
300

301 302 303 304
.chart {
  overflow: hidden;
  height: 220px;
}
305

306 307 308 309 310
.description-block {
  @extend .light-well;
  @extend .light;
  margin-bottom: 10px;
}
311

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
312 313 314 315 316
.side-filters {
  fieldset {
    margin-bottom: 15px;
  }
}
317

318 319
.footer-links {
  margin-bottom: 20px;
320

321 322 323
  a {
    margin-right: 15px;
  }
324
}
Robert Schilling's avatar
Robert Schilling committed
325

Clement Ho's avatar
Clement Ho committed
326
.card.card-body {
327
  margin-bottom: $gl-padding;
328 329 330 331

  hr {
    border-color: $gray-darker;
  }
Douwe Maan's avatar
Douwe Maan committed
332 333
}

Robert Schilling's avatar
Robert Schilling committed
334
.search_box {
Clement Ho's avatar
Clement Ho committed
335
  @extend .card.card-body;
Robert Schilling's avatar
Robert Schilling committed
336 337 338
  text-align: center;
}

339 340 341
.header-with-avatar {
  h3 {
    margin: 0;
342
    font-weight: $gl-font-weight-bold;
343 344 345 346
  }

  .username {
    font-size: 18px;
347
    color: $username-color;
348 349 350 351
    margin-top: 8px;
  }

  .description {
352
    font-size: $gl-font-size;
353
    color: $description-color;
354 355 356
    margin-top: 8px;
  }
}
357 358

.profiler-results {
359
  top: 73px !important;
360 361 362

  .profiler-button,
  .profiler-controls {
363
    border-color: $profiler-border !important;
364 365
  }
}
366

367 368
.dropzone .dz-preview .dz-progress {
  border-color: $border-color !important;
369

370 371 372 373
  .dz-upload {
    background: $gl-success !important;
  }

374
}
375

376 377 378 379
.dz-message {
  margin: 0;
}

380 381 382
.space-right {
  margin-right: 10px;
}
383

384 385
.alert,
.progress {
386 387
  margin-bottom: $gl-padding;
}
388

389
.project-item-select-holder {
390
  display: inline-block;
391 392
  position: relative;

393
  .project-item-select {
394 395 396
    position: absolute;
    top: 0;
    right: 0;
397
    min-width: 250px;
398 399 400
    visibility: hidden;
  }
}
401 402 403 404 405 406

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

408
.hide-bottom-border {
409
  border-bottom: 0 !important;
410
}
411 412

.gl-accessibility {
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
413
  &:focus {
414 415
    display: flex;
    align-items: center;
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
416 417 418 419 420 421 422
    top: 1px;
    left: 1px;
    width: auto;
    height: 100%;
    padding: 0 10px;
    clip: auto;
    text-decoration: none;
423
    color: $gl-text-color;
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
424 425 426
    background: $gray-light;
    z-index: 1;
  }
427
}
428

429 430 431 432 433
.bordered-box {
  border: 1px solid $border-color;
  border-radius: $border-radius-default;
}

434 435 436 437 438
.tooltip {
  .tooltip-inner {
    word-wrap: break-word;
  }
}
439 440 441 442 443

.disabled-content {
  pointer-events: none;
  opacity: .5;
}
444

445
.break-word {
446 447 448
  word-wrap: break-word;
}

449 450
/** COMMON CLASSES **/
.prepend-top-0 { margin-top: 0; }
451
.prepend-top-2 { margin-top: 2px; }
452
.prepend-top-5 { margin-top: 5px; }
453
.prepend-top-8 { margin-top: $grid-size; }
454 455 456
.prepend-top-10 { margin-top: 10px; }
.prepend-top-15 { margin-top: 15px; }
.prepend-top-default { margin-top: $gl-padding !important; }
457
.prepend-top-16 { margin-top: 16px; }
458 459 460
.prepend-top-20 { margin-top: 20px; }
.prepend-left-4 { margin-left: 4px; }
.prepend-left-5 { margin-left: 5px; }
461
.prepend-left-8 { margin-left: 8px; }
462
.prepend-left-10 { margin-left: 10px; }
463
.prepend-left-15 { margin-left: 15px; }
464 465 466 467 468
.prepend-left-default { margin-left: $gl-padding; }
.prepend-left-20 { margin-left: 20px; }
.append-right-5 { margin-right: 5px; }
.append-right-8 { margin-right: 8px; }
.append-right-10 { margin-right: 10px; }
469
.append-right-15 { margin-right: 15px; }
470 471 472 473
.append-right-default { margin-right: $gl-padding; }
.append-right-20 { margin-right: 20px; }
.append-bottom-0 { margin-bottom: 0; }
.append-bottom-5 { margin-bottom: 5px; }
474
.append-bottom-8 { margin-bottom: $grid-size; }
475 476 477 478 479
.append-bottom-10 { margin-bottom: 10px; }
.append-bottom-15 { margin-bottom: 15px; }
.append-bottom-20 { margin-bottom: 20px; }
.append-bottom-default { margin-bottom: $gl-padding; }
.inline { display: inline-block; }
Clement Ho's avatar
Clement Ho committed
480 481
.block { display: block; }
.flex { display: flex; }
482 483
.center { text-align: center; }
.vertical-align-middle { vertical-align: middle; }
Clement Ho's avatar
Clement Ho committed
484
.flex-align-self-center { align-self: center; }