1 | .md-outline-button { |
2 | position: relative; |
3 | box-sizing: border-box; |
4 | border-radius: 1.25rem; |
5 | height: 2.5rem; |
6 | padding: 0 1.5rem; |
7 | border: 0.0625rem solid var(--md-sys-color-outline); |
8 | background-color: transparent; |
9 | box-shadow: var(--md-box_shadow_level0); |
10 | font-family: var(--md-sys-typescale-label-large-font); |
11 | font-weight: var(--md-sys-typescale-label-large-weight); |
12 | font-size: var(--md-sys-typescale-label-large-size); |
13 | font-style: var(--md-sys-typescale-label-large-font-style); |
14 | letter-spacing: var(--md-sys-typescale-label-large-tracking); |
15 | text-transform: var(--md-sys-typescale-label-large-text-transform); |
16 | text-decoration: var(--md-sys-typescale-label-large-text-decoration); |
17 | color: var(--md-sys-color-primary); |
18 | white-space: nowrap; |
19 | text-overflow: ellipsis; |
20 | overflow: hidden; |
21 | } |
22 | |
23 | |
24 | .md-outline-button::after { |
25 | content: ""; |
26 | position: absolute; |
27 | z-index: -1; |
28 | top: 0; |
29 | right: 0; |
30 | left: 0; |
31 | bottom: 0; |
32 | background-color: transparent; |
33 | } |
34 | |
35 | .md-outline-button:hover { |
36 | color: var(--md-sys-color-primary); |
37 | border-color: var(--md-sys-color-outline); |
38 | } |
39 | |
40 | |
41 | .md-outline-button:hover::after { |
42 | background-color: var(--md-sys-color-primary); |
43 | opacity: var(--md-sys-state-hover-state-layer-opacity); |
44 | } |
45 | |
46 | .md-outline-button:focus { |
47 | outline: none; |
48 | color: var(--md-sys-color-primary); |
49 | border-color: var(--md-sys-color-outline); |
50 | } |
51 | |
52 | |
53 | .md-outline-button:focus::after { |
54 | background-color: var(--md-sys-color-primary); |
55 | opacity: var(--md-sys-state-focus-state-layer-opacity); |
56 | } |
57 | |
58 | .md-outline-button:active { |
59 | color: var(--md-sys-color-primary); |
60 | border-color: var(--md-sys-color-outline); |
61 | background-position: center; |
62 | background-image: |
63 | radial-gradient(circle, var(--md-riple-color) 1%, transparent 1%); |
64 | background-size: 100%; |
65 | animation-name: md-ripple; |
66 | animation-duration: var(--md-sys-motion-duration-500); |
67 | box-shadow: var(--md-box_shadow_level0) !important; |
68 | } |
69 | |
70 | |
71 | .md-outline-button:active::after { |
72 | background-color: var(--md-sys-color-primary); |
73 | opacity: var(--md-sys-state-pressed-state-layer-opacity); |
74 | } |
75 | |
76 | .md-outline-button:disabled { |
77 | background-color: transparent !important; |
78 | border-color: var(--md-sys-color-on-surface) !important; |
79 | color: var(--md-sys-color-on-surface) !important; |
80 | opacity: 0.38 !important; |
81 | } |
82 | |
83 | |
84 | .md-outline-button:disabled::after { |
85 | background-color: transparent !important; |
86 | opacity: 1 !important; |
87 | } |