summaryrefslogtreecommitdiffstats
path: root/app/common/styles/base/buttons.scss
blob: f97aa6d0bae0ee5f29c94388bfcd90686c694f07 (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
button, .button, .submit, .btn, [type='button'] {
  font-size: 1em;
  @include fontFamilyBold;
  text-transform: none;
  border-radius: 0;
  padding: .5em 1em;
  line-height: 1;
  &:hover {
    cursor: pointer;
  }
  &.disabled {
    pointer-events: none;
    color: $btn__disabled-txt;
    background-color: $btn__disabled-bg;
    border-color: $btn__disabled-bg;
    border-style: solid;
    border-width: 2px;
    &:hover {
      cursor: default;
      background: transparent;
      text-decoration: none;
    }
  }
}

.btn-primary {
  color: $primebtn__text;
  background: $primebtn__bg;
  border: 2px solid $primebtn__bg;
  &:hover {
    background: lighten($primebtn__bg, 8%);
    border-color: lighten($primebtn__bg, 8%);
    @include fastTransition-all;
  }
  &.disabled {
    background: $primebtn__disabled-bg;
    border-color: $primebtn__disabled-bg;
    color: $primebtn__disabled-txt;
    @include fastTransition-all;
    &:hover {
      cursor: default;
    }
  }
  i {
    //button symbol
    font-style: normal;
    text-transform: none;
    font-size: 1.5em;
    transform: rotate(80deg);
    display: inline-block;
  }
  img {
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
  }
}
.btn-secondary {
  color: $secbtn__text;
  background: transparent;
  border: 2px solid $secbtn__border;
  &:hover {
    color: $secbtn__text;
    cursor: pointer;
    background: $secbtn__bg;
    border-color: $secbtn__text;
    @include fastTransition-all;
  }
  &.disabled {
    pointer-events: none;
    color: $btn__disabled-txt;
    background-color: $btn__disabled-bg;
    border-color: $btn__disabled-bg;
    border-style: solid;
    border-width: 2px;
    &:hover {
      background: $btn__disabled-bg;
    }
  }
  i {
    // button symbol
    font-style: normal;
    font-weight: 400;
    text-transform: none;
    font-size: 1.5em;
    transform: rotate(80deg) translate(-2px);
    display: inline-block;
    vertical-align: middle;
  }
  img {
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    margin-right: .5em;
  }
}

.btn-pop-out {
  position: relative;
  padding: 0 0 1em 2em;
  color: $black;
  &:hover {
    text-decoration: underline;
  }
  &:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0px;
    width: 25px;
    height: 20px;
    display: inline-block;
    border: 1px solid $black;
    border-top: 4px solid $black;
  }
  &:after {
    content: "\2794";
    position: absolute;
    transform: rotate(-45deg);
    font-size: 0.9em;
    font-weight: 700;
    vertical-align: middle;
    display: inline-block;
    left: 11px;
    top: 0px;
  }
}
OpenPOWER on IntegriCloud