test / translate /style.css
supArs's picture
Upload 100 files
26c453d verified
raw
history blame
5.27 kB
/*
1. globals
2. body
3. navbar
4. canvas(webcam preview)
5. transcript box
6. quick controlls (gtts, cam, upload)
7. bottom sheet (text to sign)
*/
:root {
--ultraLightGreen: #D3F1E9;
--lightGreen: #BCF3E5;
--brightGreen: #62E6BF;
--mediumGreen: #0DA778;
--deepGreen: #0A7B79;
--navyBlue: #193053;
--background: #fff;
--foreground: #000;
--divider: #dcdcdc;
--overlay: #888;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #000;
--foreground: #fff;
--divider: #333;
}
}
/* @import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@500&family=Poppins:wght@600&display=swap'); */
@font-face {
font-family: "Poppins";
src: url("/assets/fonts/Poppins-SemiBold.ttf");
}
@font-face {
font-family: "Aclonica";
src: url("/assets/fonts/Aclonica-Regular.ttf");
}
* {
margin: 0;
padding: 0;
font-family: "Poppins";
font-size: 600;
}
body {
display: flex;
justify-content: center;
min-height: 100vh;
min-width: 100vw;
background-color: var(--lightGreen);
overflow: auto;
}
.cointainer {
display: block;
position: relative;
min-height: 100vh;
width: 100vw;
background-color: var(--ultraLightGreen);
overflow: auto;
}
/***************************/
/* navbar */
/**************************/
.navbar {
position: absolute;
width: 100%;
display: grid;
grid-template-columns: auto auto;
}
#back-btn {
cursor: pointer;
padding-left: 15px;
padding-top: 15px;
}
#cam-switch-btn {
cursor: pointer;
margin-left: 70%;
padding-top: 10px;
}
/***************************/
/* canvas(webcam-preview) */
/**************************/
#webcam-banner {
display: none;
width: 100%;
height: 25vh;
}
.webcam-view {
display: block;
width: 100%;
height: 25vh;
}
.canvas {
display: block;
width: 100%;
height: 28vh;
}
/***************************/
/* transcript */
/**************************/
.transcript-wrapper {
/* position: relative; */
display: flex;
flex-flow: column;
align-items: flex-start;
margin: auto;
margin-top: 20px;
height: 17rem;
width: 85%;
background: #F9FFFD;
border: 2px solid var(--navyBlue);
border-radius: 18px;
}
.transcript-tittle-bar-wrapper {
background-color: var(--navyBlue);
border-radius: 16px 16px 0px 0px;
width: 100%;
height: 2.7rem;
display: grid;
grid-template-columns: auto auto auto;
grid-gap: 50px;
}
#transcript-settings-btn {
cursor: pointer;
height: 17px;
margin: auto;
/* width: 20px; */
padding-top: 4.5px;
/* padding-left: 15px; */
}
#transcript-heading {
width: 131px;
padding-top: 9px;
}
#expand-transcript-btn {
cursor: pointer;
/* width: 23px; */
font-size: 1rem;
padding-top: 13px;
}
#transcript-details-btn {
/* position: absolute; */
width: 50%;
margin: auto;
}
#textarea {
display: block;
width: 100%;
height: 75%;
overflow: auto;
}
.line {
color: rgba(25, 48, 83, 0.4);
font-size: 28px;
padding-top: 7px;
padding-left: 15px;
}
#last-line {
color: var(--navyBlue);
}
/* #transcript-settings-btn {
width: 15px;
margin-left: auto;
padding-right: 15px;
} */
/***************************/
/* quick controlls */
/**************************/
.quick-controls {
display: grid;
grid-template-columns: auto auto auto;
grid-template-rows: auto;
margin: auto;
margin-top: 20px;
margin-bottom: 0;
width: 70%;
background: var(--ultraLightGreen);
border: 1px solid var(--navyBlue);
/* box-shadow: 0px 4px 4px ; */
border-radius: 45px;
padding: 8px 10px 8px 10px;
}
.quick-btn {
cursor: pointer;
width: 22px;
margin: auto;
}
#gtts-btn {
cursor: pointer;
margin-left: 8px;
padding-left: 5px;
padding: 8px 20px 8px 20px;
border-radius: 45px;
}
#camera-btn {
cursor: pointer;
margin: 0px 15px 0px 15px;
padding: 8px 20px 8px 20px;
border-radius: 45px;
}
#upload-btn {
cursor: pointer;
margin-right: 8px;
padding-right: 5px;
padding: 8px 20px 8px 20px;
border-radius: 45px;
}
#file-input {
display: none;
}
/***************************/
/* bottom sheet */
/**************************/
#bottom-sheet {
display: block;
position: absolute;
width: 100%;
bottom: 0;
}
.overlay {
position: absolute;
right: 0;
left: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.85);
opacity: 0;
transition: all 450ms cubic-bezier(0.32, 1, 0.23, 1) 0ms;
}
/*************************/
/* meida quiries */
/************************/
/* desktop */
@media only screen and (min-width: 1080px) {
.cointainer {
max-width: 430px;
/* border-left: 2px solid rgba(107, 126, 36, 0.5); */
/* border-right: 2px solid rgba(107, 126, 36, 0.5); */
-webkit-box-shadow: 0px 0px 100px 20px rgba(107, 126, 36, 0.3);
-moz-box-shadow: 0px 0px 100px 20px rgba(107, 126, 36, 0.3);
box-shadow: 0px 0px 100px 20px rgba(107, 126, 36, 0.3);
}
#bottom-sheet {
height: auto;
}
}