Difference between revisions of "MediaWiki:Vector.css"

From Pangaea Wiki
Jump to: navigation, search
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
/* CSS placed here will affect users of the Vector skin */
 
  
 
*{box-sizing:border-box}
 
*{box-sizing:border-box}
−
 
+
.mediawiki {background:#000 url('/skins/images/pang-bg-lower.jpg') top center no-repeat}
−
div#p-logo .mw-wiki-logo {display:none;}
+
div#p-logo .mw-wiki-logo {
−
 
+
  display:none;}
−
/* Grid *********/
+
#mw-page-base{
−
.mediawiki {background:#000 url(/skins/images/pang-bg-lower.jpg) top center no-repeat;display:grid;
+
  background:transparent;}
−
  grid-template-columns:auto 900px auto;
+
−
  grid-template-rows: 235px 60px auto 100px;
+
−
  grid-template-areas:
+
−
  ".  .            ."
+
−
  ".  navigation  ."
+
−
  ".  content      ."
+
−
  ".  footer      .";
+
−
}
+
−
 
+
−
/* standard link colors */
+
−
.mw-body a:link { color:#8a2405 } /* normal unvisited links */
+
−
.mw-body a:link:active {  } /* active links */
+
−
.mw-body a:link.new { color:red;} /* new links */
+
−
.mw-body a:visited.new { color:red; } /* new links */
+
−
.mw-body a:link.interwiki {  } /* interwiki links */
+
−
.mw-body a:link.external { } /* external links */
+
−
.mw-body a:link.stub { } /* hovered links */
+
−
 
+
−
/* Navigation ************/
+
−
 
+
−
/* Content **************/
+
 
#content.mw-body{
 
#content.mw-body{
 
   background:#F9E7B9;
 
   background:#F9E7B9;
−
   border:none;}
+
  margin:0;
 +
   border:none;}
 +
div#mw-panel{
 +
  background:#171717;}
 +
div#mw-panel div.portal h3,
 +
div#mw-panel div.portal div.body ul li a,
 +
div#mw-panel div.portal div.body ul li a:visited,
 +
#p-personal a {
 +
  color:#c6bcb3}
 +
#mw-head .vectorTabs ul li { 
 +
  border-radius:10px 10px 0 0;
 +
  padding:0px 10px;
 +
  background: #8a2405;
 +
  color:#fff;
 +
  border-right:2px #4c1300 solid;}
 +
#mw-head .vectorTabs a{color:#fff;}
 +
#mw-head .vectorTabs .selected{background:#F9E7B9;}
 +
#mw-head .vectorTabs .selected a{color:#000;}
 +
#left-navigation{margin-left:0}
 +
/******** Navigation tabs (read,edit,history... ) */
 +
div.vectorTabs,
 +
div.vectorTabs ul,
 +
div.vectorTabs ul li,
 +
div.vectorTabs ul li span,
 +
div.vectorTabs h3 span
 +
  {background:none;}
  
−
/* Footer**************/
+
/******** Footer**************/
 
div#footer{
 
div#footer{
−
   background:#171717;}
+
   background:#171717;
−
div#footer ul li {color:#a55858}
+
  margin:0;}
 +
div#footer ul li {color:#c6bcb3}
 +
div#footer ul li a {color:#c6bcb3}
  
−
/* editing and code ******************/
+
/****************************
−
.editOptions{background:#f7e1a9}
+
GRID SUPPORT
−
#editform textarea{padding:5px 10px}
+
*********/
−
 
+
−
.mw-code,
+
−
.thumb .thumbinner,
+
−
.mw-search-profile-tabs,
+
−
pre, #toc,
+
−
ul#pagehistory .selected,
+
−
#catlinks
+
−
  {
+
−
    background:#fff7e4;
+
−
    border:1px dashed #8a2405;
+
−
    color:#8a2405;
+
−
  }
+
−
 
+
−
#toc ul {margin:5px 10px}
+
−
#catlinks {background: #f7e1a9;border:none;}
+
−
 
