pixivfe/template/css/style.scss

136 lines
2.2 KiB
SCSS
Raw Normal View History

* {
box-sizing: border-box;
}
body {
top: 0;
margin: 0;
font-family: "Open Sans", "Noto Sans", sans-serif;
font-size: 1rem;
}
.container {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
.thumbnail-container {
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
}
.navbar {
.navbar-list {
display: flex;
justify-content: space-between;
list-style-type: none;
}
}
.artwork-thumbnail {
position: relative;
display: inline-block;
margin-right: 0.5rem;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
img {
object-fit: cover;
}
.artwork-rank-circle {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
width: 1rem;
height: 1rem;
top: 0.6rem;
left: 0.6rem;
border-radius: 50%;
padding: 1rem;
background-color: #333;
}
.artwork-thumbnail-title {
margin: 0.4rem;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: block;
color: inherit;
text-decoration: none;
font-weight: bold;
font-size: 1.1rem;
}
.artwork-master-image {
width: 100%;
height: 100%;
object-position: center center;
}
.artwork-thumbnail-artist {
text-decoration: none;
color: inherit;
}
.artwork-thumbnail-artist-avatar {
width: 24px;
height: 24px;
object-position: center top;
}
}
.artwork-thumbnail-small {
width: 184px;
}
.artwork-thumbnail-large {
width: 288px;
}
.spotlight-thumbnail {
width: 400px;
height: 250px;
display: inline-block;
position: relative;
text-align: left;
color: white;
.spotlight-master-image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
2023-05-13 14:33:40 +00:00
filter: brightness(75%);
}
.spotlight-title-wrapper {
position: absolute;
display: block;
bottom: 0;
left: 0;
width: 100%;
.spotlight-title {
margin-left: 10px;
margin-right: 10px;
margin-bottom: 10px;
font-size: 1rem;
line-height: 28px;
overflow: hidden;
overflow-wrap: break-word;
word-break: break-word;
hyphens: auto;
text-overflow: ellipsis;
}
}
}