MediaWiki:Common.css
Από enirisst wiki
Αναθεώρηση ως προς 15:52, 21 Φεβρουαρίου 2021 από τον Nick.kouts (Συζήτηση | συνεισφορές) (Νέα σελίδα με '→Το τοποθετημένο εδώ CSS θα εφαρμοστεί σε όλα τα skins: .map { float: right; border: 3px solid #c8ccd1; /* Same as picture...')
Σημείωση: μετά την αποθήκευση, ίσως χρειαστεί να παρακάμψετε την προσωρινή μνήμη του προγράμματος περιήγησής σας για να δείτε τις αλλαγές.
- Firefox / Safari: Κρατήστε πατημένο το Shift κάνοντας ταυτόχρονα κλικ στο κουμπί Ανανέωση ή πιέστε Ctrl-F5 ή Ctrl-R (⌘-R σε Mac)
- Google Chrome: Πιέστε Ctrl-Shift-R (⌘-Shift-R σε Mac)
- Internet Explorer: Κρατήστε πατημένο το Ctrl κάνοντας ταυτόχρονα κλικ στο κουμπί Ανανέωση, ή πιέστε Ctrl-F5
- Opera: Εκκαθαρίστε την προσωρινή μνήμη από το μενού Εργαλεία → Προτιμήσεις
/* Το τοποθετημένο εδώ CSS θα εφαρμοστεί σε όλα τα skins */
.map {
float: right;
border: 3px 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 */
}
}
