|
1336 | 1336 | } |
1337 | 1337 |
|
1338 | 1338 | .sidebar-restart-banner-wrap { |
1339 | | - position: relative; |
| 1339 | + position: static; |
1340 | 1340 | display: inline-flex; |
1341 | 1341 | align-items: center; |
1342 | 1342 | } |
|
1345 | 1345 | display: inline-flex; |
1346 | 1346 | align-items: center; |
1347 | 1347 | gap: 6px; |
1348 | | - padding: 6px 10px; |
| 1348 | + padding: 5px 9px; |
1349 | 1349 | border-radius: 999px; |
1350 | 1350 | border: 1px solid rgba(245, 172, 70, 0.34); |
1351 | 1351 | background: |
1352 | 1352 | linear-gradient(180deg, rgba(245, 172, 70, 0.16), rgba(245, 172, 70, 0.08)), |
1353 | 1353 | rgba(18, 22, 30, 0.86); |
1354 | 1354 | color: rgba(255, 228, 181, 0.96); |
1355 | | - font-size: 11px; |
| 1355 | + font-size: 10px; |
1356 | 1356 | font-weight: 600; |
| 1357 | + line-height: 1; |
1357 | 1358 | letter-spacing: 0.01em; |
| 1359 | + white-space: nowrap; |
1358 | 1360 | box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); |
1359 | 1361 | transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease; |
1360 | 1362 | } |
|
1381 | 1383 |
|
1382 | 1384 | .sidebar-restart-tooltip { |
1383 | 1385 | position: absolute; |
1384 | | - right: 0; |
| 1386 | + left: calc((var(--sidebar-width, 280px) - (var(--sidebar-padding) * 2)) / 2); |
1385 | 1387 | bottom: calc(100% + 10px); |
1386 | | - width: min(248px, calc(var(--sidebar-width, 280px) - (var(--sidebar-padding) * 2))); |
| 1388 | + width: min(236px, calc(var(--sidebar-width, 280px) - (var(--sidebar-padding) * 2))); |
1387 | 1389 | min-width: 0; |
1388 | 1390 | display: grid; |
1389 | 1391 | gap: 4px; |
|
1398 | 1400 | white-space: normal; |
1399 | 1401 | overflow-wrap: break-word; |
1400 | 1402 | opacity: 0; |
1401 | | - transform: translateY(4px); |
| 1403 | + transform: translate(-50%, 4px); |
1402 | 1404 | pointer-events: none; |
1403 | 1405 | transition: opacity 120ms ease, transform 120ms ease; |
1404 | 1406 | z-index: 20; |
|
1413 | 1415 | .sidebar-restart-banner-wrap:hover .sidebar-restart-tooltip, |
1414 | 1416 | .sidebar-restart-banner-wrap:focus-within .sidebar-restart-tooltip { |
1415 | 1417 | opacity: 1; |
1416 | | - transform: translateY(0); |
| 1418 | + transform: translate(-50%, 0); |
1417 | 1419 | } |
1418 | 1420 |
|
1419 | 1421 | .sidebar-restart-tooltip::after { |
1420 | 1422 | content: ""; |
1421 | 1423 | position: absolute; |
1422 | | - right: 18px; |
| 1424 | + left: 50%; |
1423 | 1425 | top: 100%; |
| 1426 | + transform: translateX(-50%); |
1424 | 1427 | border: 6px solid transparent; |
1425 | 1428 | border-top-color: rgba(10, 13, 18, 0.96); |
1426 | 1429 | } |
|
0 commit comments