Difference between revisions of "MediaWiki:Common.css"

From UCSB Nanofab Wiki
Jump to navigation Jump to search
(Created page with "/** Collapsible tables ********************************************************* * * Description: Allows tables to be collapsed, showing only the header. See * …")
 
 
(36 intermediate revisions by 4 users not shown)
Line 1: Line 1:
/** Collapsible tables *********************************************************
+
/* Site-wide mods */
*
+
 
* Description: Allows tables to be collapsed, showing only the header. See
+
/* disable "discussion" link on every page */
*                         http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
+
li#ca-talk { display:none!important; }
* Maintainers: [[en:User:R. Koot]]
+
 
*/
+
/*-------------------------------*/
+
 
table.collapsed tr.collapsible {
+
 
        display: none;
+
 
 +
/* MediaWiki:Sidebar CSS rules */
 +
 
 +
/* remove the first Section title causing a blank space */
 +
div#p-InvisibleMenu {
 +
display:none!important;
 
}
 
}
+
 
.collapseButton {              /* 'show'/'hide' buttons created dynamically by the             */
+
/* targets the div holding the logo */
        float: right;          /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
+
div#p-logo {
        font-weight: normal;    /* are styled here so they can be customised.            */
+
    /* CSS goes here */
        text-align: right;
 
        width: auto;
 
 
}
 
}
 +
 +
/* targets the link inside the logo div */
 +
div#plogo a.mw-wiki-logo {
 +
 +
}
 +
 +
 +
/* Bold specific sidebar items: */
 +
li#n-Lab-Rules a {
 +
  font-weight: bold;
 +
}
 +
 +
li#n-COVID-19-Protocols a {
 +
  font-weight: bold;
 +
}
 +
 +
 +
 +
/*-----------------------------------*/
 +
/* Sidebar title elements */
 +
 +
/* THESE ARE OVERRIDDEN BY ANOTHER RULE `@media screen #mw-panel .portal {}`  */
 +
 +
h3#p-navigation-label {
 +
 +
}
 +
h3#p-Equipment-label {
 +
}
 +
h3#p-Recipes_and_Data-label {
 +
   
 +
}
 +
h3#p-Facility_Data-label {
 +
   
 +
}
 +
h3#p-Editing_Tools-label {
 +
   
 +
}
 +
h3#p-p-tb-label {
 +
   
 +
}
 +
 +
/* For the spacing between elements, you want to target all li elements inside of the section divs and increase the padding top and bottom on those elements */
 +
div#p-navigation li {
 +
 +
}
 +
 +
div#p-Equipment li {
 +
 +
 +
}
 +
 +
/* etc... */

Latest revision as of 12:54, 27 August 2021

/* Site-wide mods */

/* disable "discussion" link on every page */
li#ca-talk { display:none!important; }

/*-------------------------------*/



/* MediaWiki:Sidebar CSS rules */

/* remove the first Section title causing a blank space */
div#p-InvisibleMenu {
display:none!important;
}

/* targets the div holding the logo */
div#p-logo {
    /* CSS goes here */
}

/* targets the link inside the logo div */
div#plogo a.mw-wiki-logo {

}


/* Bold specific sidebar items: */
li#n-Lab-Rules a {
   font-weight: bold;
}

li#n-COVID-19-Protocols a {
   font-weight: bold;
}



/*-----------------------------------*/
/* Sidebar title elements */

/* THESE ARE OVERRIDDEN BY ANOTHER RULE `@media screen #mw-panel .portal {}`  */

h3#p-navigation-label {

}
h3#p-Equipment-label {
}
h3#p-Recipes_and_Data-label {
    
}
h3#p-Facility_Data-label {
    
}
h3#p-Editing_Tools-label {
    
}
h3#p-p-tb-label {
    
}

/* For the spacing between elements, you want to target all li elements inside of the section divs and increase the padding top and bottom on those elements */
div#p-navigation li {

}

div#p-Equipment li {


}

/* etc... */