common.scss 6.94 KB
Newer Older
1
/** COLORS **/
Sam Rose's avatar
Sam Rose committed
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

/** 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 14 15
.prepend-top-20 { margin-top: 20px; }
.prepend-left-5 { margin-left: 5px; }
.prepend-left-10 { margin-left: 10px; }
Phil Hughes's avatar
Phil Hughes committed
16
.prepend-left-default { margin-left: $gl-padding; }
17 18 19
.prepend-left-20 { margin-left: 20px; }
.append-right-5 { margin-right: 5px; }
.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 28
.inline { display: inline-block; }
.center { text-align: center; }
29
.vertical-align-middle { vertical-align: middle; }
30

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
31
.underlined-link { text-decoration: underline; }
Sam Rose's avatar
Sam Rose committed
32 33
.hint { font-style: italic; color: $hint-color; }
.light { color: $common-gray; }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
34

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
35
.slead {
Sam Rose's avatar
Sam Rose committed
36
  color: $common-gray;
37
  font-size: 14px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
38
  margin-bottom: 12px;
39
  font-weight: $gl-font-weight-normal;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
40 41
  line-height: 24px;
}
42

43
.bold {
44
  font-weight: $gl-font-weight-bold;
45 46
}

47 48 49
.tab-content {
  overflow: visible;
}
50

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
51 52 53 54 55 56
pre {
  &.clean {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
57 58
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
59
  &.well-pre {
Sam Rose's avatar
Sam Rose committed
60
    border: 1px solid $well-pre-bg;
61
    background: $gray-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
62
    border-radius: 0;
Sam Rose's avatar
Sam Rose committed
63
    color: $well-pre-color;
64
  }
65 66 67 68 69

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

72
hr {
73
  margin: 24px 0;
74
  border-top: 1px solid darken($gray-normal, 8%);
75 76
}

77
.str-truncated {
78
  @include str-truncated;
79
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
80

81 82 83 84 85 86 87 88 89 90 91
.block-truncated {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

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

92
.item-title { font-weight: $gl-font-weight-bold; }
93

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
94
/** FLASH message **/
Fatih Acet's avatar
Fatih Acet committed
95 96
.author_link,
.author-link {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
97
  color: $gl-link-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
}

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

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

.loading {
  margin: 20px auto;
  height: 40px;
Sam Rose's avatar
Sam Rose committed
113
  color: $loading-color;
114 115
  font-size: 32px;
  text-align: center;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
116 117 118 119
}

span.update-author {
  display: block;
Sam Rose's avatar
Sam Rose committed
120
  color: $update-author-color;
121
  font-weight: $gl-font-weight-normal;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
122
  font-style: italic;
123

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
124
  strong {
125
    font-weight: $gl-font-weight-bold;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
126 127 128 129 130
    font-style: normal;
  }
}

.user-mention {
Sam Rose's avatar
Sam Rose committed
131
  color: $user-mention-color;
132
  font-weight: $gl-font-weight-bold;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
133 134 135 136 137 138 139
}

.field_with_errors {
  display: inline;
}

p.time {
Sam Rose's avatar
Sam Rose committed
140
  color: $time-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
141 142 143 144 145 146 147 148
  font-size: 90%;
  margin: 30px 3px 3px 2px;
}

.highlight {
  text-shadow: none;
}

149
.thin_area {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
150 151 152 153 154
  height: 150px;
}

// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
155
  img { max-width: 100%; }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
156 157
  .note-title {
    li {
158
      border-bottom: none !important;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
159 160 161 162 163 164 165 166 167 168
    }
  }
}

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

169 170
.wiki_content code,
.readme code {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
171 172 173
  background-color: inherit;
}

174
.project_member_show {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
175
  td:first-child {
Sam Rose's avatar
Sam Rose committed
176
    color: $project-member-show-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190
  }
}

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

  strong {
    line-height: 24px;
  }
}

191
.show-suppressed-diff,
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
192 193 194 195 196 197 198 199
.show-all-commits {
  cursor: pointer;
}

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

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
201
  pre {
Sam Rose's avatar
Sam Rose committed
202
    background: $white-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
203 204 205 206 207 208 209
    border: none;
    font-size: 12px;
  }
}

.error-message {
  padding: 10px;
Sam Rose's avatar
Sam Rose committed
210
  background: $error-bg;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
211
  margin: 0;
Sam Rose's avatar
Sam Rose committed
212
  color: $white-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
213 214

  a {
Sam Rose's avatar
Sam Rose committed
215
    color: $white-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
216 217 218 219
    text-decoration: underline;
  }
}

220 221 222
.browser-alert {
  padding: 10px;
  text-align: center;
Sam Rose's avatar
Sam Rose committed
223 224
  background: $error-bg;
  color: $white-light;
225
  font-weight: $gl-font-weight-bold;
226

227
  a {
Sam Rose's avatar
Sam Rose committed
228
    color: $white-light;
229 230 231 232
    text-decoration: underline;
  }
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
233
.warning_message {
Sam Rose's avatar
Sam Rose committed
234 235
  border-left: 4px solid $warning-message-border;
  color: $warning-message-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
236 237
  padding: 10px;
  margin-bottom: 10px;
Sam Rose's avatar
Sam Rose committed
238
  background: $warning-message-bg;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
239 240 241 242 243 244 245 246 247
  padding-left: 20px;

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

.gitlab-promo {
  a {
Sam Rose's avatar
Sam Rose committed
248
    color: $gl-promo-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
249 250 251 252 253 254
    margin-right: 30px;
  }
}

.milestone {
  &.milestone-closed {
255
    background: $gray-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
256
  }
257

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
258 259 260
  .progress {
    margin-bottom: 0;
    margin-top: 4px;
261 262
    box-shadow: none;
    background-color: $border-gray-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
263 264 265 266 267 268 269 270 271 272
  }
}

.control-group {
  .controls {
    span {
      &.descr {
        position: relative;
        top: 2px;
        left: 5px;
Sam Rose's avatar
Sam Rose committed
273
        color: $control-group-descr-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
274 275 276 277 278 279 280
      }
    }
  }
}

img.emoji {
  height: 20px;
Clement Ho's avatar
Clement Ho committed
281
  vertical-align: top;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
282
  width: 20px;
283
  margin-top: 1px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
}

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

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

table {
  td.permission-x {
Sam Rose's avatar
Sam Rose committed
299
    background: $table-permission-x-bg !important;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
300 301 302 303
    text-align: center;
  }
}

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;
Sam Rose's avatar
Sam Rose committed
347
    color: $username-color;
348 349 350 351
    margin-top: 8px;
  }

  .description {
352
    font-size: $gl-font-size;
Sam Rose's avatar
Sam Rose committed
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 {
Sam Rose's avatar
Sam Rose committed
363
    border-color: $profiler-border !important;
364 365
  }
}
366

367 368 369 370 371 372 373
.dropzone .dz-preview .dz-progress {
  border-color: $border-color !important;
}

.dropzone .dz-preview .dz-progress .dz-upload {
  background: $gl-success !important;
}
374

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

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

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

Phil Hughes's avatar
Phil Hughes committed
388
.project-item-select-holder {
389
  display: inline-block;
390 391
  position: relative;

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

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

407 408 409
.hide-bottom-border {
  border-bottom: none !important;
}
410 411

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

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

432 433 434 435
.str-truncated {
  &-60 {
    @include str-truncated(60%);
  }
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
436 437 438 439

  &-100 {
    @include str-truncated(100%);
  }
440
}
441 442 443 444 445 446

.tooltip {
  .tooltip-inner {
    word-wrap: break-word;
  }
}
447 448 449 450 451

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