gitlab_bootstrap.scss 10.2 KB
Newer Older
1 2 3
body { 
  margin-bottom:20px;
}
R
randx 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
a {
  outline: none;
  color: $link_color;
  &:hover { 
    text-decoration:none; 
    color: $blue_link;
  }

  &.btn { 
    color: $style_color;
  }

  &.dark { 
    color: $style_color;
  }

  &.lined { 
    text-decoration:underlined; 
  }

  &.gray { 
    color:gray;
  }

  &.supp_diff_link { 
    text-align:center;
    padding:20px 0;
    background:#f1f1f1;
    width:100%;
    float:left;
  }

  &.neib  {
    margin-right:15px;
  }
}

D
Dmitriy Zaporozhets 已提交
41 42 43 44
.neib { 
  margin-right:10px;
}

R
randx 已提交
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
.alert-message { 
  @extend .alert;

  &.success { 
    @extend .alert-success;
  }

  &.error { 
    @extend .alert-error;
  }
}

.alert { 
  &.alert-well { 
    background:#ddd;
    border:1px solid #ccc;
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #ddd), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#ddd 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#ddd 6.6%, #dfdfdf);
    background-image: -o-linear-gradient(#ddd 6.6%, #dfdfdf);
    color:#111;
  }
}

h3, h4, h5, h6 {
  line-height: 36px;
}

73 74 75 76
h5 { 
  font-size:14px;
}

R
randx 已提交
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
code { 
  background:#FCEEC1;
  color:$style_color;
}

table { 
  width:100%;
  th {
    padding-top: 9px;
    font-weight: bold;
    vertical-align: middle;
  }
  th, td {
    padding: 10px 10px 9px;
    line-height: 18px;
    text-align: left;
  }

  &.bordered-table {
    border: 1px solid #DDD;
    border-collapse: separate;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
  }

  &.zebra-striped { 
    @extend .table-striped;
  }
}

.btn { 
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f1f1f1), color-stop(25%, #f1f1f1), to(#e6e6e6));
  background-image: -webkit-linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6);
  background-image: -moz-linear-gradient(top, #f1f1f1, #f1f1f1 25%, #e6e6e6);
  background-image: -ms-linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6);
  background-image: -o-linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6);
  background-image: linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6);

  &:hover { 
  }

  &.btn-primary { 
    background:$link_color;
121
    border-color: #2A79A3;
R
randx 已提交
122 123 124 125
    &:hover { 
      background:$blue_link;
    }
  }
D
Dmitriy Zaporozhets 已提交
126 127 128
  &.primary { 
    @extend .btn-primary;
  }
129

130 131 132 133 134 135 136 137 138 139 140 141
  &.success { 
    color: #fff;
    text-shadow: 0 0 1px #111;
    background: #5bb75b;;
    font-weight: bold;

    &:hover { 
      background-color: #51a351;
      color: #fff;
    }
  }

142 143 144 145 146 147 148 149 150 151 152 153
  &.danger,
  &.btn-danger { 
    color:#fff;
    background: #DA4E49;
    border-color: #BD362F;

    &:hover { 
      color:#fff;
      background: #EE4E49;
    }
  }

D
Dmitriy Zaporozhets 已提交
154 155 156
  &.danger { 
    @extend .btn-danger;
  }
R
randx 已提交
157 158 159 160 161 162 163 164 165 166 167

  &.small { 
    @extend .btn-small;
  }
}

a:focus { 
  outline: none; 
}

.nav-pills a:hover { 
R
randx 已提交
168
  background-color:#888;
R
randx 已提交
169 170 171
}

.nav-pills .active a {
R
randx 已提交
172
  background-color: $style_color;
R
randx 已提交
173 174 175 176
}

.label { 
  background-color: #474D57;
177 178 179
  &.label-important { 
    background-color: #B94A48;
  }
180 181 182 183 184 185 186 187

  &.label-issue { 
    background-color: #eee;
    border: 1px solid #ccc;
    padding:4px 6px;
    color:#444;
    text-shadow:0 0 1px #fff;
  }
R
randx 已提交
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 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 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
}

.nav-tabs > li > a, .nav-pills > li > a {
  color:$style_color;
}

