2012-02-03 00:59:40 +01:00
|
|
|
@import "compass/css3";
|
|
|
|
|
|
|
|
// TODO we need a seperated file for styles that are used in both cms and front end (such as buttons)
|
|
|
|
@import "../admin/scss/themes/default.scss";
|
2012-05-22 08:19:22 +02:00
|
|
|
@import "../admin/scss/_mixins";
|
2012-02-03 00:59:40 +01:00
|
|
|
|
|
|
|
.ss-uploadfield {
|
2012-05-22 08:19:22 +02:00
|
|
|
|
2012-02-03 00:59:40 +01:00
|
|
|
.clear {
|
|
|
|
clear: both;
|
|
|
|
}
|
2012-05-22 08:19:22 +02:00
|
|
|
|
2012-02-03 00:59:40 +01:00
|
|
|
.middleColumn {
|
|
|
|
// TODO .middleColumn styling should probably be theme specific (eg cms ui will look different than blackcandy)
|
|
|
|
// so we should move this style into the cms and black candy files
|
2013-05-29 17:25:46 +02:00
|
|
|
width: 510px;
|
2012-02-03 00:59:40 +01:00
|
|
|
padding: 0;
|
|
|
|
background: #fff;
|
|
|
|
border: 1px solid lighten($color-medium-separator, 20%);
|
|
|
|
@include border-radius(4px);
|
|
|
|
@include background-image(linear-gradient(#efefef, #fff 10%, #fff 90%, #efefef));
|
|
|
|
}
|
2012-02-07 12:25:45 +01:00
|
|
|
.ss-uploadfield-item {
|
|
|
|
margin: 0;
|
|
|
|
padding: 15px;
|
|
|
|
overflow: auto;
|
2012-05-22 08:19:22 +02:00
|
|
|
|
|
|
|
.ss-uploadfield-item-preview {
|
|
|
|
height: 60px;
|
|
|
|
line-height: 60px;
|
|
|
|
width: 80px;
|
|
|
|
text-align: center;
|
|
|
|
font-weight: bold;
|
|
|
|
float: left;
|
|
|
|
overflow: hidden;
|
|
|
|
&.ss-uploadfield-dropzone {
|
2012-11-22 04:30:50 +01:00
|
|
|
@include box-shadow($color-medium-separator 0 0 4px 0 inset);
|
2012-05-22 08:19:22 +02:00
|
|
|
border: 2px dashed $color-medium-separator;
|
|
|
|
background: $color-light-separator;
|
|
|
|
display: none;
|
2013-01-09 11:34:02 +01:00
|
|
|
margin-right: 15px;
|
2012-05-22 08:19:22 +02:00
|
|
|
}
|
2012-02-07 12:25:45 +01:00
|
|
|
}
|
2012-05-22 08:19:22 +02:00
|
|
|
.ss-uploadfield-item-info {
|
2013-05-27 05:22:59 +02:00
|
|
|
margin-left: 95px;
|
2013-01-09 11:34:02 +01:00
|
|
|
|
2012-05-22 08:19:22 +02:00
|
|
|
.ss-uploadfield-item-name {
|
|
|
|
display: block;
|
|
|
|
line-height: 13px;
|
|
|
|
height: 26px;
|
|
|
|
margin: 0;
|
2013-05-27 05:22:59 +02:00
|
|
|
text-align: left;
|
2012-05-22 08:19:22 +02:00
|
|
|
.name {
|
2013-05-27 05:22:59 +02:00
|
|
|
max-width: 240px;
|
|
|
|
font-weight: bold;
|
2012-05-22 08:19:22 +02:00
|
|
|
@include hide-text-overflow;
|
2013-05-27 05:22:59 +02:00
|
|
|
display:inline;
|
|
|
|
float:left;
|
|
|
|
}
|
|
|
|
.size {
|
|
|
|
color: lighten($color-text, 25%);
|
|
|
|
padding: 0 0 0 5px;
|
|
|
|
display:inline;
|
2012-05-22 08:19:22 +02:00
|
|
|
float:left;
|
|
|
|
}
|
|
|
|
.ss-uploadfield-item-status {
|
|
|
|
float: right;
|
|
|
|
padding: 0 0 0 5px;
|
2013-05-27 05:22:59 +02:00
|
|
|
text-align:right;
|
|
|
|
max-width: 75%;
|
|
|
|
|
2012-05-22 08:19:22 +02:00
|
|
|
&.ui-state-error-text {
|
|
|
|
color: $color-button-destructive;
|
|
|
|
font-weight: bold;
|
2013-05-27 05:22:59 +02:00
|
|
|
width:150px; //Allocates the status message enough room to be useful. Will wrap if it is longer
|
2012-05-22 08:19:22 +02:00
|
|
|
}
|
2013-05-27 05:22:59 +02:00
|
|
|
|
2012-05-22 08:19:22 +02:00
|
|
|
&.ui-state-warning-text {
|
|
|
|
color: darken($color-warning, 10%);
|
|
|
|
}
|
2013-05-27 05:22:59 +02:00
|
|
|
|
2012-05-22 08:19:22 +02:00
|
|
|
&.ui-state-success-text {
|
|
|
|
color: $color-button-constructive;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-02-07 12:25:45 +01:00
|
|
|
}
|
2013-08-20 17:51:32 +02:00
|
|
|
|
|
|
|
//Upload/Validation error
|
|
|
|
&.ui-state-error
|
|
|
|
{
|
|
|
|
.ss-uploadfield-item-preview {
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
margin-right: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ss-uploadfield-item-info {
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
.ss-uploadfield-item-name {
|
|
|
|
float: left;
|
|
|
|
width: 70%;
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
.name
|
|
|
|
{
|
|
|
|
float: left;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ss-uploadfield-item-status {
|
|
|
|
float: left;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ss-uploadfield-item-actions {
|
|
|
|
float: right;
|
|
|
|
width: 5%;
|
|
|
|
min-height: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
.ss-uploadfield-item-cancel {
|
|
|
|
position: relative;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-02-07 12:25:45 +01:00
|
|
|
}
|
2012-02-17 00:35:10 +01:00
|
|
|
.ss-ui-button {
|
2012-02-07 12:25:45 +01:00
|
|
|
display: block;
|
|
|
|
float: left;
|
2013-05-27 05:22:59 +02:00
|
|
|
margin: 0 10px 6px 0;
|
2013-06-14 22:05:04 +02:00
|
|
|
|
2012-02-07 12:25:45 +01:00
|
|
|
&.ss-uploadfield-fromcomputer {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ss-uploadfield-files {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
overflow: auto;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.ss-uploadfield-item,
|
|
|
|
.ss-uploadfield-item.ui-state-error {
|
|
|
|
border: 0;
|
|
|
|
border-bottom: 1px solid lighten($color-medium-separator, 20%);
|
|
|
|
background: none;
|
|
|
|
color: $color-text;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: 0;
|
2012-02-03 00:59:40 +01:00
|
|
|
}
|
2012-02-07 12:25:45 +01:00
|
|
|
}
|
|
|
|
.ss-uploadfield-item-actions {
|
2013-05-27 05:22:59 +02:00
|
|
|
min-height: 28px;
|
|
|
|
overflow: hidden;
|
|
|
|
margin: 6px 0 -6px 0;
|
2012-02-03 00:59:40 +01:00
|
|
|
position: relative;
|
2012-02-07 12:25:45 +01:00
|
|
|
}
|
|
|
|
.ss-uploadfield-item-progress {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 42px;
|
|
|
|
width: auto;
|
|
|
|
margin: 11px 0 0;
|
|
|
|
height: 15px;
|
|
|
|
|
|
|
|
div {
|
|
|
|
@include border-radius(25px);
|
|
|
|
height: 13px;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ss-uploadfield-item-progressbar {
|
|
|
|
border: 1px solid $color-medium-separator;
|
|
|
|
background-color: #92a6b3;
|
|
|
|
@include background-image(linear-gradient(top, #92a6b3 0%,#90aab8 11%,#96b1bf 22%,#9eb4c1 33%,#a7bac7 44%,#c1d5dc 100%));
|
|
|
|
}
|
|
|
|
.ss-uploadfield-item-progressbarvalue {
|
|
|
|
border: 0;
|
|
|
|
width: 0%;
|
|
|
|
background: #60b3dd url(../images/progressbar_blue.gif) repeat-x left center;
|
|
|
|
}
|
|
|
|
.ss-uploadfield-item-cancel,
|
|
|
|
.ss-uploadfield-item-start {
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
right: 0;
|
2012-02-03 00:59:40 +01:00
|
|
|
|
2012-02-07 12:25:45 +01:00
|
|
|
button {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-indent: -9999px;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2012-02-03 00:59:40 +01:00
|
|
|
border: 0;
|
2012-02-07 12:25:45 +01:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
cursor: pointer;
|
|
|
|
@include single-box-shadow(none);
|
2012-05-13 21:05:30 +02:00
|
|
|
position: relative;
|
2012-02-17 00:35:10 +01:00
|
|
|
// background: sprite($sprites16, cross-circle) no-repeat;
|
2012-05-13 21:05:30 +02:00
|
|
|
|
|
|
|
span {
|
2012-05-22 08:19:22 +02:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
margin: 0;
|
2012-05-13 21:05:30 +02:00
|
|
|
|
2012-05-22 08:19:22 +02:00
|
|
|
&.ui-button-text {
|
|
|
|
display: none;
|
|
|
|
}
|
2012-05-13 21:05:30 +02:00
|
|
|
}
|
2012-02-03 00:59:40 +01:00
|
|
|
}
|
2012-02-07 12:25:45 +01:00
|
|
|
}
|
|
|
|
.ss-uploadfield-item-start {
|
|
|
|
right: 20px;
|
|
|
|
button {
|
2012-02-17 00:35:10 +01:00
|
|
|
// background: sprite($sprites16, navigation) no-repeat;
|
2012-02-03 00:59:40 +01:00
|
|
|
}
|
|
|
|
}
|
2012-02-07 12:25:45 +01:00
|
|
|
.ss-uploadfield-item-editform {
|
|
|
|
/* don't use display none, for it will break jQuery('iframe').contents().height() */
|
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
clear: both;
|
2012-03-01 11:57:35 +01:00
|
|
|
|
2013-12-12 14:17:57 +01:00
|
|
|
&.loading {
|
|
|
|
width: 100%;
|
|
|
|
height: 22px;
|
|
|
|
margin: 15px 0 0;
|
|
|
|
background: url(../admin/images/spinner.gif) no-repeat 50% 0;
|
|
|
|
|
|
|
|
iframe {
|
|
|
|
/* Old IE needs this or it'll give the iframe a white background, covering the spinner */
|
|
|
|
padding-top: 0; margin-top: 22px;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-02-07 12:25:45 +01:00
|
|
|
iframe {
|
2012-03-01 11:57:35 +01:00
|
|
|
margin-top: $grid-y;
|
|
|
|
padding-top: $grid-y;
|
|
|
|
border-top: 1px solid $color-light-separator;
|
2012-02-07 12:25:45 +01:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ss-uploadfield-addfile {
|
|
|
|
&.borderTop {
|
|
|
|
border-top: 1px solid lighten($color-medium-separator, 20%);
|
|
|
|
}
|
|
|
|
}
|
2012-02-03 00:59:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.ss-upload {
|
|
|
|
.clear {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
.ss-uploadfield-fromcomputer {
|
|
|
|
input {
|
|
|
|
/* since we can't really style the file input, we use this hack to make it as big as the button and hide it */
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: 0;
|
|
|
|
opacity: 0;
|
|
|
|
filter: alpha(opacity=0);
|
2013-06-25 15:21:55 +02:00
|
|
|
transform: translate(-300px, 0) scale(4);
|
|
|
|
font-size: 23px;
|
2012-02-03 00:59:40 +01:00
|
|
|
direction: ltr;
|
|
|
|
cursor: pointer;
|
2013-06-25 15:21:55 +02:00
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
2012-02-03 00:59:40 +01:00
|
|
|
}
|
|
|
|
}
|
2014-03-03 22:27:45 +01:00
|
|
|
.loader {
|
|
|
|
height: 94px; // Approxmiately matches the height of the field once a file is attached, avoids a 'jump' in size
|
|
|
|
background: transparent url(../admin/images/spinner.gif) no-repeat 50% 50%;
|
|
|
|
}
|
2012-02-03 00:59:40 +01:00
|
|
|
}
|