+
−
h3#p-cactions-label span {color:#fff;}
+
  
 
@supports (display:grid) {
 
@supports (display:grid) {
−
  @media screen and (min-width:900px) {
+
    .mediawiki {display:grid;}
−
     /* Grid system *******/
+
      
−
     #mw-page-base{background:transparent}
+
     #mw-navigation{grid-area:navigation}
 +
    #content.mw-body{grid-area:content}
 +
    div#footer{grid-area:footer}
 +
 
  
−
    /* Navigation *******/
+
/******** Navigation */
−
     #mw-navigation{grid-area:navigation;display:flex;align-items:flex-end;position:relative}
+
     div#mw-head{position:relative;bottom:0;}
 +
    #mw-navigation{display:flex;align-items:flex-end} 
 +
  #p-personal{position:absolute;top:-100%;}
 +
 
 +
    #left-navigation{float:none;margin:0}
 +
    #right-navigation{margin:0;}
 +
 
 +
    div#mw-navigation{position:relative}
 +
    div#mw-panel{left:0;top:90px;transform:translate(-100%)} 
 +
/******** editing and code ******************/
 +
    .editOptions{background:#f7e1a9}
  
−
     div#mw-head{position:initial;bottom:0;}
+
     .mw-code,
 +
    .thumb .thumbinner,
 +
    .mw-search-profile-tabs,
 +
    pre, #toc,
 +
    ul#pagehistory .selected,
 +
    #catlinks
 +
      {
 +
        background:#fff7e4;
 +
        border:1px dashed #8a2405;
 +
        color:#8a2405;
 +
      }
  
−
     /* Navigation tabs (read,edit,history... ) */
+
     #toc ul {margin:5px 10px}
−
    div.vectorTabs,
+
     #catlinks {background: #f7e1a9;border:none;}
−
    div.vectorTabs ul,
+
     h3#p-cactions-label span {color:#fff;}  
−
    div.vectorTabs ul li,
+
−
    div.vectorTabs ul li span,
+
−
    div.vectorTabs h3 span
+
−
      {background:none;}
+
−
 
+
−
     #left-navigation{float:none;margin:0}
+
−
     #right-navigation{margin:0;}
+
 
      
 
      
−
    #mw-head .vectorTabs ul li {
+
  /* SMALL */
−
       border-radius:10px 10px 0 0;
+
  @media screen and (max-width:900px) { 
−
       padding:0px 10px;
+
      .mediawiki {
−
       margin-right:2px;
+
       grid-template-columns: auto ;  
−
       background: #8a2405;
+
       grid-template-rows: 80px auto 100px ;
−
      color:#fff;
+
       grid-template-areas:
−
      border-right:2px #4c1300 solid;}
+
        "navigation"
−
 
+
        "content"
−
    #mw-head .vectorTabs a{color:#fff;}
+
        "footer";}
−
    #mw-head .vectorTabs .selected{background:#F9E7B9;}
+
       div#mw-panel{
−
    #mw-head .vectorTabs .selected a{color:#000;}
+
        position:fixed;
−
 
+
        top:0;
−
    /* sidebar panel*/
+
        left:0;
−
    #mw-panel, #p-personal {
+
        padding-bottom:8px;
−
      position:absolute;
+
        border-radius:0  10px 10px  0;
−
      top:100px;
+
        transform:translateY(-100%);
−
      background:#171717;
+
        transition:0.4s;}
−
      padding-bottom:16px;
+
      #mw-panel:after{
−
      width:152px;
+
        content:'menu';
−
      margin:0}
+
        display:block;
−
 
+
        position:absolute;
−
    div#mw-head{position:initial;}
+
        left:0;
−
    div#mw-panel div.portal h3,
+
        bottom:-25px;
−
    div#mw-panel div.portal div.body ul li a,
+
        color:#731e00;
−
    div#mw-panel div.portal div.body ul li a:visited,
+
        background:#fff;
−
    #p-personal a
+
        padding:4px 10px;
−
      {color:#c6bcb3}
+
        border-radius:0 0 10px 10px;}
−
 
+
      #mw-panel:hover{
−
    #mw-panel{
+
        transform:translate(0%);
−
      transform:translate(-100%);
+
        transition:0.6s;}
−
      border-radius:10px  0 0 10px;}
+
    }
−
 
+
  }
−
    #p-personal {
+
  /* MEDIUM */
−
       transform:translate(100%);
+
  @media screen and (min-width:900px) {  
−
       border-radius: 0 10px 10px 0 ;
+
       .mediawiki {
−
       right:0;
+
      background-position:top left;
−
       padding:16px 8px 16px 0;
+
       grid-template-columns:150px auto;  
−
    }
+
       grid-template-rows: 235px 60px auto 100px;
−
 
+
       grid-template-areas:
−
    #p-personal ul {padding:10px;}
+
        ".  .        "
−
    #p-personal li {float:none;}
+
        ".  navigation"
−
 
+
        ".  content  "
−
    /* Content *********/
+
        ".  footer    ";}
−
    #content.mw-body{
+
  }  
−
       grid-area:content;
+
  /* med/large  */
−
       margin:0;}
+
  @media screen and (min-width:1040px) {  
−
 
+
      .mediawiki {
−
    /* Footer **********/
+
      background-position:top left;
−
       grid-area:footer;
+
       grid-template-columns:150px 900px auto;  
−
       margin:0;}
+
       grid-template-rows: 235px 60px auto 100px;
 +
      grid-template-areas:
 +
        ".  .        "
 +
        ".  navigation"
 +
        ".  content  "
 +
        ".  footer    ";}
 +
  }
 +
  /* LARGE */
 +
  @media screen and (min-width:1200px) { 
 +
      .mediawiki {
 +
      background-position:top center;
 +
       grid-template-columns:auto 900px auto;  
 +
       grid-template-rows: 235px 60px auto 100px;
 +
      grid-template-areas:
 +
        ".  .            ."
 +
        ".  navigation  ."
 +
        ".  content      ."
 +
        ".  footer      .";}
 
   }
 
   }
 
}
 
}

