The VP4 has been added to the wiki.
Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
(added <kbd> CSS) |
m (added <div class="blockquote"> to allow change over) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
+ | /* | ||
+ | Styles quotes with a solid left border, like the forum. | ||
+ | */ | ||
+ | blockquote blockquote: has(> p) { | ||
+ | background: #f5f5f5; | ||
+ | border: 1px solid #e7e7e7; | ||
+ | border-left: 3px solid #071c2d; | ||
+ | margin: .5em 0; | ||
+ | padding: 5px; | ||
+ | font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', sans-serif; | ||
+ | } | ||
− | blockquote blockquote | + | /* |
+ | This is using <div class="blockquote">…</div> to replace the more convoluted/fugly | ||
+ | "search for a blockquote inside a blockquote containing a paragraph" in the previous definition. | ||
+ | */ | ||
+ | div.blockquote { | ||
background: #f5f5f5; | background: #f5f5f5; | ||
border: 1px solid #e7e7e7; | border: 1px solid #e7e7e7; | ||
Line 11: | Line 27: | ||
} | } | ||
− | kbd { | + | /* |
− | padding:0.1em 0.6em; | + | Use with <kbd class="keycap">Cmd</kbd>+<kbd class="keycap">C</kbd> to style the text like keycaps on a keyboard. |
− | border:1px solid #ccc; | + | */ |
− | font-size:11px; | + | kbd.keycap { |
− | font-family:Arial,Helvetica,sans-serif; | + | padding: 0.1em 0.6em; |
− | background-color:#f7f7f7; | + | border: 1px solid #ccc; |
− | color:#333; | + | font-size: 11px; |
− | -moz-box-shadow:0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; | + | font-family: Arial,Helvetica,sans-serif; |
− | -webkit-box-shadow:0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; | + | background-color: #f7f7f7; |
− | box-shadow:0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; | + | color: #333; |
− | -moz-border-radius:3px; | + | -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; |
− | -webkit-border-radius:3px; | + | -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; |
− | border-radius:3px; | + | box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; |
− | display:inline-block; | + | -moz-border-radius: 3px; |
− | margin:0 0.1em; | + | -webkit-border-radius: 3px; |
− | text-shadow:0 1px 0 #fff; | + | border-radius: 3px; |
− | line-height:1.4; | + | display: inline-block; |
− | white-space:nowrap; | + | margin: 0 0.1em; |
+ | text-shadow: 0 1px 0 #fff; | ||
+ | line-height: 1.4; | ||
+ | white-space: nowrap; | ||
+ | } | ||
+ | |||
+ | /* | ||
+ | .editor and .editor_light style enclosed text like the top-level buttons in Edit. | ||
+ | .editor_light uses a light-gray outline. See one of the Editors for the difference. | ||
+ | .button is described below. | ||
+ | */ | ||
+ | .editor, .editor_light, .button { | ||
+ | background-color: #2a2a2a; | ||
+ | border: 1px solid #0c0c0c; | ||
+ | border-radius: 3px; | ||
+ | -moz-border-radius: 3px; | ||
+ | -webkit-border-radius: 3px; | ||
+ | color: #828282; | ||
+ | display: inline-block; | ||
+ | font: 12px/100% Helvetica,Arial,sans-serif; | ||
+ | line-height: 1.4; | ||
+ | margin: 0 0.1em; | ||
+ | outline: none; | ||
+ | padding: 0.1em 0.6em; | ||
+ | text-align: center; | ||
+ | text-decoration: none; | ||
+ | white-space: nowrap; | ||
+ | } | ||
+ | |||
+ | .editor_light { | ||
+ | border: 1px solid #585858 !important; | ||
+ | } | ||
+ | |||
+ | /* | ||
+ | Use with <span class="button"> to style enclosed text like a button when rendered. | ||
+ | */ | ||
+ | .button { | ||
+ | background-color: white; | ||
+ | border: 2px solid black; | ||
+ | color: black; | ||
} | } |
Latest revision as of 20:33, 7 April 2024
/* CSS placed here will be applied to all skins */ /* Styles quotes with a solid left border, like the forum. */ blockquote blockquote: has(> p) { background: #f5f5f5; border: 1px solid #e7e7e7; border-left: 3px solid #071c2d; margin: .5em 0; padding: 5px; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', sans-serif; } /* This is using <div class="blockquote">…</div> to replace the more convoluted/fugly "search for a blockquote inside a blockquote containing a paragraph" in the previous definition. */ div.blockquote { background: #f5f5f5; border: 1px solid #e7e7e7; border-left: 3px solid #071c2d; margin: .5em 0; padding: 5px; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', sans-serif; } /* Use with <kbd class="keycap">Cmd</kbd>+<kbd class="keycap">C</kbd> to style the text like keycaps on a keyboard. */ kbd.keycap { padding: 0.1em 0.6em; border: 1px solid #ccc; font-size: 11px; font-family: Arial,Helvetica,sans-serif; background-color: #f7f7f7; color: #333; -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; display: inline-block; margin: 0 0.1em; text-shadow: 0 1px 0 #fff; line-height: 1.4; white-space: nowrap; } /* .editor and .editor_light style enclosed text like the top-level buttons in Edit. .editor_light uses a light-gray outline. See one of the Editors for the difference. .button is described below. */ .editor, .editor_light, .button { background-color: #2a2a2a; border: 1px solid #0c0c0c; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; color: #828282; display: inline-block; font: 12px/100% Helvetica,Arial,sans-serif; line-height: 1.4; margin: 0 0.1em; outline: none; padding: 0.1em 0.6em; text-align: center; text-decoration: none; white-space: nowrap; } .editor_light { border: 1px solid #585858 !important; } /* Use with <span class="button"> to style enclosed text like a button when rendered. */ .button { background-color: white; border: 2px solid black; color: black; }