MediaWiki:Common.css: Forskjell mellom sideversjoner

FredrikL (diskusjon | bidrag)
mIngen redigeringsforklaring
FredrikL (diskusjon | bidrag)
mIngen redigeringsforklaring
 
(213 mellomliggende sideversjoner av samme bruker vises ikke)
Linje 1: Linje 1:
/* @import "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"; */
/* This is the CSS for all skins (for all users) on Rettspraksis.no. */
/* @import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css); */


/* CSS plassert i denne filen vil gjelde for alle utseender. For mobil, se: MediaWiki:Mobile.css */
/* @import url( 'https://fonts.googleapis.com/css2?family=Roboto '); */


/* Only for mobile devices */
/* CSS placed in this file will apply to all pages. For mobile view, see: MediaWiki:Mobile.css */
.onlymobile {
 
display:none;
/* 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;
font-weight: 700;
-webkit-font-smoothing: antialiased;
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 #ca-nstab-main,
.page-Forside #ca-talk,
.page-Forside #ca-view,
.page-Forside #ca-ve-edit,
.page-Forside #ca-formedit,
.page-Forside #ca-history,
.page-Forside #lastmod,
.page-Forside #siteSub,
.page-Forside #contentSub,
.page-Forside .subtitle,
.page-Forside #jump-to-nav,
.page-Forside .firstHeading {
display: none !important;
}
}


/* Forside
/* Skjuler categori-lenker på forsiden */
Skjuler visse elementer fra headeren på hovedsiden */
body.page-Forside #catlinks {
display: none;
body.page-Forside #siteSub,
body.page-Forside h1.firstHeading {
display: none !important;
}
}


Linje 24: Linje 76:
border-spacing: 10px;
border-spacing: 10px;
}
}
.mainpage_layouttable * > tr > td {
.mainpage_layouttable * > tr > td {
vertical-align: top;
vertical-align: top;
Linje 29: Linje 82:


.mainpage_boxtitle {
.mainpage_boxtitle {
     font-size: 105%;
     font-size: 120%;
    color: #911313;
     padding: 0.4em;
     padding: 0.4em;
     background-color: #eeeeee;
     background-color: #eeeeee;
     font-weight: bold;
     font-weight: bold;
     min-height: 2em;
     min-height: 1em;
     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 45: Linje 100:
     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 54: Linje 110:
     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;
    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;
     font-weight: bold;
     min-height: 1em;
     min-height: 1em;
Linje 83: Linje 150:
.mainpage_boxcontents {
.mainpage_boxcontents {
     background: #ffffff;
     background: #ffffff;
    padding: 0.2em 0.4em;
}
.mainpage_boxcontents2 {
    background: #f8f8f8;
     padding: 0.2em 0.4em;
     padding: 0.2em 0.4em;
}
}
Linje 92: Linje 164:
.mainpage_boxcontents_title {
.mainpage_boxcontents_title {
     display: block;
     display: block;
    border-bottom: 1px solid #AAA;
     margin-bottom: 0.5em;
     margin-bottom: 0.5em;
    text-align: center;
     font-weight: bold;
     font-weight: bold;
     font-size: larger;
     font-size: larger;
Linje 108: Linje 178:
}
}


.mainpage_aboutcell .mainpage_boxtitle {
.mainpage_nye_rettsavgjorelser {
     background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Exquisite-khelpcenter.png/20px-Exquisite-khelpcenter.png);
     margin: 0px 0px 0px 0px;
    background-repeat: no-repeat;
    background-position: 99% 0.3em;
    padding-right: 25px;
}
}


.mainpage_downloadcell .mainpage_boxtitle {
.mainpage_ukens-dommer {
     background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Crystal_Clear_action_build.png/18px-Crystal_Clear_action_build.png);
     margin: 10px 0px 0px 0px;
    background-repeat: no-repeat;
    background-position: 96% 0.33em;
    padding-right: 25px;
}
}


.mainpage_opportunitiescell .mainpage_boxtitle {
.mainpage_om-rettspraksis {
     background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/User-online.svg/20px-User-online.svg.png);
     margin: 0px 0px 10px 0px;
    background-repeat: no-repeat;
    background-position: 98% 0.15em;
    padding-right: 25px;
}
}


.mainpage_featuredpagescell .mainpage_boxtitle {
.mainpage_andre-rettskilder {
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Note_icon.svg/20px-Note_icon.svg.png);
     margin: 13px 0px 10px 10px;
    background-repeat: no-repeat;
    background-position: 98% 0.15em;
    padding-right: 25px;
}
 
.mainpage_mwtitle {
     color: #005288;
}
 
.mainpage_notice {
background: #f9f9f9;
border: 1px solid #aaaaaa;
margin: 0.2em 10px 10px;
padding:0.2em 0.4em;
text-align: center;
font-size: 125%
}
}


