|
15 | 15 | #page-settings { |
16 | 16 | overflow-y: auto; |
17 | 17 | overflow-x: hidden; |
18 | | - padding: var(--content-padding-top) 1.5rem 1.5rem 1.5rem; |
| 18 | + padding: 0 1.5rem; |
19 | 19 | align-items: stretch; |
20 | 20 | position: relative; |
21 | 21 | background: transparent; |
22 | 22 | scroll-snap-type: y mandatory; |
23 | | - scroll-padding-top: var(--content-padding-top); |
| 23 | + scroll-padding-top: 0; |
24 | 24 | scroll-behavior: smooth; |
| 25 | + scrollbar-width: none; |
| 26 | + -ms-overflow-style: none; |
| 27 | +} |
| 28 | + |
| 29 | +#page-settings::-webkit-scrollbar { |
| 30 | + width: 0; |
| 31 | + height: 0; |
25 | 32 | } |
26 | 33 |
|
27 | 34 | .settings-wrapper { |
28 | 35 | width: 100%; |
29 | 36 | max-width: 1240px; |
| 37 | + height: 100%; |
30 | 38 | min-height: 100%; |
31 | 39 | margin: 0 auto; |
32 | 40 | padding: 0; |
|
36 | 44 | } |
37 | 45 |
|
38 | 46 | .settings-section-jump { |
39 | | - position: sticky; |
40 | | - bottom: 1rem; |
41 | | - justify-self: center; |
| 47 | + position: absolute; |
| 48 | + left: 50%; |
| 49 | + top: calc(100% - 3rem); |
42 | 50 | z-index: 30; |
43 | | - width: 2.55rem; |
44 | | - height: 2.55rem; |
45 | | - margin-top: -3.55rem; |
46 | | - border: 1px solid rgba(255, 255, 255, 0.06); |
47 | | - border-radius: var(--radius-md); |
48 | | - background: rgba(30, 30, 35, 0.82); |
49 | | - box-shadow: |
50 | | - 0 10px 24px rgba(0, 0, 0, 0.28), |
51 | | - inset 0 1px 0 rgba(255, 255, 255, 0.05); |
52 | | - color: rgba(248, 246, 252, 0.88); |
| 51 | + width: 2rem; |
| 52 | + height: 2rem; |
| 53 | + margin: 0; |
| 54 | + border: 1px solid transparent; |
| 55 | + border-radius: 8px; |
| 56 | + background: transparent; |
| 57 | + box-shadow: none; |
| 58 | + color: rgba(248, 246, 252, 0.72); |
53 | 59 | cursor: pointer; |
54 | 60 | display: flex; |
55 | 61 | align-items: center; |
56 | 62 | justify-content: center; |
57 | | - opacity: 0.78; |
| 63 | + opacity: 0.34; |
58 | 64 | transition: |
59 | 65 | opacity 0.16s ease, |
60 | 66 | background 0.16s ease, |
61 | 67 | border-color 0.16s ease, |
62 | 68 | transform 0.16s ease; |
| 69 | + transform: translateX(-50%); |
63 | 70 | } |
64 | 71 |
|
65 | 72 | .settings-section-jump::before { |
66 | 73 | content: ''; |
67 | | - width: 0.62rem; |
68 | | - height: 0.62rem; |
69 | | - border-right: 2px solid currentColor; |
70 | | - border-bottom: 2px solid currentColor; |
71 | | - transform: translateY(-0.12rem) rotate(45deg); |
| 74 | + width: 4px; |
| 75 | + height: 4px; |
| 76 | + background: transparent; |
| 77 | + box-shadow: |
| 78 | + -8px -4px 0 currentColor, |
| 79 | + 8px -4px 0 currentColor, |
| 80 | + -4px 0 0 currentColor, |
| 81 | + 4px 0 0 currentColor, |
| 82 | + 0 4px 0 currentColor; |
| 83 | + image-rendering: pixelated; |
| 84 | + transform: translateY(1px); |
72 | 85 | transition: transform 0.18s ease; |
73 | 86 | } |
74 | 87 |
|
75 | 88 | .settings-section-jump.is-up::before { |
76 | | - transform: translateY(0.12rem) rotate(225deg); |
| 89 | + transform: translateY(-1px) rotate(180deg); |
77 | 90 | } |
78 | 91 |
|
79 | 92 | .settings-section-jump:hover, |
80 | 93 | .settings-section-jump:focus-visible { |
81 | | - opacity: 1; |
82 | | - background: rgba(255, 255, 255, 0.12); |
83 | | - border-color: rgba(255, 255, 255, 0.1); |
| 94 | + opacity: 0.72; |
| 95 | + background: rgba(255, 255, 255, 0.035); |
| 96 | + border-color: rgba(255, 255, 255, 0.035); |
84 | 97 | } |
85 | 98 |
|
86 | 99 | .settings-section-jump:active { |
87 | | - transform: translateY(1px); |
| 100 | + transform: translateX(-50%) translateY(1px); |
88 | 101 | } |
89 | 102 |
|
90 | 103 | #page-settings.active .settings-wrapper { |
91 | 104 | animation: settings-content-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1); |
92 | 105 | } |
93 | 106 |
|
94 | 107 | .settings-section { |
95 | | - min-height: calc(100dvh - var(--content-padding-top) - 1.5rem); |
| 108 | + min-height: 100%; |
96 | 109 | scroll-snap-align: start; |
97 | 110 | scroll-snap-stop: always; |
98 | 111 | display: flex; |
|
0 commit comments