BigW Consortium Gitlab

buttons.scss 3.68 KB
Newer Older
Andrey committed
1 2 3
body {
    text-rendering: geometricPrecision;
}
4
.btn {
5
  @extend .btn-default;
6

Dmitriy Zaporozhets committed
7 8 9 10
  &.btn-new {
    @extend .btn-success;
  }

11
  &.btn-create {
12
    @extend .btn-success;
13 14
  }

15
  &.btn-save {
16
    @extend .btn-success;
17 18
  }

19
  &.btn-remove {
20
    @extend .btn-danger;
21 22
  }

23 24 25 26
  &.btn-cancel {
    float: right;
  }

27
  &.btn-close {
28 29
    color: $gl-danger;
    border-color: $gl-danger;
30 31 32 33 34 35
    &:hover {
      color: #B94A48;
    }
  }

  &.btn-reopen {
36 37
    color: $gl-success;
    border-color: $gl-success;
38 39 40 41
    &:hover {
      color: #468847;
    }
  }
42 43 44 45 46 47 48 49

  &.btn-grouped {
    margin-right: 7px;
    float: left;
    &:last-child {
      margin-right: 0px;
    }
  }
50

51 52 53 54 55 56
  &.btn-save {
    @extend .btn-primary;
  }

  &.btn-new, &.btn-create {
    @extend .btn-success;
57
  }
58 59 60 61 62 63 64 65 66 67
}

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

69 70 71 72 73 74 75 76 77
.btn-group {
  &.btn-grouped {
    margin-right: 7px;
    float: left;
    &:last-child {
      margin-right: 0px;
    }
  }
}
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93

.btn-group-next {
  .btn {
    padding: 9px 0px;
    font-size: 15px;
    color: #7f8fa4;
    border-color: #e7e9ed;
    width: 140px;

    &.active {
      border-color: $gl-info;
      background: $gl-info;
      color: #fff;
    }
  }
}
Andrey committed
94 95 96

@mixin btn-info {
  @include border-radius(2px);
Andrey committed
97
  @include transition (all 0.2s ease 0s);
Andrey committed
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
  
  border-width: 1px;
  border-style: solid;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  padding: 11px 16px;
  letter-spacing: .4px;
  
  &:hover {
    border-width: 1px;
    border-style: solid;
  }
  
  &:focus {
    border-width: 1px;
    border-style: solid;
  }
  
  &:active {
    @include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
Andrey committed
120
    
Andrey committed
121 122 123 124 125 126 127
    border-width: 1px;
    border-style: solid;
  }
}

@mixin btn-middle {
  @include border-radius(2px);
Andrey committed
128
  @include transition (all 0.2s ease 0s);
Andrey committed
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
  
  border-width: 1px;
  border-style: solid;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  padding: 11px 24px;
  letter-spacing: .4px;
  
  &:hover {
    border-width: 1px;
    border-style: solid;
  }
  
  &:focus {
    border-width: 1px;
    border-style: solid;
  }
  
  &:active {
    @include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
Andrey committed
151
    
Andrey committed
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 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 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
    border-width: 1px;
    border-style: solid;
    }
}


@mixin btn-green {
  background-color: #28b061;
  border: 1px solid #26a65c;
  color: #fff;
    
     &:hover {
       background-color: #26ab5d;
       border: 1px solid #229954;
       color: #fff;
     }
     
     &:focus {
       background-color: #26ab5d;
       border: 1px solid #229954;
       color: #fff;
     }
     
     &:active {
       @include box-shadow (inset 0 0 4px rgba(0, 0, 0, 0.12));
        
       background-color: #23a158 !important;
       border: 1px solid #229954 !important;
       color: #fff !important;
     } 
}

/*Butons*/

@mixin bnt-project {
  background-color: #f0f2f5;
  border-color: #dce0e5;
  color: #313236;
  
  &:hover {
    border-color:#dce0e5;
    background-color: #ebeef2;
    color: #313236;
  }
   
  &:focus {
    border-color: #dce0e5;
    background-color: #ebeef2;
    color: #313236;
  }
  
  &:active {
   @include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
   
      color: #313236 !important;
      border-color: #c6cacf !important;
      background-color: #e4e7ed !important;
  }
}

@mixin btn-remove {
  background-color: #f72e60;
  border-color: #ee295a;
  
  &:hover {
    background-color: #e82757;
    border-color: #e32555;
  }
  
  &:focus {
    background-color: #e82757;
    border-color: #e32555;
  }
  
  &:active {
    @include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
    background-color: #d42450 !important;
    border-color: #e12554 !important;
  }
  
}