sudo-archive/src2/components/MovieRow.css

98 lines
1.7 KiB
CSS
Raw Normal View History

2021-07-13 22:31:37 +00:00
.movieRow {
position: relative;
2021-07-13 22:31:37 +00:00
display: flex;
border-radius: 5px;
2021-07-14 22:09:42 +00:00
background-color: var(--content);
color: var(--text);
2021-07-13 22:31:37 +00:00
padding: .8rem 1.5rem;
margin-top: .5rem;
cursor: pointer;
transition: transform 50ms ease-in-out;
user-select: none;
overflow: hidden;
2021-07-13 22:31:37 +00:00
}
.movieRow p {
margin: 0;
}
.movieRow .left {
flex: 1;
display: flex;
2021-07-14 09:18:07 +00:00
flex-flow: row wrap;
2021-07-13 22:31:37 +00:00
align-items: flex-start;
2021-07-14 09:18:07 +00:00
margin-right: 0.5rem;
}
2021-09-15 07:27:03 +00:00
.movieRow .left .titleWrapper {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.movieRow .left .seasonEpisodeSubtitle,
2021-07-14 09:18:07 +00:00
.movieRow .left .year {
2021-07-14 22:09:42 +00:00
color: var(--text-secondary);
2021-07-13 22:31:37 +00:00
}
.movieRow .watch {
2021-07-14 22:09:42 +00:00
color: var(--theme-color-text);
2021-07-13 22:31:37 +00:00
display: flex;
align-items: center;
}
.movieRow .watch .arrow {
margin-left: .5rem;
transition: transform 50ms ease-in-out;
transform: translateY(.1rem);
}
.movieRow:active {
transform: scale(1.02);
}
.movieRow:hover {
2021-07-14 22:09:42 +00:00
background-color: var(--content-hover);
2021-07-13 22:31:37 +00:00
}
.movieRow:hover .watch .arrow {
transform: translateX(.3rem) translateY(.1rem);
2021-07-13 22:57:31 +00:00
}
.movieRow:focus-visible {
border: 1px solid #fff;
background-color: var(--content-hover);
}
.movieRow:focus-visible .watch .arrow {
transform: translateX(.3rem) translateY(.1rem);
}
.attribute {
2021-07-14 22:09:42 +00:00
color: var(--text);
background-color: var(--theme-color);
font-size: .75rem;
padding: .25rem;
border-radius: 10px;
margin-right: 10px;
}
2021-09-15 06:57:29 +00:00
.subtitleIcon {
width: 30px;
2021-09-14 07:39:28 +00:00
display: flex;
justify-content: center;
align-items: center;
margin-right: 10px;
}
2021-07-13 22:57:31 +00:00
@media screen and (max-width: 400px) {
.movieRow {
flex-direction: column;
}
.movieRow .watch {
margin-top: .5rem;
}
}