Skip to content

Commit

Permalink
refactor(core): ♻️ clean up redundant styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Apr 24, 2024
1 parent 30ee7c1 commit 755f42e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 7 additions & 5 deletions resources/skins.citizen.styles/components/Header.less
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@
background-color: var( --background-color-primary--active );
}
}

// Hide header menu labels
.citizen-menu__heading {
.mixin-screen-reader-text;
}
}

&__start,
Expand Down Expand Up @@ -137,6 +132,13 @@
}
}

#p-personal {
// Hide header menu labels
.citizen-menu__heading {
.mixin-screen-reader-text;
}
}

// Reset hover styles if it is a touch device
// This is dumb but hover:hover overrides active states
@media ( hover: none ) {
Expand Down
2 changes: 2 additions & 0 deletions resources/skins.citizen.styles/components/Menu.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.citizen-menu {
font-size: var( --font-size-small );

&__heading {
display: block;
padding: var( --space-xs ) var( --space-md );
Expand Down
3 changes: 0 additions & 3 deletions resources/skins.citizen.styles/components/Pagetools.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
display: flex;
gap: var( --space-xxs );
margin-left: -0.75rem; // Align to the margin
font-size: var( --font-size-small );
font-weight: var( --font-weight-medium );

// TODO: Merge this with header__item
&__item {
Expand Down Expand Up @@ -46,7 +44,6 @@
padding: var( --space-xs ) 0;
margin: var( --space-xs );
overflow: auto;
font-size: var( --font-size-small );
.citizen-card;
.citizen-card-hide( top right );
.citizen-card-transition();
Expand Down
1 change: 0 additions & 1 deletion resources/skins.citizen.styles/components/Usermenu.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.citizen-userMenu {
&__card {
font-size: var( --font-size-small );
.citizen-header-card( right );
}

Expand Down

0 comments on commit 755f42e

Please sign in to comment.