Linje 156: Linje 201:
/*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 169: Linje 213:
}
}
}
}
@media screen and (max-width: 45em) {
@media screen and (max-width: 45em) {
.mainpage_row2 .mainpage_hubbox {
.mainpage_row2 .mainpage_hubbox {
Linje 177: Linje 222:
}
}
}
}
@media screen and (min-width: 45em) {
 
.mainpage_row3 .mainpage_hubbox {
/* TWO COLUM FLOAT FORSIDE */
box-sizing: border-box;
.column-row3 {
float: left;
    float: left;
}
}
.mainpage_row3 .mainpage_downloadcell {
 
flex: 1 2 15em;
.left {
min-width: 10em;
    width: 60%;
max-width: 20em;
    vertical-align: top;
}
}
.mainpage_row3 .mainpage_aboutcell {
 
flex: 6 0 20em;
.right {
margin-right: 1em;  
    width: 40%;
}
}
.mainpage_row3 .mainpage_opportunitiescell {
 
flex: 1 2 15em;
@media screen and (max-width: 600px) {
min-width: 10em;
    .column-row3 {
max-width: 20em;
        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;
}
}
@media screen and (max-width: 45em) {
 
.mainpage_row3 .mainpage_hubbox {
#rp-sitat {
box-sizing: border-box;
display:inline-block;
flex: 1 0 100%;
margin-left: 2em;
width: 100%;
font-style: italic;
margin: 0.5em 0;
}
}
}
@media screen and (max-width: 55em) {
 
.mainpage_row3 .mainpage_aboutcell {
#rp-sitat2 {
order: -1;
display:inline-block;
flex: 1 0 100%;
margin-left: 4em;
width: 100%;
font-style: italic;
margin-left: 0;
}
}
}


/* Statistikk-tabeller, flytende */
/**
* 4. VARIOUS
* -------------------------------------------------
*/
 
/* Statistikk-tabeller, floating. See: Statistikk_over_saksbehandlingen_i_Norges_Høyesterett */
div.statistikk {
div.statistikk {
float: left;
float: left;
margin: auto;
margin: auto;
padding: 10px;
padding: 10px;
display: inline-flex;
display: inline-flex;
}
 
/**
* 5. MOBILE DEVICES
* -------------------------------------------------
*/
 
/* Only for mobile devices */
.onlymobile {
display:none;
}
 
/**
* 6. TESTING
* -------------------------------------------------
*/
 
/* Testing for code review */
 
/* New flexboxes on main page 2end row */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mainpage_box h2, h3 {
padding-top: 0;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
letter-spacing: 0.02em;
margin: 0.5em 0;
border-bottom: none;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box .item1 {
border-top: 3px solid #ffbe00;
}
.mainpage_box .item2 {
border-top: 3px solid #7cc3d9;
padding-top: 0.5em;
}
.mainpage_box .item3 {
border-top: 3px solid #8dc63f;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
}