refactor(core): ♻️ various cleanup

This commit is contained in:
alistair3149 2024-05-27 23:18:13 -04:00
parent f74e3d2f6a
commit 87a8bf256e
No known key found for this signature in database
5 changed files with 5 additions and 19 deletions

View file

@ -204,12 +204,9 @@
width: auto;
height: auto;
pointer-events: none;
visibility: hidden;
content: '';
background-color: var( --background-color-overlay );
opacity: 0;
transition: var( --transition-menu );
transition-property: opacity;
}
}
@ -219,8 +216,9 @@
&::before {
pointer-events: auto;
visibility: visible;
opacity: 1;
transition: var( --transition-menu );
transition-property: opacity;
}
}
}

View file

@ -228,19 +228,16 @@
box-shadow: var( --box-shadow-dialog );
.citizen-scroll--down & {
visibility: hidden;
box-shadow: none;
opacity: 0;
transform: translateY( 250% );
}
.citizen-scroll--up & {
// Only apply transition on showing because of flickering issue
visibility: visible;
opacity: 1;
transition: var( --transition-menu );
transition-delay: 250ms;
transition-property: opacity, visibility, transform;
transition-property: opacity, transform;
}
:not( .page-actions__card ) .mw-list-item {

View file

@ -33,7 +33,6 @@
height: 0;
padding-top: 0;
padding-bottom: 0;
visibility: hidden;
opacity: 0;
transition-property: opacity, height, padding;
}
@ -94,7 +93,6 @@
height: 2rem; // 1rem text + 1rem padding
padding-top: var( --space-xs );
padding-bottom: var( --space-xs );
visibility: visible;
opacity: 1;
}
}

View file

@ -52,10 +52,3 @@
}
}
}
// Checkbox hack
#citizen-userMenu__checkbox:checked {
~ .citizen-userMenu__card {
.citizen-card-show();
}
}

View file

@ -199,8 +199,8 @@
@border-radius--circle: 100%;
/* Transitions */
@transition-hover: 150ms cubic-bezier( 0.215,0.61,0.355,1 );
@transition-menu: 250ms ease;
@transition-hover: 150ms cubic-bezier( 0.215, 0.61, 0.355, 1 );
@transition-menu: 250ms cubic-bezier( 0.4, 0, 0.2, 1 );
/* Shadow */
/* Box shadow */