forked from MapComplete/MapComplete
Css tweaks
This commit is contained in:
parent
489c6fc3c0
commit
701ce3e89a
23 changed files with 1220 additions and 114 deletions
|
|
@ -1,5 +1,5 @@
|
|||
.fullscreenmessage-content {
|
||||
max-height: calc(100vh - var(--return-to-the-map-height));
|
||||
max-height: calc(100vh);
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
|
|
@ -16,10 +16,11 @@
|
|||
padding: 1em;
|
||||
top: var(--variable-title-height);
|
||||
/* 2em extra: padding from the title */
|
||||
max-height: calc(100vh - var(--variable-title-height) - var(--return-to-the-map-height) - 2em) !important;
|
||||
max-height: calc(100vh - var(--variable-title-height)) !important;
|
||||
display: block;
|
||||
position: absolute;
|
||||
overflow-y: auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.fullscreenmessage-content .featureinfobox-titlebar {
|
||||
|
|
@ -35,29 +36,6 @@
|
|||
}
|
||||
|
||||
.fullscreenmessage-content .featureinfobox-tail {
|
||||
display: block;
|
||||
height: 1em;
|
||||
/*THe ornament to give the URL bar some room...*/
|
||||
}
|
||||
|
||||
|
||||
.to-the-map span {
|
||||
font-size: xx-large;
|
||||
}
|
||||
|
||||
.to-the-map {
|
||||
background: var(--catch-detail-color);
|
||||
height: var(--return-to-the-map-height);
|
||||
position: fixed;
|
||||
z-index: 10000;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
color: var(--catch-detail-color-contrast);
|
||||
font-weight: bold;
|
||||
pointer-events: all;
|
||||
cursor: pointer;
|
||||
padding-top: 1.2em;
|
||||
text-align: center;
|
||||
padding-bottom: 1.2em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Contains tweaks for small screens
|
|||
*/
|
||||
|
||||
.only-on-mobile {
|
||||
display: none;
|
||||
display: none !important;
|
||||
background-color: var(--background-color);
|
||||
color: var(--foreground-color);
|
||||
}
|
||||
|
|
@ -11,7 +11,7 @@ Contains tweaks for small screens
|
|||
@media only screen and (max-width: 600px), only screen and (max-height: 600px) {
|
||||
|
||||
.only-on-mobile {
|
||||
display: unset;
|
||||
display: unset !important;
|
||||
background-color: var(--background-color);
|
||||
color: var(--foreground-color);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,21 @@
|
|||
|
||||
.featureinfobox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.featureinfobox-title {
|
||||
font-size: xx-large;
|
||||
font-size: xx-large;
|
||||
word-break: break-word;
|
||||
}
|
||||
.featureinfobox-icons img{
|
||||
|
||||
.featureinfobox-icons img {
|
||||
max-height: 1.5em;
|
||||
width: 1.5em;
|
||||
}
|
||||
|
||||
.featureinfobox-icons {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.featureinfobox-icons span {
|
||||
|
|
@ -19,14 +23,45 @@
|
|||
padding-right: 0.1em;
|
||||
}
|
||||
|
||||
.featureinfobox-titlebar{
|
||||
.featureinfobox-titlebar {
|
||||
border-bottom: 2px solid var(--foreground-color);
|
||||
box-shadow: 0 10px 10px -10px lightgray;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.featureinfobox-titlebar-title {
|
||||
font-size: large;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2px solid var(--foreground-color);
|
||||
flex-wrap: wrap;
|
||||
flex-grow: 2;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.featureinfobox-back-to-the-map {
|
||||
padding: 0.5em;
|
||||
border-radius: 999em;
|
||||
margin-right: 0.4em;
|
||||
width: 2em;
|
||||
height: 2em;
|
||||
background: var(--subtle-detail-color);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.featureinfobox-back-to-the-map svg {
|
||||
width: 1.75em;
|
||||
height: 1.75em;
|
||||
margin-left: 0.15em;
|
||||
margin-top: 0.15em
|
||||
}
|
||||
|
||||
.featureinfobox-back-to-the-map svg path{
|
||||
stroke: var(--subtle-detail-color-contrast) !important;
|
||||
}
|
||||
|
||||
|
||||
.featureinfobox-content {
|
||||
display: block;
|
||||
max-height: 75vh;
|
||||
|
|
@ -34,15 +69,16 @@
|
|||
overflow-x: hidden;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px), only screen and (max-height: 600px) {
|
||||
.featureinfobox-content {
|
||||
display:block;
|
||||
display: block;
|
||||
max-height: unset !important;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-height: 600px) and (min-width: 600px){
|
||||
@media only screen and (max-height: 600px) and (min-width: 600px) {
|
||||
/* landscape mode: the first tagrendering of the infobox gets a special treatment and is placed on the right*/
|
||||
.featureinfobox-content {
|
||||
position: relative;
|
||||
|
|
@ -51,7 +87,7 @@
|
|||
max-height: unset !important;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
|
||||
.answer {
|
||||
max-width: 48% !important;
|
||||
padding-right: 0.3em;
|
||||
|
|
@ -63,8 +99,8 @@
|
|||
padding-right: 0.3em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.first-rendering{
|
||||
|
||||
.first-rendering {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
width: 94%;
|
||||
|
|
@ -129,7 +165,7 @@
|
|||
border-radius: 0.5em;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
margin:0;
|
||||
margin: 0;
|
||||
margin-left: -2em;
|
||||
box-sizing: border-box;
|
||||
padding: 0.5em;
|
||||
|
|
@ -161,7 +197,7 @@ input:checked + label .question-option-with-border {
|
|||
|
||||
.login-button-friendly {
|
||||
display: inline-block;
|
||||
background-color:var(--catch-detail-color);
|
||||
background-color: var(--catch-detail-color);
|
||||
color: var(--catch-detail-color-contrast);
|
||||
border: solid var(--catch-detail-color-contrast) 2px;
|
||||
padding: 0.2em 0.6em;
|
||||
|
|
@ -204,7 +240,31 @@ input:checked + label .question-option-with-border {
|
|||
float: right;
|
||||
}
|
||||
|
||||
.edit-button svg path{
|
||||
.edit-button svg path {
|
||||
stroke: var(--foreground-color) !important;
|
||||
fill: var(--foreground-color) !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.to-the-map span {
|
||||
font-size: xx-large;
|
||||
}
|
||||
|
||||
.to-the-map {
|
||||
background: var(--catch-detail-color);
|
||||
height: var(--return-to-the-map-height);
|
||||
color: var(--catch-detail-color-contrast);
|
||||
font-weight: bold;
|
||||
pointer-events: all;
|
||||
cursor: pointer;
|
||||
padding-top: 0.4em;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
max-height: 2em;
|
||||
}
|
||||
|
||||
.to-the-map-inner{
|
||||
font-size: xx-large;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue