2012-05-17 03:22:24 +02:00
|
|
|
//**
|
|
|
|
// * This file contains mixins relating to specific functionality
|
|
|
|
// *
|
|
|
|
// * Mixins should be stored here rather than individual files
|
|
|
|
// */
|
2012-05-16 02:18:00 +02:00
|
|
|
|
|
|
|
|
2012-05-17 03:22:24 +02:00
|
|
|
//*Mixin generates the generic button styling for the gridfield*/
|
2012-05-16 02:18:00 +02:00
|
|
|
@mixin gridFieldButtons{
|
2013-02-04 02:15:27 +01:00
|
|
|
border:none;
|
2012-05-16 02:18:00 +02:00
|
|
|
display:block;
|
|
|
|
text-indent:-9999em;
|
|
|
|
width:30px;
|
|
|
|
height:25px; //match the height of the input field
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-05-22 08:18:31 +02:00
|
|
|
// Mixin generates the styling for the actions buttons in file uploads
|
|
|
|
@mixin ss-uploadfield-action-buttons{
|
|
|
|
.ss-ui-button {
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
@include box-shadow(none);
|
|
|
|
@include text-shadow(none);
|
|
|
|
color: $color-text-light;
|
|
|
|
float: right;
|
|
|
|
|
|
|
|
&.ss-uploadfield-item-delete {
|
|
|
|
// TODO tmp hack until we have permissions and can disable delete
|
|
|
|
display: none;
|
|
|
|
}
|
2013-03-08 04:02:38 +01:00
|
|
|
&.ss-uploadfield-item-cancel, &.ss-uploadfield-item-overwrite-warning {
|
2012-05-22 08:18:31 +02:00
|
|
|
@include border-radius(0);
|
|
|
|
border-left:1px solid rgba(#fff, 0.2);
|
2013-02-04 02:15:27 +01:00
|
|
|
margin-top:0px;
|
2012-05-22 08:18:31 +02:00
|
|
|
cursor: pointer;
|
|
|
|
opacity:0.9;
|
|
|
|
&:hover{
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
.ui-icon {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
position:realtive;
|
2013-02-04 02:15:27 +01:00
|
|
|
top:8px;
|
|
|
|
}
|
|
|
|
}
|
2012-05-22 08:18:31 +02:00
|
|
|
@include ss-uploadfield-editButton;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-05-17 03:22:24 +02:00
|
|
|
//**
|
|
|
|
// Mixin creates a transparent button with a dropdown arrow,
|
|
|
|
// as is used for files in the files up-load area. The arrows
|
|
|
|
// themselves are added in the _style file
|
|
|
|
//**/
|
2012-05-16 02:18:00 +02:00
|
|
|
@mixin ss-uploadfield-editButton{
|
|
|
|
&.ss-uploadfield-item-edit {
|
|
|
|
opacity:0.9;
|
2013-02-04 02:15:27 +01:00
|
|
|
padding-top: 1px;
|
2012-05-16 02:18:00 +02:00
|
|
|
padding-bottom: 0;
|
|
|
|
height:100%;
|
|
|
|
@include border-radius(0);
|
|
|
|
&.ui-state-hover{
|
2013-02-04 02:15:27 +01:00
|
|
|
background:none;
|
2012-05-16 02:18:00 +02:00
|
|
|
opacity:1;
|
|
|
|
span.toggle-details{
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
span.toggle-details{
|
|
|
|
opacity:0.9;
|
|
|
|
margin-left:3px;
|
|
|
|
display: inline-block;
|
|
|
|
width: 5px;
|
|
|
|
height: 100%;
|
|
|
|
cursor: pointer;
|
|
|
|
.toggle-details-icon {
|
|
|
|
margin-top:1px;
|
|
|
|
display: inline-block;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
vertical-align: middle;
|
2013-02-04 02:15:27 +01:00
|
|
|
&.opened {
|
2012-05-16 02:18:00 +02:00
|
|
|
margin-top:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-icon {
|
|
|
|
display: none;
|
2013-02-04 02:15:27 +01:00
|
|
|
}
|
2012-05-16 02:18:00 +02:00
|
|
|
}
|