mapcomplete/index.css

673 lines
11 KiB
CSS
Raw Normal View History

html, body {
height: 100%;
margin: 0;
padding: 0;
}
2020-06-23 22:35:19 +00:00
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
}
2020-06-23 22:35:19 +00:00
2020-07-27 13:40:55 +00:00
#leafletDiv {
height: 100%;
}
2020-06-23 22:35:19 +00:00
#geolocate-button {
position: absolute;
bottom: 25px;
right: 50px;
z-index: 999; /*Just below leaflets zoom*/
background-color: white;
border-radius: 5px;
border: solid 2px #0005;
cursor: pointer;
width: 43px;
height: 43px;
display: none; /*Hidden by default, only visible on mobile*/
}
#geolocate-button img {
width: 31px;
height: 31px;
margin: 6px;
}
#geolocate-button > .uielement {
display: block;
}
2020-07-27 11:04:38 +00:00
#help-button-mobile {
display: none;
}
#layer-selection {
position: absolute;
bottom: 1em;
left: 1em;
z-index: 9000;
background-color: white;
border-radius: 1em;
cursor: pointer;
}
/**************** GENERIC ****************/
.alert {
background-color: #fee4d1;
font-weight: bold;
border-radius: 1em;
margin: 0.25em;
2020-09-12 22:53:24 +00:00
text-align: center;
2020-09-14 18:16:03 +00:00
padding: 0.15em 0.3em;
}
form {
2020-09-17 18:59:05 +00:00
display: inline-block;
max-width: 90vw;
width: 100%;
}
.invalid {
box-shadow: 0 0 10px #ff5353;
}
.shadow {
box-shadow: 0 0 10px #00000066;
}
2020-09-12 22:53:24 +00:00
.title-font span {
font-size: xx-large !important;
font-weight: bold;
}
2020-09-12 22:53:24 +00:00
.soft {
background-color: #e5f5ff;
font-weight: bold;
border-radius: 1em;
margin: 0.25em;
text-align: center;
2020-09-14 18:16:03 +00:00
padding: 0.15em 0.3em;
2020-09-12 22:53:24 +00:00
}
2020-09-12 22:53:24 +00:00
.subtle {
color: #999;
}
2020-08-26 23:03:58 +00:00
2020-09-12 22:53:24 +00:00
.bold {
font-weight: bold;
}
.thanks {
background-color: #43d904;
font-weight: bold;
border-radius: 1em;
margin: 0.25em;
text-align: center;
2020-09-14 18:16:03 +00:00
padding: 0.15em 0.3em;
2020-09-12 22:53:24 +00:00
}
2020-09-02 09:37:34 +00:00
.clickable {
pointer-events: all;
}
2020-09-02 09:37:34 +00:00
.page-split {
display: flex;
height: 100%;
}
2020-09-02 09:37:34 +00:00
.activate-osm-authentication {
cursor: pointer;
color: blue;
text-decoration: underline;
}
2020-07-01 00:12:33 +00:00
#searchbox {
display: inline-block;
text-align: left;
background-color: white;
transition: all 500ms linear;
pointer-events: all;
border-radius: 1.3em;
2020-09-14 18:16:03 +00:00
margin: 0 0 0.5em;
2020-07-01 00:12:33 +00:00
width: 100%;
}
.search {
position: relative;
float: left;
height: 2em;
margin-right: 0.5em;
}
2020-07-23 21:33:17 +00:00
#searchbox {
width: 100%
}
2020-07-01 00:12:33 +00:00
#searchbox .form-text-field {
position: relative;
float: left;
margin-top: 0.2em;
2020-07-05 16:59:47 +00:00
margin-left: 1em;
2020-07-23 21:33:17 +00:00
width: calc(100% - 4em)
2020-07-01 00:12:33 +00:00
}
#searchbox input[type="text"] {
background: transparent;
border: none;
font-size: large;
2020-07-23 21:33:17 +00:00
width: 100%;
box-sizing: border-box;
2020-07-01 00:12:33 +00:00
}
.search-go {
position: relative;
2020-07-05 16:59:47 +00:00
float: right;
2020-07-01 00:12:33 +00:00
height: 1.2em;
border: 2px solid black;
border-radius: 2em;
padding: 0.4em;
2020-07-05 16:59:47 +00:00
margin-left: 0.5em;
margin-right: 0;
2020-06-23 22:35:19 +00:00
}
2020-09-04 23:40:43 +00:00
#userbadge {
width: 100%
}
#userbadge p {
margin: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
}
#hidden-on-mobile {
2020-09-17 18:59:05 +00:00
display: none; /*Only shown on small screens - this is probably named wrongly*/
}
2020-09-17 18:59:05 +00:00
2020-09-04 23:40:43 +00:00
.add-popup-all-buttons {
max-height: 50vh;
display: inline-block;
overflow-y: auto;
width: 100%;
}
2020-07-25 16:00:08 +00:00
2020-09-17 18:59:05 +00:00
@media only screen and (max-height: 600px) and (not (max-width:700px)) {
2020-09-04 23:40:43 +00:00
2020-09-17 18:59:05 +00:00
/* Landscape and portrait */
#topleft-tools {
padding: 0.1em 0.1em 0.1em unset;
}
2020-07-27 13:40:55 +00:00
2020-09-17 18:59:05 +00:00
.hidden-on-mobile {
display: none !important;
}
2020-09-04 23:40:43 +00:00
2020-09-17 18:59:05 +00:00
#userbadge-and-search {
position: relative;
display: inline-block;
2020-09-04 23:40:43 +00:00
width: auto;
max-width: 50vw;
margin: 0;
}
2020-07-23 21:33:17 +00:00
#userbadge {
2020-07-24 11:46:03 +00:00
position: fixed;
right: 0.3em;
width: min-content;
max-width: 50vw;
2020-09-04 23:40:43 +00:00
margin: 0;
2020-07-24 11:46:03 +00:00
padding: 0;
2020-07-23 21:33:17 +00:00
}
2020-07-27 13:40:55 +00:00
2020-09-04 23:40:43 +00:00
}
2020-07-27 13:40:55 +00:00
2020-09-04 23:40:43 +00:00
@media only screen and (max-width: 600px) {
/* Portrait */
#userbadge-and-search {
display: inline-block;
width: auto;
max-width: 100vw;
}
2020-07-27 13:40:55 +00:00
2020-09-17 18:59:05 +00:00
.hidden-on-mobile {
display: none !important;
}
2020-09-04 23:40:43 +00:00
#topleft-tools {
padding: 0.2em !important;
padding-top: 0.3em !important;
}
2020-07-25 16:00:08 +00:00
2020-09-04 23:40:43 +00:00
#userbadge {
margin-bottom: 0.3em;
}
}
2020-07-23 21:33:17 +00:00
/**************************************/
#topleft-tools {
display: block;
2020-06-23 22:35:19 +00:00
position: absolute;
z-index: 5000;
transition: all 500ms linear;
overflow: hidden;
pointer-events: none;
2020-09-14 18:16:03 +00:00
/* Shadow offset */
padding: 0.5em 10px 0 0.5em;
2020-06-23 22:35:19 +00:00
}
2020-07-23 23:12:57 +00:00
.collapse-button {
2020-07-01 19:21:29 +00:00
position: absolute;
2020-07-23 23:12:57 +00:00
background-color: #e5f5ff;
width: 3.5em;
border-top-left-radius: 2em;
border-bottom-left-radius: 2em;
2020-07-01 19:21:29 +00:00
display: inline-block;
2020-07-27 13:40:55 +00:00
height:100%;
box-shadow: -10px 0 10px -10px #0006;
}
2020-06-23 22:35:19 +00:00
2020-07-23 23:12:57 +00:00
.collapse-button .collapse-button-img{
background-color: #e5f5ff;
}
.open-button {
width: 2em;
border-top-left-radius: 2em;
border-bottom-left-radius: 2em;
2020-07-27 13:40:55 +00:00
margin-bottom: 10px;
2020-07-25 16:00:08 +00:00
}
2020-07-27 13:40:55 +00:00
.open-button .collapse-button-img {
2020-07-25 16:00:08 +00:00
border-radius: 50%;
box-sizing: border-box;
display: inline-block;
padding: 1em;
2020-07-27 11:04:38 +00:00
background-color: white;
2020-07-27 13:40:55 +00:00
box-shadow: 0 0 10px #0006;
}
.collapse-button-img {
border-radius: 50%;
box-sizing: border-box;
display: inline-block;
padding: 1em;
background-color: white;
box-shadow: none;
margin: 0;
2020-07-01 19:21:29 +00:00
}
2020-07-23 23:12:57 +00:00
.collapse-button-img img{
width: 1.5em;
margin: 0;
padding: 0;
2020-07-01 19:21:29 +00:00
}
2020-07-23 23:12:57 +00:00
#welcomeMessage {
display: inline-block;
margin-left: 3.5em;
2020-09-14 18:16:03 +00:00
border-radius: 0 2em 2em 0;
2020-07-29 13:54:44 +00:00
max-width: 40em;
width: 45vw;
2020-07-27 13:40:55 +00:00
max-height: calc(100vh - 15em);
overflow-y: auto;
2020-07-23 23:12:57 +00:00
}
2020-07-01 19:21:29 +00:00
2020-06-23 22:35:19 +00:00
#messagesbox {
/*Only shown on big screens*/
2020-07-27 13:40:55 +00:00
position: relative;
2020-07-23 23:12:57 +00:00
padding: 0;
pointer-events: all;
}
2020-07-27 13:40:55 +00:00
#centermessage {
position: absolute;
top: 30%;
left: 25%;
width: 50%;
font-size: large;
padding: 2em;
border-radius: 2em;
z-index: 4000;
pointer-events: none;
opacity: 1;
background-color: white;
transition: opacity 500ms linear;
text-align: center;
horiz-align: center;
font-weight: bold;
}
@media only screen and (max-width: 600px), only screen and (max-height: 600px) {
#hidden-on-mobile {
display: block;
}
2020-09-17 18:59:05 +00:00
.hidden-on-mobile {
display: none !important;
}
2020-07-01 19:21:29 +00:00
#messagesbox-wrapper {
display: none;
}
#messagesbox {
display: none;
}
2020-07-27 13:40:55 +00:00
#help-button-mobile{
display: unset;
pointer-events: all;
2020-07-27 13:40:55 +00:00
}
#help-button-mobile div {
box-shadow: 0 0 10px #0006;
margin-bottom: 10px;
}
2020-06-28 21:33:48 +00:00
#geolocate-button {
display: block;
}
2020-06-29 14:21:36 +00:00
.leaflet-popup {
/* Popups are hidden on mobile */
2020-07-01 19:21:29 +00:00
display: none;
2020-06-29 14:21:36 +00:00
}
2020-07-27 13:40:55 +00:00
#centermessage {
top: 30%;
left: 15%;
width: 60%;
}
2020-09-04 23:40:43 +00:00
.add-popup-all-buttons {
max-height: calc(100vh - 12em);
height: min-content;
display: inline-block;
overflow-y: auto;
width: 100%;
}
2020-09-12 21:15:17 +00:00
2020-07-23 21:33:17 +00:00
#messagesboxmobile {
display: block;
position: absolute;
z-index: 10000;
2020-06-29 14:21:36 +00:00
background-color: white;
}
2020-07-27 13:40:55 +00:00
#welcomeMessage {
display: inline-block;
background-color: white;
border-radius: 0;
width: 100%;
max-width: 100%;
margin: 0;
padding: 0;
box-sizing: border-box;
max-height: max-content;
box-shadow: unset;
overflow-y: unset;
}
2020-07-20 22:07:04 +00:00
}
@media only screen and (max-height: 400px) {
/* Landscape: small 'to the map' */
#hidden-on-mobile {
display: unset;
}
2020-09-17 18:59:05 +00:00
.hidden-on-mobile {
display: none !important;
}
#messagesboxmobile {
position: absolute;
display: block;
z-index: 10000;
padding-bottom: 5em;
}
#welcomeMessage {
box-shadow: unset;
max-height: 100vh;
}
2020-07-23 21:33:17 +00:00
}
.imgWithAttr {
max-height: 20em;
position: relative;
overflow: hidden;
2020-06-23 22:35:19 +00:00
}
.attribution {
background-color: rgba(0, 0, 0, 0.5);
color: white;
font-weight: bold;
font-size: smaller;
position: absolute;
bottom: 0;
2020-07-07 13:08:52 +00:00
left: 6em; /* Offset for the go left button*/
padding: 0.25em;
margin-bottom: 0.25em;
border-radius: 0.5em;
}
.attribution-author {
display: inline-block;
}
.license {
font-size: small;
font-weight: lighter;
}
.attribution a {
color: white;
}
/***************** Info box (box containing features and questions ******************/
.leaflet-popup-content {
width: 40em !important;
max-height: 80vh;
overflow-y: auto;
}
2020-07-27 13:40:55 +00:00
2020-09-12 22:53:24 +00:00
.featureinfoboxtitle span {
width: unset !important;
}
.question .form-text-field > input {
width: 100%;
box-sizing: border-box;
}
.osm-logo path {
fill: #7ebc6f;
}
2020-07-05 16:59:47 +00:00
.infoboxcontents {
2020-09-14 18:16:03 +00:00
margin: 1em 0.5em 0.5em;
}
.infobox-information {
width: 100%;
margin-top: 1em;
}
2020-07-05 16:59:47 +00:00
.question {
margin-top: 1em;
background-color: #e5f5ff;
padding: 1em;
border-radius: 1em;
2020-07-05 16:59:47 +00:00
font-size: larger;
}
2020-07-08 14:07:16 +00:00
.question-text{
font-size: larger;
font-weight: bold;
}
.question-text img {
max-width: 100%;
}
.question-subtext{
font-size: medium;
font-weight: normal;
}
2020-07-05 16:59:47 +00:00
/**** The save button *****/
.save {
display: inline-block;
border: solid white 2px;
background-color: #3a3aeb;
color: white;
padding: 0.2em 0.6em;
2020-07-05 16:59:47 +00:00
font-size: x-large;
font-weight: bold;
border-radius: 1.5em;
}
.login-button-friendly {
display: inline-block;
border: solid white 2px;
background-color: #3a3aeb;
color: white;
2020-09-14 18:16:03 +00:00
padding: 0.2em 0.6em;
font-size: large;
font-weight: bold;
border-radius: 1.5em;
box-sizing: border-box;
width: 100%;
}
2020-07-05 16:59:47 +00:00
.save-non-active {
display: inline-block;
border: solid lightgrey 2px;
color: grey;
2020-09-12 21:15:17 +00:00
padding: 0.2em 0.3em;
2020-07-05 16:59:47 +00:00
font-size: x-large;
font-weight: bold;
border-radius: 1.5em;
}
2020-09-14 18:16:03 +00:00
/****** ShareScreen *****/
2020-07-29 13:05:19 +00:00
2020-09-14 18:16:03 +00:00
.literal-code {
display: inline-block;
background-color: lightgray;
padding: 0.5em;
word-break: break-all;
color: black;
box-sizing: border-box;
}
2020-07-29 13:05:19 +00:00
2020-09-14 18:16:03 +00:00
.iframe-escape {
background-color: white;
border-radius: 2em;
display: block;
width: min-content;
}
2020-07-29 13:05:19 +00:00
2020-09-14 18:16:03 +00:00
.iframe-escape img {
padding: 1em;
width: 2em;
height: 2em;
}
2020-09-12 22:53:24 +00:00
2020-09-14 18:16:03 +00:00
/** Switch layout **/
.subtle-button {
display: flex;
flex-wrap: nowrap;
flex-direction: row;
font-size: large;
margin: 0.5em;
background-color: #e5f5ff;
border-radius: 1em;
align-items: center;
text-decoration: none;
color: black;
}
2020-07-29 13:48:21 +00:00
2020-09-14 18:16:03 +00:00
.subtle-button a {
text-decoration: unset !important;
color: unset !important;
display: block ruby;
}
2020-07-29 13:48:21 +00:00
2020-09-14 18:16:03 +00:00
.round-button .subtle-button {
width: 2em;
height: 2em;
border-radius: 1em;
display: block !important;
margin: 0;
padding: 0.5em;
}
2020-07-29 17:02:36 +00:00
2020-09-14 18:16:03 +00:00
.small-button .subtle-button {
height: 2em;
}
2020-07-29 17:02:36 +00:00
2020-09-14 18:16:03 +00:00
.small-button .subtle-button img {
max-height: 1.8em;
}
2020-09-14 18:16:03 +00:00
.subtle-button img {
max-width: 3em;
max-height: 3em;
margin-right: 0.5em;
padding: 0.5em;
}
2020-07-31 02:58:58 +00:00