Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
m |
m |
||
(46 intermediate revisions by the same user not shown) | |||
Line 96: | Line 96: | ||
} | } | ||
+ | /* Wiki-Popix setup */ | ||
− | *{font-family:Segoe UI} | + | *{font-family:'Segoe UI'} |
− | + | body { font-size: 14pt } | |
− | |||
title{font-size:200%} | title{font-size:200%} | ||
h1{font-size:190%} | h1{font-size:190%} | ||
Line 105: | Line 105: | ||
h3{font-size:120%} | h3{font-size:120%} | ||
h4{font-size:100%} | h4{font-size:100%} | ||
+ | |||
+ | blockquote,ul,ol{margin-left 4%; margin-right:6%} | ||
+ | table.wikitable{font-size:9pt; background-color:#F5F5DC;text-align:center} | ||
+ | pre {white-space: pre-wrap; white-space: -moz-pre-wrap; | ||
+ | white-space: -pre-wrap; white-space: -o-pre-wrap; font_size:10pt} | ||
+ | |||
+ | .sidebar-menu-item-text-1 {font-size: 12pt; font-weight: bold} | ||
+ | .sidebar-menu-item-text-2 {font-size: 11pt } | ||
+ | |||
+ | |||
+ | |||
/////////////////////////////////////////////////////// | /////////////////////////////////////////////////////// | ||
/////////////////////////////////////////////////////// | /////////////////////////////////////////////////////// |
Latest revision as of 15:21, 5 June 2013
/* Le CSS placé ici sera appliqué à tous les habillages. */ /////////////////////////////////////////////////////// // Codesnippet to make your sidebaritems expandable // // Use this code ONLY for monobook-Style. // /////////////////////////////////////////////////////// $(document).ready(function(){ //set the default expanded Items by their headline var defaultExpandItems= ['Navigation', 'Orga']; //set the basic-name for the cookies, which save the current state of expanding var expandCookieName = "disdance_project_wiki_nav_expanded_"; var maxHeights=[] var expandeds=[]; var labels=[]; initNav(); }); function initNav(){ $('#p-logo').css({'position':'relative', 'display':'block'});; $('.generated-sidebar h5,#p-tb h5 ').each(function(i){ var id = $(this).parent().attr('id'); maxHeights[id]=$(this).next('div').height(); var str = $(this).html(); labels[id]=str; if ($.cookie(expandCookieName+id)=='false' ){ expandeds[id]=false; minimize( $(this)); } else if ($.cookie(expandCookieName+id)=='true' ){ expandeds[id]=true; maximize( $(this)); } else if (defaultExpandItems.indexOf(str)==-1){ expandeds[id]=false; minimize( $(this)); } else { expandeds[id]=true; maximize( $(this)); } $(this).css({'cursor':'pointer'}); $(this).click(toggleNav); }); } function minimize(target){ var id=$(target).parent().attr('id'); //You can change the expires-parameter to save the Cookie longer/shorter than 7 days like in this Code $.cookie(expandCookieName+id,'false', { expires: 7}); var str = labels[id]+" ►"; $(target).next('div').animate({'height':'0px'}); $(target).html(str); } function maximize(target){ var id=$(target).parent().attr('id'); //You can change the expires-parameter to save the Cookie longer/shorter than 7 days like in this Code $.cookie(expandCookieName+id,'true', { expires: 7}); var str = labels[id]+" ▼"; var newHeight = maxHeights[id]; $(target).next('div').animate({'height':newHeight+'px'}); $(target).html(str); } function toggleNav(e){ var id=$(e.target).parent().attr('id'); expandeds[id]=!expandeds[id]; if(expandeds[id]==true){ maximize(e.target); } else{ minimize(e.target); } } <!-- Added 2010-06-23 from http://www.mediawiki.org/wiki/Extension:CSS_MenuSidebar --> /* * MenuSidebar */ /* this has to be overridden for every menu */ #p-Shortcuts, #p-Menu2, #p-Menu3 { overflow: visible; } /* this has to be overridden for every menu */ #p-Shortcuts div, #p-Menu2 div, #p-Menu3 div { margin: 0; padding: 0; } /* Wiki-Popix setup */ *{font-family:'Segoe UI'} body { font-size: 14pt } title{font-size:200%} h1{font-size:190%} h2{font-size:160%} h3{font-size:120%} h4{font-size:100%} blockquote,ul,ol{margin-left 4%; margin-right:6%} table.wikitable{font-size:9pt; background-color:#F5F5DC;text-align:center} pre {white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; font_size:10pt} .sidebar-menu-item-text-1 {font-size: 12pt; font-weight: bold} .sidebar-menu-item-text-2 {font-size: 11pt } /////////////////////////////////////////////////////// ///////////////////////////////////////////////////////