This repository was archived by the owner on Jan 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy path_buttons.scss
88 lines (78 loc) · 1.62 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
86
87
88
/***** Buttons *****/
.button {
@include tablet {
width: auto;
}
background-color: transparent;
border: 1px solid $button-color;
border-radius: $border-radius;
color: $button-color;
cursor: pointer;
display: inline-block;
font-size: 12px;
line-height: 2.34; //Taken from Zendesk garden bedrock
margin: 0;
padding: 0 20px;
text-align: center;
transition: background-color 0.12s ease-in-out, border-color 0.12s ease-in-out,
color 0.15s ease-in-out;
user-select: none;
white-space: nowrap;
width: 100%;
-webkit-touch-callout: none;
&:hover,
&:active,
&:focus,
&.button-primary {
background-color: $brand-color;
color: $brand-text-color;
text-decoration: none;
}
&.button-primary {
&:hover,
&:focus,
&:active {
background-color: $hover-button-color;
border-color: $hover-button-color;
}
}
&[data-disabled] {
cursor: default;
}
}
.button-large,
input[type='submit'] {
@include tablet {
width: auto;
}
cursor: pointer;
background-color: $button-color;
border: 0;
border-radius: $border-radius;
color: $brand-text-color;
font-weight: $font-weight-semibold;
line-height: 2.72;
min-width: 190px;
padding: 0 1.9286em;
width: 100%;
&:hover,
&:active,
&:focus {
background-color: $hover-button-color;
}
&[disabled] {
background-color: #ddd;
}
}
.button-secondary {
color: $secondary-text-color;
border: 1px solid $border-color;
background-color: transparent;
&:hover,
&:focus,
&:active {
color: $text-color;
border: 1px solid $border-color;
background-color: $primary-shade;
}
}