Pony.fm/resources/assets/styles/components/search.less
2016-07-18 12:20:10 +01:00

128 lines
2.3 KiB
Text
Vendored

/**
* Pony.fm - A community for pony fan music.
* Copyright (C) 2016 Peter Deltchev
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@import '../base/bootstrap/bootstrap';
@import '../mixins';
@import '../variables';
.search {
width: 1200px;
margin-left: auto;
margin-right: auto;
margin-top: 10px;
}
input.search-input {
background: lighten(@pfm-logo-purple, 10%);
color: #fff;
border: 0;
font-size: 13px;
padding: 15px;
margin-bottom: 0;
height: @pfm-top-bar-size - 20px;
border-radius: 2px;
.light-material-shadow(1);
&::-webkit-input-placeholder {
color: #fff;
opacity: 1;
}
&::-moz-input-placeholder {
color: #fff;
opacity: 1;
}
&:ms-input-placeholder {
color: #fff;
opacity: 1;
}
}
.search-results {
width: 1200px;
padding: 5px 15px;
background: #fff;
.material-shadow(3);
.-column1, .-column2 {
width: 48%;
float: left;
margin-bottom: 10px;
}
.-column1 {
padding-right: 2%;
}
.-column2 {
padding-left: 2%;
}
ol li {
list-style: disc;
}
li a {
padding: 0;
overflow: hidden;
color: @pfm-light-grey;
}
.-section-header {
background: transparent;
color: @pfm-purple;
margin-top: 10px;
padding-left: 0;
}
.albums-listing, .playlists-listing, .users-listing {
width: 100% !important;
li {
width: 98%;
a img {
width: 60px;
float: left;
}
.info {
margin-left: 60px;
padding: 2px 5px;
}
}
}
}
@media only screen and (max-width: 1580px) {
.search {
width: 800px;
}
.search-results {
width: 800px;
}
}
@media only screen and (max-width: 1170px) {
.search {
width: 430px;
}
.search-results {
width: 430px;
}
}