Skip to content

Instantly share code, notes, and snippets.

@tdrayson
Created October 27, 2020 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdrayson/22acf363fbe8ff2005c57b57471bf17f to your computer and use it in GitHub Desktop.
Save tdrayson/22acf363fbe8ff2005c57b57471bf17f to your computer and use it in GitHub Desktop.
.wp-grid-builder .wpgb-sidebar {
position: sticky;
flex-basis: 50%;
height: 100vh;
top: 0;
}
.wp-grid-builder .wpgb-main {
overflow: hidden;
padding: 3em 4em;
}
.wp-grid-builder .wpgb-sidebar .wpgb-facet,.wp-grid-builder .wpgb-sidebar .wpgb-facet fieldset,.wp-grid-builder .wpgb-sidebar .wpgb-facet .wpgb-map-facet {
height: 100%;
}
.wp-grid-builder .wpgb-area-top-2 .wpgb-facet fieldset {
margin-bottom: 16px;
}
.wp-grid-builder .wpgb-area-top-2 .wpgb-facet .wpgb-facet-title {
margin-bottom: 8px;
}
.wpgb-result-count {
color: #2a2a2a;
font-size: calc(32em / 18);
font-weight: 600;
line-height: 1;
}
.wp-grid-builder .wpgb-card.wpgb-no-result > div {
padding: 0;
color: #2a2a2a;
font-size: calc(1.77778em);
}
.leaflet-top.leaflet-right {
position: absolute;
top: 0;
right: 0;
margin: 24px;
}
.leaflet-top.leaflet-right .leaflet-control-zoom {
margin: 0;
border: none;
border-radius: 8px;
box-shadow: rgba(0,0,0,0.16) 4px 0 24px,rgba(0,0,0,0.04) 0 0 0 1px;
}
.leaflet-top.leaflet-right .leaflet-control-zoom > a {
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 40px;
width: 40px;
border-radius: 8px 8px 0 0;
border-width: 2px;
border-color: transparent;
color: rgb(44,44,44);
font-size: 30px;
font-weight: 400;
}
.leaflet-top.leaflet-right .leaflet-control-zoom > a:first-child:after {
content: "";
position: absolute;
bottom: -2px;
height: 1px;
width: 80%;
margin: 0 auto;
background: rgb(0,0,0);
opacity: .1;
}
.leaflet-top.leaflet-right .leaflet-control-zoom > a:last-child {
border-radius: 0 0 8px 8px;
}
.leaflet-popup-content-wrapper {
box-shadow: rgba(0,0,0,0.16) 4px 0 24px,rgba(0,0,0,0.04) 0 0 0 1px;
}
.leaflet-container a.leaflet-popup-close-button {
display: none;
}
@media screen and (max-width: 1680px) {
.wp-grid-builder .wpgb-area-top-2 > div,.wp-grid-builder .wpgb-area-top-1 > div {
flex: 0 0 50%;
max-width: 50%;
}
}
@media screen and (min-width: 1181px) {
.wp-grid-builder .wpgb-sidebar .wpgb-facet .wpgb-map-facet {
padding-bottom: 0!important;
}
}
@media screen and (max-width: 1180px) {
.wp-grid-builder .wpgb-wrapper {
-ms-flex-direction: row;
flex-direction: row;
}
.wp-grid-builder .wpgb-main {
order: 1;
}
.wp-grid-builder .wpgb-sidebar {
position: relative;
flex-basis: 100%;
order: 0;
height: auto;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
}
}
@media screen and (max-width: 767px) {
.wp-grid-builder .wpgb-area-top-1>div,.wp-grid-builder .wpgb-area-top-2>div {
flex-basis: 100%;
max-width: 100%;
}
.wp-grid-builder .wpgb-area-top-2 .wpgb-facet fieldset {
margin-bottom: 0;
}
}
@media screen and (min-width: 993px){
.wpgb-facet .wpgb-map-facet {
padding-bottom: 0 !important;
height: 100vh;
}}
@media screen and (max-width: 992px){
.wpgb-facet .wpgb-map-facet {
padding-bottom: 0 !important;
height: 50vh;
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment