MediaWiki:Common.css: Forskjell mellom sideversjoner
Utseende
mIngen redigeringsforklaring |
mIngen redigeringsforklaring |
||
| Linje 20: | Linje 20: | ||
body { | body { | ||
font-family: "Roboto", sans-serif; | font-family: "Roboto", sans-serif; | ||
} | } | ||
. | .firstHeading { | ||
font-size: 1.4375em; | |||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
| Linje 36: | Linje 34: | ||
#content h6 { | #content h6 { | ||
font-family: "Roboto", sans-serif; | font-family: "Roboto", sans-serif; | ||
color: #800020; | color: #800020; | ||
} | } | ||
| Linje 46: | Linje 42: | ||
.mw-body-content { | .mw-body-content { | ||
font-size: 0. | font-size: 0.9375em; | ||
line-height: 1. | line-height: 1.375; | ||
} | } | ||
| Linje 72: | Linje 60: | ||
display: none; | display: none; | ||
} | } | ||
/* Forside Infobokser */ | |||
.mainpage_layouttable { | |||
border: 0; | |||
margin: 0; | |||
width: 100%; | |||
border-spacing: 10px; | |||
} | |||
.mainpage_layouttable * > tr > td { | |||
vertical-align: top; | |||
} | } | ||
.mainpage_boxtitle { | .mainpage_boxtitle { | ||
font-size: 120%; | |||
color: #911313; | |||
padding: 0.4em; | |||
background-color: #eeeeee; | |||
font-weight: bold; | |||
min-height: 1em; | |||
vertical-align: middle; | |||
} | } | ||
.mainpage_boxtitle1 { | .mainpage_boxtitle1 { | ||
font-size: 120%; | |||
color: #fff; | |||
padding: 0.4em; | |||
background-color: #f26522; | |||
font-weight: bold; | |||
min-height: 1em; | |||
vertical-align: middle; | |||
} | } | ||
.mainpage_boxtitle2 { | .mainpage_boxtitle2 { | ||
font-size: 120%; | |||
color: #fff; | |||
padding: 0.4em; | |||
background-color: #7cc3d9; | |||
font-weight: bold; | |||
min-height: 1em; | |||
vertical-align: middle; | |||
} | } | ||
.mainpage_boxtitle3 { | .mainpage_boxtitle3 { | ||
font-size: 120%; | |||
color: #fff; | |||
padding: 0.4em; | |||
background-color: #8dc63f; | |||
font-weight: bold; | |||
min-height: 1em; | |||
vertical-align: middle; | |||
} | } | ||
.mainpage_boxtitle4 { | .mainpage_boxtitle4 { | ||
font-size: 120%; | |||
color: #fff; | |||
padding: 0.4em; | |||
background-color: #dd3333; | |||
font-weight: bold; | |||
min-height: 1em; | |||
vertical-align: middle; | |||
} | } | ||
| Linje 170: | Linje 166: | ||
.mainpage_hubbox, .mainpage_topbox { | .mainpage_hubbox, .mainpage_topbox { | ||
padding: | padding: 0; | ||
border: 1px solid #aaaaaa; | border: 1px solid #aaaaaa; | ||
} | } | ||
| Linje 183: | Linje 179: | ||
.mainpage_om-rettspraksis { | .mainpage_om-rettspraksis { | ||
margin: | margin: 0px 0px 10px 0px; | ||
} | } | ||
.mainpage_andre-rettskilder { | .mainpage_andre-rettskilder { | ||
margin: 13px 0px | margin: 13px 0px 10px 10px; | ||
} | } | ||
| Linje 200: | Linje 196: | ||
justify-content: space-between; | justify-content: space-between; | ||
margin: 1em 0; | margin: 1em 0; | ||
} | |||
@media screen and (min-width: 45em) { | |||
.mainpage_row2 .mainpage_hubbox { | |||
box-sizing: border-box; | |||
float: left; | |||
width: 32%; | |||
} | |||
} | |||
@media screen and (max-width: 45em) { | |||
.mainpage_row2 .mainpage_hubbox { | |||
box-sizing: border-box; | |||
flex: 1 0 100%; | |||
width: 100%; | |||
margin: 0.5em 0 | |||
} | |||
} | } | ||
/* TWO COLUM FLOAT FORSIDE */ | /* TWO COLUM FLOAT FORSIDE */ | ||
.column-row3 { | .column-row3 { | ||
float: left; | |||
} | } | ||
.left { | .left { | ||
width: | width: 60%; | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.right { | .right { | ||
width: 40%; | |||
} | } | ||
@media screen and ( | @media screen and (max-width: 600px) { | ||
. | .column-row3 { | ||
width: 100%; | |||
width: | |||
} | } | ||
} | } | ||
/** | /** | ||
* 3. COURT DECISIONS | * 3. COURT DECISIONS | ||
| Linje 239: | Linje 241: | ||
#rp-tittel { | #rp-tittel { | ||
font-size: 1. | font-size: 1.313em; | ||
font-weight: bold; | font-weight: bold; | ||
color: #800020; | color: #800020; | ||
| Linje 250: | Linje 252: | ||
#rp-tittel2 { | #rp-tittel2 { | ||
font-size: 1. | font-size: 1.125em; | ||
font-weight: bold; | font-weight: bold; | ||
color: #800020; | color: #800020; | ||
| Linje 261: | Linje 263: | ||
#rp-tittel3 { | #rp-tittel3 { | ||
font-size: | font-size: 1em; | ||
font-weight: bold; | font-weight: bold; | ||
color: #800020; | color: #800020; | ||
| Linje 322: | Linje 324: | ||
/* Testing for code review */ | /* Testing for code review */ | ||
Sideversjonen fra 3. jun. 2021 kl. 01:07
/* This is the CSS for all skins (for all users) on Rettspraksis.no. */
@import url( 'https://fonts.googleapis.com/css2?family=Roboto ');
/* CSS placed in this file will apply to all pages. For mobile view, see: MediaWiki:Mobile.css */
/* SECTIONS:
1. General
2. Main page styling
2. Court decisions styling
3. Various
4. Mobile devices
5. Testing
*/
/**
* 1. General
* -------------------------------------------------
*/
body {
font-family: "Roboto", sans-serif;
}
.firstHeading {
font-size: 1.4375em;
font-weight: 700;
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
font-family: "Roboto", sans-serif;
color: #800020;
}
.mw-body, .parsoid-body {
color: #333;
}
.mw-body-content {
font-size: 0.9375em;
line-height: 1.375;
}
/**
* 2. MAIN PAGE / Forside
* -------------------------------------------------
*/
/* Hide elements on the main page */
.page-Forside #lastmod,
.page-Forside #siteSub,
.page-Forside #contentSub,
.page-Forside .subtitle,
.page-Forside #jump-to-nav,
.page-Forside .firstHeading {
display: none;
}
/* Forside Infobokser */
.mainpage_layouttable {
border: 0;
margin: 0;
width: 100%;
border-spacing: 10px;
}
.mainpage_layouttable * > tr > td {
vertical-align: top;
}
.mainpage_boxtitle {
font-size: 120%;
color: #911313;
padding: 0.4em;
background-color: #eeeeee;
font-weight: bold;
min-height: 1em;
vertical-align: middle;
}
.mainpage_boxtitle1 {
font-size: 120%;
color: #fff;
padding: 0.4em;
background-color: #f26522;
font-weight: bold;
min-height: 1em;
vertical-align: middle;
}
.mainpage_boxtitle2 {
font-size: 120%;
color: #fff;
padding: 0.4em;
background-color: #7cc3d9;
font-weight: bold;
min-height: 1em;
vertical-align: middle;
}
.mainpage_boxtitle3 {
font-size: 120%;
color: #fff;
padding: 0.4em;
background-color: #8dc63f;
font-weight: bold;
min-height: 1em;
vertical-align: middle;
}
.mainpage_boxtitle4 {
font-size: 120%;
color: #fff;
padding: 0.4em;
background-color: #dd3333;
font-weight: bold;
min-height: 1em;
vertical-align: middle;
}
.mainpage_pagetitle {
color: #cf7606;
font-size: 200%;
padding: 0.2em 0.4em;
}
.mainpage_sitelinks {
padding: 0.2em;
text-align: center;
background-color: white;
font-weight: bold;
}
.mainpage_hubtitle {
text-align: center;
}
.mainpage_boxcontents {
background: #ffffff;
padding: 0.2em 0.4em;
}
.mainpage_boxcontents2 {
background: #f8f8f8;
padding: 0.2em 0.4em;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
.mainpage_boxcontents_title {
display: block;
margin-bottom: 0.5em;
font-weight: bold;
font-size: larger;
}
.mainpage_middleblock .mainpage_hubbox {
width: 33%;
}
.mainpage_hubbox, .mainpage_topbox {
padding: 0;
border: 1px solid #aaaaaa;
}
.mainpage_nye_rettsavgjorelser {
margin: 0px 0px 0px 0px;
}
.mainpage_ukens-dommer {
margin: 10px 0px 0px 0px;
}
.mainpage_om-rettspraksis {
margin: 0px 0px 10px 0px;
}
.mainpage_andre-rettskilder {
margin: 13px 0px 10px 10px;
}
.mainpage_row2,
.mainpage_row3 {
/*display: -webkit-box;*/
/*display: -moz-box;*/
/*display: -ms-flexbox;*/
/*display: -webkit-flex;*/
display: flex;
flex-flow: row wrap;
justify-content: space-between;
margin: 1em 0;
}
@media screen and (min-width: 45em) {
.mainpage_row2 .mainpage_hubbox {
box-sizing: border-box;
float: left;
width: 32%;
}
}
@media screen and (max-width: 45em) {
.mainpage_row2 .mainpage_hubbox {
box-sizing: border-box;
flex: 1 0 100%;
width: 100%;
margin: 0.5em 0
}
}
/* TWO COLUM FLOAT FORSIDE */
.column-row3 {
float: left;
}
.left {
width: 60%;
vertical-align: top;
}
.right {
width: 40%;
}
@media screen and (max-width: 600px) {
.column-row3 {
width: 100%;
}
}
/**
* 3. COURT DECISIONS
* -------------------------------------------------
*/
#rp-tittel {
font-size: 1.313em;
font-weight: bold;
color: #800020;
letter-spacing: 0;
display: block;
line-height: 25px !important;
margin: 10px 0 10px 0;
clear: both;
}
#rp-tittel2 {
font-size: 1.125em;
font-weight: bold;
color: #800020;
letter-spacing: 0;
display: block;
line-height: 22px !important;
margin: 10px 0 10px 0;
clear: both;
}
#rp-tittel3 {
font-size: 1em;
font-weight: bold;
color: #800020;
letter-spacing: 0;
display: block;
line-height: 20px !important;
margin: 10px 0 10px 0;
clear: both;
}
#rp-innrykk {
display:inline-block;
margin-left: 2em;
}
#rp-innrykk2 {
display:inline-block;
margin-left: 4em;
}
#rp-sitat {
display:inline-block;
margin-left: 2em;
font-style: italic;
}
#rp-sitat2 {
display:inline-block;
margin-left: 4em;
font-style: italic;
}
/**
* 4. VARIOUS
* -------------------------------------------------
*/
/* Statistikk-tabeller, floating. See: Statistikk_over_saksbehandlingen_i_Norges_Høyesterett */
div.statistikk {
float: left;
margin: auto;
padding: 10px;
display: inline-flex;
}
/**
* 5. MOBILE DEVICES
* -------------------------------------------------
*/
/* Only for mobile devices */
.onlymobile {
display:none;
}
/**
* 6. TESTING
* -------------------------------------------------
*/
/* Testing for code review */