aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/css/itcss/components/buttons.scss
blob: 86daf60d897f16de6959bf69ee89ba5892ccab3c (plain) (blame)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
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
/*
  Buttons
 */

.btn-primary,
.btn-primary--lg,
.btn-secondary,
.btn-secondary--lg {
  background: $white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .3s ease;
  padding: 0 20px;
  min-width: 140px;
  text-transform: uppercase;
  outline: none;
}

.btn-primary,
.btn-primary--lg {
  color: $curious-blue;
  border: 2px solid $spindle;

  &:active {
    background: $zumthor;
    border-color: $curious-blue;
  }

  &:hover {
    border-color: $curious-blue;
  }

  &--disabled,
  &[disabled] {
    cursor: auto;
    opacity: .5;
    pointer-events: none;
  }
}

.btn-secondary,
.btn-secondary--lg {
  color: $scorpion;
  border: 2px solid $dusty-gray;

  &:active {
    background: $gallery;
    border-color: $dusty-gray;
  }

  &:hover {
    border-color: $scorpion;
  }

  &--disabled,
  &[disabled] {
    cursor: auto;
    opacity: .5;
    pointer-events: none;
  }
}

.btn-primary, .btn-secondary {
  height: 44px;
}

.btn-primary--lg, .btn-secondary--lg {
  height: 54px;
}

.btn-green {
  background-color: #02c9b1; // TODO: reusable color in colors.css
}

.btn-clear {
  background: $white;
  text-align: center;
  padding: .8rem 1rem;
  color: $curious-blue;
  border: 2px solid $spindle;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 400;
  transition: border-color .3s ease;

  &:hover {
    border-color: $curious-blue;
  }

  &--disabled,
  &[disabled] {
    cursor: auto;
    opacity: .5;
    pointer-events: none;
  }
}

.btn-cancel {
  background: $white;
  text-align: center;
  padding: .9rem 1rem;
  color: $scorpion;
  border: 2px solid $dusty-gray;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 400;
  transition: border-color .3s ease;

  &:hover {
    border-color: $scorpion;
  }
}

.btn-confirm {
  background-color: $caribbean-green; // TODO: reusable color in colors.css
  text-align: center;
  padding: .8rem 1rem;
  color: $white;
  border: 2px solid $caribbean-green;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 400;
  transition: border-color .3s ease;
}

// No longer used in flat design, remove when modal buttons done
// div.wallet-btn {
//   border: 1px solid rgb(91, 93, 103);
//   border-radius: 2px;
//   height: 30px;
//   width: 75px;
//   font-size: 0.8em;
//   text-align: center;
//   line-height: 25px;
// }

// .btn-red {
//   background: rgba(254, 35, 17, 1);
//   box-shadow: 0px 3px 6px rgba(254, 35, 17, 0.36);
// }

button[disabled],
input[type="submit"][disabled] {
  cursor: not-allowed;
  opacity: .5;
  // background: rgba(197, 197, 197, 1);
  // box-shadow: 0 3px 6px rgba(197, 197, 197, .36);
}

// button.spaced {
//   margin: 2px;
// }

// button:not([disabled]):hover, input[type="submit"]:not([disabled]):hover {
//   transform: scale(1.1);
// }
// button:not([disabled]):active, input[type="submit"]:not([disabled]):active {
//   transform: scale(0.95);
// }

button.primary {
  padding: 8px 12px;
  background: #f7861c;
  box-shadow: 0 3px 6px rgba(247, 134, 28, .36);
  color: $white;
  font-size: 1.1em;
  font-family: Roboto;
  text-transform: uppercase;
}

.btn-light {
  padding: 8px 12px;
  // background: #FFFFFF; // $bg-white
  box-shadow: 0 3px 6px rgba(247, 134, 28, .36);
  color: #585d67; // TODO: make reusable light button color
  font-size: 1.1em;
  font-family: Roboto;
  text-transform: uppercase;
  text-align: center;
  line-height: 20px;
  border-radius: 2px;
  border: 1px solid #979797; // #TODO: make reusable light border color
  opacity: .5;
}

// TODO: cleanup: not used anywhere
button.btn-thin {
  border: 1px solid;
  border-color: #4d4d4d;
  color: #4d4d4d;
  background: rgb(255, 174, 41);
  border-radius: 4px;
  min-width: 200px;
  margin: 12px 0;
  padding: 6px;
  font-size: 13px;
}

.btn-tertiary {
  border: 1px solid transparent;
  border-radius: 2px;
  background-color: transparent;
  font-size: 16px;
  line-height: 24px;
  padding: 16px 42px;
}