seems to work across dimensions

This commit is contained in:
Víctor Losada Hernández
2026-09-09 20:00:31 +02:00
parent cb4a104954
commit 0e72c3ca84
3 changed files with 193 additions and 99 deletions
@@ -125,7 +125,7 @@
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
display: inline-block; display: inline-block;
width: clamp(400px, 48%, 600px); width: clamp(300px, 48%, 600px);
min-height: 125px; min-height: 125px;
padding: 5px 15px 2px 6px; padding: 5px 15px 2px 6px;
padding-right: 15px; padding-right: 15px;
@@ -166,7 +166,7 @@
position: initial; position: initial;
bottom: 2px; bottom: 2px;
font-size: .9em; font-size: 0.9em;
& > span { & > span {
margin-right: 12px; margin-right: 12px;
line-height: 1.5em; line-height: 1.5em;
@@ -323,7 +323,6 @@
display: inline-block; display: inline-block;
grid-area: authors; grid-area: authors;
height: fit-content; height: fit-content;
overflow: hidden;
width: 150px; width: 150px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -356,10 +355,6 @@
filter: drop-shadow(0 0 10px white); filter: drop-shadow(0 0 10px white);
} }
.brewTags {
padding-left: 10px;
}
.brewTags:has(span:nth-of-type(4)) { .brewTags:has(span:nth-of-type(4)) {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@@ -462,7 +457,6 @@
color: white; color: white;
font-size: 13px; font-size: 13px;
&::before { &::before {
display: block; display: block;
content: ''; content: '';
@@ -509,7 +503,7 @@
.description { .description {
height: 0; height: 0;
overflow: hidden; overflow: hidden;
transition:height .2s; transition: height 0.2s;
} }
} }
@@ -518,10 +512,10 @@
height: 130px; height: 130px;
display: grid; display: grid;
grid-template-areas: grid-template-areas:
"tags tags tags" 'tags tags tags'
"author author author" 'authors authors authors'
"pages views views" 'pages views views'
"update update storage"; 'update update storage';
.brewTags { .brewTags {
color: black; color: black;
@@ -535,7 +529,7 @@
} }
} }
.brewAuthors { .brewAuthors {
grid-area: author; grid-area: authors;
} }
.brewPages { .brewPages {
grid-area: pages; grid-area: pages;
@@ -549,7 +543,6 @@
.storage { .storage {
grid-area: storage; grid-area: storage;
} }
} }
.links { .links {
@@ -560,15 +553,9 @@
height: 40px; height: 40px;
display: flex; display: flex;
} }
} }
@media screen and (max-width: 1400px) { @media screen and (max-width: 1400px) {
.brewCollection {
background:@yellow;
}
.brewCollection .brewGroup { .brewCollection .brewGroup {
&.list { &.list {
.brewItem:not(.detailsOpen) { .brewItem:not(.detailsOpen) {
@@ -579,7 +566,9 @@
grid-template-areas: 'tags update storage'; grid-template-areas: 'tags update storage';
} }
.brewPages, .lastViewed, .brewAuthors { .brewPages,
.lastViewed,
.brewAuthors {
display: none; display: none;
} }
} }
@@ -594,10 +583,6 @@
} }
@media screen and (max-width: 1200px) { @media screen and (max-width: 1200px) {
.brewCollection {
background:@yellow;
}
.brewCollection .brewGroup { .brewCollection .brewGroup {
&.list { &.list {
.brewItem:not(.detailsOpen) { .brewItem:not(.detailsOpen) {
@@ -608,17 +593,126 @@
grid-template-areas: 'tags storage'; grid-template-areas: 'tags storage';
} }
.brewPages, .lastViewed, .brewAuthors, .lastUpdated { .brewPages,
.lastViewed,
.brewAuthors,
.lastUpdated {
display: none; display: none;
} }
} }
.detailsOpen { .detailsOpen {
grid-template-columns: 1fr 2fr; grid-template-columns: 3fr 2fr 1fr;
.links{
display:none; .info {
width: clamp(200px, 100%, 650px);
display: grid;
grid-template-columns: 2fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
grid-template-areas:
'tags views pages'
'authors update storage';
}
.lastUpdated {
width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
} }
} }
} }
} }
} }
@media screen and (max-width: 800px) {
.brewCollection .brewGroup {
&.list {
.brewItem:not(.detailsOpen) {
.info {
width: clamp(200px, 100%, 650px);
grid-template-columns: 1fr;
grid-template-areas: 'tags';
}
.brewPages,
.lastViewed,
.brewAuthors,
.lastUpdated,
.storage {
display: none;
}
}
.brewItem {
transition: height 0.2s;
}
.detailsOpen {
height: 100px;
padding: 5px;
display: grid;
grid-template-columns: 3fr 3fr 30px;
.text {
height: 100%;
padding: 0;
h2 {
height: fit-content;
white-space: wrap;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
}
.info {
height: 100%;
width: 100%;
display: grid;
grid-template-columns: 2fr 1fr 1fr 20px;
grid-template-areas:
'tags pages views views'
'authors update update storage';
}
.links {
display: flex;
flex-direction: column;
gap: 5px;
a,
button {
margin: 0;
}
}
}
}
}
}
@media screen and (max-width: 650px) {
.brewCollection .brewGroup {
&.list {
.brewItem:not(.detailsOpen) {
grid-template-columns: 3fr 1fr;
.info {
display: none;
}
}
.detailsOpen {
grid-template-rows: 1fr 2fr;
.info {
display: grid;
.lastUpdated {
width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
}
}
}
}
}
@@ -20,7 +20,7 @@
.listPage { .listPage {
.content { .content {
z-index : 1; z-index : 1;
padding : clamp(50px, 5vh, 200px) 10vw; padding : clamp(20px, 5vh, 200px) 10vw;
.noBrews { .noBrews {
margin : 10px 0px; margin : 10px 0px;
font-size : 1.3em; font-size : 1.3em;
@@ -54,7 +54,7 @@
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
gap:20px; gap:20px;
min-width:400px; min-width:200px;
} }
+1 -1
View File
@@ -23,7 +23,7 @@ async function start() {
const app = await createApp(vite); const app = await createApp(vite);
const PORT = process.env.PORT || config.get('web_port') || 3000; const PORT = process.env.PORT || config.get('web_port') || 3000;
app.listen(PORT, ()=>{ app.listen(PORT, '0.0.0.0', ()=>{
const reset = '\x1b[0m'; // Reset to default style const reset = '\x1b[0m'; // Reset to default style
const bright = '\x1b[1m'; // Bright (bold) style const bright = '\x1b[1m'; // Bright (bold) style
const cyan = '\x1b[36m'; // Cyan color const cyan = '\x1b[36m'; // Cyan color