Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
Backend Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SpinShare
Backend Server
Commits
1739f787
Commit
1739f787
authored
Jun 17, 2020
by
SpinShare
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added new search design
parent
1fe59700
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
140 deletions
+92
-140
public/assets/css/search.css
public/assets/css/search.css
+29
-70
public/assets/css/search.less
public/assets/css/search.less
+63
-70
No files found.
public/assets/css/search.css
View file @
1739f787
...
...
@@ -2,76 +2,6 @@
display
:
grid
;
grid-template-rows
:
auto
1
fr
;
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
:
1
fr
;
}
}
@media
screen
and
(
min-width
:
600px
)
{
.section-search
.search-results
.search-results-users
.user-list
{
grid-template-columns
:
1
fr
;
}
.section-search
.search-results
.search-results-songs
.song-list
{
grid-template-columns
:
repeat
(
2
,
1
fr
);
}
}
@media
screen
and
(
min-width
:
1000px
)
{
.section-search
.search-results
.search-results-users
.user-list
{
grid-template-columns
:
1
fr
1
fr
;
}
.section-search
.search-results
.search-results-songs
.song-list
{
grid-template-columns
:
repeat
(
4
,
1
fr
);
}
}
@media
screen
and
(
min-width
:
1500px
)
{
.section-search
.search-results
.search-results-users
.user-list
{
grid-template-columns
:
1
fr
1
fr
1
fr
;
}
.section-search
.search-results
.search-results-songs
.song-list
{
grid-template-columns
:
repeat
(
7
,
1
fr
);
}
}
public/assets/css/search.less
View file @
1739f787
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment