Template:Documentation/styles.css: Difference between revisions
Appearance
m Stevium moved page MediaWiki:Documentation.css to Template:Documentation/styles.css without leaving a redirect: Changing how the Documentation stylesheet is loaded: now uses TemplateStyles instead of @import |
Updated |
||
| Line 1: | Line 1: | ||
.template-documentation { | .template-documentation { | ||
overflow: hidden; | overflow: hidden; | ||
| Line 19: | Line 18: | ||
.template-documentation .template-documentation-langs { | .template-documentation .template-documentation-langs { | ||
background-color: | background-color: var(--background-color-2); | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
| Line 51: | Line 49: | ||
border: none; | border: none; | ||
border-spacing: 5px; | border-spacing: 5px; | ||
} | } | ||
| Line 64: | Line 57: | ||
.doctable tr.links td a, | .doctable tr.links td a, | ||
.doctable tr.links td .mw-selflink { | .doctable tr.links td .mw-selflink { | ||
padding: | padding: 0.25em; | ||
display: block; | display: block; | ||
font-size: 1rem; | font-size: 1rem; | ||
| Line 71: | Line 64: | ||
transition: 0.1s; | transition: 0.1s; | ||
border-radius: 10px; | border-radius: 10px; | ||
margin-top: | margin-top: 0.25em; | ||
. | |||
background-color: var(--background-color-2); | background-color: var(--background-color-2); | ||
color: var(-- | color: var(--color-base); | ||
font-weight: 700; | font-weight: 700; | ||
/* hide external link icon */ | |||
background-image: none; | |||
} | } | ||
.doctable tr.links td a:hover, | .doctable tr.links td a:hover, | ||
.doctable tr.links td .mw-selflink { | .doctable tr.links td .mw-selflink { | ||
background-color: var(-- | background-color: var(--color-accent); | ||
color: var(--color- | color: var(--color-accent-text); | ||
} | } | ||
/* | /* Buttons */ | ||
.template-documentation-header #doc_editlinks { | .template-documentation-header #doc_editlinks { | ||
color: transparent; | color: transparent; | ||
a { | a { | ||
color: var(--color-base); | color: var(--color-base); | ||
background-color: var(--background-color-4) !important; | background-color: var(--background-color-4) !important; | ||
padding: 2px 8px !important; | padding: 2px 8px !important; | ||
border-radius: 10px !important; | border-radius: 10px !important; | ||
} | } | ||
a:hover { | a:hover { | ||
text-decoration: none; | |||
background-color: var(--background-color- | background-color: var(--background-color-5) !important; | ||
} | } | ||
a:not(:last-child) { | a:not(:last-child) { | ||
margin-right: -5px; | margin-right: -5px; | ||
} | } | ||
} | } | ||
Revision as of 13:42, 25 November 2025
.template-documentation {
overflow: hidden;
}
.template-documentation .template-documentation-header,
.template-documentation .template-documentation-footer,
.doctable th.doc-header {
padding: 1em;
background-color: var(--background-color-2);
border: 1px solid var(--border-color-subtle);
border-radius: 10px;
}
.template-documentation .template-documentation-footer {
font-size: 100%;
text-align: right;
}
.template-documentation .template-documentation-langs {
background-color: var(--background-color-2);
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
padding-bottom: 0.5em;
}
.template-documentation .template-documentation-langs li {
margin: 0 0 0 1em;
padding: 0.5em 0 0;
}
.template-documentation .template-documentation-langs li.selected {
order: -1;
}
.template-documentation .template-documentation-langs li.selected a {
color: black;
font-weight: bold;
}
.template-documentation .template-documentation-content {
overflow-y: auto;
padding: 1em;
}
.doctable {
border: none;
border-spacing: 5px;
}
.doctable tr.links td {
padding: 0;
}
.doctable tr.links td a,
.doctable tr.links td .mw-selflink {
padding: 0.25em;
display: block;
font-size: 1rem;
text-align: center;
text-decoration: none;
transition: 0.1s;
border-radius: 10px;
margin-top: 0.25em;
background-color: var(--background-color-2);
color: var(--color-base);
font-weight: 700;
/* hide external link icon */
background-image: none;
}
.doctable tr.links td a:hover,
.doctable tr.links td .mw-selflink {
background-color: var(--color-accent);
color: var(--color-accent-text);
}
/* Buttons */
.template-documentation-header #doc_editlinks {
color: transparent;
a {
color: var(--color-base);
background-color: var(--background-color-4) !important;
padding: 2px 8px !important;
border-radius: 10px !important;
}
a:hover {
text-decoration: none;
background-color: var(--background-color-5) !important;
}
a:not(:last-child) {
margin-right: -5px;
}
}