MediaWiki:Common.css: Forskjell mellom sideversjoner

Fra InfoMarina Dokumentasjon
Ingen redigeringsforklaring
Ingen redigeringsforklaring
 
Linje 10: Linje 10:
   ============================ */
   ============================ */


/* Universell font – moderne, lesbar og støttet på tvers av plattformer */
body {
body {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
Linje 19: Linje 18:
}
}


/* Juster hovedinnhold */
#content {
#content {
     max-width: 960px;
     max-width: 960px;
Linje 26: Linje 24:
}
}


/* Avsnitt – bedre luft og lesbarhet */
p {
p {
     margin-bottom: 1em;
     margin-bottom: 1em;
}
}


/* Lister – litt ekstra luft */
ul, ol {
ul, ol {
     margin-bottom: 1em;
     margin-bottom: 1em;
Linje 37: Linje 33:
}
}


/* Tabeller – legg til mellomrom og linjer */
table.wikitable {
table.wikitable {
     border-collapse: collapse;
     border-collapse: collapse;
Linje 51: Linje 46:
}
}


/* Kodeblokker – bedre font og bakgrunn */
pre, code {
pre, code {
     font-family: Consolas, "Courier New", monospace;
     font-family: Consolas, "Courier New", monospace;
Linje 59: Linje 53:
}
}


/* Hindre at bilder flyter for mye over tekst */
img {
img {
     max-width: 100%;
     max-width: 100%;
Linje 65: Linje 58:
}
}


/* Innholdsfortegnelse – mer moderne */
.toc {
.toc {
     background-color: #f9f9f9;
     background-color: #f9f9f9;
Linje 74: Linje 66:
}
}


/* Overskrifter – litt mer luft */
/* Overskrifter – samme font som brødtekst + justert luft */
h1, h2, h3, h4, h5, h6 {
h1, h2, h3, h4, h5, h6 {
    font-family: inherit; /* <-- arver fra body */
     margin-top: 1.4em;
     margin-top: 1.4em;
     margin-bottom: 0.6em;
     margin-bottom: 0.6em;
    font-weight: 600;
}
}

Siste sideversjon per 21. mar. 2025 kl. 13:33

/* CSS placed here will be applied to all skins */
#ca-nstab-main { display: none !important; }
#ca-nstab-user { display: none !important; }
#ca-talk { display: none !important; }
#ca-history { display: none !important;}
#ca-viewsource { display: none !important; }

/* ============================
   📄 Standard typografi og layout
   ============================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

#content {
    max-width: 960px;
    margin: 0 auto;
    padding: 1em;
}

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

table.wikitable {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

table.wikitable th,
table.wikitable td {
    padding: 0.5em;
    border: 1px solid #ccc;
    text-align: left;
}

pre, code {
    font-family: Consolas, "Courier New", monospace;
    background-color: #f8f8f8;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

img {
    max-width: 100%;
    height: auto;
}

.toc {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 0.5em 1em;
    margin-bottom: 1.5em;
    border-radius: 4px;
}

/* Overskrifter – samme font som brødtekst + justert luft */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit; /* <-- arver fra body */
    margin-top: 1.4em;
    margin-bottom: 0.6em;
    font-weight: 600;
}