common.scss 7.19 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 21
.text-primary,
.text-primary:hover {
  color: $brand-primary;
}

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
.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;
}

42 43
.hint { font-style: italic; color: $hint-color; }
.light { color: $common-gray; }
44

45
.slead {
46
  color: $common-gray;
47
  font-size: 14px;
48
  margin-bottom: 12px;
49
  font-weight: $gl-font-weight-normal;
50 51
  line-height: 24px;
}
52

53
.bold {
54
  font-weight: $gl-font-weight-bold;
55 56
}

57 58 59
.tab-content {
  overflow: visible;
}
60

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
61 62 63
pre {
  &.clean {
    background: none;
64
    border: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
65 66
    margin: 0;
    padding: 0;
67 68
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
69
  &.well-pre {
70
    border: 1px solid $well-pre-bg;
71
    background: $gray-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
72
    border-radius: 0;
73
    color: $well-pre-color;
74
  }
75 76 77 78 79

  &.wrap {
    word-break: break-word;
    white-space: pre-wrap;
  }
80
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
81

82
hr {
83
  margin: 24px 0;
84
  border-top: 1px solid darken($gray-normal, 8%);
85 86
}

87
.str-truncated {
88
  @include str-truncated;
89 90 91 92 93 94 95 96

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

  &-100 {
    @include str-truncated(100%);
  }
97
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
98

99 100 101 102 103 104 105 106 107 108 109
.block-truncated {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  > div,
  .str-truncated {
    display: inline;
  }
}

110
.item-title { font-weight: $gl-font-weight-bold; }
111

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

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

122 123 124 125 126 127 128 129 130 131 132
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
133 134 135 136 137
}

.loading {
  margin: 20px auto;
  height: 40px;
138
  color: $loading-color;
139 140
  font-size: 32px;
  text-align: center;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
141 142 143 144
}

span.update-author {
  display: block;
145
  color: $update-author-color;
146
  font-weight: $gl-font-weight-normal;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
147
  font-style: italic;
148

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
149
  strong {
150
    font-weight: $gl-font-weight-bold;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
151 152 153 154 155 156 157 158 159
    font-style: normal;
  }
}

.field_with_errors {
  display: inline;
}

p.time {
160
  color: $time-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
161 162 163 164 165 166 167 168
  font-size: 90%;
  margin: 30px 3px 3px 2px;
}

.highlight {
  text-shadow: none;
}

169
.thin_area {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
170 171 172 173 174
  height: 150px;
}

// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
175
  img { max-width: 100%; }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
176 177
  .note-title {
    li {
178
      border-bottom: 0 !important;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
179 180 181 182 183 184 185 186 187 188
    }
  }
}

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

189 190
.wiki_content code,
.readme code {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
191 192 193
  background-color: inherit;
}

194
.project_member_show {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
195
  td:first-child {
196
    color: $project-member-show-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
197 198 199 200 201 202 203 204 205 206 207 208 209 210
  }
}

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

  strong {
    line-height: 24px;
  }
}

211
.show-suppressed-diff,
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
212 213 214 215 216 217 218 219
.show-all-commits {
  cursor: pointer;
}

.git_error_tips {
  @extend .col-md-6;
  text-align: left;
  margin-top: 40px;
220

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
221
  pre {
222
    background: $white-light;
223
    border: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
224 225 226 227 228 229
    font-size: 12px;
  }
}

.error-message {
  padding: 10px;
230
  background: $error-bg;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
231
  margin: 0;
232
  color: $white-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
233 234

  a {
235
    color: $white-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
236 237 238 239 240
    text-decoration: underline;
  }
}

.warning_message {
241 242
  border-left: 4px solid $warning-message-border;
  color: $warning-message-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
243 244
  padding: 10px;
  margin-bottom: 10px;
245
  background: $warning-message-bg;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
246 247 248 249 250 251 252 253 254
  padding-left: 20px;

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

.gitlab-promo {
  a {
255
    color: $gl-promo-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
256 257 258 259 260 261
    margin-right: 30px;
  }
}

.milestone {
  &.milestone-closed {
262
    background: $gray-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
263
  }
264

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
265 266 267
  .progress {
    margin-bottom: 0;
    margin-top: 4px;
268 269
    box-shadow: none;
    background-color: $border-gray-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
270 271 272 273 274 275 276 277 278 279
  }
}

.control-group {
  .controls {
    span {
      &.descr {
        position: relative;
        top: 2px;
        left: 5px;
280
        color: $control-group-descr-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
281 282 283 284 285 286 287
      }
    }
  }
}

img.emoji {
  height: 20px;
288
  vertical-align: top;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
289
  width: 20px;
290
  margin-top: 1px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
291 292 293 294 295 296 297 298 299 300 301 302 303
}

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

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

304 305
.btn-sign-in {
  text-shadow: none;
306 307

  @media (min-width: $screen-sm-min) {
308
    margin-top: 8px;
309
  }
310 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

Douwe Maan's avatar
Douwe Maan committed
326
.well {
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 {
335
  @extend .well;
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 369
.dropzone .dz-preview .dz-progress {
  border-color: $border-color !important;

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 446 447

/** COMMON CLASSES **/
.prepend-top-0 { margin-top: 0; }
.prepend-top-5 { margin-top: 5px; }
448
.prepend-top-8 { margin-top: $grid-size; }
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
.prepend-top-10 { margin-top: 10px; }
.prepend-top-15 { margin-top: 15px; }
.prepend-top-default { margin-top: $gl-padding !important; }
.prepend-top-20 { margin-top: 20px; }
.prepend-left-4 { margin-left: 4px; }
.prepend-left-5 { margin-left: 5px; }
.prepend-left-10 { margin-left: 10px; }
.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; }
.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; }
.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; }
.center { text-align: center; }
.vertical-align-middle { vertical-align: middle; }