common.scss 3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
/** COLORS **/
.cgray { color:gray }
.cred { color:#D12F19 }
.cgreen { color:#4a2 }
.cblack { color:#111 }
.cdark { color:#444 }
.cwhite { color:#fff!important }
.bgred { background:#F2DEDE!important }

/** COMMON CLASSES **/
.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 }
.no-padding { padding:0 !important; }
.underlined { border-bottom: 1px solid #CCC; }
27
.no-borders { border: none; }
28
.vlink { color: $link_color !important; }
29
.underlined_link { text-decoration: underline; }
30
.borders { border: 1px solid #ccc; @include shade; }
31
.hint { font-style: italic; color: #999; }
32
.light { color: #888 }
33
.tiny { font-weight: normal }
34 35

/** PILLS & TABS**/
36
.nav-pills a:hover { background-color: #888; }
37
.nav-pills .active a { background-color: $style_color; }
38
.nav-pills > .active > a > i[class^="icon-"] { background: inherit; }
39
.nav-tabs > li > a, .nav-pills > li > a { color: $style_color; }
40 41 42
.nav.nav-tabs {
  li {
    > a {
43
      padding: 8px 20px;
44
      margin-right: 7px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
45
      line-height: 19px;
46
      border-color: #EEE;
47
      color: #888;
48 49 50
      border-bottom: 1px solid #ddd;
      .badge {
        background-color: #eee;
51 52
        color: #888;
        text-shadow: 0 1px 1px #fff;
53
      }
54
      i[class^="icon-"] {
55
        line-height: 14px;
56
      }
57 58 59 60 61
    }
    &.active {
      > a {
        border-color: #CCC;
        border-bottom: 1px solid #fff;
62
        color: #333;
63 64 65 66
      }
    }
  }
}
67 68 69 70 71 72 73

/** ALERT MESSAGES **/
.alert-message { @extend .alert; }
.alert-messag.success { @extend .alert-success; }
.alert-message.error { @extend .alert-error; }

/** AVATARS **/
74
img.avatar { float: left; margin-right: 12px; width: 40px; border: 1px solid #ddd; padding: 1px; }
75 76 77 78
img.avatar.s16 { width: 16px; height: 16px; margin-right: 6px; }
img.avatar.s24 { width: 24px; height: 24px; margin-right: 8px; }
img.avatar.s32 { width: 32px; height: 32px; margin-right: 10px; }
img.lil_av { padding-left: 4px; padding-right: 3px; }
79
img.small { width: 80px; }
80 81

/** HELPERS **/
82 83 84 85 86 87 88 89 90
.nothing_here_message {
  text-align: center;
  padding: 20px;
  color: #666;
  font-weight: normal;
  font-size: 16px;
  line-height: 36px;
}

91
p.slead { color: #456; font-size: 16px; margin-bottom: 12px; font-weight: 200; line-height: 24px; }
92 93 94 95 96 97

/** FORMS **/
input[type='search'].search-text-input {
  background-image: url("icon-search.png");
  background-repeat: no-repeat;
  background-position: 10px;
98
  padding-left: 25px;
99
  @include border-radius(4px);
100
  border: 1px solid #ccc;
101
}
102 103

fieldset legend { font-size: 17px; }
104 105 106 107 108 109 110 111 112 113 114

/** PAGINATION **/
.gitlab_pagination {
  span a { color: $link_color; }
  .prev, .next, .current, .page a {
    padding: 10px;
  }
  .current {
    border-bottom: 2px solid $style_color;
  }
}