BigW Consortium Gitlab

buttons.scss 3.1 KB
Newer Older
1
.btn {
Dmitriy Zaporozhets committed
2 3
  display: inline-block;
  margin-bottom: 0;
4
  font-weight: normal;
Dmitriy Zaporozhets committed
5 6 7
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
8
  background-image: none;
Ciro Santilli committed
9
  border: $btn-border;
10 11 12
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 13px;
13
  line-height: 18px;
14 15 16 17 18 19
  border-radius: 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
20
  color: #444444;
21 22
  background-color: #fff;
  text-shadow: none;
23

Dmitriy Zaporozhets committed
24
  &.hover,
25
  &:hover {
26
    color: #444444;
Dmitriy Zaporozhets committed
27
    text-decoration: none;
28 29
    background-color: #ebebeb;
    border-color: #adadad;
30 31
  }

32 33
  &.focus,
  &:focus {
34
    color: #444444;
35
    text-decoration: none;
36 37 38
    outline: thin dotted #333;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
39 40
  }

Dmitriy Zaporozhets committed
41 42 43
  &.active,
  &:active {
    outline: 0;
44 45 46
    background-image: none;
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
47 48
  }

Dmitriy Zaporozhets committed
49 50
  &.disabled,
  &[disabled] {
51 52 53 54 55 56
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.65;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
Dmitriy Zaporozhets committed
57
  }
58

Dmitriy Zaporozhets committed
59
  &.btn-primary {
60
    color: #ffffff;
61 62
    background-color: $bg_primary;
    border-color: $border_primary;
Dmitriy Zaporozhets committed
63 64 65 66 67

    &.hover,
    &:hover,
    &.disabled,
    &[disabled] {
68
      color: #ffffff;
69
    }
70 71
  }

72
  &.btn-success {
73
    color: #ffffff;
74 75
    background-color: $bg_success;
    border-color: $border_success;
Dmitriy Zaporozhets committed
76 77 78 79 80 81


    &.hover,
    &:hover,
    &.disabled,
    &[disabled] {
82
      color: #ffffff;
83
    }
Dmitriy Zaporozhets committed
84 85 86
  }

  &.btn-danger {
87
    color: #ffffff;
88 89
    background-color: $bg_danger;
    border-color: $border_danger;
90

Dmitriy Zaporozhets committed
91 92 93 94 95

    &.hover,
    &:hover,
    &.disabled,
    &[disabled] {
96
      color: #ffffff;
97
    }
98 99
  }

100 101 102 103 104 105 106 107 108 109 110 111 112 113
  &.btn-warning {
    color: #ffffff;
    background-color: $bg_warning;
    border-color: $border_warning;


    &.hover,
    &:hover,
    &.disabled,
    &[disabled] {
      color: #ffffff;
    }
  }

Dmitriy Zaporozhets committed
114 115 116 117
  &.btn-new {
    @extend .btn-success;
  }

118
  &.btn-create {
119
    @extend .wide;
120
    @extend .btn-success;
121 122
  }

123 124 125
  &.btn-save {
    @extend .wide;
    @extend .btn-primary;
126 127
  }

128
  &.btn-remove {
129
    @extend .btn-danger;
130 131
  }

132 133 134 135 136 137 138
  &.btn-cancel {
    float: right;
  }

  &.wide {
    padding-left: 20px;
    padding-right: 20px;
139 140
  }

Dmitriy Zaporozhets committed
141 142 143
  &.btn-small {
    padding: 2px 10px;
    font-size: 12px;
144
  }
145

146
  &.btn-tiny {
147
    font-size: 11px;
148
    padding: 2px 6px;
149
    line-height: 16px;
150
    margin: 2px;
151
  }
152 153

  &.btn-close {
154 155
    color: $bg_danger;
    border-color: $border_danger;
156 157 158 159 160 161
    &:hover {
      color: #B94A48;
    }
  }

  &.btn-reopen {
162 163
    color: $bg_success;
    border-color: $border_success;
164 165 166 167
    &:hover {
      color: #468847;
    }
  }
168 169 170 171 172 173 174 175

  &.btn-grouped {
    margin-right: 7px;
    float: left;
    &:last-child {
      margin-right: 0px;
    }
  }
176 177 178 179 180 181 182 183 184 185
}

.btn-block {
  width: 100%;
  margin: 0;
  margin-bottom: 15px;
  &.btn {
    padding: 6px 0;
  }
}
186

187 188 189 190 191 192 193 194 195 196
.btn-group {
  &.btn-grouped {
    margin-right: 7px;
    float: left;
    &:last-child {
      margin-right: 0px;
    }
  }
}

197 198
.btn-group-small > .btn { @extend .btn.btn-small; }
.btn-group-tiny > .btn { @extend .btn.btn-tiny; }