last changes

This commit is contained in:
Víctor Losada Hernández
2026-10-06 23:12:25 +02:00
parent 87994b0de9
commit 8eb7d28222
@@ -262,16 +262,17 @@
span { display : inline-block; margin : 0; } span { display : inline-block; margin : 0; }
.brewTags { .brewTags {
display : inline-flex; display : inline-flex;
flex-wrap : wrap;
grid-area : tags; grid-area : tags;
align-items : center; align-items : center;
width : fit-content; width : 100%;
max-width : 100px; i, span { margin-right : 5px; }
&:has(span:nth-of-type(4)) { &:has(span:nth-of-type(3)) {
position : relative; position : relative;
display : flex; display : flex;
flex-wrap : wrap; flex-wrap : wrap;
overflow : hidden; overflow : hidden;
span:nth-of-type(n + 4) { display : none; } span:nth-of-type(n + 3) { display : none; }
} }
} }
.brewAuthors { .brewAuthors {
@@ -323,35 +324,33 @@
//these media queries are just for the list layout and could be moved inside it, not sure it is a good idea //these media queries are just for the list layout and could be moved inside it, not sure it is a good idea
@media screen and (max-width : 1400px) { @media screen and (max-width : 1400px) {
.brewCollection .brewGroup { .brewCollection .brewGroup.list {
&.list { .brewItem:not(.detailsOpen) {
.brewItem:not(.detailsOpen) { .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; width : clamp(200px, 100%, 650px);
width : clamp(200px, 100%, 650px);
}
.brewPages,
.lastViewed,
.brewAuthors { display : none; }
} }
.brewItem { .brewPages,
cursor : pointer; .lastViewed,
transition : height @defaultDuration; .brewAuthors { display : none; }
&:hover { }
box-shadow : 0 0 5px var(--bg-clr); .brewItem {
filter : brightness(0.97); cursor : pointer;
} transition : height @defaultDuration;
} &:hover {
.detailsOpen { box-shadow : 0 0 5px var(--bg-clr);
grid-template-columns : 25% 3fr 150px; filter : brightness(0.97);
height : 70px;
} }
} }
.detailsOpen {
grid-template-columns : 25% 3fr 150px;
height : 70px;
}
} }
} }
@media screen and (max-width : 1200px) { @media screen and (max-width : 1200px) {
.brewCollection .brewGroup .list { .brewCollection .brewGroup.list {
.brewItem:not(.detailsOpen) { .brewItem:not(.detailsOpen) {
grid-template-columns : 35% 3fr 150px; grid-template-columns : 35% 3fr 150px;
.info { .info {
@@ -378,7 +377,7 @@
} }
} }
@media screen and (max-width : 800px) { @media screen and (max-width : 800px) {
.brewCollection .brewGroup .list { .brewCollection .brewGroup.list {
.brewItem:not(.detailsOpen) { .brewItem:not(.detailsOpen) {
.info { .info {
grid-template-areas : 'tags'; grid-template-areas : 'tags';
@@ -432,7 +431,7 @@
} }
} }
@media screen and (max-width : 650px) { @media screen and (max-width : 650px) {
.brewCollection .brewGroup .list { .brewCollection .brewGroup.list {
.brewItem:not(.detailsOpen) { .brewItem:not(.detailsOpen) {
grid-template-columns : 3fr 2fr; grid-template-columns : 3fr 2fr;
.info { display : none; } .info { display : none; }