2012-05-16 02:18:00 +02:00
|
|
|
//**
|
|
|
|
// * This file contains generic mixins which we use throughout
|
|
|
|
// * the admin panels.
|
|
|
|
// *
|
|
|
|
// * Mixins should be stored here rather than individual files
|
|
|
|
// * so that we can keep.
|
|
|
|
// */
|
2011-07-29 05:10:14 +02:00
|
|
|
|
2012-05-16 02:18:00 +02:00
|
|
|
//** ----------------------------------------------------
|
|
|
|
// * Hides the overflowing text from a container
|
|
|
|
// *
|
|
|
|
// * Note: you must define a width on the element with this
|
|
|
|
// * overflow.
|
|
|
|
// * ----------------------------------------------------- */
|
2011-07-29 05:10:14 +02:00
|
|
|
@mixin hide-text-overflow {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
// could optionally use the compass mixin but that
|
|
|
|
// would require a 3rd party plugin
|
|
|
|
text-overflow: ellipsis;
|
2012-06-06 15:30:19 +02:00
|
|
|
-o-text-overflow: ellipsis;
|
2011-07-29 05:10:14 +02:00
|
|
|
}
|
|
|
|
|
2012-06-11 02:55:40 +02:00
|
|
|
@mixin box-shadow-none{
|
|
|
|
-moz-box-shadow: none;
|
|
|
|
-webkit-box-shadow: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-12-06 03:22:45 +01:00
|
|
|
//**----------------------------------------------------
|
|
|
|
//Clearfix mixin clears the float of it's parent element
|
|
|
|
//----------------------------------------------------**/
|
|
|
|
@mixin clearfix{
|
|
|
|
&:after{
|
|
|
|
content: ".";
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
clear: both;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
*:first-child &{ zoom:1;}
|
|
|
|
}
|
|
|
|
|
2012-06-11 02:55:40 +02:00
|
|
|
|
|
|
|
|
2012-05-16 02:18:00 +02:00
|
|
|
//** ----------------------------------------------------
|
|
|
|
// * Clear the properties of sub form fields.
|
|
|
|
// *
|
|
|
|
// * Often needed for nested form fields and
|
|
|
|
// * ----------------------------------------------------- */
|
2011-07-29 05:10:14 +02:00
|
|
|
@mixin clear-form-field-styles {
|
|
|
|
.field {
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
2012-05-15 22:15:36 +02:00
|
|
|
|
|
|
|
&.left {
|
|
|
|
float: none;
|
|
|
|
display: inherit;
|
|
|
|
width: auto;
|
|
|
|
padding: 0;
|
|
|
|
line-height: inherit;
|
|
|
|
}
|
2011-07-29 05:10:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.middleColumn {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2012-05-15 22:15:36 +02:00
|
|
|
|
|
|
|
input.text,
|
|
|
|
textarea,
|
|
|
|
select,
|
|
|
|
.TreeDropdownField {
|
|
|
|
width: auto;
|
|
|
|
max-width: auto;
|
|
|
|
}
|
2011-07-29 05:10:14 +02:00
|
|
|
}
|
2011-08-04 02:02:39 +02:00
|
|
|
|
2012-05-16 02:18:00 +02:00
|
|
|
//** ----------------------------------------------------
|
|
|
|
// * Double tone borders
|
|
|
|
// *
|
|
|
|
// * http://daverupert.com/2011/06/two-tone-borders-with-css3/
|
|
|
|
// * ----------------------------------------------------- */
|
2011-08-04 02:02:39 +02:00
|
|
|
@mixin doubleborder($side, $innerColor, $outerColor) {
|
|
|
|
$shadow: "0 0 0";
|
|
|
|
border-#{$side}: 1px solid $innerColor;
|
|
|
|
@if ($side == "top") { $shadow: 0 -1px 0; }
|
|
|
|
@if ($side == "right") { $shadow: 1px 0 0; }
|
|
|
|
@if ($side == "bottom") { $shadow: 0 1px 0; }
|
|
|
|
@if ($side == "left") { $shadow: -1px 0 0; }
|
|
|
|
-webkit-box-shadow: $shadow $outerColor;
|
|
|
|
-moz-box-shadow: $shadow $outerColor;
|
|
|
|
-o-box-shadow: $shadow $outerColor;
|
|
|
|
box-shadow: $shadow $outerColor;
|
|
|
|
}
|
2012-04-17 23:55:02 +02:00
|
|
|
|
2012-05-09 08:38:21 +02:00
|
|
|
|
2012-11-22 02:14:11 +01:00
|
|
|
@mixin transition($properties: margin 0.3s ease-in 0s){
|
|
|
|
-moz-transition: $properties;
|
|
|
|
-webkit-transition: $properties;
|
|
|
|
-o-transition: $properties;
|
|
|
|
transition: $properties;
|
|
|
|
}
|
2012-12-06 03:22:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|