mapcomplete/index.css

502 lines
8.7 KiB
CSS
Raw Normal View History

:root {
--subtle-detail-color: #e5f5ff;
--subtle-detail-color-contrast: black;
--catch-detail-color: #3a3aeb;
--catch-detail-color-contrast: white;
--alert-color: #fee4d1;
--background-color: white;
--foreground-color: black;
--popup-border: white;
2020-11-16 01:59:30 +01:00
--shadow-color: #00000066;
--return-to-the-map-height: 5em;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
background-color: var(--background-color);
color: var(--foreground-color);
font-family: 'Helvetica Neue', Arial, sans-serif;
}
2020-06-24 00:35:19 +02:00
a {
color: var(--foreground-color)
}
2020-11-16 02:33:44 +01:00
#topleft-tools svg {
fill: var(--foreground-color) !important;
stroke: var(--foreground-color) !important;
}
2020-11-16 02:33:44 +01:00
#topleft-tools svg path {
fill: var(--foreground-color) !important;
stroke: var(--foreground-color) !important;
}
2020-06-24 00:35:19 +02:00
2020-11-15 03:10:44 +01:00
.direction-svg svg path{
fill: var(--catch-detail-color) !important;
}
2020-07-27 15:40:55 +02:00
#leafletDiv {
height: 100%;
}
2020-06-24 00:35:19 +02:00
.leaflet-popup-content-wrapper {
background-color: var(--background-color);
color: var(--foreground-color);
2020-11-14 03:26:09 +01:00
border: 2px solid var(--popup-border);
box-shadow: 0 3px 14px var(--shadow-color) !important;
}
.leaflet-container {
background-color: var(--background-color) !important;
}
.leaflet-popup-tip {
background-color: var(--popup-border) !important;
color: var(--popup-border) !important;
box-shadow: 0 3px 14px var(--shadow-color) !important;
}
#geolocate-button {
position: absolute;
bottom: 25px;
right: 50px;
}
#geolocate-button img {
width: 31px;
height: 31px;
margin: 6px;
}
#geolocate-button > .uielement {
display: block;
}
2020-07-27 13:04:38 +02:00
#help-button-mobile {
display: none;
}
#layer-selection {
position: absolute;
bottom: 1em;
left: 1em;
z-index: 9000;
background-color: var(--background-color);
color: var(--foreground-color);
border-radius: 1em;
cursor: pointer;
box-shadow: 0 0 10px var(--shadow-color);
2020-11-06 01:58:26 +01:00
}
.layer-selection-toggle {
border-radius: 1em;
2020-11-06 01:58:26 +01:00
display: flex;
flex-direction: column-reverse;
background: var(--subtle-detail-color);
2020-11-06 01:58:26 +01:00
}
.layer-selection-toggle svg {
2020-11-06 01:58:26 +01:00
display: block;
width: 2em;
height: 2em;
padding: 0.75em;
}
/**************** GENERIC ****************/
.alert {
background-color: var(--alert-color);
font-weight: bold;
border-radius: 1em;
margin: 0.25em;
text-align: center;
2020-09-14 20:16:03 +02:00
padding: 0.15em 0.3em;
}
.question form {
display: inline-block;
max-width: 90vw;
width: 100%;
}
.invalid {
box-shadow: 0 0 10px #ff5353;
height: min-content;
}
.shadow {
box-shadow: 0 0 10px var(--shadow-color);
}
.title-font span {
font-size: xx-large !important;
font-weight: bold;
}
.soft {
background-color: var(--subtle-detail-color);
color: var(--subtle-detail-color-contrast);
font-weight: bold;
border-radius: 1em;
margin: 0.25em;
text-align: center;
padding: 0.15em 0.3em;
}
2020-08-27 01:03:58 +02:00
.subtle {
color: #999;
}
2020-09-13 00:53:24 +02:00
.bold {
font-weight: bold;
}
.thanks {
background-color: #43d904;
font-weight: bold;
border-radius: 1em;
margin: 0.25em;
text-align: center;
padding: 0.15em 0.3em;
}
.clickable {
pointer-events: all;
}
2020-11-17 16:29:51 +01:00
.unclickable {
pointer-events: none !important;
}
.page-split {
display: flex;
height: 100%;
}
2020-09-02 11:37:34 +02:00
.activate-osm-authentication {
cursor: pointer;
color: blue;
text-decoration: underline;
}
2020-07-01 02:12:33 +02:00
#searchbox {
display: inline-block;
text-align: left;
background-color: var(--background-color);
color: var(--foreground-color);
2020-07-01 02:12:33 +02:00
transition: all 500ms linear;
pointer-events: all;
border-radius: 1.3em;
2020-09-14 20:16:03 +02:00
margin: 0 0 0.5em;
2020-07-01 02:12:33 +02:00
width: 100%;
}
.search {
position: relative;
float: left;
height: 2em;
margin-right: 0.5em;
}
2020-07-23 23:33:17 +02:00
#searchbox {
width: 100%
}
2020-07-01 02:12:33 +02:00
#searchbox .form-text-field {
position: relative;
float: left;
margin-top: 0.2em;
2020-07-05 18:59:47 +02:00
margin-left: 1em;
2020-07-23 23:33:17 +02:00
width: calc(100% - 4em)
2020-07-01 02:12:33 +02:00
}
#searchbox input[type="text"] {
background: transparent;
border: none;
font-size: large;
2020-07-23 23:33:17 +02:00
width: 100%;
box-sizing: border-box;
color: var(--foreground-color);
2020-07-01 02:12:33 +02:00
}
2020-11-06 01:58:26 +01:00
.search-go img {
2020-07-01 02:12:33 +02:00
position: relative;
2020-07-05 18:59:47 +02:00
float: right;
2020-07-01 02:12:33 +02:00
height: 1.2em;
border: 2px solid black;
border-radius: 2em;
padding: 0.4em;
2020-07-05 18:59:47 +02:00
margin-left: 0.5em;
margin-right: 0;
2020-06-24 00:35:19 +02:00
}
2020-07-25 18:00:08 +02:00
.add-popup-all-buttons {
max-height: 50vh;
display: inline-block;
overflow-y: auto;
width: 100%;
}
2020-07-23 23:33:17 +02:00
/**************************************/
#topleft-tools {
display: block;
2020-06-24 00:35:19 +02:00
position: absolute;
z-index: 5000;
transition: all 500ms linear;
pointer-events: none;
2020-09-14 20:16:03 +02:00
/* Shadow offset */
padding: 0.5em 10px 0 0.5em;
2020-06-24 00:35:19 +02:00
}
2020-11-06 01:58:26 +01:00
.welcomeMessage {
display: block;
margin-left: 4em;
max-width: calc(100vw - 5em);
width: 40em;
max-height: calc(100vh - 15em);
overflow-y: auto;
border-top-right-radius: 1em;
border-bottom-right-radius: 1em;
background-color: var(--background-color);
color: var(--foreground-color);
2020-11-06 01:58:26 +01:00
}
2020-06-24 00:35:19 +02:00
2020-11-06 01:58:26 +01:00
.close-welcome-button {
2020-07-01 21:21:29 +02:00
position: absolute;
display: inline-block;
height: 100%;
background-color: var(--subtle-detail-color);
color: var(--subtle-detail-color-contrast);
2020-11-06 01:58:26 +01:00
box-sizing: border-box;
width: 4em;
padding: 1em;
border-top-left-radius: 1em;
border-bottom-left-radius: 1em;
2020-07-24 01:12:57 +02:00
}
.close-welcome-button svg {
2020-07-24 01:12:57 +02:00
width: 2em;
height: 2em;
2020-07-25 18:00:08 +02:00
}
2020-11-06 01:58:26 +01:00
.open-welcome-button {
2020-07-25 18:00:08 +02:00
display: inline-block;
2020-07-27 15:40:55 +02:00
box-sizing: border-box;
background: var(--subtle-detail-color);
color: var(--foreground-color);
height: 3.5em;
width: 3.5em;
padding: 0.75em;
2020-11-06 01:58:26 +01:00
border-radius: 1em;
2020-07-01 21:21:29 +02:00
}
.open-welcome-button svg {
2020-11-06 01:58:26 +01:00
width: 2em;
height: 2em;
2020-07-24 01:12:57 +02:00
}
2020-07-01 21:21:29 +02:00
2020-06-24 00:35:19 +02:00
#messagesbox {
/*Only shown on big screens*/
2020-07-27 15:40:55 +02:00
position: relative;
2020-07-24 01:12:57 +02:00
padding: 0;
pointer-events: all;
box-shadow: 0 0 10px var(--shadow-color);
2020-11-06 01:58:26 +01:00
border-radius: 1em;
width: min-content;
background-color: var(--background-color);
color: var(--foreground-color);
}
2020-07-27 15:40:55 +02:00
#centermessage {
position: absolute;
top: 30%;
2020-07-27 15:40:55 +02:00
left: 25%;
width: 50%;
font-size: large;
padding: 2em;
border-radius: 2em;
z-index: 4000;
pointer-events: none;
opacity: 1;
background-color: var(--background-color);
color: var(--foreground-color);
2020-07-27 15:40:55 +02:00
transition: opacity 500ms linear;
text-align: center;
horiz-align: center;
font-weight: bold;
}
.imgWithAttr {
max-height: 20em;
position: relative;
overflow: hidden;
2020-06-24 00:35:19 +02: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 15:08:52 +02:00
left: 6em; /* Offset for the go left button*/
padding: 0.25em;
margin-bottom: 0.25em;
border-radius: 0.5em;
}
2020-11-06 01:58:26 +01:00
.attribution img {
height: 1.2em !important;
padding-right: 0.5em;
padding-left: 0.2em;
}
.attribution-author {
display: inline-block;
}
.license {
font-size: small;
font-weight: lighter;
}
.attribution a {
color: white;
}
/***************** Info box (box containing features and questions ******************/
2020-07-27 15:40:55 +02:00
2020-11-06 01:58:26 +01:00
.map-attribution img {
width: 1em;
height: 1em;
fill: black;
border-radius: 0;
}
.leaflet-popup-content {
width: 40em !important;
max-height: 80vh;
overflow-y: auto;
2020-10-27 01:01:34 +01:00
overflow-x: hidden;
}
2020-11-17 02:22:48 +01:00
.leaflet-div-icon {
background-color: unset !important;
border: unset !important;
}
2020-11-17 16:29:51 +01:00
2020-09-14 20:16:03 +02:00
/****** ShareScreen *****/
2020-07-29 15:05:19 +02:00
2020-09-14 20:16:03 +02:00
.literal-code {
display: inline-block;
background-color: lightgray;
padding: 0.5em;
2020-10-27 01:01:34 +01:00
word-break: break-word;
2020-09-14 20:16:03 +02:00
color: black;
box-sizing: border-box;
}
2020-07-29 15:05:19 +02:00
2020-09-14 20:16:03 +02:00
.iframe-escape {
background-color: var(--background-color);
color: var(--foreground-color);
2020-09-14 20:16:03 +02:00
border-radius: 2em;
display: block;
width: min-content;
}
2020-07-29 15:05:19 +02:00
2020-09-14 20:16:03 +02:00
.iframe-escape img {
padding: 1em;
width: 2em;
height: 2em;
}
2020-09-13 00:53:24 +02:00
2020-09-14 20:16:03 +02:00
/** Switch layout **/
.subtle-button {
display: flex;
flex-wrap: nowrap;
flex-direction: row;
font-size: large;
margin: 0.5em;
background-color: var(--subtle-detail-color);
color: var(--subtle-detail-color-contrast);
2020-09-14 20:16:03 +02:00
border-radius: 1em;
align-items: center;
text-decoration: none;
}
2020-07-29 15:48:21 +02:00
2020-09-14 20:16:03 +02:00
.subtle-button a {
text-decoration: unset !important;
color: unset !important;
display: block ruby;
}
2020-07-29 15:48:21 +02:00
2020-09-14 20:16:03 +02:00
.round-button .subtle-button {
width: 2em;
height: 2em;
border-radius: 1em;
display: block !important;
margin: 0;
padding: 0.5em;
}
2020-07-29 19:02:36 +02:00
2020-09-14 20:16:03 +02:00
.small-button .subtle-button {
height: 2em;
}
2020-07-29 19:02:36 +02:00
2020-09-14 20:16:03 +02:00
.small-button .subtle-button img {
max-height: 1.8em;
}
2020-09-14 20:16:03 +02:00
.subtle-button img {
max-width: 3em;
2020-09-18 22:23:49 +02:00
height: 3em;
2020-09-14 20:16:03 +02:00
margin-right: 0.5em;
2020-09-18 22:23:49 +02:00
padding: 0;
padding-bottom: 0.2em;
2020-09-14 20:16:03 +02:00
}
2020-07-31 04:58:58 +02:00
.small-image img {
height: 1em;
max-width: 1em;
}