Pony.fm/resources/assets/styles/components/uploader.less
2016-08-08 17:11:20 +01:00

108 lines
2.1 KiB
Text
Vendored

/**
* Pony.fm - A community for pony fan music.
* Copyright (C) 2015 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 '../variables';
.uploader {
h1 {
margin: 10px 0;
}
.dropzone {
border: 2px dotted @pfm-purple;
background: lighten(@pfm-purple, 25%);
padding: 10px;
color: darken(@pfm-purple, 25%);
margin-bottom: 10px;
p {
padding: 0;
margin: 0;
}
&.file-over {
background: lighten(@pfm-purple, 5%);
}
}
.close-button {
.border-radius(0px);
width: auto;
margin-bottom: 10px;
float: none;
display: block;
}
.uploads {
margin: 0;
padding: 0;
list-style: none;
li {
margin-bottom: 5px;
background: #eee;
font-size: 9pt;
position: relative;
z-index: 1;
color: #444;
border: 2px solid #aaa;
p {
margin: 5px;
padding: 0;
height: 26px;
line-height: 26px;
a {
}
}
.bar {
position: absolute;
bottom: 0;
left: 0;
height: 10px;
z-index: -1;
background: @pfm-purple;
display: none;
}
&.has-error {
border-color: @brand-danger;
.bar {
display: none;
}
}
&.uploading {
.bar {
display: block;
}
}
&.is-processing {
border-color: @brand-primary;
.bar {
display: none;
}
}
}
}
}