Skip to content
Snippets Groups Projects
Commit ad0c18af authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Compile and port minor facet style improvements.

parent 9b2a383c
Branches
Tags
No related merge requests found
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -304,3 +304,12 @@ body.rtl { ...@@ -304,3 +304,12 @@ body.rtl {
font-size: inherit; font-size: inherit;
font-style: italic; font-style: italic;
} }
/* ------ TOP FACETS ------ */
@media (min-width: 768px) {
.top-title .fa { display: none; }
.top-facets .collapse {
display: block;
height: auto !important;
}
}
.facet-group { .facet-group {
display: block; display: block;
margin-bottom: 1rem; margin-bottom: 1rem;
padding-left: 0;
.facet, .facet,
.title { .title {
display: block; display: block;
padding: 8px 15px; padding: 8px 15px;
line-height: 1.5rem; line-height: 1.5rem;
width: 100%;
text-align: left;
background-color: transparent;
.badge, .badge,
.status { .status {
...@@ -86,7 +90,6 @@ ...@@ -86,7 +90,6 @@
.active-filters .facet, .active-filters .facet,
.facet-group .active { .facet-group .active {
padding-right: .65rem;
background-color: $brand-primary; background-color: $brand-primary;
color: #fff; color: #fff;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -151,8 +151,8 @@ ...@@ -151,8 +151,8 @@
@include full-width(); @include full-width();
@include clearfix(); @include clearfix();
position: relative; position: relative;
padding: 6rem 3rem; padding: 1rem;
padding-left: calc(50vw - 50%); // Align searchbox with container padding-bottom: 2rem;
background-color: $header-bg; background-color: $header-bg;
background-image: url('../../sandal/images/forest.jpg'); background-image: url('../../sandal/images/forest.jpg');
background-repeat: no-repeat; background-repeat: no-repeat;
...@@ -164,12 +164,30 @@ ...@@ -164,12 +164,30 @@
color: $white; color: $white;
text-shadow: 0 1px 0 $black; text-shadow: 0 1px 0 $black;
} }
@media (min-width: 768px) {
height: 300px;
padding: 7rem 3rem;
padding-left: calc(50vw - 50% + .5rem); // Align searchbox with container
}
} }
.searchHomeContent::before { .searchHomeContent::after {
position: absolute; position: absolute;
top: 0; bottom: 0;
left: 0; left: 0;
background-color: rgba(255,255,255,.5); display: block;
width: 100%;
padding: .25rem .5rem;
padding-left: 1rem;
font-size: 10px;
color: #fff;
background-color: rgba(0,0,0,.3);
content: "Photo by Paul Gilmore on Unsplash";
@media (min-width: 768px) {
left: auto;
right: calc(50% - 50vw + .5rem);
width: auto;
padding-left: .5rem;
}
} }
.template-dir-search.template-name-home .breadcrumbs { border: 0; } .template-dir-search.template-name-home .breadcrumbs { border: 0; }
.home-facet h2 { margin-top: 1rem; } .home-facet h2 { margin-top: 1rem; }
......
...@@ -13,6 +13,10 @@ $result-sm-icon-size: 1.5rem !default; ...@@ -13,6 +13,10 @@ $result-sm-icon-size: 1.5rem !default;
@mixin full-width(){ // Break out of the container @mixin full-width(){ // Break out of the container
margin-right: calc(50% - 50vw + .5rem); // .5rem seems to be the margin of error in Chrome margin-right: calc(50% - 50vw + .5rem); // .5rem seems to be the margin of error in Chrome
margin-left: calc(50% - 50vw + .5rem); margin-left: calc(50% - 50vw + .5rem);
@media (min-width: 992px) {
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
}
} }
@mixin background-image($file){ @mixin background-image($file){
background-image: url("#{$img-path}#{$file}"); background-image: url("#{$img-path}#{$file}");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment