This repository has been archived by the owner on Oct 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_buttons.scss
85 lines (70 loc) · 1.96 KB
/
_buttons.scss
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
/*===============================================
Buttons - Co-op Front-end Toolkit
===============================================*/
@import "variables";
@import "mixins/typography";
@import "mixins/buttons";
.btn {
@extend %button-base;
@include button-colour($text-colour: $white,
$hover-text-colour: $white,
$active-text-colour: $white,
$bg-colour: $button-grey,
$hover-bg-colour: $button-grey-highlighted,
$active-bg-colour: darken($button-grey-highlighted, 10%));
}
.btn-primary,
.btn--primary {
@include button-colour($text-colour: $white,
$hover-text-colour: $white,
$active-text-colour: $white,
$bg-colour: $green-blue-mid,
$hover-bg-colour: #2B9E9C,
$active-bg-colour: #0C6F6D);
}
.btn-primary-dark {
@include button-colour($text-colour: $white,
$hover-text-colour: $white,
$active-text-colour: $white,
$bg-colour: $button-grey,
$hover-bg-colour: $button-grey-highlighted,
$active-bg-colour: darken($button-grey-highlighted, 10%));
}
.btn-secondary {
@include button-colour($text-colour: $coop-link-blue,
$hover-text-colour: $coop-link-blue,
$bg-colour: $white,
$hover-bg-colour: $offwhite);
&:disabled,
&.disabled {
background-color: $offwhite;
&:hover,
&:focus {
background-color: $offwhite;
}
}
}
.btn-full {
@extend %btn-full;
}
.btn-small {
@extend %btn-small;
}
.btn-medium {
@extend %btn-medium;
}
.btn-large {
@extend %btn-large;
}
.btn-pill {
@extend %btn-pill;
}
.btn-loading {
@extend %btn-loading;
}
.btn-proceed {
@extend %btn-proceed;
}
.btn-back {
@extend %btn-back;
}