blog/themes/farallon/assets/scss/modules/_db.scss

370 lines
8.5 KiB
SCSS
Raw Normal View History

2024-05-06 12:00:46 +08:00
.db {
2024-06-14 14:03:34 +08:00
&--container {
--db-item-width: 150px;
--db-item-height: 215px;
--db-music-width: 150px;
--db-music-height: 150px;
--db-primary-color: var(--farallon-hover-color);
--db-background-white: var(--farallon-background-white);
--db-background-gray: var(--farallon-background-gray);
--db-border-color: var(--farallon-border-color);
--db-text-light: var(--farallon-text-light);
}
2024-05-06 12:00:46 +08:00
&--nav {
padding: 30px 0 20px;
display: flex;
align-items: center;
flex-wrap: wrap;
&Item {
font-size: 20px;
cursor: pointer;
2024-06-14 14:03:34 +08:00
border-bottom: 1px solid rgba(0, 0, 0, 0);
2024-05-06 12:00:46 +08:00
transition: 0.5s border-color;
display: flex;
align-items: center;
text-transform: capitalize;
&.current,
&:hover {
border-color: inherit;
}
margin-right: 20px;
}
}
&--score svg {
fill: #f5c518;
margin-right: 5px;
}
&--list {
display: flex;
align-items: flex-start;
flex-wrap: wrap;
}
&--image {
2024-06-14 14:03:34 +08:00
width: var(--db-item-width);
height: var(--db-item-height);
2024-05-06 12:00:46 +08:00
object-fit: cover;
border-radius: 4px;
&:hover {
2024-06-14 14:03:34 +08:00
box-shadow: 0 0 10px var(--db-border-color);
2024-05-06 12:00:46 +08:00
}
}
&--title {
margin-top: 2px;
font-size: 14px;
line-height: 1.4;
a {
&:hover {
2024-06-14 14:03:34 +08:00
color: var(--db-primary-color);
2024-05-06 12:00:46 +08:00
text-decoration: underline;
}
}
}
&--genreItem {
2024-06-14 14:03:34 +08:00
background: var(--db-background-gray);
2024-05-06 12:00:46 +08:00
font-size: 12px;
padding: 5px 12px;
border-radius: 4px;
margin-right: 6px;
margin-bottom: 10px;
line-height: 1.4;
cursor: pointer;
&.is-active {
2024-06-14 14:03:34 +08:00
background-color: var(--db-primary-color);
color: var(--db-background-white);
2024-05-06 12:00:46 +08:00
}
&:hover {
2024-06-14 14:03:34 +08:00
background-color: var(--db-primary-color);
color: var(--db-background-white);
2024-05-06 12:00:46 +08:00
}
}
&--genres {
padding-bottom: 15px;
display: flex;
flex-wrap: wrap;
&.u-hide {
& + .db--list {
padding-top: 10px;
}
}
}
&--score {
display: flex;
align-items: center;
font-size: 14px;
2024-06-14 14:03:34 +08:00
color: var(--db-text-light);
2024-05-06 12:00:46 +08:00
}
&--item {
2024-06-14 14:03:34 +08:00
width: var(--db-item-width);
2024-05-06 12:00:46 +08:00
margin-right: 20px;
margin-bottom: 20px;
position: relative;
&__music img {
2024-06-14 14:03:34 +08:00
width: var(--db-music-width);
height: var(--db-music-height);
2024-05-06 12:00:46 +08:00
object-fit: cover;
}
}
}
.ipc-signpost {
position: relative;
background: #f5c518;
color: #000000;
border-radius: 4px;
line-height: 1;
padding: 3px 5px;
font-size: 12px;
display: flex;
width: 58%;
margin-bottom: 2px;
font-weight: 900;
&:after {
content: "";
border-top-left-radius: 0;
border-bottom-left-radius: 0;
right: 0;
top: 0;
margin-right: -0.2rem;
border-radius: 4px;
background: inherit;
height: 100%;
position: absolute;
width: 0.75rem;
transform: skewX(-20deg);
}
}
.doulist-item {
margin: 30px 0;
color: #666;
border: 1px solid #eee;
border-radius: 4px;
&:hover {
box-shadow: 0 3px 12px var(--farallon-border-color-light);
}
.doulist-subject {
display: flex;
align-items: flex-start;
line-height: 1.6;
padding: 12px;
position: relative;
.db--viewTime {
position: absolute;
right: 0;
top: 0;
background: #f5c518;
color: #000000;
border-radius: 4px 4px 0px 4px;
line-height: 1;
padding: 3px 5px 3px 10px;
font-size: 12px;
display: flex;
margin-bottom: 2px;
font-weight: 900;
&:after {
content: "";
border-top-left-radius: 0;
border-bottom-left-radius: 0;
left: 0;
top: 0;
margin-left: -0.2rem;
border-radius: 0px 4px 4px 4px;
background: inherit;
height: 100%;
position: absolute;
width: 0.75rem;
transform: skewX(20deg);
}
}
.doulist-content {
flex: 1 1 auto;
}
.doulist-post {
width: 96px;
margin-right: 15px;
display: flex;
flex: 0 0 auto;
}
.doulist-title {
margin-bottom: 5px;
font-size: 18px;
a {
text-decoration: none !important;
}
}
.rating {
margin: 0 0 5px;
font-size: 14px;
line-height: 1;
display: flex;
align-items: center;
.allstardark {
position: relative;
color: #f99b01;
height: 16px;
width: 80px;
background-repeat: repeat;
background-image: url("../images/star.svg");
background-size: auto 100%;
margin-right: 5px;
}
.allstarlight {
position: absolute;
left: 0;
color: #f99b01;
height: 16px;
overflow: hidden;
background-repeat: repeat;
background-image: url("../images/star-fill.svg");
background-size: auto 100%;
}
}
.abstract {
font-size: 14px;
}
img {
width: 96px !important;
height: 96px !important;
border-radius: 4px;
object-fit: cover;
}
}
}
.db--date {
position: relative;
font-size: 20px;
color: var(--farallon-text-light);
font-weight: 900;
line-height: 1;
&:before {
content: "";
position: absolute;
top: 0.5em;
bottom: -2px;
left: -10px;
width: 3.4em;
z-index: -1;
background: var(--farallon-hover-color);
opacity: 0.3;
transform: skew(-35deg);
transition: opacity 0.2s ease;
border-radius: 3px 8px 10px 6px;
}
margin-top: 30px;
margin-bottom: 10px;
}
.db--dateList {
padding-left: 15px;
padding-top: 5px;
padding-right: 15px;
}
.db--card__list {
display: flex;
align-items: center;
padding: 15px 0;
border-bottom: 1px dotted var(--farallon-border-color);
font-size: 14px;
color: rgba(0, 0, 0, 0.55);
&:last-child {
border-bottom: 0;
}
.title {
font-size: 18px;
margin-bottom: 5px;
}
.rating {
margin: 0 0 0px;
font-size: 14px;
line-height: 1;
display: flex;
align-items: center;
.allstardark {
position: relative;
color: #f99b01;
height: 16px;
width: 80px;
background-repeat: repeat;
background-image: url("../images/star.svg");
background-size: auto 100%;
margin-right: 5px;
}
.allstarlight {
position: absolute;
left: 0;
color: #f99b01;
height: 16px;
overflow: hidden;
background-repeat: repeat;
background-image: url("../images/star-fill.svg");
background-size: auto 100%;
}
}
img {
width: 80px;
border-radius: 4px;
height: 80px;
object-fit: cover;
flex: 0 0 auto;
margin-right: 15px;
}
}
.db--titleDate {
display: flex;
flex-direction: column;
line-height: 1.1;
margin-bottom: 10px;
flex: 0 0 auto;
margin-right: 15px;
align-items: center;
&__day {
font-weight: 900;
font-size: 44px;
}
&__month {
font-size: 14px;
color: var(--farallon-text-light);
font-weight: 900;
}
}
.db--list__card {
display: block;
}
.db--dateList__card {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
}
.db--listBydate {
display: flex;
align-items: flex-start;
margin-top: 15px;
}
@media (max-width: 600px) {
.db--listBydate {
flex-direction: column;
}
}