From 1c0b9a58523b1755e3130455861c1e4cd1eb9603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sat, 3 Oct 2026 00:17:32 +0200 Subject: [PATCH] better ui in mobile --- .../basePages/listPage/brewItem/brewItem.less | 35 +++++++++---------- .../pages/basePages/listPage/listPage.less | 3 ++ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/client/homebrew/pages/basePages/listPage/brewItem/brewItem.less b/client/homebrew/pages/basePages/listPage/brewItem/brewItem.less index 45232b669..c8efc3625 100644 --- a/client/homebrew/pages/basePages/listPage/brewItem/brewItem.less +++ b/client/homebrew/pages/basePages/listPage/brewItem/brewItem.less @@ -4,15 +4,12 @@ .brewItem { --bg-clr : #eee; --bg-image : @backgroundImageAlt; - --h1-clr : black; - --h2-clr : #000077; - --label-clr : black; - --input-bg : white; - --input-bg-hover : #DDDDDD; - --input-text-clr : black; - --input-placeholder-clr : grey; + --text-clr : black; + --text-shadow-clr: hsl(from var(--text-clr) h calc(100% - s) calc(100% - l)); background-color:var(--bg-clr); + background-image:var(--bg-image); + background-size:cover; position : relative; display : flex; flex-direction : column; @@ -22,6 +19,7 @@ break-inside : avoid; -webkit-column-break-inside : avoid; break-inside : avoid; + color:var(--text-clr); .thumbnail { position : absolute; top : 0; @@ -116,7 +114,6 @@ height : 100%; font-size : 1.3em; - color : white; text-align : center; text-decoration : unset; @@ -213,9 +210,6 @@ display : inline-block; grid-area : tags; min-width : 100px; - span { - - } } .brewAuthors { display : -webkit-box; @@ -247,7 +241,7 @@ [title*='Storage'] { display : inline-block; grid-area : storage; - filter : drop-shadow(0 0 10px white); + filter : drop-shadow(0 0 10px var(--text-shadow-clr)); } .brewTags:has(span:nth-of-type(4)) { position : relative; @@ -305,13 +299,12 @@ width : 300px; height : 400px; padding : 100px 10px 50px; - background-image : url('@themes/assets/naturalCritLogoBlack.svg'); + background-image : url('@themes/assets/naturalCritLogoBlack.svg'), var(--bg-image); background-repeat : no-repeat; - background-position : center 20%; - background-size : 50%; + background-position : center 20%, center; + background-size : 50%, cover; border : 1px solid; border-radius : 10px; - background-blend-mode : normal; &::before { position : absolute; right : 0; @@ -454,7 +447,13 @@ .lastUpdated, .storage { display : none; } } - .brewItem { transition : height 0.2s; } + .brewItem { + h2 { + font-size:1em; + width:200px; + } + transition : height 0.2s; + } .detailsOpen { display : grid; grid-template-columns : 3fr 3fr 30px; @@ -497,7 +496,7 @@ .brewCollection .brewGroup { &.list { .brewItem:not(.detailsOpen) { - grid-template-columns : 3fr 1fr; + grid-template-columns : 3fr 2fr; .info { display : none; } } .detailsOpen { diff --git a/client/homebrew/pages/basePages/listPage/listPage.less b/client/homebrew/pages/basePages/listPage/listPage.less index acce1b65a..3e0799307 100644 --- a/client/homebrew/pages/basePages/listPage/listPage.less +++ b/client/homebrew/pages/basePages/listPage/listPage.less @@ -21,6 +21,9 @@ --bg-clr: white; .content { padding : clamp(20px, 5vh, 200px) clamp(20px, 20vw, 200px); + @media screen and (max-width : 800px) { + padding : clamp(20px, 5vh, 200px) clamp(20px, 5vw, 200px); + } scrollbar-gutter:stable; overflow-y : scroll;