Skip to content

Commit

Permalink
feat(FilterButtons): Adding new filter styles (#4351)
Browse files Browse the repository at this point in the history
* Adding dota2 filter styles

* Fixing pipeline

* Chaging color variable

* Move to rem unit

* Fixing hover

* Fixing pipeline

* Fixing pipeline
  • Loading branch information
KilMer56 committed Jun 19, 2024
1 parent 193c5a7 commit 29697bc
Showing 1 changed file with 59 additions and 1 deletion.
60 changes: 59 additions & 1 deletion stylesheets/commons/FilterButtons.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*******************************************************************************
Template(s): Filter buttons
Author(s): Elysienna
Author(s): Elysienna, Nadox
*******************************************************************************/
.filter-category--hidden {
clip: rect( 0 0 0 0 );
Expand Down Expand Up @@ -58,6 +58,64 @@ Author(s): Elysienna
animation-duration: 0.8s;
}

.dota2-test {
.filter-button {
display: flex;
align-items: center;
border-radius: 0.5rem;
padding: 0 0.75rem;
font-weight: bold;
flex-grow: initial;
position: relative;
border: 0;
min-height: 2rem;
color: #3366cc;
font-size: 0.875rem;

.theme--light & {
color: var( --clr-wiki-theme-primary );
}

.theme--dark & {
color: #ffffff;
}

&:not( .is--active )::after {
content: "";
opacity: 0.12;
position: absolute;
inset: 0;
z-index: -1;
border-radius: 0.5rem;
background-color: #c1cee8;

.theme--light & {
background-color: var( --clr-wiki-theme-primary );
}

.theme--dark & {
background-color: #ffffff;
}
}

@media ( hover: hover ) {
&:hover {
color: #ffffff;
background-color: var( --clr-wiki-theme-primary, #1f3d7a );

&::after {
opacity: 0.24;
}
}
}

&.filter-button--active {
background-color: var( --clr-wiki-theme-primary, #1f3d7a );
color: #ffffff;
}
}
}

/* Keyframes filter effects */

@keyframes fadeIn {
Expand Down

0 comments on commit 29697bc

Please sign in to comment.