Latest revision as of 08:36, 17 November 2018


*{box-sizing:border-box}
.mediawiki {background:#000 url('/skins/images/pang-bg-lower.jpg') top center no-repeat}
div#p-logo .mw-wiki-logo {
  display:none;}
#mw-page-base{
  background:transparent;}
#content.mw-body{
  background:#F9E7B9;
  margin:0;
  border:none;} 
div#mw-panel{
  background:#171717;}
div#mw-panel div.portal h3,
div#mw-panel div.portal div.body ul li a,
div#mw-panel div.portal div.body ul li a:visited,
#p-personal a {
  color:#c6bcb3}
#mw-head .vectorTabs ul li {  
  border-radius:10px 10px 0 0;
  padding:0px 10px;
  background: #8a2405;
  color:#fff;
  border-right:2px #4c1300 solid;}
#mw-head .vectorTabs a{color:#fff;}
#mw-head .vectorTabs .selected{background:#F9E7B9;}
#mw-head .vectorTabs .selected a{color:#000;}
#left-navigation{margin-left:0}
/******** Navigation tabs (read,edit,history... ) */
div.vectorTabs,
div.vectorTabs ul, 
div.vectorTabs ul li,
div.vectorTabs ul li span, 
div.vectorTabs h3 span 
  {background:none;}

/******** Footer**************/
div#footer{
  background:#171717;
  margin:0;}
div#footer ul li {color:#c6bcb3}
div#footer ul li a {color:#c6bcb3}

/****************************
GRID SUPPORT
*********/

@supports (display:grid) {
    .mediawiki {display:grid;}
    
    #mw-navigation{grid-area:navigation}
    #content.mw-body{grid-area:content}
    div#footer{grid-area:footer}
  

/******** Navigation */
    div#mw-head{position:relative;bottom:0;}
    #mw-navigation{display:flex;align-items:flex-end}  
  #p-personal{position:absolute;top:-100%;}
  
    #left-navigation{float:none;margin:0}
    #right-navigation{margin:0;}
  
    div#mw-navigation{position:relative}
    div#mw-panel{left:0;top:90px;transform:translate(-100%)}  
 /******** editing and code ******************/
    .editOptions{background:#f7e1a9}

    .mw-code, 
    .thumb .thumbinner,
    .mw-search-profile-tabs, 
    pre, #toc,
    ul#pagehistory .selected,
    #catlinks
      {
        background:#fff7e4;
        border:1px dashed #8a2405;
        color:#8a2405;
      }

    #toc ul {margin:5px 10px}
    #catlinks {background: #f7e1a9;border:none;}
    h3#p-cactions-label span {color:#fff;}   
    
  /* SMALL */
  @media screen and (max-width:900px) {  
      .mediawiki {
      grid-template-columns: auto ; 
      grid-template-rows:  80px auto 100px ;
      grid-template-areas:
        "navigation"
        "content"
        "footer";}
      div#mw-panel{
        position:fixed;
        top:0;
        left:0;
        padding-bottom:8px;
        border-radius:0  10px 10px  0;
        transform:translateY(-100%);
        transition:0.4s;}
      #mw-panel:after{
        content:'menu';
        display:block;
        position:absolute;
        left:0;
        bottom:-25px;
        color:#731e00;
        background:#fff;
        padding:4px 10px;
        border-radius:0 0 10px 10px;}
      #mw-panel:hover{
        transform:translate(0%);
        transition:0.6s;}  
     } 
  }
   /* MEDIUM */
  @media screen and (min-width:900px) { 
      .mediawiki {
      background-position:top left;
      grid-template-columns:150px auto; 
      grid-template-rows: 235px 60px auto 100px;
      grid-template-areas:
        ".  .         "
        ".  navigation"
        ".  content   "
        ".  footer    ";}
  } 
  /* med/large  */
  @media screen and (min-width:1040px) { 
      .mediawiki {
      background-position:top left;
      grid-template-columns:150px 900px auto; 
      grid-template-rows: 235px 60px auto 100px;
      grid-template-areas:
        ".  .         "
        ".  navigation"
        ".  content   "
        ".  footer    ";}
  }
  /* LARGE */
  @media screen and (min-width:1200px) {  
      .mediawiki {
      background-position:top center;
      grid-template-columns:auto 900px auto; 
      grid-template-rows: 235px 60px auto 100px;
      grid-template-areas:
        ".  .            ."
        ".  navigation   ."
        ".  content      ."
        ".  footer       .";}
  }
}