Commit 1739f787 authored by SpinShare's avatar SpinShare

added new search design

parent 1fe59700
......@@ -2,76 +2,6 @@
display: grid;
grid-template-rows: auto 1fr;
grid-gap: 25px;
/*
& .search-bar {
& form {
background: rgba(255,255,255,0.2);
border-radius: 4px;
display: grid;
grid-template-columns: auto auto 1fr;
& .show-all {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
padding-left: 10px;
}
& input {
font-family: 'Open Sans', sans-serif;
font-size: 14px;
color: #fff;
background: transparent;
padding: 14px 28px;
border: 0px;
transition: 0.2s ease-in-out background, 0.2s ease-in-out color;
&:hover {
background: rgba(255,255,255,0.2);
color: #fff;
}
&:focus {
outline: 0;
}
&::placeholder {
color: rgba(255,255,255,0.6);
}
}
& .multi-select {
position: relative;
z-index: 99;
& .label {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
padding: 0px 10px;
}
& .box {
position: absolute;
z-index: 99;
background: rgba(0,0,0,1);
border-radius: 6px;
width: 250px;
left: 0px;
user-select: none;
display: none;
& .item {
display: grid;
grid-template-columns: 25px 1fr;
grid-gap: 25px;
padding: 10px;
}
&.active {
display: block;
}
}
}
}
} */
}
.section-search header {
background: rgba(0, 0, 0, 0.3);
......@@ -146,3 +76,32 @@
.section-search .search-results .search-results-noresults .noresults-text {
opacity: 0.6;
}
@media screen and (max-width: 600px) {
.section-search .search-results .search-results-songs .song-list {
grid-template-columns: 1fr;
}
}
@media screen and (min-width: 600px) {
.section-search .search-results .search-results-users .user-list {
grid-template-columns: 1fr;
}
.section-search .search-results .search-results-songs .song-list {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (min-width: 1000px) {
.section-search .search-results .search-results-users .user-list {
grid-template-columns: 1fr 1fr;
}
.section-search .search-results .search-results-songs .song-list {
grid-template-columns: repeat(4, 1fr);
}
}
@media screen and (min-width: 1500px) {
.section-search .search-results .search-results-users .user-list {
grid-template-columns: 1fr 1fr 1fr;
}
.section-search .search-results .search-results-songs .song-list {
grid-template-columns: repeat(7, 1fr);
}
}
......@@ -56,76 +56,6 @@
}
}
/*
& .search-bar {
& form {
background: rgba(255,255,255,0.2);
border-radius: 4px;
display: grid;
grid-template-columns: auto auto 1fr;
& .show-all {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
padding-left: 10px;
}
& input {
font-family: 'Open Sans', sans-serif;
font-size: 14px;
color: #fff;
background: transparent;
padding: 14px 28px;
border: 0px;
transition: 0.2s ease-in-out background, 0.2s ease-in-out color;
&:hover {
background: rgba(255,255,255,0.2);
color: #fff;
}
&:focus {
outline: 0;
}
&::placeholder {
color: rgba(255,255,255,0.6);
}
}
& .multi-select {
position: relative;
z-index: 99;
& .label {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
padding: 0px 10px;
}
& .box {
position: absolute;
z-index: 99;
background: rgba(0,0,0,1);
border-radius: 6px;
width: 250px;
left: 0px;
user-select: none;
display: none;
& .item {
display: grid;
grid-template-columns: 25px 1fr;
grid-gap: 25px;
padding: 10px;
}
&.active {
display: block;
}
}
}
}
} */
& .search-results {
display: grid;
grid-template-rows: auto auto auto 1fr;
......@@ -155,4 +85,67 @@
}
}
}
}
@media screen and (max-width: 600px) {
.section-search {
& .search-results {
& .search-results-songs {
& .song-list {
grid-template-columns: 1fr;
}
}
}
}
}
@media screen and (min-width: 600px) {
.section-search {
& .search-results {
& .search-results-users {
& .user-list {
grid-template-columns: 1fr;
}
}
& .search-results-songs {
& .song-list {
grid-template-columns: repeat(2, 1fr);
}
}
}
}
}
@media screen and (min-width: 1000px) {
.section-search {
& .search-results {
& .search-results-users {
& .user-list {
grid-template-columns: 1fr 1fr;
}
}
& .search-results-songs {
& .song-list {
grid-template-columns: repeat(4, 1fr);
}
}
}
}
}
@media screen and (min-width: 1500px) {
.section-search {
& .search-results {
& .search-results-users {
& .user-list {
grid-template-columns: 1fr 1fr 1fr;
}
}
& .search-results-songs {
& .song-list {
grid-template-columns: repeat(7, 1fr);
}
}
}
}
}
\ No newline at end of file
Markdown is supported
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