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;
|
|
|
|
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
|
|
|
//** ----------------------------------------------------
|
2016-01-06 00:34:58 +01:00
|
|
|
// * Clear the properties of sub form fields.
|
2012-05-16 02:18:00 +02:00
|
|
|
// *
|
2016-01-06 00:34:58 +01:00
|
|
|
// * Often needed for nested form fields and
|
2012-05-16 02:18:00 +02:00
|
|
|
// * ----------------------------------------------------- */
|
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
|
|
|
|
2013-05-22 16:15:16 +02:00
|
|
|
//** ----------------------------------------------------
|
|
|
|
// * Show label and field content in their own lines,
|
|
|
|
// * to maximize the available horizontal space.
|
|
|
|
// * ----------------------------------------------------- */
|
|
|
|
@mixin form-field-stacked {
|
|
|
|
label {
|
|
|
|
display: block;
|
|
|
|
float: none;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2013-05-22 16:15:16 +02:00
|
|
|
.middleColumn {
|
|
|
|
margin-left: 0px;
|
|
|
|
clear: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
|
|
|
margin-left: 0px;
|
|
|
|
}
|
|
|
|
}
|
2012-12-06 03:22:45 +01:00
|
|
|
|
2012-11-21 22:01:02 +01:00
|
|
|
/*Mixin used to generate slightly smaller text and forms
|
|
|
|
Used in side panels and action tabs
|
|
|
|
*/
|
|
|
|
@mixin tightSpacing{
|
|
|
|
h3,h4,h5 {
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: $grid-y * 2;
|
|
|
|
}
|
|
|
|
h3 {
|
2016-03-22 00:25:23 +01:00
|
|
|
font-size: $font-size-root;
|
2012-11-21 22:01:02 +01:00
|
|
|
}
|
2012-12-06 03:22:45 +01:00
|
|
|
|
2012-11-21 22:01:02 +01:00
|
|
|
h4 {
|
2016-03-22 00:25:23 +01:00
|
|
|
font-size: $font-size-root -1;
|
|
|
|
margin: 5px 0;
|
2012-11-21 22:01:02 +01:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-11-21 22:01:02 +01:00
|
|
|
.ui-widget-content {
|
|
|
|
background: none;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-11-21 22:01:02 +01:00
|
|
|
.field {
|
2016-01-06 00:34:58 +01:00
|
|
|
/*
|
2012-11-29 04:26:50 +01:00
|
|
|
* Fields are more compressed in some areas compared to the
|
2012-11-21 22:01:02 +01:00
|
|
|
* main content editing window so the below alters the internal
|
|
|
|
* spacing of the fields so we can move that spacing to between
|
|
|
|
* the form fields rather than padding
|
|
|
|
*/
|
2012-11-29 04:26:50 +01:00
|
|
|
border-bottom:none;
|
2016-02-10 23:13:32 +01:00
|
|
|
box-shadow: none;
|
2012-11-21 22:01:02 +01:00
|
|
|
label {
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
2012-11-29 04:26:50 +01:00
|
|
|
font-size: 12px;
|
2012-11-21 22:01:02 +01:00
|
|
|
padding: 0 $grid-x 4px 0;
|
2012-11-29 04:26:50 +01:00
|
|
|
&.extra-details{
|
|
|
|
overflow:hidden;
|
|
|
|
margin-top:10px;
|
|
|
|
display: block;
|
|
|
|
color: lighten($color-text, 35%);
|
|
|
|
font-style:italic;
|
|
|
|
font-weight:normal;
|
|
|
|
font-size:1em;
|
2016-01-06 00:34:58 +01:00
|
|
|
float:left;
|
2016-02-10 23:13:32 +01:00
|
|
|
text-shadow: none;
|
2012-11-29 04:26:50 +01:00
|
|
|
&.fill{
|
|
|
|
&:before{
|
|
|
|
color:#fff;
|
|
|
|
content: '?';
|
|
|
|
font-size:12px;
|
2016-02-10 23:13:32 +01:00
|
|
|
box-sizing: border-box;
|
2012-11-29 04:26:50 +01:00
|
|
|
padding-left:3px;
|
|
|
|
padding-right:3px;
|
|
|
|
display:block;
|
|
|
|
float:left;
|
2016-02-10 23:13:32 +01:00
|
|
|
text-shadow: none;
|
|
|
|
border-radius: 50px;
|
2012-11-29 04:26:50 +01:00
|
|
|
background-color:lighten($color-text, 45%);
|
2016-02-18 05:33:47 +01:00
|
|
|
width:21px;
|
2012-11-29 04:26:50 +01:00
|
|
|
height:15px;
|
|
|
|
margin-right:5px;
|
|
|
|
margin-bottom:5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-11-21 22:01:02 +01:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-11-21 22:01:02 +01:00
|
|
|
.middleColumn {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-11-21 22:01:02 +01:00
|
|
|
input.text,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
padding: 5px;
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-11-21 22:01:02 +01:00
|
|
|
&.checkbox {
|
|
|
|
padding: 0 8px 0;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
|
|
|
input {
|
|
|
|
margin: 2px 0;
|
2012-11-21 22:01:02 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-12-06 03:22:45 +01:00
|
|
|
|
2012-11-21 22:01:02 +01:00
|
|
|
.fieldgroup {
|
|
|
|
.fieldgroup-field {
|
|
|
|
padding: 0;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-11-21 22:01:02 +01:00
|
|
|
.field {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-11-29 04:26:50 +01:00
|
|
|
|
|
|
|
/* Restyle for smaller area*/
|
|
|
|
.cms-content-fields{
|
|
|
|
overflow:visible;
|
|
|
|
}
|
2016-04-12 06:19:38 +02:00
|
|
|
.chosen-container-single{
|
2012-11-29 04:26:50 +01:00
|
|
|
width:100% !important;
|
2016-04-12 06:19:38 +02:00
|
|
|
.chosen-single{
|
2012-11-29 04:26:50 +01:00
|
|
|
padding: 0 0 0 5px;
|
2016-01-06 00:34:58 +01:00
|
|
|
float:none;
|
2012-11-29 04:26:50 +01:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|
2012-11-29 04:26:50 +01:00
|
|
|
.cms-content-actions, .cms-preview-controls{
|
|
|
|
padding:0;
|
|
|
|
height:auto;
|
|
|
|
border:none;
|
2016-02-10 23:13:32 +01:00
|
|
|
box-shadow: none;
|
2012-11-29 04:26:50 +01:00
|
|
|
}
|
|
|
|
.cms-edit-form{
|
|
|
|
width:100%;
|
|
|
|
}
|
|
|
|
.CompositeField{
|
|
|
|
margin:0;
|
|
|
|
padding:0;
|
2016-01-06 00:34:58 +01:00
|
|
|
float:none;
|
2012-11-29 04:26:50 +01:00
|
|
|
}
|
|
|
|
.parent-mode{
|
|
|
|
padding-top:0;
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|
2012-11-29 04:26:50 +01:00
|
|
|
.treedropdown, .SelectionGroup li.selected div.field{
|
2016-01-06 00:34:58 +01:00
|
|
|
margin:10px 0 0 0;
|
|
|
|
//@include box-shadow(inset 0 1px 0 #fff, 0 1px 1px rgba(0,0,0,0.1));
|
2012-11-29 04:26:50 +01:00
|
|
|
.treedropdownfield-title{
|
|
|
|
position:absolute;
|
2016-01-06 00:34:58 +01:00
|
|
|
z-index:2;
|
2012-11-29 04:26:50 +01:00
|
|
|
padding:5px;
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|
2012-11-29 04:26:50 +01:00
|
|
|
.treedropdownfield-panel{
|
|
|
|
margin-top:11px;
|
|
|
|
}
|
|
|
|
.treedropdownfield-toggle-panel-link{
|
|
|
|
background:none;
|
|
|
|
border-left:none;
|
|
|
|
padding:5px 3px;
|
|
|
|
.ui-icon{
|
|
|
|
float:right;
|
|
|
|
opacity:0.7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.cms-add-form ul.SelectionGroup{
|
|
|
|
padding-left:0;
|
|
|
|
padding-right:0;
|
|
|
|
overflow:visible;
|
|
|
|
border-bottom:none;
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|
2012-11-21 22:01:02 +01:00
|
|
|
}
|
2016-02-10 23:13:32 +01:00
|
|
|
|
|
|
|
//** ----------------------------------------------------
|
|
|
|
// * Compass replacement mixins.
|
|
|
|
// *
|
|
|
|
// * Mixins that were built-in with compass
|
|
|
|
// * ----------------------------------------------------- */
|
|
|
|
|
|
|
|
@mixin legacy-pie-clearfix {
|
|
|
|
&:after {
|
|
|
|
content: "\0020";
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
clear: both;
|
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|