Skip to content

Commit 2680aef

Browse files
authored
fix: background position responsive
Fix background position repsonsive <img width="1709" alt="Captura de pantalla 2025-07-04 a la(s) 4 12 35 p  m" src="https://github.com/user-attachments/assets/72108ad0-fcd1-4b1d-b464-54a45c026421" /> <img width="856" alt="Captura de pantalla 2025-07-04 a la(s) 4 13 07 p  m" src="https://github.com/user-attachments/assets/8f4164ef-9a34-412c-b671-5baf98cb9133" /> <img width="856" alt="Captura de pantalla 2025-07-04 a la(s) 4 15 45 p  m" src="https://github.com/user-attachments/assets/669bafbb-4b41-4680-8963-2b73ffdb4078" /> <img width="856" alt="Captura de pantalla 2025-07-04 a la(s) 4 15 54 p  m" src="https://github.com/user-attachments/assets/d99a15ba-15ec-4ab7-bf98-c7e07ec97493" /> ISSUE #CHA-338 https://linear.app/defi-wonderland/issue/CHA-338/ui-fixes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a modal disclaimer dialog accessible via a new "Disclaimer" button in the navbar. * Introduced sidebar expand and collapse buttons for improved navigation on desktop. * Enhanced navigation experience by ensuring category card clicks scroll the page to the top before navigating. * **Style** * Unified the visual theme with a new accent color and updated font family across all UI elements. * Refined sidebar, dropdown, and code block styles for consistency and improved usability. * Updated category icons and improved responsive background effects. * **Bug Fixes** * Fixed sidebar category collapsing behavior to remain expanded by default. * **Chores** * Reformatted sidebar configuration for consistency and clarity. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: 0xLeopoldo <leopoldo@wonderland.xyz>
1 parent ae734a9 commit 2680aef

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

  • packages/common-config/static/common/styles

packages/common-config/static/common/styles/global.css

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,53 @@ html::before {
155155
z-index: -1;
156156
}
157157

158+
/* Responsive background - Common responsive properties */
158159
@media (max-width: 1024px) {
159160
html {
160161
background-size: 110%;
161162
background-position: right center;
163+
overflow: visible;
164+
}
165+
166+
html::before {
167+
position: fixed;
168+
top: 50%;
169+
left: 50%;
170+
transform: translate(-50%, -50%);
171+
width: 150vw;
172+
height: 150vh;
173+
mask-position: 60% 50%;
174+
-webkit-mask-position: 60% 50%;
175+
mask-size: 80%;
176+
-webkit-mask-size: 80%;
162177
}
163178
}
164179

165-
@media (max-width: 600px) {
180+
@media (max-width: 750px) {
166181
html {
167182
background-size: 45rem;
168183
background-position: 100% 59%;
169184
}
185+
186+
html::before {
187+
width: 200vw;
188+
height: 200vh;
189+
mask-position: 40% 50%;
190+
-webkit-mask-position: 40% 50%;
191+
mask-size: 100%;
192+
-webkit-mask-size: 100%;
193+
}
194+
}
195+
196+
@media (max-width: 480px) {
197+
html::before {
198+
width: 250vw;
199+
height: 250vh;
200+
mask-position: 30% 50%;
201+
-webkit-mask-position: 30% 50%;
202+
mask-size: 120%;
203+
-webkit-mask-size: 120%;
204+
}
170205
}
171206

172207
body {

0 commit comments

Comments
 (0)