Skip to content

Commit

Permalink
refactor(core): ♻️ simplify heading icon styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed May 6, 2024
1 parent 5d59a6d commit de315b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions resources/skins.citizen.styles/components/Sections.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
display: none;
}

.citizen-section-heading,
.mw-editsection {
--size-icon: 1.125rem;
}

.citizen-sections-enabled {
.citizen-section {
&-heading {
Expand Down Expand Up @@ -44,8 +49,8 @@
&-indicator {
display: block;
order: -2;
width: 1rem;
height: 1rem;
width: var( --size-icon );
height: var( --size-icon );
margin-right: var( --space-sm );
cursor: pointer;
transition: var( --transition-hover );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
&::before {
.resource-loader-icon;
display: block;
background-size: 1.125rem;
background-size: var( --size-icon );
}

&:hover {
Expand Down

0 comments on commit de315b2

Please sign in to comment.