Files
call-me/public/style.css
T
2024-09-19 20:02:09 +02:00

179 lines
3.0 KiB
CSS

/* Import font-family */
@import url('https://fonts.googleapis.com/css?family=Comfortaa:wght@500&display=swap');
/* Variables */
:root {
--border-radius: 10px;
}
/* Global Styles */
* {
outline: none;
font-family: 'Comfortaa';
}
html,
body {
top: 0;
bottom: 0;
width: 100%;
height: 100%;
margin: auto;
overflow: auto;
background: url('background.jpg') center/cover no-repeat; /* Consolidate background properties */
}
/* Room */
#roomPage {
position: absolute;
display: none;
}
/* Home Sign in */
#signInPage {
position: absolute;
display: block;
}
/* General Card Styles */
.card {
max-width: 400px !important;
margin: 0 auto !important;
color: #fff !important;
font-weight: bold !important;
border: none !important;
border-radius: 10px !important;
background: rgb(0 0 0 / 7%) !important;
}
.card-header h1 {
margin-top: 15px;
}
/* Video Styles */
video {
width: 100%;
height: auto;
border: none;
border-radius: var(--border-radius);
object-fit: contain;
}
/* Local Video Styles */
#localVideoContainer {
position: absolute;
top: 10px;
left: 20px;
width: 15vw;
height: 15vh;
border-radius: var(--border-radius);
border: none;
}
#localUsername {
position: absolute;
top: 0px;
left: 0px;
color: #fff;
font-size: x-small;
border-radius: 5px;
margin: 5px;
}
/* Remote Video Styles */
#remoteVideo {
width: 100%;
height: auto;
background: rgba(0, 0, 0, 0.5);
border-radius: var(--border-radius);
border: none;
}
/* Hidden Elements */
.hide {
display: none;
}
input {
text-align: center;
}
/* Text Input Styles */
#callUsernameIn {
background: rgba(0, 0, 0, 0.5);
color: #fff;
border: none;
}
/* Placeholder Styles */
#callUsernameIn::placeholder {
color: #525252;
opacity: 1;
}
/* Center Alignment */
.center {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* Custom button */
.btn-custom {
height: 48px;
width: 48px;
margin: 0.1rem;
border: none;
border-radius: 50px !important;
}
/* GitHub div */
#githubDiv {
position: absolute;
top: 10px;
right: 10px;
}
/* Swal2 custom theme */
.swal2-popup {
background-color: #333 !important;
color: #fff !important;
border: none !important;
}
.swal2-popup .swal2-styled:focus {
box-shadow: none !important;
}
.swal2-title {
color: #fff !important;
}
.swal2-actions .swal2-confirm {
background-color: #157346 !important;
color: #fff !important;
border: none !important;
}
.swal2-actions .swal2-cancel {
background-color: #666 !important;
color: #fff !important;
border: none !important;
}
/* Webkit-Scrollbar Styles */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-thumb {
background: radial-gradient(#333, #000000);
border-radius: 5px;
cursor: pointer;
}
::-webkit-scrollbar-thumb:hover {
background-color: radial-gradient(#333, #000000);
}
::-webkit-scrollbar-track {
background: #1a1b1f;
}