aboutsummaryrefslogtreecommitdiff
path: root/app/assets/sass/_buttons.scss
blob: 2d0bb6d1730731285cd0e7080580d9cf6bda3691 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.btn {
   border-radius: $border-radius-base;
   padding: $padding-base $padding-lg;
   font-size: $font-size-base;
   line-height: 1.2;
   text-decoration: none;
   text-transform: uppercase;
   cursor: pointer;
   margin-left: $padding-base;

   &-default {
   border: 1px solid $blue;
   color: $blue;
   background-color: #fff;

      &:hover {
         background-color: $light-blue;
         color: #fff;
      }
   }

   &-lg {
      padding: $padding-base $padding-lg*2;
      font-size: round($font-size-base * 1.2);
   }

   &-sm {
      padding: $padding-base $padding-base;
      font-size: round($font-size-base * 0.9);
   }

   &-slim {
      .fa { margin: 0};
   }

   &-link {
      border: 0;
      background-color: transparent;
      color: $link-color;
      padding: 0;
   }

   &-danger {
      border: 1px solid $red;
      color: $red;
      text-transform: uppercase;
      background-color: #fff;

      &:hover {
         background-color: $light-red;
      }
   }

   &-primary {
      border: 0;
      background: $blue;
      box-shadow: 1px 1px 1px $gray;
      color: #ffffff;

      &:hover {
         background: $dark-blue;
      }
   }

   &-close {
      @extend .btn-slim;
         border-radius: 50%;
         box-shadow: 0;
         line-height: 1.5;
         border: 1px solid $line-color;
         background-color: #fff;
      }
   }

.button-group {
   button {
      margin: 0;
      background-color: $gray-lightest;
      border-radius: 0;
      float: left;
      border: 1px solid $line-color;
      cursor: pointer;

      &:first-of-type {
         border-top-left-radius: $border-radius-lg;
         border-bottom-left-radius: $border-radius-lg;
      }
      &:last-of-type {
         border-top-right-radius: $border-radius-lg;
         border-bottom-right-radius: $border-radius-lg;
      }
   }
   
   .selected {
      background-color: $gray-light;
   }
}