You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
395 lines
5.9 KiB
CSS
395 lines
5.9 KiB
CSS
@font-face {
|
|
font-family: "RobotoSlab";
|
|
src: url("../fonts/RobotoSlab-Regular.ttf");
|
|
}
|
|
|
|
html {
|
|
height: 100%;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
-webkit-user-select: none; /* Chrome all / Safari all */
|
|
-moz-user-select: none; /* Firefox all */
|
|
-ms-user-select: none; /* IE 10+ */
|
|
user-select: none;
|
|
}
|
|
|
|
body {
|
|
font-family: RobotoSlab;
|
|
color: #707070;
|
|
height: 100%;
|
|
margin: 0;
|
|
scrollbar-color: #969696 #d8d8d8;
|
|
overflow: hidden;
|
|
|
|
display: grid;
|
|
grid-template-columns: 25vw auto;
|
|
grid-template-rows: 60vh auto;
|
|
grid-template-areas:
|
|
"comments video"
|
|
"comments text";
|
|
}
|
|
|
|
aside {
|
|
position: relative;
|
|
grid-area: comments;
|
|
background-color: #ededed;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
main {
|
|
background-color: #282828;
|
|
grid-area: video;
|
|
position: relative;
|
|
}
|
|
|
|
video {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
article {
|
|
grid-area: text;
|
|
background-color: white;
|
|
padding: 4vh 5vw 4vh 2vw;
|
|
overflow-y: auto;
|
|
}
|
|
article * {
|
|
-webkit-user-select: text; /* Chrome all / Safari all */
|
|
-moz-user-select: text; /* Firefox all */
|
|
-ms-user-select: text; /* IE 10+ */
|
|
user-select: text;
|
|
}
|
|
article img {
|
|
max-width: 12vw;
|
|
max-height: 100%;
|
|
margin: 0.5em 1em;
|
|
padding: 0.2em;
|
|
clear: both;
|
|
border: 1px solid #bbb;
|
|
border-radius: 0.2rem;
|
|
float: left;
|
|
clear: left;
|
|
}
|
|
|
|
article p {
|
|
clear: right;
|
|
}
|
|
|
|
article h1:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
margin-bottom: 0;
|
|
clear: right;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.6rem;
|
|
}
|
|
h2 {
|
|
font-size: 1.4rem;
|
|
}
|
|
h3 {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
article p:last-child {
|
|
margin-bottom: 2vw;
|
|
}
|
|
|
|
.comment {
|
|
display: grid;
|
|
padding: 3vh 2vw 3vh 1.5vw;
|
|
font-size: 0.88rem;
|
|
|
|
column-gap: 12px;
|
|
row-gap: 2px;
|
|
grid-template-columns: max-content auto;
|
|
grid-template-rows: max-content max-content;
|
|
grid-template-areas:
|
|
"icon time"
|
|
"icon comment";
|
|
border-bottom: 0.1vh solid #707070;
|
|
cursor: pointer;
|
|
}
|
|
.comment:last-child {
|
|
border: none;
|
|
}
|
|
.activeComment {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.icon {
|
|
grid-area: icon;
|
|
margin-top: 4px;
|
|
width: 36px;
|
|
height: 36px;
|
|
text-align: center;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.time {
|
|
grid-area: time;
|
|
color: #c1c1c1;
|
|
}
|
|
|
|
.commentText {
|
|
grid-area: comment;
|
|
}
|
|
|
|
.video-controls {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
display: grid;
|
|
grid-template-rows: auto min-content;
|
|
justify-items: center;
|
|
align-items: center;
|
|
z-index: 5;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
#togglePlayIcon {
|
|
height: 15vh;
|
|
}
|
|
|
|
#video-progress {
|
|
width: 80%;
|
|
margin-bottom: max(30px, 3vh);
|
|
position: relative;
|
|
}
|
|
|
|
#video-progress progress {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 0.5vh;
|
|
min-height: 5px;
|
|
border: none;
|
|
background-color: #616161;
|
|
}
|
|
|
|
progress::-moz-progress-bar {
|
|
background-color: #616161;
|
|
}
|
|
|
|
progress::-webkit-progress-value {
|
|
background-color: #616161;
|
|
}
|
|
|
|
progress::-webkit-progress-bar {
|
|
background-color: #616161;
|
|
}
|
|
|
|
.seek {
|
|
position: absolute;
|
|
appearance: none;
|
|
background: transparent;
|
|
width: 100%;
|
|
height: 0.5vh;
|
|
min-height: 5px;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
z-index: 15;
|
|
}
|
|
|
|
.seek:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.seek::-moz-range-thumb {
|
|
background-color: #ffa800;
|
|
min-width: 24px;
|
|
width: 2vh;
|
|
min-height: 24px;
|
|
height: 2vh;
|
|
border-radius: max(24px, 2vh);
|
|
border: none;
|
|
}
|
|
|
|
.seek::-webkit-slider-thumb {
|
|
background-color: #ffa800;
|
|
min-width: 24px;
|
|
width: 2vh;
|
|
min-height: 24px;
|
|
height: 2vh;
|
|
border-radius: max(24px, 2vh);
|
|
border: none;
|
|
appearance: none;
|
|
}
|
|
|
|
.videoComment {
|
|
position: absolute;
|
|
background-color: #ffa800;
|
|
width: 10%;
|
|
left: 35%;
|
|
height: 0.5vh;
|
|
min-height: 5px;
|
|
z-index: 10;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.videoComment:hover {
|
|
height: 0.9vh;
|
|
min-height: 9px;
|
|
margin-top: min(-2px, -0.2vh);
|
|
}
|
|
|
|
.videoComment:hover img {
|
|
top: min(-33px, -1.3vh);
|
|
}
|
|
|
|
.videoComment img {
|
|
position: relative;
|
|
top: min(-35px, -1.5vh);
|
|
left: 50%;
|
|
min-width: 28px;
|
|
width: 1vh;
|
|
margin-left: min(-14px, -0.5vh);
|
|
cursor: pointer;
|
|
}
|
|
#video-volume {
|
|
position: absolute;
|
|
left: -7.5vh;
|
|
bottom: -0.5em;
|
|
margin-left: 1.5em;
|
|
margin-bottom: 7.5vh;
|
|
width: 15vh;
|
|
height: 1em;
|
|
-webkit-transform: rotate(-90deg);
|
|
}
|
|
|
|
#volume {
|
|
position: absolute;
|
|
left: 1em;
|
|
z-index: 20;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
appearance: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#volume::-moz-range-thumb {
|
|
height: 100%;
|
|
width: 0;
|
|
appearance: none;
|
|
border: none;
|
|
border-radius: 0;
|
|
}
|
|
|
|
#volume::-webkit-slider-thumb {
|
|
height: 100%;
|
|
width: 0;
|
|
appearance: none;
|
|
border: none;
|
|
border-radius: 0;
|
|
}
|
|
|
|
#volume-bar {
|
|
position: absolute;
|
|
left: 1em;
|
|
background-color: #616161;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 10;
|
|
}
|
|
|
|
#volume-bar-value {
|
|
position: absolute;
|
|
bottom: 0;
|
|
background-color: #ffa800;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 15;
|
|
}
|
|
|
|
#about {
|
|
position: absolute;
|
|
bottom: 0;
|
|
padding: 3vh 2vw 3vh 1.5vw;
|
|
}
|
|
#about h1 {
|
|
margin-bottom: 0.2em;
|
|
}
|
|
|
|
#about div {
|
|
display: flex;
|
|
margin-top: 0.5em;
|
|
gap: 1em;
|
|
}
|
|
|
|
a {
|
|
color: #444444;
|
|
text-decoration: none;
|
|
}
|
|
|
|
form {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: grid;
|
|
align-items: center;
|
|
justify-items: center;
|
|
}
|
|
form input {
|
|
}
|
|
|
|
#textInput {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
justify-content: space-between;
|
|
gap: 1em;
|
|
}
|
|
|
|
#textInput #textArea {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#textInput input {
|
|
width: 100%;
|
|
height: 2.5em;
|
|
appearance: none;
|
|
background-color: #ffa800;
|
|
color: white;
|
|
border: none;
|
|
font-weight: bold;
|
|
padding: 0;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#textInput input:hover {
|
|
background-color: #ff9100;
|
|
}
|
|
|
|
#popup {
|
|
width: 20vw;
|
|
background-color: rgba(255, 255, 255, 0.8);
|
|
position: absolute;
|
|
right: -30vw;
|
|
bottom: max(80px, 10vh);
|
|
padding: 2em 3em;
|
|
|
|
transition: all 300ms ease-in;
|
|
-webkit-box-shadow: 0px 0px 17px 0px rgba(50, 50, 50, 0.75);
|
|
-moz-box-shadow: 0px 0px 17px 0px rgba(50, 50, 50, 0.75);
|
|
box-shadow: 0px 0px 17px 0px rgba(50, 50, 50, 0.75);
|
|
}
|