common.scss 6.9 KB
Newer Older
1
/** LAYOUT **/
D
Dmitriy Zaporozhets 已提交
2

3
body {
4
  margin-bottom: 20px;
5 6
}

7
.container {
8 9
  padding-top: 0;
  z-index: 5;
D
Dmitriy Zaporozhets 已提交
10 11
}

12
.container .content {
13
  margin: 0 0;
14 15
}

16
.visible_link,
17
.author_link {
18
  color: $link_color;
D
Dmitriy Zaporozhets 已提交
19
}
D
Dmitriy Zaporozhets 已提交
20

21
.help li { color:$style_color; }
22

23
.back_link {
24 25 26
  text-decoration: underline;
  font-size: 14px;
  font-weight: bold;
27
  padding: 10px 0;
28
  padding-bottom: 0;
29
}
D
Dmitriy Zaporozhets 已提交
30

31
.info_link {
32 33
  margin-right: 5px;
  float: left;
D
Dmitriy Zaporozhets 已提交
34

35
  img {
36
    width: 20px;
D
Dmitriy Zaporozhets 已提交
37 38
  }
}
39

40
.download_repo_link {
41
  background: url("images.png") no-repeat 0 -48px;
42
  padding-left: 20px;
43 44
}

45
table a code {
46 47 48 49
  position: relative;
  top: -2px;
  margin-right: 3px;
}
50 51 52 53

.span12 hr{
 margin-top: 5px;
}
D
Dmitriy Zaporozhets 已提交
54

55
.loading {
56
  margin: 20px auto;
57
  background: url(ajax_loader.gif) no-repeat center center;
58 59
  width: 40px;
  height: 40px;
60 61 62
  &.loading-gray {
    background: url(ajax_loader_gray.gif) no-repeat center center;
  }
63
}
D
Dmitriy Zaporozhets 已提交
64 65

/** FLASH message **/
C
Cyril 已提交
66
#flash-container {
67 68 69 70 71 72 73 74 75
  height: 50px;
  position: fixed;
  z-index: 10001;
  top: 0px;
  width: 100%;
  margin-bottom: 15px;
  overflow: hidden;
  background: white;
  cursor: pointer;
76
  border-bottom: 1px solid #ccc;
C
Cyril 已提交
77 78
  text-align: center;
  display: none;
D
Dmitriy Zaporozhets 已提交
79 80

  h4 {
81
    color: #666;
82 83 84 85 86
    font-size: 18px;
    line-height: 38px;
    padding-top: 5px;
    margin: 2px;
    font-weight: normal;
D
Dmitriy Zaporozhets 已提交
87 88 89 90 91 92 93 94
  }
}

.git_url_wrapper {
  margin-right:50px
}

span.update-author {
95
  display: block;
96
  color: #999;
97 98
  font-weight: normal;
  font-style: italic;
99 100 101 102
  strong {
    font-weight: bold;
    font-style: normal;
  }
D
Dmitriy Zaporozhets 已提交
103 104 105
}

.dashboard-loader {
106 107 108
  float: left;
  margin: 10px;
  display: none;
D
Dmitriy Zaporozhets 已提交
109 110
}
.user-mention {
111
  color: #2FA0BB;
112
  font-weight: bold;
D
Dmitriy Zaporozhets 已提交
113 114
}

115
.neib {
116
  margin-right: 10px;
117 118 119
}

.label {
120 121 122 123
  padding: 0px 4px;
  font-size: 10px;
  font-style: normal;
  background-color: $link_color;
124 125 126 127 128 129 130 131 132 133 134 135

  &.label-success {
    background-color: #8D8;
    color: #333;
    text-shadow: 0 1px 1px white;
  }

  &.label-error {
    background-color: #D88;
    color: #333;
    text-shadow: 0 1px 1px white;
  }
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 164 165
}

form {
  @extend .form-horizontal;

  .actions {
    @extend .form-actions;
  }

  .clearfix {
    @extend .control-group;
  }

  .input {
    @extend .controls;
  }

  label {
    @extend .control-label;
  }
  .xlarge {
    @extend .input-xlarge;
  }
  .xxlarge {
    @extend .input-xxlarge;
  }
}


.field_with_errors {
166
  display: inline;
167 168 169
}

