-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path_m-btn.scss
80 lines (66 loc) · 1.51 KB
/
_m-btn.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
@use "../01-abstract/variables";
@use "m-hover";
/**
* Button - All mixins for buttons - Used in src/scss/05-components/_btn.scss
*
* @author Milan Ricoul
*
*/
@mixin btn {
display: inline;
padding: 0;
font-family: inherit;
color: inherit;
vertical-align: middle;
cursor: pointer;
background-color: transparent;
border: none;
appearance: none;
}
// ----
// button block
// ----
@mixin btn-block {
position: relative;
z-index: 1;
display: inline-block;
min-width: 90px;
padding: 15px 25px;
overflow: hidden;
font-size: 12px;
font-weight: 700;
line-height: 16px;
color: variables.$color-dark;
text-align: center;
background-color: variables.$color-primary;
border-radius: 10px;
@include m-hover.hover {
@include btn-block-hover;
}
}
// hover of the button block
@mixin btn-block-hover {
color: variables.$color-primary;
background-color: variables.$color-dark;
}
// Coloring
@mixin btn-block-colored($background-color, $color) {
color: $color;
background-color: $background-color;
@include m-hover.hover {
color: $background-color;
background-color: $color;
}
}
// Outline style
@mixin btn-block-outline {
padding: 13px 23px;
background-color: transparent;
border: 2px solid currentColor; // Force button width VS Gutenberg CSS
@include m-hover.hover {
@include btn-block-outline-hover;
}
}
@mixin btn-block-outline-hover {
background-color: transparent;
}