/** COLORS **/
.cgray { color:gray; }
.cred { color:#D12F19; }
.cgreen { color:#44aa22; }
.cblack { color:#111; }
.cwhite { color:#fff !important }

/** COMMON STYLES **/
.left {
  float:left;
}
.right {
  float:right !important;
}
.width-50p{
  width:50%;
}
.width-49p{
  width:49%;
}
.width-30p{
  width:30%;
}
.width-65p{
  width:65%;
}
.width-100p{
  width:100%;
}
.append-bottom-10 {
  margin-bottom:10px;
}
.append-bottom-20 {
  margin-bottom:20px;
}
.prepend-top-10 {
  margin-top:10px;
}

.prepend-top-20 {
  margin-top:20px;
}

.padded { 
  padding:20px;
}

.ipadded { 
  padding:20px !important;
}
.lborder { 
  border-left:1px solid #eee;
}

.borders { 
  border: 1px solid #ccc;
  @include shade;
}
.no-borders { 
  border:none;
}
table.no-borders { 
  border:none;
  tr, td { border:none }
}
.no-padding { 
  padding:0 !important;
}
.underlined { 
  border-bottom: 1px solid $border_color;
}
.vlink { 
  color: $link_color !important;
}

.pretty_label { 
  @include round-borders-all(4px);
  padding:2px 4px;
  background-image: -webkit-gradient(linear, 0 0, 0 26, color-stop(0.076, #fefefe), to(#F6F7F8));
  background-image: -webkit-linear-gradient(#fefefe 7.6%, #F6F7F8);
  background-image: -moz-linear-gradient(#fefefe 7.6%, #F6F7F8);
  background-image: -o-linear-gradient(#fefefe 7.6%, #F6F7F8);
  color: #777;
  border: 1px solid #DEDFE1;

  &.branch { 
    border:none;
    font-size:13px;
    background: #474D57;
    color:#fff;
R
randx 已提交
284
    font-weight:bold;
R
randx 已提交
285 286 287 288 289 290
    font-family: monospace;
  }
}

.event_label { 
  background: #FCEEC1;
291
  padding: 2px 2px 0;
R
randx 已提交
292 293 294 295 296 297 298 299 300 301
  font-family: monospace;
}

img.avatar { 
  float:left;
  margin-right:15px;
  width:40px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
302 303 304 305 306 307 308

  &.s16 { 
    width:16px;
  }
  &.s24 { 
    width:24px;
  }
R
randx 已提交
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414
}

img.lil_av { 
  padding-left: 4px;
  padding-right:3px;
}

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;
  }
}

/**
 * List li block element #1
 *
 */
.wll { 
  background-color: #FFF;
  padding: 10px 5px;
  min-height: 20px;
  border-bottom: 1px solid #eee;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor:pointer;
  &.smoke { 
    background-color:#f5f5f5;
  }
  &:hover { 
    background:$hover;
  }
  &:last-child { border:none }
  p { padding-top:5px; margin:0; color:$style_color;}
  .author { color: #999; }
  p { 
    color:#222;
    margin-bottom: 0;
    img { 
      position:relative;
      top:3px;
    }
  }
}


/**
 * Block element #2
 *
 */
.entry { 
  position: relative;
  padding: 7px 15px;
  margin-bottom: 18px;
  color: #404040;
  filter:none;

  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);

  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;

  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);

  background:#F1F1F1;
  border: 1px solid #ccc;


  p { 
    color:$style_color;
    margin-bottom: 0;
    img { 
      position:relative;
      top:3px;
    }
  }
}


/**
 * Big UI Block for show page content
 *
 */
.ui-box { 
R
randx 已提交
415
  background:#F9F9F9;
R
randx 已提交
416 417
  margin-bottom: 40px;
  @include round-borders-all(4px);
R
randx 已提交
418
  border-color: #CCC;
R
randx 已提交
419 420 421 422 423 424 425 426

  ul { 
    margin:0;
  }

  h5, .title { 
    padding: 0 10px;
    @include round-borders-top(4px);
R
randx 已提交
427 428 429 430 431 432
    border-bottom: 1px solid #bbb;
    background:#eee;
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
R
randx 已提交
433 434 435 436 437 438

    form { 
      padding:9px 0;
      margin:0px;
    }

D
Dmitriy Zaporozhets 已提交
439
    .nav-pills { 
R
randx 已提交
440 441 442 443 444 445 446 447 448 449 450
      li { 
        padding:3px 0;
        &.active a { background-color:$style_color; }
        a { 
          border-radius:7px;
        }
      }
    }
  }

  .bottom { 
R
randx 已提交
451 452 453 454
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
R
randx 已提交
455 456
    @include round-borders-bottom(4px);
    border-bottom:none;
R
randx 已提交
457
    border-top: 1px solid #bbb;
R
randx 已提交
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
  }

  &.padded { 
    h5, .title { 
      margin: -20px;
      margin-bottom: 0;
      padding: 5px 20px;
    }
    .middle_title { 
      background:#f5f5f5;
      margin:20px -20px;
      padding: 0 20px;
      border-top:1px solid #eee;
      border-bottom:1px solid #eee;
      font-size:14px;
      color:#777;
    }
  }
  .row_title { 
    font-weight:bold;
    color:#444;
    &:hover { 
      text-decoration:underline;
    }
  }

  li, .wll {
    padding:10px;
    &:first-child { 
      @include round-borders-top(4px);
      border-top:none;
    }

    &:last-child { 
      @include round-borders-bottom(4px);
      border:none;
    }
  }

}
498 499 500 501 502 503 504 505 506 507 508 509 510 511

table.admin-table {
  @extend .table-bordered; 
  @extend .zebra-striped;
  th { 
    border-color: #CCC;
    border-bottom: 1px solid #bbb;
    background:#eee;
    background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
    background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
    background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
  }
}
512 513 514 515 516

.field_with_errors { 
  display:inline;
}

517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542
ul.breadcrumb {
  background:white;
  border:none;
  li {
    display: inline;
    text-shadow: 0 1px 0 white
  }

  a { 
    color:#474D57;
    font-weight:bold;
    font-size:14px;
  }

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

543 544 545 546 547
.nothing_here_message { 
  text-align:center;
  padding:20px;
  color:#777;
}
R
randx 已提交
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593

/**
 *  UI box element 
 *  contains top, middle, bottom blocks
 * 
 */
.main_box { 
  @extend .borders;
  @extend .prepend-top-20;
  @extend .append-bottom-20;
  border-width:1px;

  img { max-width: 100%; }

  pre {
    code {
      background: none !important;
    }
  }

  .top_box_content, 
  .middle_box_content, 
  .bottom_box_content { 
    padding:15px;

    pre {
      background: none !important;
      margin:0;
      border:none;
      padding:0;
    }
  }

  .middle_box_content { 
    border-radius:0;
    border:none;
    font-size:12px;
    background-color:#f5f5f5;
    border:none;
    border-top:1px solid #eee;
  }

  .bottom_box_content { 
    border-top:1px solid #eee;
  }
}
R
randx 已提交
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617

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

p { 
  &.slead { 
    color:#456;
    font-size:16px;
    margin-bottom: 12px;
    font-weight: 200;
    line-height: 24px;
  }
}

h3.page_title { 
  color:#456;
  font-size:20px;
  font-weight: 600;
  line-height: 28px;
}