MediaWiki:Mobile.css: Forskjell mellom revisjoner
Hopp til navigering
Hopp til søk
Ingen redigeringsforklaring Tagg: Tilbakestilt |
Ingen redigeringsforklaring |
||
| (2 mellomliggende revisjoner av samme bruker vises ikke) | |||
| Linje 6: | Linje 6: | ||
height:auto; | height:auto; | ||
} | } | ||
| Linje 13: | Linje 14: | ||
border: 1px solid #c8ccd1; /* Same as picture thumbnails*/ | border: 1px solid #c8ccd1; /* Same as picture thumbnails*/ | ||
padding: 3px; | padding: 3px; | ||
background-color: # | background-color: #f8f9fa; /* */ | ||
min-width: 300px; /* With this, you can set the inline width property of the map to 100% */ | min-width: 300px; /* With this, you can set the inline width property of the map to 100% */ | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
Nåværende revisjon fra 2. okt. 2023 kl. 16:03
/* CSS plassert her lastes for alle brukere av mobilsiden */
/* To make images responsive */
.res-img img {
max-width:100%;
height:auto;
}
/* Map Hack for mobile devices */
.map {
float: right;
border: 1px solid #c8ccd1; /* Same as picture thumbnails*/
padding: 3px;
background-color: #f8f9fa; /* */
min-width: 300px; /* With this, you can set the inline width property of the map to 100% */
margin-bottom: 20px;
clear: both; /* To avoid two elements next to each other - force them below another instead*/
width: min-content; /* To force the caption to break lines if it is longer than the map*/
}
.map > p {
font-size: 94%; /* Smaller caption, same as picture captions */
padding: 3px 0 0 3px;
}
/* Make map mobile-friendly by forcing it to stretch 100% width */
@media only screen and (max-width: 750px) {
.map {
float: left;
width: 100%;
}
.leaflet-container {
width: 100% !important; /* Override the (inline) width property set when writing e. g. {{#display_map: ... |width=400px}}, because this could be too large for mobile screens */
}
}