Browse Source

Rearrage elements in fileinfo.

pull/29/head^2
Evan Theurer 12 years ago
parent
commit
9cce6f8f0b
  1. 81
      src/styles/components/_fileinfo.scss

81
src/styles/components/_fileinfo.scss

@ -20,92 +20,89 @@
*/ */
.file-info { .file-info {
text-align:center;
border: 1px solid #ddd;
padding: 1em;
background: #fff; background: #fff;
border: 1px solid #ddd;
border-radius: 4px; border-radius: 4px;
padding: 1em; padding: 1em;
position: relative; position: relative;
text-align: center;
max-width: 170px; max-width: 170px;
} }
.file-info { .file-info {
> div { > div {
z-index: 3;
position: relative; position: relative;
z-index: 3;
} }
.file-info-bg { .file-info-bg {
position:absolute; bottom: 0px;
left:41px; left: 41px;
top:-17px; right: 0;
right:0px; overflow: hidden;
bottom:0px; position: absolute;
z-index:2; top: -17px;
overflow:hidden; z-index: 2;
.#{$fa-css-prefix} { .#{$fa-css-prefix} {
font-size: 20em;
color: #eee; color: #eee;
font-size: 20em;
} }
} }
.actions { .actions {
position: absolute;
top: 14px;
left: 50%; left: 50%;
margin-left: 10px; margin-left: 10px;
position: absolute;
text-align: left; text-align: left;
top: 14px;
} }
} }
.file-info-name { .file-info-name {
font-size: 1.1em; font-size: 1.1em;
margin: .2em 0;
min-width: 140px;
padding: 0 .2em; padding: 0 .2em;
margin:0.2em 0;
min-width:140px;
} }
.file-info-size { .file-info-size {
font-size: 0.8em; font-size: 0.8em;
position:relative;
height: 20px; height: 20px;
position: relative;
> span { > span {
display: block;
left: 0;
margin: 0 auto;
padding: 4px; padding: 4px;
z-index:5;
display:block;
position:relative;
text-shadow: 1px 1px 1px white;
position: absolute; position: absolute;
margin: 0 auto; text-shadow: 1px 1px 1px white;
top:1px; top: 1px;
right:0px; right: 0;
left:0px; z-index: 5;
} }
> div { > div {
z-index:0; bottom: 0;
width:0%;
-webkit-box-shadow: none !important;
box-shadow: none !important; box-shadow: none !important;
left: 0;
position: absolute; position: absolute;
left:0px; top: 0;
bottom:0px; width: 0;
top:0px; z-index: 0;
&.progress-bar { &.progress-bar {
opacity: 0.5; opacity: .5;
} }
&.progress-bar.download { &.progress-bar.download {
z-index:1;
opacity: 1; opacity: 1;
z-index: 1;
} }
} }
} }
.file-info-speed { .file-info-speed {
position: absolute;
left: 0px;
right: 0px;
bottom: 8px; bottom: 8px;
font-size: .8em;
left: 0;
position: absolute;
right: 0;
text-align: center; text-align: center;
font-size: 0.8em;
} }
.file-info.uploader { .file-info.uploader {
@ -113,19 +110,19 @@
bottom: 6px; bottom: 6px;
} }
.actions { .actions {
margin-left:30px; margin-left: 30px;
opacity:0; opacity: 0;
} }
.anim { .anim {
margin-left: 0px; margin-left: 0;
} }
.hovercontrol { .hovercontrol {
&:hover .anim { &:hover .anim {
margin-left: -50px; margin-left: -50px;
} }
&:hover .actions { &:hover .actions {
margin-left:0px; margin-left: 0;
opacity:1; opacity: 1;
} }
> div { > div {
transition: all .2s ease-in-out transition: all .2s ease-in-out

Loading…
Cancel
Save