MediaWiki:Common.css: Forskjell mellom sideversjoner
Utseende
mIngen redigeringsforklaring |
Ingen redigeringsforklaring |
||
| Linje 1: | Linje 1: | ||
/* | /* This is the CSS for all skins (for all users) on Rettspraksis.no. */ | ||
/* CSS plassert i denne filen vil gjelde for alle utseender. For mobil, se: MediaWiki:Mobile.css */ | /* CSS plassert i denne filen vil gjelde for alle utseender. For mobil, se: MediaWiki:Mobile.css */ | ||
/* | /* SECTIONS: | ||
. | 1. Main page styling | ||
2. Court decisions styling | |||
3. Various | |||
4. Mobile devices | |||
5. Testing | |||
*/ | |||
/* | /** | ||
* 1. MAIN PAGE / Forside | |||
* ------------------------------------------------- | |||
*/ | |||
/* | /* Hide elements on the main page */ | ||
.page-Forside #lastmod, | |||
display: none; | .page-Forside #siteSub, | ||
.page-Forside #contentSub, | |||
.page-Forside .subtitle, | |||
.page-Forside #jump-to-nav, | |||
.page-Forside .firstHeading { | |||
display: none; | |||
} | } | ||
| Linje 29: | Linje 33: | ||
border-spacing: 10px; | border-spacing: 10px; | ||
} | } | ||
.mainpage_layouttable * > tr > td { | .mainpage_layouttable * > tr > td { | ||
vertical-align: top; | vertical-align: top; | ||
| Linje 35: | Linje 40: | ||
.mainpage_boxtitle { | .mainpage_boxtitle { | ||
font-size: 120%; | font-size: 120%; | ||
color: #006699; | color: #006699; | ||
padding: 0.4em; | padding: 0.4em; | ||
background-color: #eeeeee; | background-color: #eeeeee; | ||
| Linje 42: | Linje 47: | ||
vertical-align: middle; | vertical-align: middle; | ||
} | } | ||
.mainpage_boxtitle1 { | .mainpage_boxtitle1 { | ||
font-size: 120%; | font-size: 120%; | ||
color: #fff; | color: #fff; | ||
padding: 0.4em; | padding: 0.4em; | ||
background-color: #f26522; | background-color: #f26522; | ||
| Linje 51: | Linje 57: | ||
vertical-align: middle; | vertical-align: middle; | ||
} | } | ||
.mainpage_boxtitle2 { | .mainpage_boxtitle2 { | ||
font-size: 120%; | font-size: 120%; | ||
color: #fff; | color: #fff; | ||
padding: 0.4em; | padding: 0.4em; | ||
background-color: #7cc3d9; | background-color: #7cc3d9; | ||
| Linje 60: | Linje 67: | ||
vertical-align: middle; | vertical-align: middle; | ||
} | } | ||
.mainpage_boxtitle3 { | .mainpage_boxtitle3 { | ||
font-size: 120%; | font-size: 120%; | ||
color: #fff; | color: #fff; | ||
padding: 0.4em; | padding: 0.4em; | ||
background-color: #8dc63f; | background-color: #8dc63f; | ||
| Linje 69: | Linje 77: | ||
vertical-align: middle; | vertical-align: middle; | ||
} | } | ||
.mainpage_boxtitle4 { | .mainpage_boxtitle4 { | ||
font-size: 120%; | font-size: 120%; | ||
color: #fff; | color: #fff; | ||
padding: 0.4em; | padding: 0.4em; | ||
background-color: #006699; | background-color: #006699; | ||
| Linje 125: | Linje 134: | ||
border: 1px solid #aaaaaa; | border: 1px solid #aaaaaa; | ||
} | } | ||
.mainpage_nye_rettsavgjorelser { | .mainpage_nye_rettsavgjorelser { | ||
| Linje 150: | Linje 158: | ||
/*display: -webkit-flex;*/ | /*display: -webkit-flex;*/ | ||
display: flex; | display: flex; | ||
flex-flow: row wrap; | flex-flow: row wrap; | ||
justify-content: space-between; | justify-content: space-between; | ||
margin: 1em 0; | margin: 1em 0; | ||
} | } | ||
@media screen and (min-width: 45em) { | @media screen and (min-width: 45em) { | ||
.mainpage_row2 .mainpage_hubbox { | .mainpage_row2 .mainpage_hubbox { | ||
| Linje 163: | Linje 170: | ||
} | } | ||
} | } | ||
@media screen and (max-width: 45em) { | @media screen and (max-width: 45em) { | ||
.mainpage_row2 .mainpage_hubbox { | .mainpage_row2 .mainpage_hubbox { | ||
| Linje 192: | Linje 200: | ||
} | } | ||
/* | /** | ||
* 2. COURT DECISIONS | |||
* ------------------------------------------------- | |||
*/ | |||
#rp-tittel { | #rp-tittel { | ||
font-size: 1.313em; | font-size: 1.313em; | ||
font-weight: bold; | font-weight: bold; | ||
| Linje 221: | Linje 217: | ||
#rp-tittel2 { | #rp-tittel2 { | ||
font-size: 1.125em; | font-size: 1.125em; | ||
font-weight: bold; | font-weight: bold; | ||
| Linje 233: | Linje 228: | ||
#rp-tittel3 { | #rp-tittel3 { | ||
font-size: 1em; | font-size: 1em; | ||
font-weight: bold; | font-weight: bold; | ||
| Linje 265: | Linje 259: | ||
font-style: italic; | font-style: italic; | ||
} | } | ||
/** | |||
* 3. VARIOUS | |||
* ------------------------------------------------- | |||
*/ | |||
/* Statistikk-tabeller, floating. See: Statistikk_over_saksbehandlingen_i_Norges_Høyesterett */ | |||
div.statistikk { | |||
float: left; | |||
margin: auto; | |||
padding: 10px; | |||
display: inline-flex; | |||
} | |||
/** | |||
* 4. MOBILE DEVICES | |||
* ------------------------------------------------- | |||
*/ | |||
/* Only for mobile devices */ | |||
.onlymobile { | |||
display:none; | |||
} | |||
/** | |||
* 5. TESTING | |||
* ------------------------------------------------- | |||
*/ | |||
/* Testing for code review */ | |||
Sideversjonen fra 13. aug. 2020 kl. 20:24
/* This is the CSS for all skins (for all users) on Rettspraksis.no. */
/* CSS plassert i denne filen vil gjelde for alle utseender. For mobil, se: MediaWiki:Mobile.css */
/* SECTIONS:
1. Main page styling
2. Court decisions styling
3. Various
4. Mobile devices
5. Testing
*/
/**
* 1. 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: #006699;
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: #006699;
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%;
}
}
/**
* 2. COURT DECISIONS
* -------------------------------------------------
*/
#rp-tittel {
font-size: 1.313em;
font-weight: bold;
color: #006699;
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: #006699;
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: #006699;
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;
}
/**
* 3. VARIOUS
* -------------------------------------------------
*/
/* Statistikk-tabeller, floating. See: Statistikk_over_saksbehandlingen_i_Norges_Høyesterett */
div.statistikk {
float: left;
margin: auto;
padding: 10px;
display: inline-flex;
}
/**
* 4. MOBILE DEVICES
* -------------------------------------------------
*/
/* Only for mobile devices */
.onlymobile {
display:none;
}
/**
* 5. TESTING
* -------------------------------------------------
*/
/* Testing for code review */