Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
add directory facet and section search css
Browse files Browse the repository at this point in the history
  • Loading branch information
B77Mills committed Aug 22, 2022
1 parent 4a6ade3 commit 0d9a0e3
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
.directory-facets-toggle {
display: flex;
padding: 20px;
margin-bottom: map-get($spacers, block);
background-color: #f1f1f1;
&__label {
align-self: center;
}

&__button {
@include theme-toggle-button();
align-self: center;
margin-left: auto;
}
}

.directory-facets,
.directory-country-facets,
.content-type-facets {
@include theme-card();
$color: $gray-200;
$self: &;

&--open {
display: block;
}

&__title {
@include theme-card-header();
@include border-top-radius($theme-item-list-border-radius);
padding: $marko-web-node-list-padding;
margin-bottom: 0;
line-height: $line-height-base;
&:empty {
display: none;
}

}

&__list {
display: flex;
flex-direction: column;
max-height: 600px;
padding: 0;
overflow: scroll;
#{ $self } {
&__list {
display: none;
max-height: 100%;
padding: $marko-web-node-list-padding;
padding-bottom: 0;
overflow: initial;
}
}
}

&__link {
position: relative;
display: inline;
color: #333;
&:hover {
color: #333;
text-decoration: underline;
}
&--active {
font-weight: 700;
color: $primary;
}
}

&__item {
position: relative;
display: block;
padding: ($marko-web-node-list-padding / 2);
font-size: 18px;
line-height: 1.25;
&--open {
> #{ $self } {
&__list {
display: flex;
}
}
}
}

&__toggle {
@include theme-toggle-button();
position: absolute;
top: .5rem;
right: .75rem;
padding: 0;
margin-left: auto;

& > .icon {
@include theme-navbar-link-color(( active: $primary, hover: $primary, default: $black ));
}
}
}

.directory-country-facets {
&__list {
max-height: 200px;
}
}

.breadcrumbs {
&--directory {
.breadcrumb {
padding-bottom: 16px;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.section-search {
position: relative;
&__title {
margin-bottom: 18px;
font-size: 18px;
font-weight: 800;
text-transform: uppercase;
}
.form-control {
display: block;
width: 100%;
height: calc(1.5em + .75rem + 2px);
padding: .375rem .75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0;
outline: none;
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
&:focus {
border-color: #ebebeb;
box-shadow: none;
}
}
.list-group {
@include box-shadow($theme-card-box-shadow);
position: absolute;
z-index: 2;
width: 100%;
max-height: 10em;
padding: map-get($spacers, 2);
overflow: scroll;
background: $white;
border: 1px solid #ebebeb;
}
}

0 comments on commit 0d9a0e3

Please sign in to comment.