MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
HordGrylls (talk | contribs) (And this bullshit.) |
HordGrylls (talk | contribs) No edit summary |
||
| Line 171: | Line 171: | ||
} | } | ||
/* Style for the icon */ | |||
.link-icon { | .link-icon { | ||
margin- | margin-right: 5px; /* Space between the icon and text */ | ||
width: 16px; | width: 16px; | ||
height: 16px; | height: 16px; | ||
cursor: pointer; | cursor: pointer; | ||
vertical-align: text | vertical-align: middle; /* Align with the text */ | ||
opacity: 0.7; | opacity: 0.7; | ||
transition: opacity 0.2s ease; | transition: opacity 0.2s ease-in-out; | ||
} | } | ||
.link-icon:hover { | .link-icon:hover { | ||
opacity: 1; | opacity: 1; | ||
} | |||
/* Style for the popover (initially hidden) */ | |||
.link-popover { | |||
position: absolute; | |||
background-color: #f9f9f9; | |||
border: 1px solid #ddd; | |||
padding: 5px; | |||
font-size: 12px; | |||
color: #333; | |||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); | |||
display: none; | |||
z-index: 999; | |||
} | |||
/* Positioning the popover */ | |||
.link-popover { | |||
margin-left: 20px; /* Position the popover next to the icon */ | |||
margin-top: -5px; /* Small offset to match the link text */ | |||
width: max-content; | |||
} | } | ||
Revision as of 22:03, 25 July 2025
/* Global settings applied to all skins */
/* Infobox template style */
.infobox {
border: 1px solid #aaa;
background-color: #orange; /* Consider using a more specific color code */
color: black;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
float: right;
clear: right;
}
.infobox td, .infobox th {
vertical-align: top;
}
.infobox caption {
font-size: larger;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td, .infobox.bordered th {
border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
.infobox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
}
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #aaa;
border-right: 1px solid #aaa;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
border: 0;
border-right: 1px solid #aaa;
}
.infobox.geography {
text-align: left;
border-collapse: collapse;
line-height: 1.2em;
font-size: 90%;
}
.infobox.geography td,
.infobox.geography th {
border-top: solid 1px #aaa;
padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
border-top: solid 1px #aaa;
padding: 0.4em 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
border-top: 0;
border-bottom: solid 1px #aaa;
padding: 0 0.6em 0.4em 0.6em;
}
.infobox.geography .maptable td,
.infobox.geography .maptable th {
border: 0;
padding: 0;
}
/* Navbox Styles */
table.navbox {
border: 1px solid #aaa;
width: 100%;
margin: auto;
clear: both;
font-size: 85%; /* Slightly smaller text */
text-align: center;
padding: 1px; /* Minimal padding */
background: #F9EFE6;
border-spacing: 0; /* No spacing between borders */
border-collapse: collapse; /* Collapse borders */
}
table.navbox + table.navbox {
margin-top: -1px; /* Adjust if needed to reduce space */
}
.navbox-title, .navbox-abovebelow, table.navbox th, .navbox-group,
.navbox, .navbox-subgroup, .navbox-list, .navbox-even {
padding: 2px 10px; /* Reduced padding */
line-height: 1.1; /* Reduced line height for less vertical space */
}
.navbox-group {
white-space: nowrap;
text-align: right;
font-weight: bold;
padding-left: 1em;
padding-right: 1em;
background: #FAD9C1;
}
.navbox, .navbox-subgroup {
background: #F9EFE6;
}
.navbox-list {
border-color: #F9EFE6;
}
.navbox-title {
background: #F7E2D2;
}
.navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title {
background: #FAD9C1;
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
background: #FCEDE5;
}
.navbox-even {
background: #F9EFE6;
}
.navbox-odd {
background: transparent;
}
.collapseButton { /* 'show'/'hide' buttons style */
float: right;
font-weight: normal;
text-align: right;
width: auto;
}
.navbox .collapseButton { /* Specific style for navbox collapse buttons */
width: 6em;
}
/* Style for the icon */
.link-icon {
margin-right: 5px; /* Space between the icon and text */
width: 16px;
height: 16px;
cursor: pointer;
vertical-align: middle; /* Align with the text */
opacity: 0.7;
transition: opacity 0.2s ease-in-out;
}
.link-icon:hover {
opacity: 1;
}
/* Style for the popover (initially hidden) */
.link-popover {
position: absolute;
background-color: #f9f9f9;
border: 1px solid #ddd;
padding: 5px;
font-size: 12px;
color: #333;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
display: none;
z-index: 999;
}
/* Positioning the popover */
.link-popover {
margin-left: 20px; /* Position the popover next to the icon */
margin-top: -5px; /* Small offset to match the link text */
width: max-content;
}