better ui in mobile

This commit is contained in:
Víctor Losada Hernández
2026-10-03 00:17:32 +02:00
parent dd037fc674
commit 1c0b9a5852
2 changed files with 20 additions and 18 deletions
@@ -4,15 +4,12 @@
.brewItem { .brewItem {
--bg-clr : #eee; --bg-clr : #eee;
--bg-image : @backgroundImageAlt; --bg-image : @backgroundImageAlt;
--h1-clr : black; --text-clr : black;
--h2-clr : #000077; --text-shadow-clr: hsl(from var(--text-clr) h calc(100% - s) calc(100% - l));
--label-clr : black;
--input-bg : white;
--input-bg-hover : #DDDDDD;
--input-text-clr : black;
--input-placeholder-clr : grey;
background-color:var(--bg-clr); background-color:var(--bg-clr);
background-image:var(--bg-image);
background-size:cover;
position : relative; position : relative;
display : flex; display : flex;
flex-direction : column; flex-direction : column;
@@ -22,6 +19,7 @@
break-inside : avoid; break-inside : avoid;
-webkit-column-break-inside : avoid; -webkit-column-break-inside : avoid;
break-inside : avoid; break-inside : avoid;
color:var(--text-clr);
.thumbnail { .thumbnail {
position : absolute; position : absolute;
top : 0; top : 0;
@@ -116,7 +114,6 @@
height : 100%; height : 100%;
font-size : 1.3em; font-size : 1.3em;
color : white;
text-align : center; text-align : center;
text-decoration : unset; text-decoration : unset;
@@ -213,9 +210,6 @@
display : inline-block; display : inline-block;
grid-area : tags; grid-area : tags;
min-width : 100px; min-width : 100px;
span {
}
} }
.brewAuthors { .brewAuthors {
display : -webkit-box; display : -webkit-box;
@@ -247,7 +241,7 @@
[title*='Storage'] { [title*='Storage'] {
display : inline-block; display : inline-block;
grid-area : storage; 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)) { .brewTags:has(span:nth-of-type(4)) {
position : relative; position : relative;
@@ -305,13 +299,12 @@
width : 300px; width : 300px;
height : 400px; height : 400px;
padding : 100px 10px 50px; 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-repeat : no-repeat;
background-position : center 20%; background-position : center 20%, center;
background-size : 50%; background-size : 50%, cover;
border : 1px solid; border : 1px solid;
border-radius : 10px; border-radius : 10px;
background-blend-mode : normal;
&::before { &::before {
position : absolute; position : absolute;
right : 0; right : 0;
@@ -454,7 +447,13 @@
.lastUpdated, .lastUpdated,
.storage { display : none; } .storage { display : none; }
} }
.brewItem { transition : height 0.2s; } .brewItem {
h2 {
font-size:1em;
width:200px;
}
transition : height 0.2s;
}
.detailsOpen { .detailsOpen {
display : grid; display : grid;
grid-template-columns : 3fr 3fr 30px; grid-template-columns : 3fr 3fr 30px;
@@ -497,7 +496,7 @@
.brewCollection .brewGroup { .brewCollection .brewGroup {
&.list { &.list {
.brewItem:not(.detailsOpen) { .brewItem:not(.detailsOpen) {
grid-template-columns : 3fr 1fr; grid-template-columns : 3fr 2fr;
.info { display : none; } .info { display : none; }
} }
.detailsOpen { .detailsOpen {
@@ -21,6 +21,9 @@
--bg-clr: white; --bg-clr: white;
.content { .content {
padding : clamp(20px, 5vh, 200px) clamp(20px, 20vw, 200px); 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; scrollbar-gutter:stable;
overflow-y : scroll; overflow-y : scroll;