You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
146 lines
2.7 KiB
146 lines
2.7 KiB
/* |
|
* Spreed Speak Freely. |
|
* Copyright (C) 2013-2014 struktur AG |
|
* |
|
* This file is part of Spreed Speak Freely. |
|
* |
|
* 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/>. |
|
* |
|
*/ |
|
|
|
.file-info { |
|
background: $fileinfo-background; |
|
border: 1px solid $fileinfo-border; |
|
border-radius: 4px; |
|
padding: 1em; |
|
position: relative; |
|
text-align: center; |
|
max-width: 170px; |
|
} |
|
|
|
.file-info { |
|
> div { |
|
position: relative; |
|
z-index: 3; |
|
} |
|
.file-info-bg { |
|
bottom: 0; |
|
left: 41px; |
|
right: 0; |
|
overflow: hidden; |
|
position: absolute; |
|
top: -17px; |
|
z-index: 2; |
|
.#{$fa-css-prefix} { |
|
color: $fileinfo-icon-background-color; |
|
font-size: 20em; |
|
} |
|
} |
|
.actions { |
|
left: 50%; |
|
margin-left: 10px; |
|
position: absolute; |
|
text-align: left; |
|
top: 14px; |
|
} |
|
} |
|
|
|
.file-info-name { |
|
font-size: 1.1em; |
|
margin: .2em 0; |
|
min-width: 140px; |
|
padding: 0 .2em; |
|
} |
|
|
|
.file-info-size { |
|
font-size: .8em; |
|
height: 20px; |
|
position: relative; |
|
> span { |
|
display: block; |
|
left: 0; |
|
margin: 0 auto; |
|
padding: 4px; |
|
position: absolute; |
|
text-shadow: 1px 1px 1px white; |
|
top: 1px; |
|
right: 0; |
|
z-index: 5; |
|
} |
|
> div { |
|
bottom: 0; |
|
box-shadow: none !important; |
|
left: 0; |
|
position: absolute; |
|
top: 0; |
|
width: 0; |
|
z-index: 0; |
|
&.progress-bar { |
|
opacity: .5; |
|
} |
|
&.progress-bar.download { |
|
opacity: 1; |
|
z-index: 1; |
|
} |
|
} |
|
} |
|
|
|
.file-info-speed { |
|
bottom: 8px; |
|
font-size: .8em; |
|
left: 0; |
|
position: absolute; |
|
right: 0; |
|
text-align: center; |
|
} |
|
|
|
.file-info.uploader { |
|
.file-info-speed { |
|
bottom: 6px; |
|
} |
|
.actions { |
|
margin-left: 30px; |
|
opacity: 0; |
|
} |
|
.anim { |
|
margin-left: 0; |
|
} |
|
.hovercontrol { |
|
&:hover .anim { |
|
margin-left: -50px; |
|
} |
|
&:hover .actions { |
|
margin-left: 0; |
|
opacity: 1; |
|
} |
|
> div { |
|
transition: all .2s ease-in-out |
|
} |
|
} |
|
} |
|
|
|
.file-info.downloader { |
|
.anim { |
|
margin-left: -40px; |
|
} |
|
.file-info-size { |
|
margin-bottom: 10px; |
|
} |
|
} |
|
|
|
.file-info.downloading { |
|
.file-info-size{ |
|
border-color: $fileinfo-downloading-size-border; |
|
} |
|
}
|
|
|