Skip to content

Commit

Permalink
UPD: themes filters CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
MjHead committed Aug 16, 2017
1 parent 9a0877d commit 2d19559
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/css/wapu-core.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions assets/scss/wapu-core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,22 @@
}
.theme-filters {
display: flex;
&__back {
display: none;
}
}
.filters-mobile-trigger {
display: none;
}

.theme-filter {
position: relative;
&__item {
display: block;
}
&__back {
display: none;
}
&__terms {
position: absolute;
top: -999em;
Expand All @@ -118,13 +128,61 @@
background: #fff;
padding: 20px;
columns: 3;
z-index: 999;
&.visible-filter {
visibility: visible;
top: 100%;
}
}
}

.filters-wrap.filters-mobile {
.filters-mobile-trigger {
display: block;
}
.theme-filters {
position: fixed;
left: -999em;
top: 0;
bottom: 0;
overflow: auto;
flex-direction: column;
z-index: 999;
transition: transform 300ms linear;
transform: translateX(50%);
&.visible-filters {
left: 0;
right: 0;
transform: translateX(0);
}
&__back {
display: block;
}
.theme-filter__terms {
position: fixed;
top: 0;
bottom: 0;
overflow: auto;
left: -999em;
transition: transform 300ms linear;
visibility: visible;
transform: translateX(50%);
width: auto;
columns: unset;
&.visible-filter {
top: 0;
left: 0;
right: 0;
transform: translateX(0);
}
}
.theme-filter__back {
display: block;
}
}

}

.faq {
&-post {
&__title {
Expand Down
2 changes: 1 addition & 1 deletion wapu-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ public function register_assets() {
$this->get_core()->init_module(
'cherry5-assets-loader',
array(
'css' => array( 'wapu-core', 'nucleo-outline' ),
'css' => array( 'nucleo-outline' ),
)
);
}
Expand Down

0 comments on commit 2d19559

Please sign in to comment.