1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-26 09:27:30 +00:00
cloudtube/sass/includes/_video-page.sass

200 lines
3.6 KiB
Sass
Raw Normal View History

$_theme: () !default
@use "sass:map"
@use "video-list-item" as *
2020-08-22 13:17:31 +00:00
.video-page
display: grid
grid-auto-flow: row
@media screen and (min-width: 1000px)
grid-template-columns: 1fr 400px
&--recommended-below, &--recommended-hidden
grid-template-columns: none
&--recommended-side
.related-videos
border-left: 1px solid map.get($_theme, "edge-grey")
padding-left: 12px
padding-right: 20px
background-color: map.get($_theme, "bg-4")
padding-top: 12px
&--recommended-below
.related-videos
padding: 20px
&--recommended-hidden
.related-videos
display: none
2020-08-22 13:17:31 +00:00
.main-video-section
padding: 20px
2020-08-22 13:17:31 +00:00
.video-container
text-align: center
.video
display: inline-block
width: 100%
height: auto
max-height: 80vh
.stream-notice
background: map.get($_theme, "bg-0")
padding: 4px
2020-08-22 13:17:31 +00:00
.info
display: flex
margin: 8px 4px 16px
font-size: 17px
2020-10-06 10:45:09 +00:00
@media screen and (max-width: 499px)
display: block
2020-08-22 13:17:31 +00:00
.info-main
flex: 1
.title
margin: 0px 0px 4px
font-size: 30px
font-weight: normal
color: map.get($_theme, "fg-bright")
2021-04-10 00:44:36 +00:00
word-break: break-word
2020-08-22 13:17:31 +00:00
.author-link
color: map.get($_theme, "fg-main")
2020-08-22 13:17:31 +00:00
text-decoration: none
&:hover, &:active
color: map.get($_theme, "fg-bright")
2020-08-22 13:17:31 +00:00
text-decoration: underline
.info-secondary
display: flex
flex-direction: column
2020-08-24 10:43:55 +00:00
align-items: flex-end
text-align: right
2020-08-22 13:17:31 +00:00
margin-top: 6px
margin-left: 6px
2020-10-06 10:45:09 +00:00
@media screen and (max-width: 499px)
align-items: flex-start
margin-left: 0px
2021-04-25 12:02:59 +00:00
.continuous
display: flex
align-items: center
justify-content: space-between
margin: 16px 4px
padding: 12px
border-radius: 4px
background-color: map.get($_theme, "bg-0")
2021-04-25 12:02:59 +00:00
&__description
margin-left: 12px
&__title
font-size: 20px
&__script-warning
font-size: 15px
color: map.get($_theme, "fg-warning")
2021-04-25 12:02:59 +00:00
&__buttons
display: flex
flex-shrink: 0
2020-08-22 13:17:31 +00:00
.description
position: relative
2020-08-22 13:17:31 +00:00
font-size: 17px
line-height: 1.4
word-break: break-word
2020-08-22 13:17:31 +00:00
margin: 16px 4px 4px 4px
background-color: map.get($_theme, "bg-5")
2020-08-22 13:17:31 +00:00
padding: 12px
border-radius: 4px
--regular-background: #{map.get($_theme, "bg-5")}
--highlight-background: #{map.get($_theme, "bg-1")}
2020-08-30 13:54:59 +00:00
.subscribe-form
display: inline-block
2021-04-25 12:02:59 +00:00
.related-cols
display: flex
align-items: center
justify-content: space-between
margin-bottom: 8px
.continuous-start
font-size: 15px
2020-08-22 13:17:31 +00:00
.related-header
2021-04-25 12:02:59 +00:00
margin: 4px 0px 4px 2px
2020-08-22 13:17:31 +00:00
font-weight: normal
font-size: 26px
.related-video
2020-08-24 10:43:55 +00:00
@include video-list-item
word-break: break-word
2020-08-31 13:22:16 +00:00
.video-error-page
padding: 40px 20px 20px
margin: 0 auto
max-width: 600px
2020-10-18 09:44:50 +00:00
line-height: 1.4
.blocked-explanation
text-align: center
margin-bottom: 32px
@media screen and (max-width: 600px)
display: none
2020-10-18 09:44:50 +00:00
img
width: 552px
height: 96px
.rows
display: grid
grid-template-columns: 22% 20% 20% 20%
grid-gap: 4%
justify-content: center
.row
margin: 0
.actor
margin: 4px 0px 10px
2021-11-20 06:42:34 +00:00
.takedown-footer
margin-top: 80px
// Chapter highlights
.timestamp--active
margin: 4px 0px
display: inline-block
&::after
display: block
position: absolute
left: 0
right: 0
height: calc(1.4em + 4px)
transform: translateY(-1.4em) translateY(-4px)
padding-right: 6px
text-align: right
content: ""
line-height: 1.6
color: #fff
border: solid black
border-width: 2px 0px
.fetch-status
white-space: pre-wrap