calendarwatch_frontend/server/static/css/main.css
Raphael Maenle 3c6d950bbc adds device page and form for new device
- form added to push new device id to backend
- device added to db model (needs to be pushed still)
- form return right now just prints
- design for device list created, still needs some updates
2020-05-21 18:33:58 +02:00

226 lines
4.0 KiB
CSS

body *
{
font-family: "Trebuchet MS", Helvetica, sans-serif;
}
.logins {
height: 100px;
width: 500px;
margin: 5px;
}
.login_google {
width: 200px;
}
.login_email {
width: 200px;
}
/* top navigation */
.topnav {
background-color: #333;
overflow: hidden;
}
.topnav a {
float: left;
display: flex;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Add an active class to highlight the current page */
.topnav a.active {
background-color: #4CAF50;
color: white;
}
/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
display: none;
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
.topnav a:not(:first-child) {display: none;}
.topnav a.icon {
float: right;
display: block;
}
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
.topnav.responsive {position: relative;}
.topnav.responsive a.icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
}
/* Style page content */
.main {
padding: 30px 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 38px;
height: 24px;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ddd;
-webkit-transition: .4s;
transition: .4s;
}
.slider.on {
background-color: #2196F3;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
right: 3px;
bottom: 3px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider.on{
background-color: #ccc;
}
input:focus + .slider.on {
box-shadow: 0 0 1px #ccc;
}
input:checked + .slider.on:before {
-webkit-transform: translateX(-13px);
-ms-transform: translateX(-13px);
transform: translateX(-13px);
}
/* Rounded sliders */
.slider.round {
border-radius: 24px;
}
.slider.round:before {
border-radius: 50%;
}
.container {
display: inline-flex;
justify-content: center;
align-items:center;
flex-direction: row;
padding: 0px 2rem 0px 2rem;
}
.container .button {
padding: 1rem 1.5rem 1rem 1.5rem;
font-size: 2rem;
margin: 4rem;
color: black;
text-decoration: none;
}
.container .preview {
width: 20rem;
height: 20rem;
margin: 1rem 3rem 4rem 3rem;
}
.container .button.logout {
background-color: #ddd;
}
.container .button.delete {
background-color: #b51409;
}
.container .button.adddevice {
background-color: #ddd;
color: white;
}
.container .button.addcalendar {
background-color: #ddd;
color: white;
}
.sub.container {
width: 20rem;
justify-content: left;
}
.profile {
display: inline-flex;
justify-content: center;
align-items:center;
flex-direction: row;
}
.profile .picture {
width: 4rem;
height: 4rem;
border-radius: 50%;
margin-right: 2rem;
}
.profile .name {
font-size: 3rem;
color: #333;
}
.sub.container .name {
margin-right: 1rem;
}
.sub.container .data {
background: #ddd;
padding: 5px;
border-radius: 5px;
margin-right: 1rem;
}