/*
* Copyright (c) 2013, Sandro Alves Peres
* All rights reserved.
*
* Date: 03/12/2013
* http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND022656
*/
.file-wrapper,
.file-wrapper .file-button,
.file-wrapper .file-path,
.file-wrapper .file-button-remove,
.file-wrapper input {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.file-wrapper {
position: relative;
border: 1px solid #2c9ccc;
background-color: #f9f9f9;
cursor: pointer;
overflow: hidden;
display: inline-block;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
*display: inline;
*zoom: 1;
}
.file-wrapper .file-button {
position: absolute;
top: 0;
right: 0;
width: 30%;
height: 100%;
white-space: nowrap;
text-align: center;
z-index: 1;
color: #fff;
box-shadow: 0 -1px 3px gray;
-moz-box-shadow: 0 -1px 3px gray;
-webkit-box-shadow: 0 -2px 3px gray;
-khtml-box-shadow: 0 -2px 3px gray;
background-color: #70A8D2;
background-image: -moz-linear-gradient(top, #86B6F4, #2F63A0);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#86B6F4), to(#2F63A0));
background-image: -webkit-linear-gradient(top, #86B6F4, #2F63A0);
background-image: -o-linear-gradient(top, #86B6F4, #2F63A0);
background-image: linear-gradient(to bottom, #86B6F4, #2F63A0);
-webkit-border-bottom-right-radius: 4px;
-webkit-border-top-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
-moz-border-radius-topright: 4px;
border-bottom-right-radius: 4px;
border-top-right-radius: 4px;
}
.file-wrapper .file-path {
position: absolute;
padding-left: 20px;
top: 0;
left: 0;
width: 70%;
height: 100%;
z-index: 1;
font-family: verdana, tahoma, sans-serif, arial;
font-size: 11px;
font-weight: normal;
color: #606060;
white-space: nowrap;
}
.file-button-remove {
position: absolute;
top: 0;
left: 0;
text-decoration: none;
color: #fff;
z-index: 3;
font-family: tahoma, verdana, sans-serif;
font-weight: bold;
font-size: 12px;
display: none;
width: 15px;
height: 100%;
text-align: center;
vertical-align: middle;
text-shadow: 1 1 2px #fff;
background-color: #cd0a0a;
background-image: -moz-linear-gradient(top, #ee0033, #cd0a0a);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee0033), to(#cd0a0a));
background-image: -webkit-linear-gradient(top, #ee0033, #cd0a0a);
background-image: -o-linear-gradient(top, #ee0033, #cd0a0a);
background-image: linear-gradient(to bottom, #ee0033, #cd0a0a);
}
.file-button-remove:hover {
font-size: 14px;
color: yellow;
text-decoration: none;
}
.file-wrapper input {
position: absolute;
margin: 0;
padding: 0;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
cursor: pointer;
font-size: 100px;
filter: alpha(opacity=0);
-moz-opacity: 0;
opacity: 0;
-khtml-opacity: 0;
}
/*******************************************************************************
* ON MOUSE OVER ELEMENTS
*******************************************************************************/
.file-wrapper-over {
border-color: #3297d7;
}
.file-wrapper-over .file-path {
box-shadow: inset 0 0 4px rgba(90,90,90,.3);
-moz-box-shadow: inset 0 0 4px rgba(90,90,90,.3);
-webkit-box-shadow: inset 0 0 4px rgba(90,90,90,.3);
-khtml-box-shadow: inset 0 0 4px rgba(90,90,90,.3);
}
.file-wrapper-over .file-button {
color: #fff;
text-shadow: 1px 1px 2px #c0c0c0;
background-color: #ff9900;
background-image: -moz-linear-gradient(top, #fef1ec, #ff8800);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fef1ec), to(#ff8800));
background-image: -webkit-linear-gradient(top, #fef1ec, #ff8800);
background-image: -o-linear-gradient(top, #fef1ec, #ff8800);
background-image: linear-gradient(to bottom, #fef1ec, #ff8800);
}
/*******************************************************************************
* DISABLED ELEMENTS
*******************************************************************************/
.file-wrapper-disabled {
cursor: default;
border-color: #808080;
filter: alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
-khtml-opacity: .6;
}
.file-wrapper-disabled .file-button {
background-image: none;
background-color: #f5f5f5;
color: #888;
border-color: #a2a2a2;
}
.file-wrapper-disabled .file-path {
color: #909090;
}
.file-wrapper-disabled input {
display: none;
}
.file-wrapper-disabled .file-button-remove {
background-image: none;
background-color: #f5f5f5;
color: #888;
cursor: default;
}
.file-wrapper-disabled .file-button-remove:hover {
font-size: 12px;
color: #888;
} |