ul.breadcrumb {
170 171
  background: white;
  border: none;
172 173 174 175 176 177
  li {
    display: inline;
    text-shadow: 0 1px 0 white
  }

  a {
178
    color: #474D57;
179 180
    font-weight: bold;
    font-size: 14px;
181 182 183 184 185 186 187 188 189
  }

  .arrow {
    background: url("images.png") no-repeat -85px -77px;
    width: 19px;
    height: 16px;
    float: left;
    position: relative;
    left: -10px;
190 191
    padding: 0;
    margin: 0;
192 193 194 195 196
  }
}

input[type=text] {
  &.large_text {
197 198
    padding: 6px;
    font-size: 16px;
199 200 201
  }
}

202
input.git_clone_url {
203
  width: 325px;
D
Dmitriy Zaporozhets 已提交
204 205 206
}

.merge-request-form-holder {
207
  select {
208
    width: 300px;
D
Dmitriy Zaporozhets 已提交
209 210 211 212 213
  }
}

/** Issues **/
#issue_assignee_id {
214
  width: 300px;
D
Dmitriy Zaporozhets 已提交
215 216 217 218 219 220
}

#new_issue_dialog textarea{
    height: 100px;
}

221
.project_list_url {
222
  width: 250px;
D
Dmitriy Zaporozhets 已提交
223 224 225 226
  background:#fff !important;
}


227 228 229
.line_holder {
  &:hover {
    td {
D
Dmitriy Zaporozhets 已提交
230 231 232 233 234
      background: #FFFFCF !important;
    }
  }
}

235 236
li.commit {
  .avatar {
237
    width: 24px;
238
    top:-5px;
239 240
    margin-right: 10px;
    margin-left: 10px;
D
Dmitriy Zaporozhets 已提交
241 242
  }

243
  code {
244 245 246 247 248 249
    padding: 2px 2px 0;
    margin-top: -2px;
    &:hover {
      color: black;
      border: 1px solid #ccc;
    }
D
Dmitriy Zaporozhets 已提交
250 251 252 253 254 255 256
  }
}
p.time {
  color: #999;
  font-size: 90%;
  margin: 30px 3px 3px 2px;
}
257 258


259
.styled_image {
260
  border: 2px solid #ddd;
261
}
262

D
Dmitriy Zaporozhets 已提交
263

S
Steven Verbeek 已提交
264

265 266
/* Fix for readme code (stopped it from being yellow) */
.readme {
267 268
  pre {
    background: white !important;
269

270 271
    code {
      background: none !important;
S
Steven Verbeek 已提交
272 273 274
    }
  }
}
275

276
.highlight_word {
277
  background: #EEDC94;
278
}
279

280
.status_info {
281
  font-size: 14px;
282
  padding: 5px 15px;
283
  line-height: 26px;
284
  text-align: center;
285 286
  float: right;
  position: relative;
287 288
  top: -5px;
  @include border-radius(4px);
289

290
  &.error {
291 292
    background: #DA4E49;
    color: #FFF;
293
  }
294 295
}

296
.arrow{
297
  background: #E3E5EA;
298
  padding: 5px;
299
  margin-top: 5px;
300
  @include border-radius(5px);
301 302 303
  text-shadow: none;
  color: #999;
  line-height: 16px;
304
  font-weight: bold;
V
Valery Sizov 已提交
305 306 307 308 309
}

.thin_area{
  height: 150px;
}
R
randx 已提交
310

311 312 313
// Fixes alignment on notes.
.new_note {
  label {
314
    text-align: left;
315 316 317
  }
}

318 319
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
R
randx 已提交
320
  img { max-width:100% }
321 322 323 324 325
  .note-title {
    li {
      border-bottom:none !important;
    }
    .file {
326
      padding-left: 20px;
327 328 329
      background:url("icon-attachment.png") no-repeat left center;
    }
  }
330
}
R
randx 已提交
331

332 333
.markdown {
  img {
334
    max-width: 100%;
R
randx 已提交
335 336
  }
}
337 338 339 340

.wiki_content code, .readme code{
  background-color: inherit;
}
D
Dmitriy Zaporozhets 已提交
341

342 343
.team_member_show {
  td:first-child {
344
    color: #aaa;
D
Dmitriy Zaporozhets 已提交
345 346
  }
}
D
Dmitriy Zaporozhets 已提交
347

348
.remember_me {
349
  text-align: left;
D
Dmitriy Zaporozhets 已提交
350

351
  input {
352
    margin: 0;
D
Dmitriy Zaporozhets 已提交
353 354
  }

355
  span {
356
    padding-left: 5px;
D
Dmitriy Zaporozhets 已提交
357
  }
D
Dmitriy Zaporozhets 已提交
358 359 360
}


