|
20 | 20 | .sl-auth__divider::before { left: 0; } |
21 | 21 | .sl-auth__divider::after { right: 0; } |
22 | 22 |
|
23 | | -/* Responsive grid for buttons */ |
| 23 | +/* Stack buttons vertically (one under another) */ |
24 | 24 | .sl-auth__buttons { |
25 | | - display: grid; |
26 | | - grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); |
| 25 | + display: flex; |
| 26 | + flex-direction: column; |
27 | 27 | gap: .6rem; |
28 | 28 | } |
29 | 29 |
|
|
39 | 39 | border-radius: 999px; |
40 | 40 | font-weight: 600; |
41 | 41 | text-decoration: none; |
42 | | - border: 1px solid transparent; |
| 42 | + border: 1.7px solid transparent; |
43 | 43 | transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease; |
44 | 44 | will-change: transform, box-shadow; |
45 | 45 | outline: none; |
46 | 46 | } |
47 | 47 |
|
48 | | -/* Icon + text layout */ |
| 48 | +/* Icon + text layout (centered, no stretching) */ |
49 | 49 | .sl-btn__icon { |
50 | | - display: flex; |
51 | | - align-items: center; |
| 50 | + display: inline-flex; |
| 51 | + align-items: center; |
52 | 52 | justify-content: center; |
53 | 53 | line-height: 0; |
54 | | - display: inline-grid; |
55 | | - place-items: center; |
56 | 54 | width: var(--sl-icon-size); |
57 | 55 | height: var(--sl-icon-size); |
58 | 56 | flex: 0 0 var(--sl-icon-size); |
59 | 57 | } |
60 | 58 | .sl-btn__icon img { |
61 | 59 | display: block; |
62 | | - width: 100%; |
63 | | - height: 100%; |
64 | | - object-fit: contain; /* keep aspect ratio */ |
65 | | - object-position: center;/* center inside square box */ |
| 60 | + height: 100%; /* fill icon box height */ |
| 61 | + width: auto; /* preserve aspect ratio */ |
| 62 | + max-width: 100%; /* guard super-wide svgs */ |
| 63 | + object-fit: contain; /* no distortion */ |
| 64 | + object-position: center; |
66 | 65 | vertical-align: middle; |
67 | 66 | } |
68 | 67 | .sl-btn__text { line-height: 1; } |
|
79 | 78 | color: #1f2937; |
80 | 79 | background: #fff; |
81 | 80 | border-color: var(--gray-300, #e5e7eb); |
82 | | - box-shadow: 0 2px 8px rgba(0, 0, 0, .06); |
83 | 81 | } |
| 82 | + |
84 | 83 | .sl-btn--google:hover { |
85 | 84 | background: #fff; |
86 | 85 | border-color: var(--gray-400, #d1d5db); |
|
93 | 92 | --sl-icon-size: 18px; |
94 | 93 | color: #fff; |
95 | 94 | background: #0766FF; |
96 | | - box-shadow: 0 2px 10px rgba(24, 119, 242, .20); |
97 | 95 | } |
98 | 96 | .sl-btn--facebook:hover { |
99 | 97 | background: #0766FF; |
|
106 | 104 | --sl-icon-size: 18px; |
107 | 105 | color: #fff; |
108 | 106 | background: #000; |
109 | | - box-shadow: 0 2px 10px rgba(0, 0, 0, .25); |
110 | 107 | } |
111 | 108 | .sl-btn--apple:hover { |
112 | 109 | background: #111; |
|
0 commit comments