Newer
Older
.button {
padding: 0;
background-color: transparent;
background-image: none;
border: 0;
box-shadow: none;
&:hover {
cursor: pointer;
}
&.is-disabled {
pointer-events: none;
opacity: .5;
}
&--primary {
@include button($color--light-blue, $color--dark-blue);
display: inline-block;
.form--filters & {
height: 45px;
&--contains-icons {
display: flex;
align-items: center;
.header & {
margin-right: 20px;
}
}
&--transparent {
@include button(transparent, $color--black);
@include button--narrow;
color: $color--black;
border: 1px solid $color--black;
&:hover {
color: $color--white;
}
}
&--white {
@include button($color--white, $color--light-blue);
display: inline-block;
color: $color--light-blue;
border: 1px solid $color--mid-grey;
&:focus {
color: $color--light-blue;
}
&:hover {
color: $color--white;
}
}
&--warning {
@include button($color--error, $color--error);
&:focus {
background-color: $color--pastel-red;
}
}
&--filters {
display: flex;
justify-content: space-between;
max-width: 300px;
font-weight: $weight--normal;
color: $color--default;
Chris Lawton
committed
background: url('./../../images/filters.svg') $color--white no-repeat 93% center;
Chris Lawton
committed
border: 1px solid $color--light-mid-grey;
Chris Lawton
committed
transition: none;
background: none;
padding: 10px;
border: 0;
justify-content: flex-start;
width: auto;
opacity: .7;
&::before {
content: '';
background-image: url('./../../images/filters.svg');
transform: rotate(90deg);
background-color: transparent;
background-position: left center;
background-size: 20px;
width: 20px;
height: 20px;
display: inline-block;
margin-right: 10px;
Chris Lawton
committed
}
&--filters-header {
display: flex;
}
&--search {
position: absolute;
right: 10px;
svg {
fill: $color--primary;
}
}
&--full-width {
width: 100%;
text-align: center;
}
&--half-width {
width: 50%;
padding: 10px 0;
text-align: center;
&:first-child {
margin-right: 20px;
}
}
&--bottom-space {
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
}
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
&--actions {
position: relative;
display: block;
background-color: $color--white;
&:active {
background: $color--light-blue-90;
}
&::after {
position: absolute;
top: 0;
right: 15px;
font-size: 30px;
content: '+';
}
&.is-active {
color: $color--dark-blue;
background: $color--light-blue-90;
&::after {
top: -12px;
content: '_';
}
}
@include media-query(tablet-portrait) {
display: none;
}
}
&--top-space {
margin-top: 20px;
}
&--submit {
min-width: 200px;
text-align: center;
}
&--compare {
width: 75px;
padding: 3px;
margin-top: 10px;
font-size: 12px;
font-weight: $weight--bold;
text-align: center;
text-transform: uppercase;
border: 1px solid currentColor;
transition: background-color, color, border, $quick-transition;
@include media-query(tablet-portrait) {
margin-top: 0;
}
&:focus,
&:hover {
color: $color--white;
background-color: $color--light-blue;
border: 1px solid $color--light-blue;
}
}
&--arrow-pixels-white {
display: flex;
align-items: center;
svg {
width: 10px;
height: 14px;
margin-left: 10px;
fill: $color--white;
}
}
Chris Lawton
committed
&--action {
display: flex;
color: $color--default;
align-items: center;
transition: opacity $transition;
font-weight: $weight--semibold;
position: relative;
Chris Lawton
committed
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
&:hover {
opacity: 1;
}
&:disabled {
color: $color--mid-dark-grey;
cursor: not-allowed;
// tooltip
&::before {
content: attr(data-tooltip);
pointer-events: none;
position: absolute;
width: 200px;
padding: 12px;
font-size: 12px;
font-weight: $weight--normal;
white-space: normal;
background: $color--light-blue;
opacity: 0;
transition: opacity $transition;
bottom: 45px;
left: 50%;
transform: translateX(-50%);
color: $color--white;
text-align: left;
line-height: 1rem;
border: 1px solid $color--white;
border-radius: 3px;
}
&::after {
@include triangle(bottom, $color--primary, 7px);
position: absolute;
top: -22px;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity $transition;
z-index: 10;
}
svg {
fill: $color--mid-dark-grey;
}
Chris Lawton
committed
&:hover {
opacity: 1;
// show tooltip
&::before {
pointer-events: all;
z-index: 10;
opacity: 1;
}
&::after {
opacity: 1;
}
Chris Lawton
committed
}
}
svg {
fill: $color--light-blue;
width: 24px;
height: 24px;
margin-right: 10px;
pointer-events: none;
Chris Lawton
committed
}
}
&--change-status {
svg {
transform: rotate(90deg);
Chris Lawton
committed
}
}