common.scss 5.6 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 14
.prepend-top-20 { margin-top: 20px }
.prepend-left-10 { margin-left: 10px }
Phil Hughes's avatar
Phil Hughes committed
15
.prepend-left-default { margin-left: $gl-padding; }
16
.prepend-left-20 { margin-left: 20px }
Phil Hughes's avatar
Phil Hughes committed
17
.append-right-5 { margin-right: 5px }
18
.append-right-10 { margin-right: 10px }
Phil Hughes's avatar
Phil Hughes committed
19
.append-right-default { margin-right: $gl-padding; }
20 21 22 23 24
.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 }
25
.append-bottom-default { margin-bottom: $gl-padding; }
26
.inline { display: inline-block }
27
.center { text-align: center }
28

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.field_with_errors {
  display: inline;
}

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

.highlight {
  text-shadow: none;
}

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

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

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

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

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

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

  strong {
    line-height: 24px;
  }
}

165
.show-suppressed-diff,
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
.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;
183
  background: #c67;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
184
  margin: 0;
185
  color: #fff;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
186 187 188 189 190 191 192

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

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

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
.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 {
227
    background: #f9f9f9;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
228 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
  }
  .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 {
267
    background: #d9edf7 !important;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
268 269 270 271 272 273
    text-align: center;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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