R
randx 已提交
361 362 363 364 365

/**
 * Admin area
 *
 */
366 367 368 369
.admin_dash {
  .data {
    a {
      h1 {
370 371 372 373
        line-height: 48px;
        font-size: 48px;
        padding: 20px;
        text-align: center;
374
        font-weight: normal;
R
randx 已提交
375 376 377 378
      }
    }
  }
}
379 380 381

.rss-icon {
  img {
382 383
    width: 24px;
    vertical-align: top;
384
  }
R
randx 已提交
385

386
  strong {
387
    line-height: 24px;
R
randx 已提交
388
  }
389
}
390

R
randx 已提交
391

392 393

/* CHZN reset few styles */
394
.chzn-container-single .chzn-single {
395
  background: #FFF;
R
randx 已提交
396
  border: 1px solid #bbb;
397
  box-shadow: none;
398
}
399
.chzn-container-active .chzn-single {
400
  background: #fff;
401
}
D
Dmitriy Zaporozhets 已提交
402

R
randx 已提交
403

R
randx 已提交
404
.supp_diff_link,
405
.show-all-commits {
406
  cursor: pointer;
R
randx 已提交
407
}
D
Dmitriy Zaporozhets 已提交
408 409

.merge_request,
410 411
.issue {
  &.today{
R
randx 已提交
412
    background: #EFE;
413
    border-color: #CEC;
D
Dmitriy Zaporozhets 已提交
414
  }
415
  &.closed {
R
randx 已提交
416
    background: #F5f5f5;
417
    border-color: #E5E5E5;
D
Dmitriy Zaporozhets 已提交
418
  }
419
  &.merged {
420
    background: #F5f5f5;
421
    border-color: #E5E5E5;
D
Dmitriy Zaporozhets 已提交
422
  }
R
randx 已提交
423
}
424

425 426
.git_error_tips {
  @extend .span6;
427 428
  text-align: left;
  margin-top: 40px;
429
  pre {
430 431
    background: white;
    border: none;
432 433 434
    font-size: 12px;
  }
}
435 436 437

.error_message {
  @extend .cred;
D
Dmitriy Zaporozhets 已提交
438 439 440 441 442
  border-left: 4px solid #E99;
  padding: 10px;
  margin-bottom: 10px;
  background: #FEE;
  padding-left: 20px;
D
Dmitriy Zaporozhets 已提交
443 444 445 446

  &.centered {
    text-align: center;
  }
447
}
448 449

.oauth_select_holder {
450
  padding: 20px;
451
  img {
452 453
    padding: 5px;
    margin-right: 10px;
454 455 456
  }
  .active {
    img {
457
      border: 1px solid #ccc;
458
      background: $hover;
459 460 461 462
      @include border-radius(5px);
    }
  }
}
D
Dmitriy Zaporozhets 已提交
463 464 465 466 467 468

.btn-build-token {
  float: left;
  padding: 6px 20px;
  margin-right: 12px;
}
469 470 471

.gitlab-promo {
  a {
472
    color: #aaa;
473 474 475
    margin-right: 30px;
  }
}
476

R
randx 已提交
477 478
pre {
  &.clean {
479 480 481 482
    background: none;
    border: none;
    margin: 0;
    padding: 0;
R
randx 已提交
483 484
  }
}
485

D
Dmitriy Zaporozhets 已提交
486 487 488 489 490 491 492 493
.milestone {
  &.milestone-closed {
    background: #eee;
  }
  .progress {
    margin-bottom: 0;
    margin-top: 4px;
  }
494
}
R
randx 已提交
495 496

.float-link {
497 498
  float: left;
  margin-right: 15px;
R
randx 已提交
499
  .s16 {
500
    margin-right: 5px;
R
randx 已提交
501 502
  }
}
D
Dmitriy Zaporozhets 已提交
503 504 505 506 507 508 509 510 511 512 513 514 515

.dashboard-search-filter {
  padding:5px;

  .search-text-input {
    float:left;
    @extend .span2;
  }
  .btn {
    margin-left: 5px;
    float:left;
  }
}
516 517 518 519 520 521 522

h1.http_status_code {
  font-size: 56px;
  line-height: 100px;
  font-weight: normal;
  color: #456;
}
523 524 525 526 527 528 529 530 531 532 533 534 535

.control-group {
  .controls {
    span {
      &.descr {
        position: relative;
        top: 2px;
        left: 5px;
        color: #666;
      }
    }
  }
}