mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-10 02:27:29 +00:00
101 lines
1.6 KiB
Sass
101 lines
1.6 KiB
Sass
@use "colors.sass" as c
|
|
|
|
@mixin video-list-item
|
|
display: grid
|
|
grid-template-columns: 160px 1fr
|
|
grid-gap: 8px
|
|
align-items: start
|
|
align-content: start
|
|
margin-bottom: 12px
|
|
|
|
.thumbnail
|
|
position: relative
|
|
display: flex
|
|
background: c.$bg-darkest
|
|
|
|
.image
|
|
width: 160px
|
|
height: 90px
|
|
|
|
.duration
|
|
position: absolute
|
|
bottom: 3px
|
|
right: 3px
|
|
color: c.$fg-bright
|
|
font-size: 14px
|
|
background: rgba(20, 20, 20, 0.85)
|
|
line-height: 1
|
|
padding: 3px 5px 4px
|
|
border-radius: 4px
|
|
|
|
.title
|
|
font-size: 15px
|
|
line-height: 1.2
|
|
|
|
.title-link
|
|
color: c.$fg-main
|
|
text-decoration: none
|
|
|
|
.author-line
|
|
margin-top: 4px
|
|
font-size: 15px
|
|
color: c.$fg-dim
|
|
|
|
.author
|
|
color: c.$fg-dim
|
|
text-decoration: none
|
|
|
|
&:hover, &:active
|
|
color: c.$fg-bright
|
|
text-decoration: underline
|
|
|
|
@mixin recommendation-item
|
|
@include video-list-item
|
|
|
|
@mixin large-item
|
|
@include video-list-item
|
|
|
|
grid-gap: 16px
|
|
grid-template-columns: 240px 1fr
|
|
margin-bottom: 20px
|
|
overflow: hidden
|
|
max-height: 150px
|
|
|
|
.image
|
|
width: 240px
|
|
height: 135px
|
|
|
|
.duration
|
|
font-size: 17px
|
|
padding: 4px 5px
|
|
right: 5px
|
|
bottom: 5px
|
|
|
|
.title
|
|
font-size: 24px
|
|
|
|
.author-line
|
|
font-size: 15px
|
|
color: c.$fg-main
|
|
|
|
.author
|
|
color: c.$fg-main
|
|
|
|
.description
|
|
margin-top: 16px
|
|
font-size: 15px
|
|
color: c.$fg-dim
|
|
|
|
@mixin search-result
|
|
@include large-item
|
|
|
|
.description b
|
|
font-weight: normal
|
|
color: c.$fg-main
|
|
|
|
@mixin channel-video
|
|
@include large-item
|
|
|
|
@mixin subscriptions-video
|
|
@include large-item
|