MediaWiki:Common.css
m (stylize (spaces to tabs for indentation etc. coding style tweaks); no functional changes are intended) |
|||
(7 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
- | .category_header | + | .category_header { |
- | { | + | border: 1px solid #aea395; |
- | border: 1px solid #aea395; | + | background: #ffd9ac; |
- | background:#ffd9ac; | + | height: 52px; |
- | height: 52px; | + | display: block; |
- | display: block; | + | position: relative; |
- | position: relative; | + | padding: 0.1em 0.1em 0.1em 0.5em; |
- | padding: 0.1em 0.1em 0.1em 0.5em; | + | |
} | } | ||
- | .category_header_title | + | .category_header_title { |
- | { | + | font-size: 120%; |
- | font-size: 120%; | + | font-weight: bold; |
- | font-weight: bold; | + | position: absolute; |
- | position: absolute; | + | z-index: 10; |
- | z-index: 10; | + | border: none; |
- | border: none; | + | text-decoration: none; |
- | text-decoration: none; | + | |
} | } | ||
- | .category_block, td.category_block_stage | + | .category_block, |
- | { | + | td.category_block_stage { |
- | width:32%; | + | width: 32%; |
- | border:1px solid #e2dbd2; | + | border: 1px solid #e2dbd2; |
- | background:#fff0df; | + | background: #fff0df; |
- | vertical-align:top; | + | vertical-align: top; |
- | color:#000; | + | color: #000; |
+ | } | ||
+ | |||
+ | /* wikitable/prettytable class for skinning normal tables */ | ||
+ | table.wikitable, | ||
+ | table.prettytable { | ||
+ | margin: 1em 1em 1em 0; | ||
+ | background: #f9f9f9; | ||
+ | border: 1px #aaa solid; | ||
+ | border-collapse: collapse; | ||
+ | } | ||
+ | |||
+ | table.wikitable th, | ||
+ | table.wikitable td, | ||
+ | table.prettytable th, | ||
+ | table.prettytable td { | ||
+ | border: 1px #aaa solid; | ||
+ | padding: 0.2em; | ||
+ | } | ||
+ | |||
+ | table.wikitable th, | ||
+ | table.prettytable th { | ||
+ | background: #f2f2f2; | ||
+ | text-align: center; | ||
+ | } | ||
+ | |||
+ | table.wikitable caption, | ||
+ | table.prettytable caption { | ||
+ | margin-left: inherit; | ||
+ | margin-right: inherit; | ||
+ | font-weight: bold; | ||
+ | } | ||
+ | |||
+ | table.prettytable code, | ||
+ | table.wikitable code { | ||
+ | background-color: transparent; | ||
+ | } | ||
+ | |||
+ | /* Article message box styles */ | ||
+ | table.ambox { /* 10% = Will not overlap with other elements */ | ||
+ | margin: -1px 10% 0px; /* -1px = Single border between stacked boxes in all browsers */ | ||
+ | border: 1px solid #aaa; | ||
+ | border-bottom: 3px solid #1e90ff; /* Default "notice" blue */ | ||
+ | background: #fbfbfb; | ||
+ | } | ||
+ | th.ambox-text, td.ambox-text { /* The message body cell(s) */ | ||
+ | border: none; | ||
+ | padding: 0.25em 0.5em; /* 0.5em left/right */ | ||
+ | width: 100%; /* Make all templates the same width regardless of text length */ | ||
+ | } | ||
+ | td.ambox-image { /* The left image cell */ | ||
+ | border: none; | ||
+ | padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */ | ||
+ | text-align: center; | ||
+ | } | ||
+ | td.ambox-imageright { /* The right image cell */ | ||
+ | border: none; | ||
+ | padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */ | ||
+ | text-align: center; | ||
+ | } | ||
+ | |||
+ | table.ambox-notice { | ||
+ | border-bottom: 3px solid #1e90ff; /* Blue */ | ||
+ | } | ||
+ | table.ambox-speedy { | ||
+ | border-bottom: 3px solid #b22222; /* Red */ | ||
+ | background: #fee; /* Pink */ | ||
+ | } | ||
+ | table.ambox-delete, | ||
+ | table.ambox-serious { | ||
+ | border-bottom: 3px solid #b22222; /* Red */ | ||
+ | } | ||
+ | table.ambox-content { | ||
+ | border-bottom: 3px solid #f28500; /* Orange */ | ||
+ | } | ||
+ | table.ambox-style { | ||
+ | border-bottom: 3px solid #f4c430; /* Yellow */ | ||
+ | } | ||
+ | table.ambox-move, | ||
+ | table.ambox-merge { | ||
+ | border-bottom: 3px solid #9932cc; /* Purple */ | ||
+ | } | ||
+ | table.ambox-protection { | ||
+ | border-bottom: 3px solid #bba; /* Gray-gold */ | ||
+ | } | ||
+ | table.ambox.ambox-mini { /* Small floating box variant */ | ||
+ | float: right; | ||
+ | clear: right; | ||
+ | margin: 0 0 0 1em; | ||
+ | width: 25%; | ||
+ | } | ||
+ | @media print { /* Do not print article message boxes */ | ||
+ | .ambox { | ||
+ | display: none; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | h1, h2 { | ||
+ | border-bottom-width: 1px; | ||
+ | border-bottom-style: solid; | ||
+ | border-bottom-color: rgb(170,170,170); | ||
} | } |
Latest revision as of 17:49, 14 November 2021
/* CSS placed here will be applied to all skins */ .category_header { border: 1px solid #aea395; background: #ffd9ac; height: 52px; display: block; position: relative; padding: 0.1em 0.1em 0.1em 0.5em; } .category_header_title { font-size: 120%; font-weight: bold; position: absolute; z-index: 10; border: none; text-decoration: none; } .category_block, td.category_block_stage { width: 32%; border: 1px solid #e2dbd2; background: #fff0df; vertical-align: top; color: #000; } /* wikitable/prettytable class for skinning normal tables */ table.wikitable, table.prettytable { margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; } table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td { border: 1px #aaa solid; padding: 0.2em; } table.wikitable th, table.prettytable th { background: #f2f2f2; text-align: center; } table.wikitable caption, table.prettytable caption { margin-left: inherit; margin-right: inherit; font-weight: bold; } table.prettytable code, table.wikitable code { background-color: transparent; } /* Article message box styles */ table.ambox { /* 10% = Will not overlap with other elements */ margin: -1px 10% 0px; /* -1px = Single border between stacked boxes in all browsers */ border: 1px solid #aaa; border-bottom: 3px solid #1e90ff; /* Default "notice" blue */ background: #fbfbfb; } th.ambox-text, td.ambox-text { /* The message body cell(s) */ border: none; padding: 0.25em 0.5em; /* 0.5em left/right */ width: 100%; /* Make all templates the same width regardless of text length */ } td.ambox-image { /* The left image cell */ border: none; padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */ text-align: center; } td.ambox-imageright { /* The right image cell */ border: none; padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */ text-align: center; } table.ambox-notice { border-bottom: 3px solid #1e90ff; /* Blue */ } table.ambox-speedy { border-bottom: 3px solid #b22222; /* Red */ background: #fee; /* Pink */ } table.ambox-delete, table.ambox-serious { border-bottom: 3px solid #b22222; /* Red */ } table.ambox-content { border-bottom: 3px solid #f28500; /* Orange */ } table.ambox-style { border-bottom: 3px solid #f4c430; /* Yellow */ } table.ambox-move, table.ambox-merge { border-bottom: 3px solid #9932cc; /* Purple */ } table.ambox-protection { border-bottom: 3px solid #bba; /* Gray-gold */ } table.ambox.ambox-mini { /* Small floating box variant */ float: right; clear: right; margin: 0 0 0 1em; width: 25%; } @media print { /* Do not print article message boxes */ .ambox { display: none; } } h1, h2 { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(170,170,170); }
- This page was last modified on 14 November 2021, at 17:49.
- This page has been accessed 10,366 times.