mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-15 02:24:04 +00:00
refactor: simplify unnessecary selectors
This commit is contained in:
parent
b9b795ff11
commit
7e068dd4b1
|
@ -55,6 +55,11 @@
|
|||
&-subheading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
// Right-align the editsection
|
||||
.mw-headline {
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&-collapsible {
|
||||
|
|
|
@ -15,54 +15,7 @@
|
|||
color: var( --color-base--subtle );
|
||||
}
|
||||
|
||||
#mw-content-text {
|
||||
.mw-parser-output {
|
||||
& > h1,
|
||||
& > h2,
|
||||
& > h3,
|
||||
& > h4,
|
||||
& > h5,
|
||||
& > h6 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.mw-editsection {
|
||||
display: flex;
|
||||
margin-left: auto;
|
||||
|
||||
a {
|
||||
.resource-loader-icon-link-small;
|
||||
padding: @margin-side / 4;
|
||||
background: 0 !important; // Cancel above styles
|
||||
opacity: var( --opacity-icon-base );
|
||||
text-indent: -9999px; // Hide text
|
||||
transition: @transition-opacity-quick;
|
||||
|
||||
&:before {
|
||||
.resource-loader-icon;
|
||||
display: block;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
opacity: var( --opacity-icon-base--hover );
|
||||
}
|
||||
|
||||
&:active {
|
||||
opacity: var( --opacity-icon-base--active );
|
||||
}
|
||||
}
|
||||
|
||||
> span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.citizen-body,
|
||||
.mw-body-content {
|
||||
.citizen-body {
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
|
@ -128,6 +81,39 @@
|
|||
transition: @transition-transform-quick;
|
||||
}
|
||||
}
|
||||
|
||||
.mw-editsection {
|
||||
display: flex;
|
||||
margin-left: 4px;
|
||||
float: right; // Can't target the container so have to use to float
|
||||
|
||||
a {
|
||||
.resource-loader-icon-link-small;
|
||||
padding: @margin-side / 4;
|
||||
background: 0 !important; // Cancel above styles
|
||||
opacity: var( --opacity-icon-base );
|
||||
text-indent: -9999px; // Hide text
|
||||
transition: @transition-opacity-quick;
|
||||
|
||||
&:before {
|
||||
.resource-loader-icon;
|
||||
display: block;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
opacity: var( --opacity-icon-base--hover );
|
||||
}
|
||||
|
||||
&:active {
|
||||
opacity: var( --opacity-icon-base--active );
|
||||
}
|
||||
}
|
||||
|
||||
> span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.center {
|
||||
|
|
Loading…
Reference in a new issue