مدیاویکی:Common.css: تفاوت بین نسخهها
پرش به ناوبری
پرش به جستجو
(استایل ناوباکس) |
|||
سطر ۵۲: | سطر ۵۲: | ||
} | } | ||
− | /* | + | /* Default style for navigation boxes */ |
− | + | .navbox { /* Navbox container style */ | |
− | |||
− | |||
− | |||
− | |||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
+ | width: 100%; | ||
+ | margin: auto; | ||
+ | clear: both; | ||
+ | font-size: 88%; | ||
text-align: center; | text-align: center; | ||
− | + | padding: 1px; | |
− | + | } | |
+ | .navbox-inner, | ||
+ | .navbox-subgroup { | ||
+ | width: 100%; | ||
} | } | ||
− | + | .navbox-group, | |
− | + | .navbox-title, | |
− | + | .navbox-abovebelow { | |
+ | padding: 0.25em 1em; /* Title, group and above/below styles */ | ||
+ | line-height: 1.5em; | ||
+ | text-align: center; | ||
} | } | ||
− | + | th.navbox-group { /* Group style */ | |
− | + | white-space: nowrap; | |
− | + | /* @noflip */ | |
+ | text-align: right; | ||
} | } | ||
− | + | .navbox, | |
− | background | + | .navbox-subgroup { |
− | + | background: #fdfdfd; /* Background color */ | |
− | + | } | |
− | + | .navbox-list { | |
+ | line-height: 1.8em; | ||
+ | border-color: #fdfdfd; /* Must match background color */ | ||
+ | } | ||
+ | .navbox th, | ||
+ | .navbox-title { | ||
+ | background: #ccccff; /* Level 1 color */ | ||
} | } | ||
− | + | .navbox-abovebelow, | |
− | + | th.navbox-group, | |
− | + | .navbox-subgroup .navbox-title { | |
− | background | + | background: #ddddff; /* Level 2 color */ |
− | |||
} | } | ||
− | + | .navbox-subgroup .navbox-group, | |
− | + | .navbox-subgroup .navbox-abovebelow { | |
+ | background: #e6e6ff; /* Level 3 color */ | ||
} | } | ||
− | + | .navbox-even { | |
− | + | background: #f7f7f7; /* Even row striping */ | |
} | } | ||
− | + | .navbox-odd { | |
− | + | background: transparent; /* Odd row striping */ | |
} | } | ||
− | + | table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ | |
− | + | margin-top: -1px; /* (doesn't work for IE6, but that's okay) */ | |
} | } | ||
− | + | .navbox .hlist td dl, | |
− | + | .navbox .hlist td ol, | |
− | + | .navbox .hlist td ul, | |
− | + | .navbox td.hlist dl, | |
− | + | .navbox td.hlist ol, | |
+ | .navbox td.hlist ul { | ||
+ | padding: 0.125em 0; /* Adjust hlist padding in navboxes */ | ||
} | } | ||
− | + | ol + table.navbox, | |
− | + | ul + table.navbox { | |
− | + | margin-top: 0.5em; /* Prevent lists from clinging to navboxes */ | |
− | |||
− | |||
− | |||
} | } | ||
− | /* | + | /* Default styling for Navbar template */ |
− | . | + | .navbar { |
− | + | display: inline; | |
+ | font-size: 88%; | ||
+ | font-weight: normal; | ||
+ | } | ||
+ | .navbar ul { | ||
+ | display: inline; | ||
+ | white-space: nowrap; | ||
+ | } | ||
+ | .navbar li { | ||
+ | word-spacing: -0.125em; | ||
+ | } | ||
+ | .navbar.mini li { /* span is removed */ | ||
+ | font-size: xx-small; | ||
} | } | ||
− | + | .nv-talk > a { | |
− | + | color: #002BB8; | |
− | + | } | |
− | + | /* Navbar styling when nested in infobox and navbox */ | |
− | color: # | + | .infobox .navbar { |
+ | font-size: 100%; | ||
} | } | ||
− | + | .navbox .navbar { | |
− | . | + | display: block; |
− | + | font-size: 100%; | |
− | |||
} | } | ||
− | + | .navbox-title .navbar { | |
− | . | + | /* @noflip */ |
− | + | float: right; | |
+ | /* @noflip */ | ||
+ | text-align: right; | ||
+ | /* @noflip */ | ||
+ | margin-left: 0.5em; | ||
+ | width: 6em; | ||
} | } | ||
− | /* | + | /* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript |
− | . | + | in [[MediaWiki:Common.js]] are styled here so they can be customised. */ |
− | + | .collapseButton { | |
− | margin: 0; | + | /* @noflip */ |
+ | float: left; | ||
+ | font-weight: normal; | ||
+ | /* @noflip */ | ||
+ | margin-right: 0.5em; | ||
+ | /* @noflip */ | ||
+ | text-align: left; | ||
+ | width: auto; | ||
} | } | ||
− | + | /* In navboxes, the show/hide button balances the v·d·e links | |
− | . | + | from [[Template:Navbar]], so they need to be the same width. */ |
− | + | .navbox .collapseButton { | |
− | + | width: 6em; | |
− | |||
} | } |
نسخهٔ کنونی تا ۱۱ اوت ۲۰۱۴، ساعت ۲۳:۳۵
/* دستورات این بخش همهٔ کاربران را تحت تاثیر قرار میدهند. */ /* Copied in the presence of jeremyb from */ /* https://fa.wikipedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Common.css&oldid=8608192 */ /* See also https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css */ /* Article message box styles */ table.gmbox { margin: 0px 10%; /* 10% = Will not overlap with other elements */ border: 1px solid #aaa; border-right: 10px solid #1e90ff; /* Default "notice" blue */ background: #fbfbfb; } table.gmbox + table.gmbox { /* Single border between stacked boxes. */ margin-top: -1px; } .gmbox th.mbox-text, .gmbox td.mbox-text { /* The message body cell(s) */ padding: 0.25em 0.5em; /* 0.5em left/right */ } .gmbox td.mbox-image { /* The left image cell */ padding: 2px 0.5em 2px 0; /* 0.5em right, 0px left */ } .gmbox td.mbox-imageright { /* The right image cell */ padding: 2px 0 2px 0.5em; /* 0px right, 0.5em left */ } table.gmbox-notice { border-right: 10px solid #1e90ff; /* Blue */ } table.gmbox-info { border-right: 10px solid #008b00; /* Green */ } table.gmbox-speedy { border-right: 10px solid #b22222; /* Red */ background: #fee; /* Pink */ } table.gmbox-warning { border-right: 10px solid #b22222; /* Red */ } table.gmbox-content { border-right: 10px solid #f28500; /* Orange */ } table.gmbox-style { border-right: 10px solid #f4c430; /* Yellow */ } table.gmbox-move { border-right: 10px solid #9932cc; /* Purple */ } table.gmbox-protection { border-right: 10px solid #bba; /* Gray-gold */ } /* Default style for navigation boxes */ .navbox { /* Navbox container style */ border: 1px solid #aaa; width: 100%; margin: auto; clear: both; font-size: 88%; text-align: center; padding: 1px; } .navbox-inner, .navbox-subgroup { width: 100%; } .navbox-group, .navbox-title, .navbox-abovebelow { padding: 0.25em 1em; /* Title, group and above/below styles */ line-height: 1.5em; text-align: center; } th.navbox-group { /* Group style */ white-space: nowrap; /* @noflip */ text-align: right; } .navbox, .navbox-subgroup { background: #fdfdfd; /* Background color */ } .navbox-list { line-height: 1.8em; border-color: #fdfdfd; /* Must match background color */ } .navbox th, .navbox-title { background: #ccccff; /* Level 1 color */ } .navbox-abovebelow, th.navbox-group, .navbox-subgroup .navbox-title { background: #ddddff; /* Level 2 color */ } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background: #e6e6ff; /* Level 3 color */ } .navbox-even { background: #f7f7f7; /* Even row striping */ } .navbox-odd { background: transparent; /* Odd row striping */ } table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ margin-top: -1px; /* (doesn't work for IE6, but that's okay) */ } .navbox .hlist td dl, .navbox .hlist td ol, .navbox .hlist td ul, .navbox td.hlist dl, .navbox td.hlist ol, .navbox td.hlist ul { padding: 0.125em 0; /* Adjust hlist padding in navboxes */ } ol + table.navbox, ul + table.navbox { margin-top: 0.5em; /* Prevent lists from clinging to navboxes */ } /* Default styling for Navbar template */ .navbar { display: inline; font-size: 88%; font-weight: normal; } .navbar ul { display: inline; white-space: nowrap; } .navbar li { word-spacing: -0.125em; } .navbar.mini li { /* span is removed */ font-size: xx-small; } .nv-talk > a { color: #002BB8; } /* Navbar styling when nested in infobox and navbox */ .infobox .navbar { font-size: 100%; } .navbox .navbar { display: block; font-size: 100%; } .navbox-title .navbar { /* @noflip */ float: right; /* @noflip */ text-align: right; /* @noflip */ margin-left: 0.5em; width: 6em; } /* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript in [[MediaWiki:Common.js]] are styled here so they can be customised. */ .collapseButton { /* @noflip */ float: left; font-weight: normal; /* @noflip */ margin-right: 0.5em; /* @noflip */ text-align: left; width: auto; } /* In navboxes, the show/hide button balances the v·d·e links from [[Template:Navbar]], so they need to be the same width. */ .navbox .collapseButton { width: 6em; }