Tranga-Website/Website/styles/MangaSearchResult.css

111 lines
2.2 KiB
CSS

.SearchResult {
background-color: var(--second-background-color);
border-radius: 2px;
padding: 5px 5px 9px 5px;
position: relative;
max-width: 100%;
width: fit-content;
height: 328px;
display: grid;
grid-template-columns: 220px 600px 50px;
grid-template-rows: 40px 40px 200px auto;
column-gap: 10px;
grid-template-areas:
"cover header header"
"cover alltags alltags"
"cover description description"
"cover footer button";
}
.SearchResult p {
margin: 2px 0;
}
.SearchResult > img {
grid-area: cover;
position: relative;
height: 100%;
width: 100%;
z-index: 0;
border: 2px solid var(--primary-color);
border-radius: 4px;
}
.SearchResult > .connector-name {
grid-area: cover;
position: absolute;
z-index: 1;
left: 2px;
top: 2px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
width: 100%;
background-color: var(--accent-color);
margin: 0;
padding: 2px 0;
text-align: center;
color: var(--secondary-color);
}
.SearchResult > .Manga-status {
grid-area: header;
}
.SearchResult > .Manga-name {
grid-area: header;
color: black;
}
.SearchResult > .Manga-tags {
grid-area: alltags;
color: white;
padding: 0;
margin: 0;
}
.SearchResult > ul > li {
display: inline;
margin: 0 2px;
padding: 5px;
font-size: 10pt;
}
.SearchResult .Manga-author {
background-color: green;
}
.SearchResult .Manga-tag {
background-color: blue;
}
.SearchResult > .Manga-description {
grid-area: description;
color: black;
}
.SearchResult > .Manga-AddButton {
grid-area: button;
background-color: white;
border: 1px solid var(--primary-color);
border-radius: 4px;
width: fit-content;
height: fit-content;
padding: 5px 10px;
position: absolute;
bottom: 0;
right: 0;
}
.SearchResult > .Manga-AddButton:hover {
background-color: #eee;
}
.SearchResult a, .SearchResult a:visited {
color: initial;
}
.SearchResult a img {
filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(7480%) hue-rotate(141deg) brightness(111%) contrast(99%);
position: relative;
bottom: 10px;
}