MsRewards/Flask/static/css/flask.css

302 lines
4.9 KiB
CSS
Raw Normal View History

2023-06-17 16:52:47 +02:00
@import url('https://fonts.googleapis.com/css?family=Montserrat');
html {
text-align: center;
font-family: Montserrat;
height: 90%;
}
form {
width: 100%;
}
table {
width: 100%;
height: 100%;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
a {
color: white;
}
input[type=text] {
width: 90%;
padding: 12px 20px;
margin: 8px 0;
background-color: #212121;
border: 2px solid grey;
border-radius: 4px;
outline: none;
color: white;
text-align: center;
}
input[type=password] {
width: 90%;
padding: 12px 20px;
margin: 8px 0;
text-align: center;
border: 2px solid grey;
border-radius: 4px;
outline: none;
color: white;
background-color: #212121;
}
.button{
border-radius: 4px;
border: 2px solid grey;
background-color: #212121;
color: white;
padding: 12px 20px;
width: 70%;
margin: 10px;
}
.left-button{
width: 10%;
}
.ban{
border-radius: 4px;
border: 2px solid red;
background-size: 200% 100%;
background-image: linear-gradient(to right, #212121 50%, red 50%);
-webkit-transition: background-position 0.5s;
-moz-transition: background-position 0.5s;
transition: background-position 0.5s;
color: white;
2023-07-01 14:41:07 +02:00
padding: 12px 0px;
2023-06-17 16:52:47 +02:00
width: 70%;
margin: 10px;
}
.ban:hover{
background-position: -100% 0;
}
.confirm{
color: white;
padding: 12px 20px;
width: 70%;
margin: 10px;
background-size: 200% 100%;
background-image: linear-gradient(to right, #212121 50%, green 50%);
-webkit-transition: background-position 0.5s;
-moz-transition: background-position 0.5s;
transition: background-position 0.5s;
border: 2px solid grey;
}
.confirm:hover{
background-position: -100% 0;
}
.confirm{
color: white;
padding: 12px 20px;
width: 70%;
margin: 10px;
background-size: 200% 100%;
background-image: linear-gradient(to right, #212121 50%, green 50%);
-webkit-transition: background-position 0.5s;
-moz-transition: background-position 0.5s;
transition: background-position 0.5s;
border: 2px solid grey;
}
.confirm:hover{
background-position: -100% 0;
}
.unselected{
border-radius: 4px;
border: 2px solid grey;
background-color: #212121;
color: white;
padding: 12px 20px;
width: 70%;
margin: 10px;
}
.selected{
border-radius: 4px;
border: 2px solid grey;
background-color: dimgray;
color: white;
padding: 12px 20px;
width: 70%;
margin: 10px;
}
button:hover{
border: 2px solid white;
2023-06-18 17:40:59 +02:00
cursor: pointer;
2023-06-17 16:52:47 +02:00
}
input:hover{
border: 2px solid white;
}
.submit{
border-radius: 4px;
border: 2px solid grey;
background-color: #212121;
color: white;
padding: 12px 20px;
width: 100%;
margin: 10px;
}
body {
background-color: #212121;
color: #fff;
height: 100%;
}
.left-pannel{
flex: 1;
margin: 20px;
border: 1px solid #fff;
border-radius: 5px;
padding: 20px;
width: 80%;
height: 80%;
}
.content{
flex: 3;
margin: 20px;
border: 1px solid #fff;
border-radius: 5px;
padding: 20px;
width: 80%;
height: 80%;
}
.container {
display: flex;
width: 100%;
height: 100%;
}
.row-item {
margin: 10px 0;
text-align: center;
}
#image img {
display: block;
margin: auto;
width: 20%;
}
.comlumn-name{
width: 20%;
}
/*
For toggle switch
*/
input[type=checkbox]{
height: 0;
width: 0;
visibility: hidden;
2023-06-18 17:40:59 +02:00
}
2023-06-17 16:52:47 +02:00
label {
2023-06-18 17:40:59 +02:00
padding: 8px;
2023-06-17 16:52:47 +02:00
margin: auto;
cursor: pointer;
text-indent: -9999px;
width: 100px;
height: 50px;
background: grey;
display: block;
border-radius: 100px;
position: relative;
}
/*
width: height of label /2 ;
height: height of label /2px;
*/
label:after {
content: '';
position: absolute;
top: 5px;
left: 5px;
width: 40px;
height: 40px;
background: #fff;
border-radius: 90px;
transition: 0.3s;
}
input:checked + label {
background: #bada55;
}
input:checked + label:after {
left: calc(100% - 5px);
transform: translateX(-100%);
}
/*changer l'épaisseur du click */
label:active:after {
width: 30px;
}
select {
width: 90%;
height: 100%;
padding: 12px 20px;
margin: 8px 0;
background-color: #212121;
border: 2px solid grey;
border-radius: 4px;
outline: none;
color: white;
text-align: center;
}
select:hover {
border: 2px solid white;
}
2023-06-18 17:40:59 +02:00
input[type="time"] {
width: 70%;
padding: 8px 12px;
margin: 8px 0;
background-color: #212121;
border: 2px solid grey;
border-radius: 4px;
outline: none;
color: white;
text-align: center;
}
input[type="time"]::-webkit-calendar-picker-indicator {
filter: invert(1);
opacity: 0.7;
cursor: pointer;
}
input[type="time"]::-webkit-calendar-picker-indicator:hover {
opacity: 1;
}