common.scss 7.04 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

/** 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
.prepend-left-20 { margin-left: 20px; }
.append-right-5 { margin-right: 5px; }
19
.append-right-8 { margin-right: 8px; }
20
.append-right-10 { margin-right: 10px; }
Phil Hughes's avatar
Phil Hughes committed
21
.append-right-default { margin-right: $gl-padding; }
22 23
.append-right-20 { margin-right: 20px; }
.append-bottom-0 { margin-bottom: 0; }
24
.append-bottom-5 { margin-bottom: 5px; }
25 26 27
.append-bottom-10 { margin-bottom: 10px; }
.append-bottom-15 { margin-bottom: 15px; }
.append-bottom-20 { margin-bottom: 20px; }
28
.append-bottom-default { margin-bottom: $gl-padding; }
29 30
.inline { display: inline-block; }
.center { text-align: center; }
31
.vertical-align-middle { vertical-align: middle; }
32

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

37
.slead {
38
  color: $common-gray;
39
  font-size: 14px;
40
  margin-bottom: 12px;
41
  font-weight: $gl-font-weight-normal;
42 43
  line-height: 24px;
}
44

45
.bold {
46
  font-weight: $gl-font-weight-bold;
47 48
}

49 50 51
.tab-content {
  overflow: visible;
}
52

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

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

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

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

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

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

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

94
.item-title { font-weight: $gl-font-weight-bold; }
95

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

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

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

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

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

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

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

.field_with_errors {
  display: inline;
}

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

.highlight {
  text-shadow: none;
}

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

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

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

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

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

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

  strong {
    line-height: 24px;
  }
}

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

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

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

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

  a {
217
    color: $white-light;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
218 219 220 221
    text-decoration: underline;
  }
}

222 223 224
.browser-alert {
  padding: 10px;
  text-align: center;
225 226
  background: $error-bg;
  color: $white-light;
227
  font-weight: $gl-font-weight-bold;
228

229
  a {
230
    color: $white-light;
231 232 233 234
    text-decoration: underline;
  }
}

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

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

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

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

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

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

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

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

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

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

306 307
.btn-sign-in {
  text-shadow: none;
308 309

  @media (min-width: $screen-sm-min) {
310
    margin-top: 8px;
311
  }
312 313
}

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

320 321
.footer-links {
  margin-bottom: 20px;
322

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

Douwe Maan's avatar
Douwe Maan committed
328
.well {
329
  margin-bottom: $gl-padding;
330 331 332 333

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

Robert Schilling's avatar
Robert Schilling committed
336
.search_box {
337
  @extend .well;
Robert Schilling's avatar
Robert Schilling committed
338 339 340
  text-align: center;
}

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

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

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

.profiler-results {
361
  top: 73px !important;
362 363 364

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

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

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

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

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

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

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

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

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

409 410 411
.hide-bottom-border {
  border-bottom: none !important;
}
412 413

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

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

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

  &-100 {
    @include str-truncated(100%);
  }
443
}
444 445 446 447 448 449

.tooltip {
  .tooltip-inner {
    word-wrap: break-word;
  }
}
450 451 452 453 454

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