Pony.fm/resources/assets/styles/components/uploader.less

109 lines
2.1 KiB
Text
Raw Normal View History

/**
* 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';
2015-09-12 13:19:18 +02:00
.uploader {
h1 {
2016-08-08 18:11:20 +02:00
margin: 10px 0;
2015-09-12 13:19:18 +02:00
}
.dropzone {
2015-10-25 03:35:37 +01:00
border: 2px dotted @pfm-purple;
background: lighten(@pfm-purple, 25%);
padding: 10px;
color: darken(@pfm-purple, 25%);
margin-bottom: 10px;
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
p {
2016-08-08 18:11:20 +02:00
padding: 0;
margin: 0;
2015-10-25 03:35:37 +01:00
}
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
&.file-over {
background: lighten(@pfm-purple, 5%);
}
2015-09-12 13:19:18 +02:00
}
.close-button {
2015-10-25 03:35:37 +01:00
.border-radius(0px);
width: auto;
margin-bottom: 10px;
float: none;
display: block;
2015-09-12 13:19:18 +02:00
}
.uploads {
2016-08-08 18:11:20 +02:00
margin: 0;
padding: 0;
2015-10-25 03:35:37 +01:00
list-style: none;
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
li {
margin-bottom: 5px;
background: #eee;
font-size: 9pt;
position: relative;
z-index: 1;
color: #444;
border: 2px solid #aaa;
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
p {
margin: 5px;
2016-08-08 18:11:20 +02:00
padding: 0;
2015-10-25 03:35:37 +01:00
height: 26px;
line-height: 26px;
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
a {
}
}
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
.bar {
position: absolute;
2016-08-08 18:11:20 +02:00
bottom: 0;
left: 0;
2015-10-25 03:35:37 +01:00
height: 10px;
z-index: -1;
background: @pfm-purple;
display: none;
}
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
&.has-error {
border-color: @brand-danger;
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
.bar {
display: none;
}
}
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
&.uploading {
.bar {
display: block;
}
}
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
&.is-processing {
border-color: @brand-primary;
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
.bar {
display: none;
}
}
}
2015-09-12 13:19:18 +02:00
}
2015-10-25 03:35:37 +01:00
}