calendarwatch_frontend/server/static/css/main.css

381 lines
6.3 KiB
CSS
Raw Permalink Normal View History

2020-05-21 11:37:52 +02:00
2020-05-29 20:30:37 +02:00
html,
body
2020-05-21 11:37:52 +02:00
{
font-family: "Trebuchet MS", Helvetica, sans-serif;
2020-05-29 20:30:37 +02:00
padding: 0;
margin: 0;
height: calc(100% - 0.5rem)
2020-05-29 20:30:37 +02:00
}
#container {
min-height:100%;
position:relative;
}
#main {
padding-bottom: 3rem;
padding-top: 3rem;
padding: 30px 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#footer {
position: absolute;
bottom: 0;
width: 100%;
height: 3rem;
2020-05-21 11:37:52 +02:00
}
.banner {
display:flex;
justify-content: center;
margin: 5rem;
align-items:center;
flex-direction: column;
}
.subtitle {
color: #333;
text-align: center;
margin: 1rem;
font-size: 1.2rem;
}
.primeblue {
color: #1b75bc;
}
.title {
font-size: 3rem;
font-weight: bold;
text-align: center;
margin: 1rem;
}
.whiteblock {
display: flex;
background-color: #fff;
align-items: center;
justify-content: center;
margin-left: 10rem;
margin-right: 10rem;
}
.grayblock {
background-color: #ddd;
align-items: center;
justify-content: center;
}
.grayblock .padded {
2020-08-26 23:02:46 +02:00
padding: 0rem;
}
.horizontal {
display: flex;
flex-wrap: wrap;
}
.vertical {
font-size: 1.5rem;
display: flex;
flex-direction: column;
text-align: left;
}
.vertical .content {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
margin: 2rem
}
.vertical .content .image {
2020-08-26 23:02:46 +02:00
max-width: 90%;
width: 25rem;
}
.vertical .content .text {
2020-08-26 23:02:46 +02:00
max-width: 90%;
margin: auto;
width: 26rem;
}
.horizontal .content {
font-size: 2rem;
text-align: center;
}
.horizontal .image {
margin: 1rem;
height: 20rem;
border-radius: 1rem;
width: auto;
}
2020-05-11 23:00:00 +02:00
.logins {
height: 100px;
width: 500px;
margin: 5px;
}
.login_google {
width: 200px;
}
.login_email {
width: 200px;
}
2020-05-29 20:30:37 +02:00
/* bot navigation */
.footer {
background-color: #d8d8d8;
display: flex;
justify-content:center;
align-items:center;
}
.footer p {
margin: 0px;
text-decoration: none;
display: flex;
float: left;
color: #424242;
padding: 1rem;
font-size: 17px;
}
.footer a {
text-decoration: none;
color: #085a87;
}
2020-05-21 10:18:40 +02:00
/* top navigation */
2020-05-29 20:30:37 +02:00
.navigation {
background-color: #eaeaea;
2020-05-21 10:18:40 +02:00
overflow: hidden;
margin: auto;
display: block;
}
.navigation_rightside {
margin-left: auto;
2020-05-21 10:18:40 +02:00
}
2020-05-29 20:30:37 +02:00
.navigation a {
2020-05-21 10:18:40 +02:00
float: left;
display: block;
color: #333;
2020-05-21 10:18:40 +02:00
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
2020-05-29 20:30:37 +02:00
.navigation a:hover {
2020-05-21 10:18:40 +02:00
background-color: #ddd;
color: black;
}
/* Add an active class to highlight the current page */
2020-05-29 20:30:37 +02:00
.navigation a.active {
2020-05-21 10:18:40 +02:00
background-color: #4CAF50;
color: white;
}
2020-05-29 20:30:37 +02:00
/* Hide the link that should open and close the navigation on small screens */
.navigation .icon {
2020-05-21 10:18:40 +02:00
display: none;
}
2020-05-29 20:30:37 +02:00
/* 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 navigation (.icon) */
2020-05-21 10:18:40 +02:00
@media screen and (max-width: 600px) {
2020-05-29 20:30:37 +02:00
.navigation a:not(:first-child) {display: none;}
.navigation a.icon {
2020-05-21 10:18:40 +02:00
float: right;
display: block;
}
}
2020-05-29 20:30:37 +02:00
/* The "responsive" class is added to the navigation with JavaScript when the user clicks on the icon. This class makes the navigation look good on small screens (display the links vertically instead of horizontally) */
2020-05-21 10:18:40 +02:00
@media screen and (max-width: 600px) {
2020-05-29 20:30:37 +02:00
.navigation.responsive {position: relative;}
.navigation.responsive a.icon {
2020-05-21 10:18:40 +02:00
position: absolute;
right: 0;
top: 0;
}
2020-05-29 20:30:37 +02:00
.navigation.responsive a {
2020-05-21 10:18:40 +02:00
float: none;
display: block;
text-align: left;
}
2020-08-26 23:02:46 +02:00
2020-05-21 10:18:40 +02:00
}
2020-05-21 11:37:52 +02:00
/* Style page content */
.main {
2020-05-11 23:00:00 +02:00
padding: 30px 10px;
2020-05-21 11:37:52 +02:00
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
2020-05-11 23:00:00 +02:00
2020-05-21 11:37:52 +02:00
/* The switch - the box around the slider */
2020-05-11 23:00:00 +02:00
.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;
2020-05-21 15:38:22 +02:00
background-color: #ddd;
2020-05-11 23:00:00 +02:00
-webkit-transition: .4s;
transition: .4s;
}
2020-05-21 15:38:22 +02:00
.slider.on {
background-color: #2196F3;
}
2020-05-11 23:00:00 +02:00
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
right: 3px;
bottom: 3px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
2020-05-21 15:38:22 +02:00
input:checked + .slider.on{
2020-05-11 23:00:00 +02:00
background-color: #ccc;
}
2020-05-21 15:38:22 +02:00
input:focus + .slider.on {
2020-05-11 23:00:00 +02:00
box-shadow: 0 0 1px #ccc;
}
2020-05-21 15:38:22 +02:00
input:checked + .slider.on:before {
2020-05-11 23:00:00 +02:00
-webkit-transform: translateX(-13px);
-ms-transform: translateX(-13px);
transform: translateX(-13px);
}
/* Rounded sliders */
.slider.round {
border-radius: 24px;
}
.slider.round:before {
border-radius: 50%;
2020-05-21 11:37:52 +02:00
}
.container {
display: flex;
flex-wrap: wrap;
2020-05-21 11:37:52 +02:00
justify-content: center;
align-items:center;
/* flex-direction: row; */
2020-08-26 23:02:46 +02:00
/*padding: 0px 2rem 0px 2rem;*/
2020-05-21 11:37:52 +02:00
}
.container .button {
padding: 1rem 1.5rem 1rem 1.5rem;
font-size: 2rem;
2020-08-26 23:02:46 +02:00
margin: 4rem 1rem 1rem 1rem;
2020-05-21 11:37:52 +02:00
color: black;
text-decoration: none;
}
2020-05-21 15:38:22 +02:00
.container .preview {
width: 20rem;
2020-08-26 23:02:46 +02:00
height: auto;
2020-05-21 15:38:22 +02:00
margin: 1rem 3rem 4rem 3rem;
2020-08-26 23:02:46 +02:00
max-width: 100%;
2020-05-21 15:38:22 +02:00
}
2020-05-21 11:37:52 +02:00
.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;
}
2020-05-21 11:37:52 +02:00
.sub.container {
2020-08-26 23:02:46 +02:00
width: 40%;
2020-05-21 11:37:52 +02:00
justify-content: left;
2020-08-26 23:02:46 +02:00
display: flex;
2020-05-21 11:37:52 +02:00
}
.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;
2020-08-26 23:02:46 +02:00
text-align: center;
2020-05-21 11:37:52 +02:00
}
.grey {
background-color: #ddd;
}
2020-05-21 11:37:52 +02:00
.sub.container .name {
margin-right: 1rem;
}
.sub.container .data {
background: #ddd;
padding: 5px;
border-radius: 5px;
margin-right: 1rem;
}
2020-08-26 23:02:46 +02:00
@media (max-width:800px) {
.sub.container {
justify-content: center;
}
}