ed.brz9.dev/proj/YT2P/assets/css/style.css

191 lines
3.3 KiB
CSS

@import url("https://file.brz9.dev/web/css/normalize.css");
@import url("https://file.brz9.dev/cdn/fonts/byl-iconfont-v4.0/icons.css");
@import url("./layout.css");
@import url("./colors.css");
@import url("./fonts.css");
@import url("./ux.css");
input[type=text] {
border: 5px solid var(--black);
border-right: 0px;
padding: 10px;
border-radius: 0px;
background-color: var(--white);
font-family: inherit;
font-weight: inherit;
display: flex;
margin: 0px;
width: auto;
outline: none;
}
select#lang {
border: 5px solid var(--black);
padding: 10px;
border-radius: 0px;
background-color: var(--white);
font-family: inherit;
font-weight: inherit;
display: flex;
margin: 0px;
width: auto;
outline: none;
}
input[type=submit] {
border: 5px solid var(--black);
padding: 10px;
border-radius: 0px;
background-color: var(--black);
color: var(--white);
font-family: inherit;
font-weight: inherit;
width: 100%;
}
form section.input {
display: flex;
}
section.input select, section.input input[type=text] {
flex-grow: 1;
}
/* Loading screen */
div.loading {
position: fixed;
background-color: var(--black);
color: var(--white);
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
}
div.loading span {
width: 1rem;
height: 1rem;
margin-left: 20px;
background-color: var(--white);
border-radius: 50%;
display: inline-block;
animation-name: dots;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
margin-top: 23px;
}
div.loading span:nth-child(1){
animation-delay: 0s;
}
div.loading span:nth-child(2){
animation-delay: 0.4s;
}
div.loading span:nth-child(3){
animation-delay: 1.2s;
}
@keyframes dots{
50%{
opacity: 0.2;
transform: scale(0.4) translate(1px);
}
}
div.y2t-output {
border: 5px solid var(--black);
}
div.y2t-output div.top {
border-bottom: 5px solid var(--black);
background-color: var(--black);
color: var(--white);
font-size: 1.2rem;
height: 3rem;
display: flex;
align-items: center;
text-align: left;
overflow: hidden;
cursor: pointer;
}
div.y2t-output div.top span.copylabel {
font-size: 1.2rem;
margin-right: 10px;
margin-left: 10px;
}
section#output {
max-width: 70vw;
margin-left: auto;
margin-right: auto;
margin-top: 30px;
}
section#output div.y2t-output {
margin-top: 40px;
margin-bottom: 40px;
}
div.y2t-output {
position: relative;
}
div.copied {
position: absolute;
background-color: var(--success);
color: white;
font-size: 1.5rem;
padding: 10px;
right: -20px;
top: -5px;
transform: rotate(12deg);
opacity: 0;
}
.success {
animation: fade-in 2s forwards;
}
@keyframes fade-in {
0% {
opacity: 0;
scale: 0%;
}
10% {
opacity: 1;
scale: 100%;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
footer a.qna-logo {
background-color: var(--black);
color: var(--white);
width: 40px;
height: 40px;
display: inline-flex;
justify-content: center;
align-content: center;
border-radius: 50%
}
footer a.qna-logo span {
padding-top: 6px;
font-size: 1.4rem;
}