|
9 | 9 | outline: none; |
10 | 10 | border: none; |
11 | 11 | cursor: pointer; |
| 12 | + display: inline-flex; |
| 13 | + justify-content: center; |
| 14 | + gap: var(--gutter-half); |
| 15 | + align-items: center; |
| 16 | + svg{ |
| 17 | + width: 1.5em; |
| 18 | + height: 1.5em; |
| 19 | + align-self: center; |
| 20 | + } |
12 | 21 | } |
13 | 22 |
|
14 | 23 | .root:focus { |
|
21 | 30 | } |
22 | 31 |
|
23 | 32 | /* Variant: Animate1 & Animate2 */ |
| 33 | +.dark { |
| 34 | + background-color: var(--white); |
| 35 | + color: var(--processing-blue-dark); |
| 36 | +} |
| 37 | +.outline{ |
| 38 | + background-color: transparent; |
| 39 | + color: var(--white); |
| 40 | + border: 2px solid var(--white); |
| 41 | +} |
24 | 42 |
|
25 | 43 | .animate1, |
26 | | -.animate2 { |
| 44 | +.animate2, |
| 45 | +.dark, |
| 46 | +.outline { |
27 | 47 | position: relative; |
| 48 | + &:before{ |
| 49 | + content: ""; |
| 50 | + position: absolute; |
| 51 | + top: 0; |
| 52 | + left: 0; |
| 53 | + width: 100%; |
| 54 | + height: 100%; |
| 55 | + transition: all 0.3s; |
| 56 | + z-index: -1; |
| 57 | + background-color: var(--processing-blue-light); |
| 58 | + transform: translate(-3px, 3px); |
| 59 | + } |
| 60 | + &:hover::before { |
| 61 | + transform: translate(3px, -3px); |
| 62 | + } |
| 63 | + &.large::before { |
| 64 | + transform: translate(-5px, 5px); |
| 65 | + } |
| 66 | + &.large:hover::before { |
| 67 | + transform: translate(5px, -5px); |
| 68 | + } |
28 | 69 | } |
29 | | - |
30 | | -.animate1::before, |
31 | | -.animate2::before, |
32 | | -.animate2::after { |
33 | | - content: ""; |
34 | | - position: absolute; |
35 | | - top: 0; |
36 | | - left: 0; |
37 | | - width: 100%; |
38 | | - height: 100%; |
39 | | - transition: transform 0.3s; |
40 | | - z-index: -1; |
41 | | - background-color: var(--processing-blue-light); |
42 | | - transform: translate(-3px, 3px); |
| 70 | +.dark::before{ |
| 71 | + background-color: var(--white); |
| 72 | + opacity: 0.25; |
43 | 73 | } |
44 | | - |
45 | | -.animate1:hover::before, |
46 | | -.animate2:hover::before { |
47 | | - transform: translate(3px, -3px); |
48 | | - color: white; |
| 74 | +.dark:hover{ |
| 75 | + color: var(--processing-blue-dark); |
49 | 76 | } |
50 | | - |
51 | | -.animate1.large::before, |
52 | | -.animate2.large::before { |
53 | | - transform: translate(-5px, 5px); |
| 77 | +.dark:focus{ |
| 78 | + background-color: var(--white); |
| 79 | + color: var(--processing-blue-dark); |
54 | 80 | } |
55 | | - |
56 | | -.animate1.large:hover::before, |
57 | | -.animate2.large:hover::before { |
58 | | - transform: translate(5px, -5px); |
| 81 | +.outline::before{ |
| 82 | + background: none; |
| 83 | + border: 2px solid var(--white); |
| 84 | + clip-path: inset(4px 4px 0px 0px); |
59 | 85 | } |
| 86 | +.outline:hover::before{ |
| 87 | + background: none; |
| 88 | + border: 2px solid var(--white); |
| 89 | + clip-path: inset(0px 0px 4px 4px); |
| 90 | +} |
| 91 | + |
60 | 92 |
|
61 | 93 | /* Variant: Animate2 */ |
62 | 94 |
|
|
70 | 102 | color: white; |
71 | 103 | } |
72 | 104 |
|
73 | | -.animate2.large::after { |
74 | | - transform: translate(5px, -5px); |
75 | | -} |
76 | | - |
77 | | -.animate2.large:hover::after { |
78 | | - transform: translate(-5px, 5px); |
79 | | -} |
80 | | - |
81 | 105 | /* Variant: Gray */ |
82 | 106 |
|
83 | 107 | .gray { |
|
0 commit comments