magicPromt / static /css /style_search.css
wznmickey's picture
demo
cf7c183
html {
background-color: #fbfbfb;
}
body {
background-color: #fbfbfb;
font-family: "SF Pro Display", "SF Pro Icons","Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 600;
line-height: 1.1;
/* position: relative; */
}
nav {
background-color: rgba(255, 255, 255, 0.8);
backdrop-filter: saturate(180%) blur(20px);
width: 100%;
/* position: sticky; */
position: fixed;
top: 0;
left: 0;
z-index: 100;
padding: 15px 0px;
border-bottom: rgb(222, 222, 222) 1px solid;
}
main{
padding: 1% 5%;
background-color: #fbfbfb;
}
#nav-title{
font-size: 21px;
margin-left: 50px;
font-family: Silkscreen, "Special Elite", "SF Pro Display", "SF Pro Icons","Helvetica Neue", Helvetica, Arial, sans-serif;
}
#nav-title a{
text-decoration: none;
color: inherit;
}
#nav-title a:hover{
color: #565564;
}
h1{
text-align: center;
font-weight: 600;
font-family: "DM Serif Display", Silkscreen, "Special Elite", "SF Pro Display", "SF Pro Icons","Helvetica Neue", Helvetica, Arial, sans-serif;;
}
#search-header{
text-align: center;
width: 100%;
/* margin-top: 5%; */
/* margin-bottom: 5%; */
margin: 5% auto;
align-items: center;
animation: fadeIn;
animation-duration: 1s;
}
#search-bar{
width: 100%;
/* display: flex; */
/* box-shadow: 2px 4px 12px rgba(0 0 0/0.08); */
border-radius: 30px;
/* align-items: center; */
/* background-color: white; */
margin: 0 auto;
}
/* #search-bar:hover{
box-shadow: 8px 8px 16px rgba(0 0 0/0.1);
} */
#input-wrapper{
display: flex;
align-items: center;
background-color: white;
border-radius: 30px;
box-shadow: 2px 4px 12px rgba(0 0 0/0.08);
width: 50vw;
}
#input-wrapper:hover{
box-shadow: 8px 8px 16px rgba(0 0 0/0.1);
}
#icon-magnifying-glass{
margin-left: 3%;
}
#input-wrapper-filter{
display: flex;
align-items: center;
justify-content: center;
margin: 5% 0;
}
#icon-filter:hover{
opacity: 0.6;
}
#search-header{
display: flex;
}
#search-header form{
width: 100%;
/* border-radius: 30px; */
}
#search-header input{
width: 100%;
height: 50px;
border: none;
/* box-shadow: 2px 4px 12px rgba(0 0 0/0.08); */
border-radius: 0 30px 30px 0;
padding: 25px 25px 25px 15px;
background-color: white;
}
#search-header input:focus{
outline: none;
}
#icon-filter{
margin-left: 3%;
cursor: pointer;
}
.multiselect-single-wrapper{
display: flex;
align-items: center;
width: 95%;
/* flex: 0 0 20vw; */
/* margin: 10px 5%; */
/* z-index: 0; */
}
.multiselect-single-wrapper:nth-child(1){
grid-column: 1 / span 3;
}
.multiselect-single-wrapper:nth-child(2){
grid-column: 4 / span 3;
}
.multiselect-single-wrapper:nth-child(3){
grid-column: 1 / span 3;
}
.multiselect-single-wrapper:nth-child(4){
grid-column: 4 / span 3;
}
.multiselect-single-wrapper:nth-child(5){
grid-column: 2 / -2;
}
.multiselect-single-wrapper label{
margin: 0 5%;
}
.multiselect-single-wrapper>div:first-of-type{
width: 100%;
}
.ui.multiple.selection.dropdown{
border-radius: 20px;
border: none;
background-color: white;
box-shadow: 2px 4px 12px rgba(0 0 0/0.08);
padding: 5px 15px;
width: 100%;
}
.ui.multiple.selection.dropdown:hover{
box-shadow: 8px 8px 16px rgba(0 0 0/0.1);;
}
.ui.selection.active.dropdown .menu{
border: none;
}
.ui.label.transition.visible{
border: none;
background-color: rgba(0,0,0,.87);
color: whitesmoke;
border-radius: 30px;
box-shadow: 2px 4px 12px rgba(0 0 0/0.08);
}
#multiselect-wrapper{
display: grid;
grid-template-columns: repeat(6, 1fr);
row-gap: 25px;
width: 95%;
justify-content: space-evenly;
justify-items: center;
padding: 0;
overflow: hidden;
max-height: 0;
/* display: none; */
transition: max-height 0.3s linear, padding 0.3s linear;
/* animation: fadeOutUp; */
/* animation-duration: 0.7s; */
}
#search-bar.open #multiselect-wrapper{
/* display: grid;
grid-template-columns: repeat(6, 1fr);
row-gap: 25px;
width: 100%;
justify-content: space-evenly;
justify-items: center; */
padding: 2% 0% 2% 0%;
overflow: visible;
max-height: 500px;
transition: max-height 0.3s linear, padding 0.3s linear;
animation: fadeInDown;
animation-duration: 0.3s;
/* z-index: 2; */
}
.results-wrapper {
display: grid;
grid-template-columns: repeat(3, 1fr);
/* grid-template-rows: 400px; */
grid-auto-flow: dense;
grid-gap: 25px;
/* grid-row-gap: 20px; */
/* margin-top: 50px; */
justify-content: center;
justify-items: center;
/* z-index: 0; */
/* background-color: #fbfbfb; */
}
.single-result-card {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 2fr 1fr;
background-color: white;
border-radius: 30px;
box-shadow: 2px 4px 12px rgba(0 0 0/0.08);
width: 80%;
box-sizing: border-box;
transition: transform 0.5s;
height: 30vw;
}
.single-result-card:hover{
transform: translateY(-10px);
}
.single-result-card img{
grid-row: 1 / span 2;
grid-column: 1 / span 1;
width: 100%;
height: 100%;
/* max-height: 400px; */
border-radius: 30px 30px 0 0;
object-fit: cover;
}
.prompt-text-wrapper{
grid-row: 1 / span 2;
grid-column: 1 / span 1;
/* z-index: 1; */
display: flex;
align-items: flex-end;
justify-content: center;
text-align: center;
/* font-style: italic; */
height: 100%;
/* max-height: 30px; */
overflow: hidden;
text-overflow: clip;
/* color: #75757d; */
font-weight: 400;
font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue",Helvetica, Arial, sans-serif;
color: whitesmoke;
/* background-color: rgba(50, 50, 50, 0.7); */
/* border-radius: 30px 30px 0 0; */
border-radius: 30px 30px 0 0;
}
.prompt-text-wrapper:hover{
background: linear-gradient(to top, rgba(50, 50, 50, 0.5) 5%, transparent);
/* background-color: rgba(50, 50, 50, 0.7); */
/* cursor: pointer; */
}
/* .prompt-text-wrapper.copied{
background-color: rgba(50, 50, 50, 0.7);
transition: background-color 0.1s ease;
} */
.prompt-text-wrapper p {
display: none;
}
.prompt-text-wrapper:hover p{
display: block;
padding: 15px;
/* padding-bottom: 15px; */
/* padding: 15px 15px 60px 15px; */
/* height: auto; */
max-height: 30%;
/* overflow: hidden; */
text-overflow: ellipsis;
/* background-color: rgba(50, 50, 50, 0.7); */
border-radius: 30px 30px 0 0;
/* transition: height 0.5s ease; */
width: 100%;
margin: 0;
margin-bottom: 2%;
}
/* color see here:
https://colorhunt.co/palette/ff90bcffc0d9f9f9e08acdd7
*/
.single-result-card form{
width: 100%;
display: flex;
grid-row: 4 / span 1;
text-align: center;
}
.single-result-card input[type="submit"]{
border-radius: 0 0 0 30px;
background-color: #FF90BC;
color: white;
font-weight: 600;
padding: 15px;
display: inline-block;
box-sizing: border-box;
width: 50%;
margin: 0;
border: none;
flex-direction: row;
}
.single-result-card input[type="submit"]:hover{
opacity: 0.8;
}
.pick-this{
/* display: inline-block; */
display: flex;
flex-direction: row;
padding: 15px;
align-items: center;
color: white;
background-color: #8ACDD7;
border-radius: 0 0 30px 0;
box-sizing: border-box;
width: 50%;
cursor: pointer;
margin: 0;
user-select: none;
justify-content: space-evenly;
transition: background-color 0.1s ease;
}
.pick-this:hover{
background-color: rgba(138, 205, 215, 0.8);
}
.pick-this.copied{
background-color: rgb(30, 48, 80);
transition: background-color 0.1s ease;
}
#no-results{
grid-column: 1 / -1;
}