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

458 lines
10 KiB
SCSS

.db {
&--nav {
padding: 30px 0 20px;
display: flex;
align-items: center;
flex-wrap: wrap;
&Item {
font-size: 20px;
cursor: pointer;
border-bottom: 1px solid rgba($color: #000000, $alpha: 0);
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 {
width: 150px;
height: 215px;
object-fit: cover;
border-radius: 4px;
&:hover {
box-shadow: 0 0 10px var(--farallon-border-color);
}
}
&--title {
margin-top: 2px;
font-size: 14px;
line-height: 1.4;
a {
&:hover {
color: var(--farallon-hover-color);
text-decoration: underline;
}
}
}
&--genreItem {
background: var(--farallon-background-gray);
font-size: 12px;
padding: 5px 12px;
border-radius: 4px;
margin-right: 6px;
margin-bottom: 10px;
line-height: 1.4;
cursor: pointer;
&.is-active {
background-color: var(--farallon-main-color);
color: var(--farallon-background-white);
}
&:hover {
background-color: var(--farallon-hover-color);
color: var(--farallon-background-white);
}
}
&--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;
color: var(--text-gray-lightest);
}
&--item {
width: 150px;
margin-right: 20px;
margin-bottom: 20px;
position: relative;
&__music img {
width: 150px;
height: 150px;
object-fit: cover;
}
.top250 {
position: absolute;
left: 0;
top: 0;
background: #f5c518;
color: #000000;
border-radius: 4px 4px 4px 0;
line-height: 1;
padding: 3px 10px 3px 5px;
font-size: 12px;
display: flex;
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: 0 0 4px 4px;
background: inherit;
height: 100%;
position: absolute;
width: 0.75rem;
transform: skewX(-20deg);
}
}
}
}
.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;
}
}
.project {
&--headline {
font-size: 32px;
margin-top: 50px;
line-height: 1.5;
font-weight: 900;
}
&--subtitle {
font-size: 18px;
font-weight: 200;
color: var(--farallon-text-light);
}
}
.theme {
&--item {
padding: 25px 0;
font-size: 20px;
border-bottom: 1px solid var(--farallon-border-color-light);
&:last-child {
border-bottom: 0;
}
h3 {
line-height: 1;
margin: 0;
}
}
&--tags {
display: flex;
align-items: center;
margin-top: 20px;
a {
border: 1px solid var(--farallon-main-color);
color: var(--farallon-main-color);
line-height: 1.2;
font-size: 12px;
padding: 3px 12px;
border-radius: 4px;
margin-right: 20px;
font-weight: bold;
&:hover {
border-color: var(--farallon-hover-color);
background-color: var(--farallon-hover-color);
color: var(--farallon-background-white);
}
}
}
}
.plugin {
&--item {
padding: 15px 0;
font-size: 20px;
border-bottom: 1px solid var(--farallon-border-color-light);
&:last-child {
border-bottom: 0;
}
a {
&:hover {
color: var(--farallon-main-color);
text-decoration: underline;
}
}
.desc {
font-size: 14px;
color: var(--faraallon-text-gray);
}
}
}