forked from geolba/tethys.frontend
- search page styling
This commit is contained in:
parent
fafa254851
commit
c5778f1356
|
@ -443,6 +443,35 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// search banner
|
||||||
|
.banner {
|
||||||
|
background-image: url(./../../assets/site/img/main-search-banner.jpg);
|
||||||
|
background-size: cover;
|
||||||
|
background-position-x: center;
|
||||||
|
background-position-y: 25%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 6.2em 0 6.2em 0;
|
||||||
|
min-height: 400px;
|
||||||
|
width: 100%;
|
||||||
|
/* display: flex;
|
||||||
|
flex-direction: column; */
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mz-5 {
|
||||||
|
margin-bottom: 1.5 rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 576px) {
|
||||||
|
.banner {
|
||||||
|
align-items: flex-start;
|
||||||
|
height: 400px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (max-width: 580px) {
|
@media only screen and (max-width: 580px) {
|
||||||
.mobile-space {
|
.mobile-space {
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="content column is-half is-offset-one-quarter" style="margin-top: 30px; padding-bottom: 0; margin-bottom: 0px">
|
<!-- <div class="content column is-half is-offset-one-quarter" style="margin-top: 30px; padding-bottom: 0; margin-bottom: 0px"> -->
|
||||||
<div class="field has-addons">
|
<div class="column is-two-thirds-tablet is-half-desktop is-one-third-widescreen mx-auto">
|
||||||
|
<div class="search-box mx-auto">
|
||||||
|
<div class="field has-addons main-search-from-bg">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<input
|
<input
|
||||||
v-on:input="searchChanged"
|
v-on:input="searchChanged"
|
||||||
|
@ -23,12 +25,15 @@
|
||||||
|
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<button class="button input is-medium search-button-icon" @click="search()">
|
<button class="button input is-medium search-button-icon" @click="search()">
|
||||||
<img src="../../assets/fa/search.svg" style="height: 22px; width: 22px" />
|
<!-- <img src="../../assets/fa/search.svg" style="height: 22px; width: 22px" /> -->
|
||||||
|
<i class="fas fa-search text-white"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="autocomplete-column is-half is-offset-one-quarter">
|
</div>
|
||||||
|
<!-- <div class="column is-half is-offset-one-quarter"> -->
|
||||||
|
<div class="column is-two-thirds-tablet is-half-desktop is-one-third-widescreen mx-auto">
|
||||||
<ul class="autocomplete-results pure-u-23-24" v-show="showResults">
|
<ul class="autocomplete-results pure-u-23-24" v-show="showResults">
|
||||||
<li class="loading" v-if="isLoading">Loading results...</li>
|
<li class="loading" v-if="isLoading">Loading results...</li>
|
||||||
|
|
||||||
|
@ -56,14 +61,59 @@ export default VsInput;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.autocomplete-column {
|
// .columns:not(:last-child) {
|
||||||
display: block;
|
// margin-bottom: calc(1.5rem - 0.75rem);
|
||||||
flex-basis: 0;
|
// display: flex;
|
||||||
flex-grow: 1;
|
// }
|
||||||
flex-shrink: 1;
|
|
||||||
padding: 0 0.75rem 0.75rem 0.75rem;
|
.main-search-from-bg {
|
||||||
position: relative;
|
background-color: #fff;
|
||||||
|
padding: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.column {
|
||||||
|
display: block;
|
||||||
|
// flex-basis: 0;
|
||||||
|
// flex-grow: 1;
|
||||||
|
// flex-shrink: 1;
|
||||||
|
/* padding: 0.75rem; */
|
||||||
|
position: relative;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
background-color: #33cccc;
|
||||||
|
// border-color: #dbdbdb;
|
||||||
|
border-width: 0;
|
||||||
|
color: #363636;
|
||||||
|
cursor: pointer;
|
||||||
|
justify-content: center;
|
||||||
|
padding-bottom: 0;
|
||||||
|
padding-left: 1em;
|
||||||
|
padding-right: 1em;
|
||||||
|
padding-top: 0;
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-box {
|
||||||
|
background-image: url(./../../assets/site/img/white-pixel.png);
|
||||||
|
background-repeat: repeat;
|
||||||
|
padding: 1.8em;
|
||||||
|
// width: 28em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control .input,
|
||||||
|
.control .input:focus,
|
||||||
|
.column .input.selected {
|
||||||
|
// background-color: white;
|
||||||
|
/* border-color: #dbdbdb; */
|
||||||
|
// border: 0;
|
||||||
|
// outline: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #363636;
|
||||||
|
}
|
||||||
|
|
||||||
.autocomplete-results {
|
.autocomplete-results {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<button v-on:click="goBack">Back</button>
|
<button v-on:click="goBack">Back</button>
|
||||||
</section>
|
</section>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
<div class="container-fluid banner mz-5"></div>
|
||||||
<section class="section" v-if="loaded">
|
<section class="section" v-if="loaded">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- <span class="is-size-5"> Basic Table </span>
|
<!-- <span class="is-size-5"> Basic Table </span>
|
||||||
|
|
|
@ -142,30 +142,4 @@ import SearchViewComponent from "./search-view-component";
|
||||||
export default SearchViewComponent;
|
export default SearchViewComponent;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped></style>
|
||||||
.banner {
|
|
||||||
background-image: url(./../../assets/site/img/main-search-banner.jpg);
|
|
||||||
background-size: cover;
|
|
||||||
background-position-x: center;
|
|
||||||
background-position-y: 25%;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
padding: 6.2em;
|
|
||||||
min-height: 400px;
|
|
||||||
width: 100%;
|
|
||||||
/* display: flex;
|
|
||||||
flex-direction: column; */
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mz-5 {
|
|
||||||
margin-bottom: 1.5 rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 576px) {
|
|
||||||
.banner {
|
|
||||||
align-items: flex-start;
|
|
||||||
height: 400px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user