Files
face-attendance/static/styles.css
2026-05-01 19:55:59 +03:30

341 lines
5.4 KiB
CSS

@font-face {
font-family: 'IRANSansWeb';
src: url('/static/IRANSansWeb/IRANSansWeb.eot');
src: url('/static/IRANSansWeb/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
url('/static/IRANSansWeb/IRANSansWeb.svg#IRANSansWeb') format('svg'),
url('/static/IRANSansWeb/IRANSansWeb.ttf') format('truetype'),
url('/static/IRANSansWeb/IRANSansWeb.woff') format('woff'),
url('/static/IRANSansWeb/IRANSansWeb.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
html{
background-color: #fff;
font-family: 'IRANSansWeb';
color: #333;
}
h3, h4{
font-size: 30px;
color: #2c3e50;
margin: 2% 0;
text-align: center;
}
input{
margin-top: 10px;
font-family: IRANSansWeb;
font-size: 20px;
}
.fleft{
float:left;
}
.fright{
float:right;
}
.tright{
text-align:right;
}
.file{
margin: 20px;
min-width: 200px;
max-width: 200px;
}
.file form{
margin-top: 20px;
}
.container{
min-width: 45%;
max-width: 45%;
margin: 2%;
padding: 20px;
background-color: #efefef;
}
.one_container{
min-width: 90%;
max-width: 90%;
margin: 5%;
padding: 20px;
background-color: #efefef;
}
@media only screen and (max-width: 1010px) {
.container {
min-width: 90%;
max-width: 90%;
margin: 2% auto;
}
.fone{
float:initial;
}
h3, h4{
font-size: 20px;
}
}
.app{
width: 100%;
position: relative;
}
.app #start-camera{
display: none;
border-radius: 3px;
max-width: 400px;
color: #fff;
background-color: #448AFF;
text-decoration: none;
padding: 15px;
opacity: 0.8;
margin: 50px auto;
text-align: center;
}
.app video#camera-stream{
display: none;
width: 100%;
}
.app img#snap{
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 10;
display: none;
}
.app #error-message{
width: 100%;
background-color: #ccc;
color: #9b9b9b;
font-size: 28px;
padding: 200px 100px;
text-align: center;
display: none;
}
.app .controls{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 20;
display: flex;
align-items: flex-end;
justify-content: space-between;
padding: 30px;
display: none;
}
.app .controls a{
border-radius: 50%;
color: #fff;
background-color: #111;
text-decoration: none;
padding: 15px;
line-height: 0;
opacity: 0.7;
outline: none;
-webkit-tap-highlight-color: transparent;
}
.app .controls a:hover{
opacity: 1;
}
.app .controls a.disabled{
background-color: #555;
opacity: 0.5;
cursor: default;
pointer-events: none;
}
.app .controls a.disabled:hover{
opacity: 0.5;
}
.app .controls a i{
font-size: 18px;
}
.app .controls #take-photo i{
font-size: 32px;
}
.app canvas{
display: none;
}
.app video#camera-stream.visible,
.app img#snap.visible,
.app #error-message.visible
{
display: block;
}
.app .controls.visible{
display: flex;
}
@media(max-width: 1000px){
.container{
margin: 40px;
}
.app #start-camera.visible{
display: block;
}
.app .controls a i{
font-size: 16px;
}
.app .controls #take-photo i{
font-size: 24px;
}
}
@media(max-width: 600px){
.container{
margin: 10px;
}
.app #error-message{
padding: 80px 50px;
font-size: 18px;
}
.app .controls a i{
font-size: 12px;
}
.app .controls #take-photo i{
font-size: 18px;
}
}
//////////////////////////////////
.buttons {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
text-align: center;
width: 100%;
height: 100%;
margin: 0 auto;
/* padding: 2em 0em; */
}
.flex {
display: flex;
margin-top: 20px;
text-align: center;
}
.btn {
user-select: none;
cursor: pointer;
font-size: 14px;
font-weight: 400;
line-height: 45px;
max-width: 160px;
position: relative;
text-decoration: none;
width: 100%;
margin: 5px;
}
.btn:hover {
text-decoration: none;
}
/*btn_background*/
.effect01 {
color: #FFF;
border: 4px solid #000;
box-shadow:0px 0px 0px 1px #000 inset;
background-color: #000;
overflow: hidden;
position: relative;
transition: all 0.3s ease-in-out;
}
.effect01:hover {
border: 4px solid #666;
background-color: #FFF;
box-shadow:0px 0px 0px 4px #EEE inset;
}
/*btn_text*/
.effect01 span {
transition: all 0.2s ease-out;
z-index: 2;
}
.effect01:hover span{
letter-spacing: 0.13em;
color: #333;
}
/*highlight*/
.effect01:after {
background: #FFF;
border: 0px solid #000;
content: "";
height: 155px;
left: -75px;
opacity: .8;
position: absolute;
top: -50px;
-webkit-transform: rotate(35deg);
transform: rotate(35deg);
width: 50px;
transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);/*easeOutCirc*/
z-index: 1;
}
.effect01:hover:after {
background: #FFF;
border: 20px solid #000;
opacity: 0;
left: 120%;
-webkit-transform: rotate(40deg);
transform: rotate(40deg);
}
.add_icon_Circle{
cursor: pointer;
border-radius: 50%;
right: 20px;
bottom: 20px;
position: fixed;
user-select: none;
box-shadow: 0px 1px 18px 0px rgba(0,0,0,0.4),
0px 3px 5px -1px rgba(0,0,0,0.2);
background-color: #fff;
width: 50px;
height: 50px;
}
.add_icon{
font-size: 40px;
margin: 5px;
}