fix small things

This commit is contained in:
Víctor Losada Hernández
2026-10-06 22:29:36 +02:00
parent e94e69c0f5
commit 14a923ecfb
@@ -2,7 +2,7 @@
@import '@themes/assets/assets.less'; @import '@themes/assets/assets.less';
@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');
.brewItem { .brewItem {
--bg-clr : #EEEEEE; --bg-clr : #EEE;
--bg-image : @backgroundImageAlt; --bg-image : @backgroundImageAlt;
--text-clr : black; --text-clr : black;
--text-shadow-clr : hsl(from var(--text-clr) h calc(100% - s) calc(100% - l)); //inverted text color --text-shadow-clr : hsl(from var(--text-clr) h calc(100% - s) calc(100% - l)); //inverted text color
@@ -68,7 +68,7 @@
--tag-system : #800000; --tag-system : #800000;
&.type { &.type {
color : var(--tag-type); color : var(--tag-type);
background-color : rgba(from var(--tag-type) r g b / 0.231); background-color : rgba(from var(--tag-type) r g b / 0.2);
&::before { content : '\f0ad'; } &::before { content : '\f0ad'; }
} }
&.group { &.group {
@@ -78,19 +78,19 @@
} }
&.meta { &.meta {
color : var(--tag-meta); color : var(--tag-meta);
background-color : rgba(from var(--tag-meta) r g b / 0.231); background-color : rgba(from var(--tag-meta) r g b / 0.2);
&::before { content : '\f05a'; } &::before { content : '\f05a'; }
} }
&.system { &.system {
color : var(--tag-system); color : var(--tag-system);
background-color : rgba(from var(--tag-system) r g b / 0.231); background-color : rgba(from var(--tag-system) r g b / 0.2);
&::before { content : '\f518'; } &::before { content : '\f518'; }
} }
} }
&:nth-child(2n + 1) { margin-right : 0; } &:nth-child(2n + 1) { margin-right : 0; }
.googleDriveIcon { .googleDriveIcon {
height : 18px; height : 18px;
padding : 0px; padding : 0;
margin : -5px; margin : -5px;
} }
.homebreweryIcon { .homebreweryIcon {
@@ -98,7 +98,7 @@
top : 5px; top : 5px;
left : -7.5px; left : -7.5px;
height : 18px; height : 18px;
padding : 0px; padding : 0;
} }
.links { .links {
position : absolute; position : absolute;
@@ -132,7 +132,7 @@
padding : 5px 15px 5px 6px; padding : 5px 15px 5px 6px;
padding-right : 30px; padding-right : 30px;
border-radius : 5px; border-radius : 5px;
box-shadow : 0 4px 5px 0px #333333; box-shadow : 0 4px 5px 0 #333;
.thumbnail { .thumbnail {
position : absolute; position : absolute;
top : 0; top : 0;
@@ -144,8 +144,8 @@
background-position : right top; background-position : right top;
background-size : contain; background-size : contain;
opacity : 50%; opacity : 50%;
-webkit-mask-image : linear-gradient(80deg, #00000000 20%, #005500 40%); -webkit-mask-image : linear-gradient(80deg, #0000 20%, #050 40%);
mask-image : linear-gradient(80deg, #00000000 20%, #005500 40%); mask-image : linear-gradient(80deg, #0000 20%, #050 40%);
} }
.text { .text {
min-height : 54px; min-height : 54px;
@@ -193,9 +193,11 @@
width : clamp(400px, 100%, 650px); width : clamp(400px, 100%, 650px);
br { display : none; } br { display : none; }
.brewTags { .brewTags {
display : inline-block; display : inline-flex;
align-items: center;
grid-area : tags; grid-area : tags;
min-width : 100px; max-width : 100px;
width:fit-content;
} }
.brewAuthors { .brewAuthors {
.ellipsis(); .ellipsis();
@@ -233,34 +235,7 @@
display : flex; display : flex;
flex-wrap : wrap; flex-wrap : wrap;
overflow : hidden; overflow : hidden;
span:nth-of-type(n + 2) { display : none; } span:nth-of-type(n + 4) { display : none; }
&:hover {
position : absolute;
top : 0;
z-index : 100;
width : min-content;
height : max-content;
padding : 10px;
overflow : visible;
background : #707070;
span:nth-of-type(n + 4) { display : block; }
&::after {
position : absolute;
top : 48px;
right : 0;
bottom : 0;
left : 0;
z-index : -1;
display : block;
height : calc(100% - 48px);
content : '';
background : #707070;
border-inline : 1px solid gold;
border-bottom : 1px solid gold;
border-bottom-right-radius : 5px;
border-bottom-left-radius : 5px;
}
}
} }
} }
.links { .links {
@@ -273,8 +248,6 @@
} }
} }
.card > .brewItem { .card > .brewItem {
--grad-clr : hsl(from var(--bg-clr) h s l / 0);
gap : 5px; gap : 5px;
justify-content : flex-end; justify-content : flex-end;
width : 300px; width : 300px;
@@ -286,7 +259,7 @@
background-size : 50%, cover; background-size : 50%, cover;
border : 1px solid; border : 1px solid;
border-radius : 10px; border-radius : 10px;
box-shadow : 0 4px 5px #222; box-shadow : 0 4px 5px #222;
&::before { &::before {
position : absolute; position : absolute;
right : 0; right : 0;
@@ -296,13 +269,13 @@
display : block; display : block;
height : 50%; height : 50%;
content : ''; content : '';
background-image : linear-gradient(0deg, var(--bg-clr) 0, var(--grad-clr) 90%); background-image : linear-gradient(0deg, var(--bg-clr) 0, hsl(from var(--bg-clr) h s l / 0) 90%);
transition : height 0.2s; transition : height @defaultDuration;
} }
&:hover { &:hover {
&::before { &::before {
height : 100%; height : 100%;
background-image : linear-gradient(0deg, var(--bg-clr) 0, var(--bg-clr) 55%, var(--grad-clr) 65%); background-image : linear-gradient(0deg, var(--bg-clr) 0, var(--bg-clr) 55%, hsl(from var(--bg-clr) h s l / 0) 65%);
} }
.text .description { height : fit-content; } .text .description { height : fit-content; }
} }
@@ -323,7 +296,7 @@
.description { .description {
height : 0; height : 0;
overflow : hidden; overflow : hidden;
transition : height 0.2s; transition : height @defaultDuration;
} }
} }
.info { .info {
@@ -357,7 +330,6 @@
.brewCollection .brewGroup { .brewCollection .brewGroup {
&.list { &.list {
.brewItem:not(.detailsOpen) { .brewItem:not(.detailsOpen) {
grid-template-columns : 35% 3fr 150px;
.info { .info {
grid-template-areas : 'tags update storage'; grid-template-areas : 'tags update storage';
grid-template-columns : 2fr 1fr 20px; grid-template-columns : 2fr 1fr 20px;
@@ -368,10 +340,15 @@
.brewAuthors { display : none; } .brewAuthors { display : none; }
} }
.brewItem { .brewItem {
transition : height @defaultDuration;
cursor:pointer;
&:hover {box-shadow: 0 0 5px var(--bg-clr);
filter:brightness(.97) }
}
.detailsOpen {
grid-template-columns : 25% 3fr 150px; grid-template-columns : 25% 3fr 150px;
transition : height 0.2s; height : 70px;
} }
.detailsOpen { height : 70px; }
} }
} }
} }
@@ -426,7 +403,7 @@
width : 200px; width : 200px;
font-size : 1em; font-size : 1em;
} }
transition : height 0.2s; transition : height @defaultDuration;
} }
.detailsOpen { .detailsOpen {
display : grid; display : grid;