common.scss 5.6 KB
Newer Older
1
/** COLORS **/
2
.cgray { color: $gl-gray; }
3
.clgray { color: #BBB }
D
Dmitriy Zaporozhets 已提交
4 5
.cred { color: $gl-text-red; }
.cgreen { color: $gl-text-green; }
D
Dmitriy Zaporozhets 已提交
6
.cdark { color: #444 }
7 8 9

/** COMMON CLASSES **/
.prepend-top-10 { margin-top:10px }
10
.prepend-top-default { margin-top: $gl-padding !important; }
11
.prepend-top-20 { margin-top:20px }
12 13 14 15 16
.prepend-left-10 { margin-left:10px }
.prepend-left-20 { margin-left:20px }
.append-right-10 { margin-right:10px }
.append-right-20 { margin-right:20px }
.append-bottom-10 { margin-bottom:10px }
17
.append-bottom-15 { margin-bottom:15px }
18
.append-bottom-20 { margin-bottom:20px }
19
.append-bottom-default { margin-bottom: $gl-padding; }
20
.inline { display: inline-block }
21
.center { text-align: center }
22

D
Dmitriy Zaporozhets 已提交
23
.underlined-link { text-decoration: underline; }
24
.hint { font-style: italic; color: #999; }
25
.light { color: $gl-gray; }
D
Dmitriy Zaporozhets 已提交
26

D
Dmitriy Zaporozhets 已提交
27
.slead {
28
  color: $gl-gray;
29
  font-size: 15px;
D
Dmitriy Zaporozhets 已提交
30 31 32 33
  margin-bottom: 12px;
  font-weight: normal;
  line-height: 24px;
}
34

35 36 37
.tab-content {
  overflow: visible;
}
38

D
Dmitriy Zaporozhets 已提交
39 40 41 42 43 44
pre {
  &.clean {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
45 46
  }

D
Dmitriy Zaporozhets 已提交
47 48 49 50 51
  &.well-pre {
    border: 1px solid #EEE;
    background: #f9f9f9;
    border-radius: 0;
    color: #555;
52 53
  }
}
D
Dmitriy Zaporozhets 已提交
54

55 56 57 58
hr {
  margin: $gl-padding 0;
}

D
Dmitriy Zaporozhets 已提交
59 60 61
.dropdown-menu > li > a {
  text-shadow: none;
}
62

63 64 65 66 67
.dropdown-menu-align-right {
  left: auto;
  right: 0px;
}

68 69
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
70
  background: $gl-primary;
G
Greg Smethells 已提交
71
  color: #FFF;
72
}
73

74
.str-truncated {
75
  @include str-truncated;
76
}
D
Dmitriy Zaporozhets 已提交
77

78 79
.item-title { font-weight: 600; }

D
Dmitriy Zaporozhets 已提交
80 81
/** FLASH message **/
.author_link {
D
Dmitriy Zaporozhets 已提交
82
  color: $gl-link-color;
D
Dmitriy Zaporozhets 已提交
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
}

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

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

.loading {
  margin: 20px auto;
  height: 40px;
98 99 100
  color: #555;
  font-size: 32px;
  text-align: center;
D
Dmitriy Zaporozhets 已提交
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
}

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

.user-mention {
  color: #2FA0BB;
  font-weight: bold;
}

.field_with_errors {
  display: inline;
}

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

.highlight {
  text-shadow: none;
}

.thin_area{
  height: 150px;
}

// Fixes alignment on notes.
.new_note {
  label {
    text-align: left;
  }
}

// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
  img { max-width:100% }
  .note-title {
    li {
      border-bottom:none !important;
    }
  }
}

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

.wiki_content code, .readme code{
  background-color: inherit;
}

164
.project_member_show {
D
Dmitriy Zaporozhets 已提交
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
  td:first-child {
    color: #aaa;
  }
}

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

  strong {
    line-height: 24px;
  }
}

181
.show-suppressed-diff,
D
Dmitriy Zaporozhets 已提交
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
.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;
  background: #C67;
  margin: 0;
  color: #FFF;

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

209 210 211 212 213 214 215 216 217 218 219 220
.browser-alert {
  padding: 10px;
  text-align: center;
  background: #C67;
  color: #fff;
  font-weight: bold;
  a {
    color: #fff;
    text-decoration: underline;
  }
}

D
Dmitriy Zaporozhets 已提交
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
.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 {
243
    background: #f9f9f9;
D
Dmitriy Zaporozhets 已提交
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
  }
  .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 {
    background: #D9EDF7 !important;
    text-align: center;
  }
}

.dashboard-intro-icon {
  float: left;
290
  text-align: center;
D
Dmitriy Zaporozhets 已提交
291 292
  font-size: 32px;
  color: #AAA;
293 294 295 296 297 298 299 300
  width: 60px;
}

.dashboard-intro-text {
  display: inline-block;
  margin-left: -60px;
  padding-left: 60px;
  width: 100%;
D
Dmitriy Zaporozhets 已提交
301 302
}

303
.btn-sign-in {
304
  margin-top: 8px;
305 306 307
  text-shadow: none;
}

D
Dmitriy Zaporozhets 已提交
308 309 310 311 312
.side-filters {
  fieldset {
    margin-bottom: 15px;
  }
}
313

314 315 316 317 318
.footer-links {
  margin-bottom: 20px;
  a {
    margin-right: 15px;
  }
319
}
R
Robert Schilling 已提交
320

D
Douwe Maan 已提交
321
.well {
322
  margin-bottom: $gl-padding;
D
Douwe Maan 已提交
323 324
}

R
Robert Schilling 已提交
325
.search_box {
326
  @extend .well;
R
Robert Schilling 已提交
327 328 329
  text-align: center;
}

330
#nprogress .spinner {
331 332
  top: 15px !important;
  right: 10px !important;
333
}
334 335 336 337 338 339 340 341 342 343 344 345 346 347

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

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

  .description {
348
    font-size: $gl-font-size;
349 350 351 352
    color: #666;
    margin-top: 8px;
  }
}
353 354

.profiler-results {
355
  top: 73px !important;
356 357 358 359 360 361

  .profiler-button,
  .profiler-controls {
    border-color: #EEE !important;
  }
}
362

363 364 365 366 367 368 369
.dropzone .dz-preview .dz-progress {
  border-color: $border-color !important;
}

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

.space-right {
  margin-right: 10px;
}
374 375 376 377

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

P
Phil Hughes 已提交
379
.project-item-select-holder {
380 381 382
  display: inline-block;
  position: relative;

P
Phil Hughes 已提交
383
  .project-item-select {
384 385 386 387 388 389 390
    position: absolute;
    top: 0;
    right: 0;
    width: 250px !important;
    visibility: hidden;
  }
}
391 392 393 394 395 396

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