mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-19 22:28:10 +00:00
lint
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
@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 : #EEE;
|
--bg-clr : #EEEEEE;
|
||||||
--bg-image : @backgroundImageAlt;
|
--bg-image : @backgroundImageAlt;
|
||||||
--text-clr : black;
|
--text-clr : black;
|
||||||
--text-shadow-clr : white;
|
--text-shadow-clr : white;
|
||||||
@@ -31,8 +31,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, #0000 20%, #050 40%);
|
-webkit-mask-image : linear-gradient(80deg, #00000000 20%, #005500 40%);
|
||||||
mask-image : linear-gradient(80deg, #0000 20%, #050 40%);
|
mask-image : linear-gradient(80deg, #00000000 20%, #005500 40%);
|
||||||
}
|
}
|
||||||
.text {
|
.text {
|
||||||
h2 {
|
h2 {
|
||||||
@@ -108,19 +108,17 @@
|
|||||||
position : absolute;
|
position : absolute;
|
||||||
right : 0;
|
right : 0;
|
||||||
display : flex;
|
display : flex;
|
||||||
height:100%;
|
height : 100%;
|
||||||
a,
|
a,
|
||||||
button {
|
button {
|
||||||
display : block;
|
display : block;
|
||||||
align-content : center;
|
align-content : center;
|
||||||
width : 100%;
|
width : 100%;
|
||||||
height : 100%;
|
height : 100%;
|
||||||
|
|
||||||
font-size : 1.3em;
|
font-size : 1.3em;
|
||||||
text-align : center;
|
text-align : center;
|
||||||
text-decoration : unset;
|
text-decoration : unset;
|
||||||
|
cursor : pointer;
|
||||||
i { cursor : pointer; }
|
|
||||||
&:hover { background-color : hsl(from currentColor h 30% 90%); }
|
&:hover { background-color : hsl(from currentColor h 30% 90%); }
|
||||||
}
|
}
|
||||||
.shareLink { color : @yellow; }
|
.shareLink { color : @yellow; }
|
||||||
@@ -136,7 +134,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 0 #333;
|
box-shadow : 0 4px 5px 0 #333333;
|
||||||
.text {
|
.text {
|
||||||
min-height : 54px;
|
min-height : 54px;
|
||||||
h2 { margin-bottom : 5px; }
|
h2 { margin-bottom : 5px; }
|
||||||
@@ -168,12 +166,10 @@
|
|||||||
background-size : 50%, cover;
|
background-size : 50%, cover;
|
||||||
border : 3px solid;
|
border : 3px solid;
|
||||||
border-radius : 10px;
|
border-radius : 10px;
|
||||||
box-shadow : 0 4px 5px #222;
|
box-shadow : 0 4px 5px #222222;
|
||||||
&::before {
|
&::before {
|
||||||
position : absolute;
|
position : absolute;
|
||||||
right : 0;
|
inset : unset 0 0 0;
|
||||||
bottom : 0;
|
|
||||||
left : 0;
|
|
||||||
z-index : -1;
|
z-index : -1;
|
||||||
display : block;
|
display : block;
|
||||||
height : 50%;
|
height : 50%;
|
||||||
@@ -198,8 +194,8 @@
|
|||||||
background-repeat : no-repeat;
|
background-repeat : no-repeat;
|
||||||
background-position : right top;
|
background-position : right top;
|
||||||
background-size : cover;
|
background-size : cover;
|
||||||
mask-image:unset;
|
opacity : 1;
|
||||||
opacity:1;
|
mask-image : unset;
|
||||||
}
|
}
|
||||||
.text {
|
.text {
|
||||||
filter : drop-shadow(0 1px 4px var(--text-shadow-clr));
|
filter : drop-shadow(0 1px 4px var(--text-shadow-clr));
|
||||||
@@ -263,12 +259,20 @@
|
|||||||
justify-content : end;
|
justify-content : end;
|
||||||
width : clamp(400px, 100%, 650px);
|
width : clamp(400px, 100%, 650px);
|
||||||
br { display : none; }
|
br { display : none; }
|
||||||
|
span { display : inline-block; margin : 0; }
|
||||||
.brewTags {
|
.brewTags {
|
||||||
display : inline-flex;
|
display : inline-flex;
|
||||||
align-items: center;
|
grid-area : tags;
|
||||||
grid-area : tags;
|
align-items : center;
|
||||||
max-width : 100px;
|
width : fit-content;
|
||||||
width:fit-content;
|
max-width : 100px;
|
||||||
|
&:has(span:nth-of-type(4)) {
|
||||||
|
position : relative;
|
||||||
|
display : flex;
|
||||||
|
flex-wrap : wrap;
|
||||||
|
overflow : hidden;
|
||||||
|
span:nth-of-type(n + 4) { display : none; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.brewAuthors {
|
.brewAuthors {
|
||||||
.ellipsis();
|
.ellipsis();
|
||||||
@@ -277,36 +281,34 @@
|
|||||||
align-content : center;
|
align-content : center;
|
||||||
width : 150px;
|
width : 150px;
|
||||||
height : 40px;
|
height : 40px;
|
||||||
|
padding-right : 5px;
|
||||||
-webkit-line-clamp : 3;
|
-webkit-line-clamp : 3;
|
||||||
line-clamp : 3;
|
line-clamp : 3;
|
||||||
-webkit-box-orient : vertical;
|
-webkit-box-orient : vertical;
|
||||||
&:has(a:only-of-type) { width : fit-content; }
|
&:has(a:only-of-type) { width : fit-content; }
|
||||||
}
|
}
|
||||||
.lastViewed {
|
.lastViewed {
|
||||||
display : inline-block;
|
|
||||||
grid-area : views;
|
grid-area : views;
|
||||||
min-width : 50px;
|
min-width : 50px;
|
||||||
}
|
}
|
||||||
.brewPages {
|
.brewPages {
|
||||||
display : inline-block;
|
|
||||||
grid-area : pages;
|
grid-area : pages;
|
||||||
min-width : 40px;
|
min-width : 40px;
|
||||||
}
|
}
|
||||||
[title*='Created'] {
|
.lastUpdated {
|
||||||
display : inline-block;
|
display : flex;
|
||||||
grid-area : update;
|
grid-area : update;
|
||||||
|
gap : 5px;
|
||||||
|
align-items : center;
|
||||||
}
|
}
|
||||||
[title*='Storage'] {
|
.storage {
|
||||||
display : inline-block;
|
|
||||||
grid-area : storage;
|
grid-area : storage;
|
||||||
filter : drop-shadow(0 0 10px var(--text-shadow-clr));
|
filter : drop-shadow(0 0 10px var(--text-shadow-clr));
|
||||||
}
|
.homebreweryIcon {
|
||||||
.brewTags:has(span:nth-of-type(4)) {
|
top : 3px;
|
||||||
position : relative;
|
left : -5px;
|
||||||
display : flex;
|
height : 20px;
|
||||||
flex-wrap : wrap;
|
}
|
||||||
overflow : hidden;
|
|
||||||
span:nth-of-type(n + 4) { display : none; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.links {
|
.links {
|
||||||
@@ -334,112 +336,114 @@
|
|||||||
.brewAuthors { display : none; }
|
.brewAuthors { display : none; }
|
||||||
}
|
}
|
||||||
.brewItem {
|
.brewItem {
|
||||||
|
cursor : pointer;
|
||||||
transition : height @defaultDuration;
|
transition : height @defaultDuration;
|
||||||
cursor:pointer;
|
&:hover {
|
||||||
&:hover {box-shadow: 0 0 5px var(--bg-clr);
|
box-shadow : 0 0 5px var(--bg-clr);
|
||||||
filter:brightness(.97) }
|
filter : brightness(0.97);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.detailsOpen {
|
.detailsOpen {
|
||||||
grid-template-columns : 25% 3fr 150px;
|
grid-template-columns : 25% 3fr 150px;
|
||||||
height : 70px;
|
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 {
|
||||||
grid-template-areas : 'tags storage';
|
grid-template-areas : 'tags storage';
|
||||||
grid-template-columns : 1fr 20px;
|
grid-template-columns : 1fr 20px;
|
||||||
}
|
|
||||||
.brewAuthors,
|
|
||||||
.lastUpdated { display : none; }
|
|
||||||
}
|
}
|
||||||
.detailsOpen {
|
.brewAuthors,
|
||||||
height : 100px;
|
.lastUpdated { display : none; }
|
||||||
.info {
|
}
|
||||||
grid-template-areas : 'tags views pages .'
|
.detailsOpen {
|
||||||
'authors update update storage';
|
height : 100px;
|
||||||
grid-template-rows : 1fr 1fr;
|
.info {
|
||||||
grid-template-columns : 2fr 1fr 1fr 30px;
|
grid-template-areas : 'tags views pages .'
|
||||||
width : clamp(200px, 100%, 650px);
|
'authors update update storage';
|
||||||
}
|
grid-template-rows : 1fr 1fr;
|
||||||
.lastUpdated {
|
grid-template-columns : 2fr 1fr 1fr 30px;
|
||||||
.ellipsis();
|
width : clamp(200px, 100%, 650px);
|
||||||
max-width : 120px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
.lastUpdated {
|
||||||
|
.ellipsis();
|
||||||
|
max-width : 120px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@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';
|
||||||
grid-template-columns : 1fr;
|
grid-template-columns : 1fr;
|
||||||
width : clamp(200px, 100%, 650px);
|
width : clamp(200px, 100%, 650px);
|
||||||
}
|
|
||||||
.storage { display : none; }
|
|
||||||
}
|
}
|
||||||
.brewItem {
|
.storage { display : none; }
|
||||||
|
}
|
||||||
|
.brewItem {
|
||||||
|
h2 {
|
||||||
|
width : 200px;
|
||||||
|
font-size : 1em;
|
||||||
|
}
|
||||||
|
transition : height @defaultDuration;
|
||||||
|
}
|
||||||
|
.detailsOpen {
|
||||||
|
display : grid;
|
||||||
|
grid-template-columns : 1fr 4fr 30px;
|
||||||
|
height : 100px;
|
||||||
|
padding : 5px;
|
||||||
|
.text {
|
||||||
|
height : 100%;
|
||||||
|
padding : 0;
|
||||||
h2 {
|
h2 {
|
||||||
width : 200px;
|
display : -webkit-box;
|
||||||
font-size : 1em;
|
height : fit-content;
|
||||||
|
overflow : hidden;
|
||||||
|
text-overflow : ellipsis;
|
||||||
|
-webkit-line-clamp : 3;
|
||||||
|
line-clamp : 3;
|
||||||
|
white-space : wrap;
|
||||||
|
-webkit-box-orient : vertical;
|
||||||
}
|
}
|
||||||
transition : height @defaultDuration;
|
|
||||||
}
|
}
|
||||||
.detailsOpen {
|
.info {
|
||||||
display : grid;
|
display : grid;
|
||||||
grid-template-columns : 1fr 4fr 30px;
|
grid-template-areas : 'tags pages views views'
|
||||||
height : 100px;
|
'authors update update storage';
|
||||||
padding : 5px;
|
grid-template-columns : 2fr 1fr 1fr 20px;
|
||||||
.text {
|
width : 100%;
|
||||||
height : 100%;
|
height : 100%;
|
||||||
padding : 0;
|
|
||||||
h2 {
|
|
||||||
display : -webkit-box;
|
|
||||||
height : fit-content;
|
|
||||||
overflow : hidden;
|
|
||||||
text-overflow : ellipsis;
|
|
||||||
-webkit-line-clamp : 3;
|
|
||||||
line-clamp : 3;
|
|
||||||
white-space : wrap;
|
|
||||||
-webkit-box-orient : vertical;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.info {
|
|
||||||
display : grid;
|
|
||||||
grid-template-areas : 'tags pages views views'
|
|
||||||
'authors update update storage';
|
|
||||||
grid-template-columns : 2fr 1fr 1fr 20px;
|
|
||||||
width : 100%;
|
|
||||||
height : 100%;
|
|
||||||
}
|
|
||||||
.links {
|
|
||||||
display : flex;
|
|
||||||
flex-direction : column;
|
|
||||||
gap : 5px;
|
|
||||||
a,
|
|
||||||
button { margin : 0; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
.links {
|
||||||
|
display : flex;
|
||||||
|
flex-direction : column;
|
||||||
|
gap : 5px;
|
||||||
|
a,
|
||||||
|
button { margin : 0; }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@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; }
|
||||||
}
|
}
|
||||||
.detailsOpen {
|
.detailsOpen {
|
||||||
.info {
|
.info {
|
||||||
.lastUpdated {
|
.lastUpdated {
|
||||||
.ellipsis();
|
.ellipsis();
|
||||||
width : 100px;
|
width : 100px;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user