blob: 5bc4f3519d24a47d999e71084268d11ceddeb313 (
plain)
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
|
.btn {
display: block;
box-sizing: border-box;
color: var(--text-color);
border: solid 2px var(--text-color);
font-weight: 500;
text-align: center;
padding-inline: var(--padding-inline-md);
padding-block: var(--padding-block-sm);
background-color: transparent;
transition:
background-color 100ms,
font-weight 100ms,
transform 100ms;
}
.btn:is(:hover, :focus, :focus-visible, :focus-within, :active) {
box-shadow: none;
outline: none;
color: var(--text-highlight-color);
border-color: var(--background-highlight-color);
background-color: var(--background-highlight-color);
font-weight: 700;
transition:
background-color 300ms,
font-weight 300ms,
transform 300ms;
}
.btn:is(:focus, :focus-visible, :focus-within) {
border-color: var(--special-text-highlight-color);
border-style: dotted;
}
.btn:active {
transform: scale(1.1, 1.1);
}
|