Skillnad mellan versioner av "MediaWiki:Common.css"
Från Polkagriswiki
Kurtake (Diskussion | bidrag) m (Ny sida: →* CSS som skrivs här nedan påverkar alla skal *: body.page-Main_Page h1.firstHeading { display:none; }) |
Kurtake (Diskussion | bidrag) |
||
| (20 mellanliggande versioner av samma användare visas inte) | |||
| Rad 1: | Rad 1: | ||
/** CSS som skrivs här nedan påverkar alla skal **/ | /** CSS som skrivs här nedan påverkar alla skal **/ | ||
| − | + | body.page-Huvudsida h1.firstHeading { display:none; } | |
| + | |||
| + | body { | ||
| + | font: x-small sans-serif; | ||
| + | /* @embed */ | ||
| + | background: #f0f0f0 url(skins/MonoBook/headbg.jpg) 0 0 no-repeat; | ||
| + | color: black; | ||
| + | margin: 0; | ||
| + | padding: 0; | ||
| + | direction: ltr; /* Needed for RTL flipping */ | ||
| + | unicode-bidi: embed; | ||
| + | } | ||
| + | |||
| + | /* scale back up to a sane default */ | ||
| + | div#globalWrapper { | ||
| + | font-size: 127%; | ||
| + | width: 100%; | ||
| + | margin: 0; | ||
| + | padding: 0; | ||
| + | } | ||
| + | |||
| + | /* general styles */ | ||
| + | a { | ||
| + | color: #D98409; | ||
| + | } | ||
| + | |||
| + | a:visited { | ||
| + | color: #A27216; | ||
| + | } | ||
| + | a.new, | ||
| + | #p-personal a.new { | ||
| + | color: #EF2121; | ||
| + | } | ||
| + | |||
| + | ul { | ||
| + | list-style-type: square; | ||
| + | /* @embed */ | ||
| + | list-style-image: url(skins/monobook/bullet.gif); | ||
| + | } | ||
| + | |||
| + | input.historysubmit { | ||
| + | padding: 0 .3em .3em .3em !important; | ||
| + | font-size: 94%; | ||
| + | cursor: pointer; | ||
| + | height: 1.7em !important; | ||
| + | margin-left: 1.6em; | ||
| + | } | ||
| + | |||
| + | pre, .mw-code { | ||
| + | line-height: 1.1em; | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | ** the main content area | ||
| + | */ | ||
| + | |||
| + | #siteNotice { | ||
| + | font-size: 95%; | ||
| + | padding: 0 0.9em; | ||
| + | } | ||
| + | #localNotice { | ||
| + | margin: 0; | ||
| + | } | ||
| + | #siteNotice p { | ||
| + | margin: 0; | ||
| + | padding: 0; | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | ** classes for special content elements like town boxes | ||
| + | ** intended to be referenced directly from the wiki src | ||
| + | */ | ||
| + | |||
| + | /* | ||
| + | ** User styles | ||
| + | */ | ||
| + | /* table standards */ | ||
| + | table.rimage { | ||
| + | float: right; | ||
| + | position: relative; | ||
| + | margin-left: 1em; | ||
| + | margin-bottom: 1em; | ||
| + | text-align: center; | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | ** edit views etc | ||
| + | */ | ||
| + | .special li { | ||
| + | line-height: 1.4em; | ||
| + | margin: 0; | ||
| + | padding: 0; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* | ||
| + | ** Structural Elements | ||
| + | */ | ||
| + | |||
| + | /* | ||
| + | ** general portlet styles (elements in the quickbar) | ||
| + | */ | ||
| + | .portlet { | ||
| + | border: none; | ||
| + | margin: 0 0 .5em; | ||
| + | padding: 0; | ||
| + | float: none; | ||
| + | width: 11.6em; | ||
| + | overflow: hidden; | ||
| + | } | ||
| + | .portlet h3 { | ||
| + | background: transparent; | ||
| + | padding: 0 1em 0 .5em; | ||
| + | display: inline; | ||
| + | height: 1em; | ||
| + | text-transform: lowercase; | ||
| + | font-size: 91%; | ||
| + | font-weight: normal; | ||
| + | white-space: nowrap; | ||
| + | } | ||
| + | .pBody { | ||
| + | font-size: 95%; | ||
| + | background-color: white; | ||
| + | color: black; | ||
| + | border-collapse: collapse; | ||
| + | border: 1px solid #aaa; | ||
| + | padding: 0 .8em .3em .5em; | ||
| + | } | ||
| + | .portlet ul { | ||
| + | line-height: 1.5em; | ||
| + | font-size: 95%; | ||
| + | } | ||
| + | .portlet li { | ||
| + | padding: 0; | ||
| + | margin: 0; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* | ||
| + | ** the personal toolbar | ||
| + | */ | ||
| + | #p-personal { | ||
| + | position: absolute; | ||
| + | left: 0; | ||
| + | top: 0; | ||
| + | z-index: 0; | ||
| + | } | ||
| + | #p-personal { | ||
| + | width: 100%; | ||
| + | white-space: nowrap; | ||
| + | padding: 0; | ||
| + | margin: 0; | ||
| + | border: none; | ||
| + | background: none; | ||
| + | overflow: visible; | ||
| + | line-height: 1.2em; | ||
| + | } | ||
| + | #p-personal h3 { | ||
| + | display: none; | ||
| + | } | ||
| + | #p-personal .portlet, | ||
| + | #p-personal .pBody { | ||
| + | z-index: 0; | ||
| + | padding: 0; | ||
| + | margin: 0; | ||
| + | border: none; | ||
| + | overflow: visible; | ||
| + | background: none; | ||
| + | } | ||
| + | /* this is the ul contained in the portlet */ | ||
| + | #p-personal ul { | ||
| + | border: none; | ||
| + | line-height: 1.4em; | ||
| + | color: #bb6f02; | ||
| + | padding: 0 2em 0 3em; | ||
| + | margin: 0; | ||
| + | text-align: right; | ||
| + | list-style-type: none; | ||
| + | list-style-image: none; | ||
| + | z-index: 0; | ||
| + | background: none; | ||
| + | cursor: default; | ||
| + | } | ||
| + | #p-personal li { | ||
| + | z-index: 0; | ||
| + | border: none; | ||
| + | padding: 0; | ||
| + | display: inline; | ||
| + | color: #bb6f02; | ||
| + | margin-left: 1em; | ||
| + | line-height: 1.2em; | ||
| + | background: none; | ||
| + | } | ||
| + | #p-personal li a { | ||
| + | text-decoration: none; | ||
| + | color: #bb6f02; | ||
| + | padding-bottom: .2em; | ||
| + | background: none; | ||
| + | } | ||
| + | #p-personal li a:hover { | ||
| + | background-color: white; | ||
| + | padding-bottom: .2em; | ||
| + | text-decoration: none; | ||
| + | } | ||
| + | #p-personal li.active a:hover { | ||
| + | background-color: transparent; | ||
| + | } | ||
| + | /* the icon in front of the user name, single quotes | ||
| + | in bg url to hide it from iemac */ | ||
| + | li#pt-userpage, | ||
| + | li#pt-anonuserpage, | ||
| + | li#pt-login { | ||
| + | /* @embed */ | ||
| + | background: url(skins/monobook/user.gif) top left no-repeat; | ||
| + | padding-left: 20px; | ||
| + | text-transform: none; | ||
| + | } | ||
| + | #p-personal ul { | ||
| + | text-transform: lowercase; | ||
| + | } | ||
| + | #p-personal li.active { | ||
| + | font-weight: bold; | ||
| + | } | ||
| + | /* | ||
| + | ** the page-related actions- page/talk, edit etc | ||
| + | */ | ||
| + | #p-cactions { | ||
| + | position: absolute; | ||
| + | top: 1.3em; | ||
| + | left: 11.5em; | ||
| + | margin: 0; | ||
| + | white-space: nowrap; | ||
| + | width: 76%; | ||
| + | line-height: 1.1em; | ||
| + | overflow: visible; | ||
| + | background: none; | ||
| + | border-collapse: collapse; | ||
| + | padding-left: 1em; | ||
| + | font-size: 95%; | ||
| + | } | ||
| + | #p-cactions ul { | ||
| + | list-style-type: none; | ||
| + | list-style-image: none; | ||
| + | } | ||
| + | #p-cactions li { | ||
| + | display: inline; | ||
| + | border: 1px solid #aaa; | ||
| + | border-bottom: none; | ||
| + | padding: 0 0 .1em 0; | ||
| + | margin: 0 .3em 0 0; | ||
| + | overflow: visible; | ||
| + | background: white; | ||
| + | } | ||
| + | #p-cactions li.selected { | ||
| + | border-color: #fabd23; | ||
| + | padding: 0 0 .2em 0; | ||
| + | font-weight: bold; | ||
| + | } | ||
| + | #p-cactions li a { | ||
| + | background-color: #fbfbfb; | ||
| + | color: #D98409; | ||
| + | border: none; | ||
| + | padding: 0 .8em .3em; | ||
| + | position: relative; | ||
| + | z-index: 0; | ||
| + | margin: 0; | ||
| + | text-decoration: none; | ||
| + | } | ||
| + | #p-cactions li.selected a { | ||
| + | z-index: 3; | ||
| + | background-color: white; | ||
| + | } | ||
| + | #p-cactions .new a { | ||
| + | color: #ba0000; | ||
| + | } | ||
| + | #p-cactions li a:hover { | ||
| + | z-index: 3; | ||
| + | text-decoration: none; | ||
| + | background-color: white; | ||
| + | } | ||
| + | #p-cactions h3 { | ||
| + | display: none; | ||
| + | } | ||
| + | #p-cactions li.istalk { | ||
| + | margin-right: 0; | ||
| + | } | ||
| + | #p-cactions li.istalk a { | ||
| + | padding-right: .5em; | ||
| + | } | ||
| + | #p-cactions #ca-addsection a { | ||
| + | padding-left: .4em; | ||
| + | padding-right: .4em; | ||
| + | } | ||
Nuvarande version från 29 januari 2015 kl. 14.10
/** CSS som skrivs här nedan påverkar alla skal **/
body.page-Huvudsida h1.firstHeading { display:none; }
body {
font: x-small sans-serif;
/* @embed */
background: #f0f0f0 url(skins/MonoBook/headbg.jpg) 0 0 no-repeat;
color: black;
margin: 0;
padding: 0;
direction: ltr; /* Needed for RTL flipping */
unicode-bidi: embed;
}
/* scale back up to a sane default */
div#globalWrapper {
font-size: 127%;
width: 100%;
margin: 0;
padding: 0;
}
/* general styles */
a {
color: #D98409;
}
a:visited {
color: #A27216;
}
a.new,
#p-personal a.new {
color: #EF2121;
}
ul {
list-style-type: square;
/* @embed */
list-style-image: url(skins/monobook/bullet.gif);
}
input.historysubmit {
padding: 0 .3em .3em .3em !important;
font-size: 94%;
cursor: pointer;
height: 1.7em !important;
margin-left: 1.6em;
}
pre, .mw-code {
line-height: 1.1em;
}
/*
** the main content area
*/
#siteNotice {
font-size: 95%;
padding: 0 0.9em;
}
#localNotice {
margin: 0;
}
#siteNotice p {
margin: 0;
padding: 0;
}
/*
** classes for special content elements like town boxes
** intended to be referenced directly from the wiki src
*/
/*
** User styles
*/
/* table standards */
table.rimage {
float: right;
position: relative;
margin-left: 1em;
margin-bottom: 1em;
text-align: center;
}
/*
** edit views etc
*/
.special li {
line-height: 1.4em;
margin: 0;
padding: 0;
}
/*
** Structural Elements
*/
/*
** general portlet styles (elements in the quickbar)
*/
.portlet {
border: none;
margin: 0 0 .5em;
padding: 0;
float: none;
width: 11.6em;
overflow: hidden;
}
.portlet h3 {
background: transparent;
padding: 0 1em 0 .5em;
display: inline;
height: 1em;
text-transform: lowercase;
font-size: 91%;
font-weight: normal;
white-space: nowrap;
}
.pBody {
font-size: 95%;
background-color: white;
color: black;
border-collapse: collapse;
border: 1px solid #aaa;
padding: 0 .8em .3em .5em;
}
.portlet ul {
line-height: 1.5em;
font-size: 95%;
}
.portlet li {
padding: 0;
margin: 0;
}
/*
** the personal toolbar
*/
#p-personal {
position: absolute;
left: 0;
top: 0;
z-index: 0;
}
#p-personal {
width: 100%;
white-space: nowrap;
padding: 0;
margin: 0;
border: none;
background: none;
overflow: visible;
line-height: 1.2em;
}
#p-personal h3 {
display: none;
}
#p-personal .portlet,
#p-personal .pBody {
z-index: 0;
padding: 0;
margin: 0;
border: none;
overflow: visible;
background: none;
}
/* this is the ul contained in the portlet */
#p-personal ul {
border: none;
line-height: 1.4em;
color: #bb6f02;
padding: 0 2em 0 3em;
margin: 0;
text-align: right;
list-style-type: none;
list-style-image: none;
z-index: 0;
background: none;
cursor: default;
}
#p-personal li {
z-index: 0;
border: none;
padding: 0;
display: inline;
color: #bb6f02;
margin-left: 1em;
line-height: 1.2em;
background: none;
}
#p-personal li a {
text-decoration: none;
color: #bb6f02;
padding-bottom: .2em;
background: none;
}
#p-personal li a:hover {
background-color: white;
padding-bottom: .2em;
text-decoration: none;
}
#p-personal li.active a:hover {
background-color: transparent;
}
/* the icon in front of the user name, single quotes
in bg url to hide it from iemac */
li#pt-userpage,
li#pt-anonuserpage,
li#pt-login {
/* @embed */
background: url(skins/monobook/user.gif) top left no-repeat;
padding-left: 20px;
text-transform: none;
}
#p-personal ul {
text-transform: lowercase;
}
#p-personal li.active {
font-weight: bold;
}
/*
** the page-related actions- page/talk, edit etc
*/
#p-cactions {
position: absolute;
top: 1.3em;
left: 11.5em;
margin: 0;
white-space: nowrap;
width: 76%;
line-height: 1.1em;
overflow: visible;
background: none;
border-collapse: collapse;
padding-left: 1em;
font-size: 95%;
}
#p-cactions ul {
list-style-type: none;
list-style-image: none;
}
#p-cactions li {
display: inline;
border: 1px solid #aaa;
border-bottom: none;
padding: 0 0 .1em 0;
margin: 0 .3em 0 0;
overflow: visible;
background: white;
}
#p-cactions li.selected {
border-color: #fabd23;
padding: 0 0 .2em 0;
font-weight: bold;
}
#p-cactions li a {
background-color: #fbfbfb;
color: #D98409;
border: none;
padding: 0 .8em .3em;
position: relative;
z-index: 0;
margin: 0;
text-decoration: none;
}
#p-cactions li.selected a {
z-index: 3;
background-color: white;
}
#p-cactions .new a {
color: #ba0000;
}
#p-cactions li a:hover {
z-index: 3;
text-decoration: none;
background-color: white;
}
#p-cactions h3 {
display: none;
}
#p-cactions li.istalk {
margin-right: 0;
}
#p-cactions li.istalk a {
padding-right: .5em;
}
#p-cactions #ca-addsection a {
padding-left: .4em;
padding-right: .4em;
}