2011-04-15 01:27:23 +02:00
|
|
|
/**
|
|
|
|
* This file defines common styles for form elements used throughout the CMS interface.
|
2012-03-24 04:38:57 +01:00
|
|
|
* It is an addition to the base styles defined in framework/css/Form.css.
|
2011-07-29 05:10:14 +02:00
|
|
|
*
|
2012-04-12 08:02:46 +02:00
|
|
|
* @package framework
|
2011-07-29 05:10:14 +02:00
|
|
|
* @subpackage admin
|
2011-04-15 01:27:23 +02:00
|
|
|
*/
|
2011-07-29 05:10:14 +02:00
|
|
|
|
2011-07-07 07:34:55 +02:00
|
|
|
/** ----------------------------------------------------
|
|
|
|
* Basic form fields
|
2016-01-06 00:34:58 +01:00
|
|
|
* ---------------------------------------------------- */
|
2011-07-07 07:34:55 +02:00
|
|
|
|
2011-08-01 04:27:52 +02:00
|
|
|
form.nostyle {
|
|
|
|
@include clear-form-field-styles();
|
|
|
|
}
|
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
.field {
|
|
|
|
display: block;
|
2013-07-26 16:44:00 +02:00
|
|
|
@include doubleborder(bottom, $color-light-separator, $box-shadow-shine-minimal);
|
2011-09-29 04:37:51 +02:00
|
|
|
//overflow: hidden;
|
|
|
|
|
2011-08-01 04:27:52 +02:00
|
|
|
// bottom padding accounts for the border and we have a negative
|
2013-06-14 13:51:28 +02:00
|
|
|
// margin with a postive padding to ensure the bottom border extends over the edges
|
2012-02-14 11:18:58 +01:00
|
|
|
padding: 0 0 $grid-y - 1 0;
|
2013-06-04 02:11:05 +02:00
|
|
|
margin: $grid-y 0;
|
2011-12-21 19:45:20 +01:00
|
|
|
|
2013-06-14 13:51:28 +02:00
|
|
|
&.noborder, &:last-child {
|
|
|
|
padding-bottom: 0;
|
2012-05-11 09:48:44 +02:00
|
|
|
border-bottom: none;
|
|
|
|
@include box-shadow(none);
|
|
|
|
}
|
|
|
|
|
2011-08-05 05:46:57 +02:00
|
|
|
// using the legacy version as some of the more complex form fields
|
|
|
|
// need to use relative positioning and overflow hidden will not expand
|
|
|
|
// the containing boxes
|
|
|
|
@include legacy-pie-clearfix();
|
2013-06-14 13:51:28 +02:00
|
|
|
|
2012-01-03 17:38:11 +01:00
|
|
|
&.nolabel {
|
2011-08-01 04:27:52 +02:00
|
|
|
.middleColumn {
|
|
|
|
margin-left: 0;
|
2012-06-13 11:59:25 +02:00
|
|
|
}
|
2012-12-13 16:33:58 +01:00
|
|
|
.description {
|
2012-06-13 11:59:25 +02:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
2011-08-01 04:27:52 +02:00
|
|
|
}
|
2012-10-18 05:23:49 +02:00
|
|
|
|
2015-02-08 06:59:38 +01:00
|
|
|
&.checkbox label.right {
|
2012-10-18 05:23:49 +02:00
|
|
|
margin: $grid-y/2 0 0 0;
|
|
|
|
display:inline;
|
|
|
|
font-style: normal;
|
|
|
|
color: $color-text;
|
|
|
|
clear:none;
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|
|
|
|
label {
|
2011-08-05 06:06:23 +02:00
|
|
|
&.left {
|
|
|
|
float: left;
|
2011-08-09 07:52:13 +02:00
|
|
|
display: block;
|
2012-02-14 11:18:58 +01:00
|
|
|
width: $grid-x * 22;
|
|
|
|
padding: $grid-y $grid-x $grid-y 0;
|
|
|
|
line-height: $grid-y * 2;
|
2011-12-21 19:45:20 +01:00
|
|
|
font-weight: bold;
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|
2011-08-05 06:06:23 +02:00
|
|
|
&.right {
|
|
|
|
cursor: pointer;
|
2016-01-06 00:34:58 +01:00
|
|
|
clear: both;
|
2012-10-18 05:23:49 +02:00
|
|
|
color: lighten($color-text, 20%);
|
|
|
|
display: block;
|
|
|
|
font-style: italic;
|
|
|
|
margin: $grid-y/2 0 0 $grid-x*23;
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|
2011-04-22 13:34:01 +02:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
.middleColumn {
|
2012-02-14 11:18:58 +01:00
|
|
|
margin-left: $grid-x * 23;
|
2011-08-22 06:44:41 +02:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-22 06:44:41 +02:00
|
|
|
span.readonly {
|
2012-02-14 11:18:58 +01:00
|
|
|
padding-top: $grid-y;
|
|
|
|
line-height: $grid-y * 2;
|
2011-08-22 06:44:41 +02:00
|
|
|
display: block;
|
2011-04-17 09:57:36 +02:00
|
|
|
}
|
2012-02-14 03:18:24 +01:00
|
|
|
|
2012-12-06 04:01:33 +01:00
|
|
|
.fieldgroup .fieldgroup-field.last { /* This is used on page/settings/visibility */
|
|
|
|
padding-bottom: 8px; /* replicates li item spacing */
|
|
|
|
}
|
|
|
|
|
2012-02-14 03:18:24 +01:00
|
|
|
// Additional help text to clarify the field intent,
|
|
|
|
// displayed alongside the field (rather than in a tooltip)
|
2012-12-13 16:33:58 +01:00
|
|
|
.description {
|
2012-06-13 11:59:25 +02:00
|
|
|
clear: both;
|
2016-01-04 23:10:48 +01:00
|
|
|
color: lighten($color-text, 8.5%); //8.5% is the minimum required to meet contrast standards while still retaining visual difference from normal text
|
2012-06-13 11:59:25 +02:00
|
|
|
display: block;
|
2012-02-14 03:18:24 +01:00
|
|
|
font-style: italic;
|
2013-06-15 10:01:06 +02:00
|
|
|
line-height: $grid-y * 2;
|
2012-12-13 16:33:58 +01:00
|
|
|
margin: $grid-y/2 0 0 $grid-x*23; // left align with .middleColumn
|
2012-02-14 03:18:24 +01:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-12-13 16:33:58 +01:00
|
|
|
&.checkbox .description, &.ss-gridfield .description {
|
2012-11-30 11:45:23 +01:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-07-29 05:10:14 +02:00
|
|
|
input.text,
|
|
|
|
textarea,
|
2011-08-05 05:46:57 +02:00
|
|
|
select,
|
|
|
|
.TreeDropdownField {
|
2012-12-06 03:22:45 +01:00
|
|
|
margin-left: 10px;
|
2012-01-03 14:49:35 +01:00
|
|
|
width: 100%;
|
2012-02-14 11:18:58 +01:00
|
|
|
max-width: $grid-x * 64;
|
2012-01-03 14:49:35 +01:00
|
|
|
@include box-sizing(border-box);
|
2012-12-13 16:33:58 +01:00
|
|
|
&.description {
|
2012-09-20 03:25:57 +02:00
|
|
|
margin:0; //overrides help class adding left margin to the textarea input.
|
|
|
|
}
|
2012-12-13 16:33:58 +01:00
|
|
|
.description {
|
2012-06-13 11:59:25 +02:00
|
|
|
max-width: $grid-x * 64;
|
|
|
|
}
|
2011-07-29 05:10:14 +02:00
|
|
|
}
|
2012-05-30 01:47:48 +02:00
|
|
|
|
2016-01-06 00:34:58 +01:00
|
|
|
input.text,
|
2011-08-01 04:27:52 +02:00
|
|
|
textarea,
|
|
|
|
.TreeDropdownField {
|
2011-07-29 05:10:14 +02:00
|
|
|
background: #fff;
|
|
|
|
border: 1px solid lighten($color-medium-separator, 20%);
|
2012-02-14 11:18:58 +01:00
|
|
|
padding: ($grid-y - 1) ($grid-x - 1);
|
|
|
|
line-height: $grid-y * 2;
|
2011-07-29 05:10:14 +02:00
|
|
|
margin: 0;
|
2011-08-01 00:54:31 +02:00
|
|
|
outline: none;
|
2011-12-21 19:45:20 +01:00
|
|
|
@include transition(0.2s box-shadow ease-in);
|
|
|
|
@include transition(0.2s border ease-in);
|
2011-08-01 04:27:52 +02:00
|
|
|
@include border-radius(4px);
|
2012-02-01 02:06:06 +01:00
|
|
|
@include background-image(linear-gradient(#EAEAEA, #fff 10%));
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-01 04:27:52 +02:00
|
|
|
&:focus {
|
2011-12-21 19:45:20 +01:00
|
|
|
border: 1px solid lighten($color-medium-separator, 10%);
|
|
|
|
border-top-color: $color-medium-separator;
|
|
|
|
@include box-shadow(0 1px 3px rgba(0,0,0,0.2) inset);
|
2011-08-01 00:54:31 +02:00
|
|
|
}
|
2011-08-01 04:27:52 +02:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-03-09 04:11:32 +01:00
|
|
|
input[disabled], input.disabled,
|
|
|
|
textarea[disabled], textarea.disabled,
|
|
|
|
select[disabled], select.disabled {
|
2011-11-14 12:23:59 +01:00
|
|
|
color: lighten($color-text, 20%);
|
|
|
|
background: #efefef;
|
|
|
|
@include background-image(linear-gradient(darken(#efefef, 20%), #efefef 10%, #fff 90%, darken(#efefef, 20%)));
|
|
|
|
border: 1px solid lighten($color-medium-separator, 20%);
|
|
|
|
}
|
2012-06-11 06:02:33 +02:00
|
|
|
&#Action {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2015-04-22 04:42:24 +02:00
|
|
|
|
|
|
|
// When a field's description is toggleable, it's given an icon (right title) which is used as
|
|
|
|
// a click target for toggling the visibility of the description. See LeftAndMain.FieldDescriptionToggle.js
|
|
|
|
&.cms-description-toggle {
|
|
|
|
|
|
|
|
> .middleColumn { // The field wrapper
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-left: 0;
|
|
|
|
width: 36%;
|
|
|
|
min-width: 300px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right { // The column the trigger is inside.
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
height: 15px;
|
|
|
|
margin: 0 0 0 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-icon-information { // The default icon.
|
|
|
|
display: inline-block;
|
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
|
|
|
padding: 12px 0;
|
|
|
|
width: 36%;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Overrides of the above default styles, for specific field types.
|
|
|
|
&.textarea,
|
|
|
|
&.htmleditor,
|
|
|
|
&.optionset,
|
|
|
|
&.listbox,
|
|
|
|
&.upload {
|
|
|
|
.right {
|
|
|
|
vertical-align: top;
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.htmleditor {
|
|
|
|
.middleColumn,
|
|
|
|
.description {
|
|
|
|
width: 95%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.optionset {
|
|
|
|
.right {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
width: 170px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.listbox {
|
|
|
|
select {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.upload {
|
|
|
|
.description {
|
|
|
|
margin-left: 184px;
|
|
|
|
}
|
|
|
|
}
|
2015-04-28 00:49:17 +02:00
|
|
|
|
|
|
|
.cms-file-info-data & {
|
|
|
|
> .middleColumn {
|
|
|
|
margin-left: 8px !important;
|
|
|
|
width: auto;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
|
|
|
margin-left: 104px;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
2015-04-22 04:42:24 +02:00
|
|
|
}
|
2012-01-03 14:49:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
form.stacked .field, .field.stacked {
|
2013-05-22 16:15:16 +02:00
|
|
|
@include form-field-stacked;
|
2012-01-03 14:49:35 +01:00
|
|
|
}
|
|
|
|
|
2012-02-03 00:38:21 +01:00
|
|
|
form.small .field, .field.small {
|
|
|
|
label {
|
|
|
|
&.left {
|
2012-02-14 11:18:58 +01:00
|
|
|
width: $grid-x * 14;
|
2012-02-03 00:38:21 +01:00
|
|
|
}
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-02-03 00:38:21 +01:00
|
|
|
.middleColumn {
|
2012-02-14 11:18:58 +01:00
|
|
|
margin-left: $grid-x * 15;
|
2012-02-03 00:38:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
input.text,
|
|
|
|
textarea,
|
|
|
|
select,
|
|
|
|
.TreeDropdownField {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-06 00:34:58 +01:00
|
|
|
.field {
|
2011-08-01 04:27:52 +02:00
|
|
|
/* TreeDropdowns */
|
|
|
|
.TreeDropdownField {
|
2012-01-03 14:49:35 +01:00
|
|
|
padding: 0;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-09 07:52:13 +02:00
|
|
|
.treedropdownfield-panel {
|
2011-08-01 04:27:52 +02:00
|
|
|
border: 1px solid lighten($color-medium-separator, 20%);
|
|
|
|
border-top: none;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-01 04:27:52 +02:00
|
|
|
@include border-bottom-left-radius(4px);
|
|
|
|
@include border-bottom-right-radius(4px);
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-09 07:52:13 +02:00
|
|
|
&.treedropdownfield-open-tree {
|
|
|
|
@include border-bottom-left-radius(0);
|
|
|
|
@include border-bottom-right-radius(0);
|
|
|
|
}
|
2012-06-14 20:43:29 +02:00
|
|
|
|
2013-10-23 14:32:01 +02:00
|
|
|
&.treedropdownfield-with-rise {
|
|
|
|
-webkit-border-radius: 0 0 4px 4px;
|
|
|
|
-moz-border-radius: 0 0 4px 4px;
|
|
|
|
border-radius: 0 0 4px 4px;
|
|
|
|
|
|
|
|
.treedropdownfield-panel {
|
|
|
|
border: 1px solid lighten($color-medium-separator, 20%);
|
|
|
|
border-bottom: none;
|
|
|
|
|
|
|
|
-webkit-border-radius: 4px 4px 0 0;
|
|
|
|
-moz-border-radius: 4px 4px 0 0;
|
|
|
|
border-radius: 4px 4px 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-06-14 20:43:29 +02:00
|
|
|
// Hide badges, as they cost too much horizontal space,
|
|
|
|
// and mess up rendering for selected node title
|
|
|
|
.badge {
|
|
|
|
display: none;
|
|
|
|
}
|
2011-08-01 04:27:52 +02:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-05 05:46:57 +02:00
|
|
|
/* dropdowns */
|
|
|
|
.dropdown {
|
|
|
|
select {
|
2012-02-14 11:18:58 +01:00
|
|
|
margin-top: $grid-y;
|
2011-08-05 05:46:57 +02:00
|
|
|
}
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-05 05:46:57 +02:00
|
|
|
/* chzn override */
|
|
|
|
.chzn-container {
|
2015-02-08 06:59:38 +01:00
|
|
|
max-width: 512px;
|
2015-05-26 00:19:47 +02:00
|
|
|
vertical-align: bottom;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-05 06:06:23 +02:00
|
|
|
.chzn-results {
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-05 06:06:23 +02:00
|
|
|
li {
|
|
|
|
font-size: 11px;
|
2012-02-14 11:18:58 +01:00
|
|
|
line-height: $grid-y * 2;
|
|
|
|
padding: $grid-y / 2 $grid-x / 2;
|
2011-08-05 06:06:23 +02:00
|
|
|
}
|
2011-08-05 05:46:57 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.chzn-container-active {
|
|
|
|
.chzn-single {
|
|
|
|
border: 1px solid lighten($color-medium-separator, 10%);
|
|
|
|
}
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-05 05:46:57 +02:00
|
|
|
.chzn-container-single .chzn-single {
|
2015-02-08 06:59:38 +01:00
|
|
|
height: 30px;
|
|
|
|
line-height: 30px; /* not relative, as then we'd had to redo most of chzn */
|
2011-08-05 05:46:57 +02:00
|
|
|
font-size: $font-base-size;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-05 05:46:57 +02:00
|
|
|
@include background-image(linear-gradient(#efefef, #fff 10%, #fff 90%, #efefef));
|
2016-01-06 00:34:58 +01:00
|
|
|
|
|
|
|
|
2011-08-05 05:46:57 +02:00
|
|
|
&:hover, &:focus, &:active {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-05 05:46:57 +02:00
|
|
|
div {
|
|
|
|
width: 24px;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-05 05:46:57 +02:00
|
|
|
b {
|
2015-02-08 06:59:38 +01:00
|
|
|
background-position: 4px 3px;
|
2011-08-05 05:46:57 +02:00
|
|
|
}
|
|
|
|
}
|
2011-07-29 05:10:14 +02:00
|
|
|
}
|
2012-11-05 05:51:38 +01:00
|
|
|
.chzn-choices {
|
|
|
|
@include border-radius(3px);
|
2015-02-08 06:59:38 +01:00
|
|
|
|
|
|
|
.search-choice {
|
|
|
|
line-height: 16px;
|
|
|
|
.search-choice-close {
|
|
|
|
top: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.search-field input {
|
|
|
|
height: 18px;
|
|
|
|
}
|
2012-11-05 05:51:38 +01:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-09 07:52:13 +02:00
|
|
|
/* Date Fields */
|
2016-01-06 00:34:58 +01:00
|
|
|
input.month, input.day, input.year {
|
|
|
|
width: ($grid-x * 7);
|
2012-06-26 18:45:54 +02:00
|
|
|
}
|
2012-07-05 17:53:25 +02:00
|
|
|
|
2016-01-06 00:34:58 +01:00
|
|
|
input.time {
|
2013-02-17 20:57:53 +01:00
|
|
|
width: ($grid-x * 11); // smaller time field, since input is restricted
|
2012-07-04 18:57:07 +02:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-03-09 01:20:27 +01:00
|
|
|
/* Hides borders in settings/access. Activated from JS */
|
|
|
|
&.remove-splitter {
|
|
|
|
border-bottom: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
|
|
|
|
2011-07-07 07:34:55 +02:00
|
|
|
/** ----------------------------------------------------
|
|
|
|
* Buttons
|
|
|
|
* ---------------------------------------------------- */
|
|
|
|
|
2012-02-17 00:35:10 +01:00
|
|
|
.cms {
|
2012-11-21 22:01:02 +01:00
|
|
|
.button-no-style{
|
|
|
|
button{
|
2012-11-30 03:29:53 +01:00
|
|
|
@include border-radius(0);
|
2012-11-21 22:01:02 +01:00
|
|
|
background: none;
|
|
|
|
border: none;
|
2012-11-30 03:29:53 +01:00
|
|
|
color: $color-text-blue-link;
|
2012-11-21 22:01:02 +01:00
|
|
|
display: block;
|
2016-01-06 00:34:58 +01:00
|
|
|
font-weight:normal;
|
2012-11-21 22:01:02 +01:00
|
|
|
margin:0;
|
|
|
|
outline:none;
|
2012-11-30 03:29:53 +01:00
|
|
|
padding-left:10px;
|
2016-01-06 00:34:58 +01:00
|
|
|
padding-right:10px;
|
|
|
|
text-align: left;
|
|
|
|
text-shadow: none;
|
|
|
|
white-space:normal;
|
2012-11-21 22:01:02 +01:00
|
|
|
&.ss-ui-action-destructive{
|
|
|
|
color: darken($color-error,25%);
|
|
|
|
}
|
|
|
|
span{
|
|
|
|
padding-left:0;
|
|
|
|
padding-right:0;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
&:hover, &:focus, &:active{
|
|
|
|
@include box-shadow(none);
|
2012-11-21 22:01:02 +01:00
|
|
|
outline:none;
|
2016-01-06 00:34:58 +01:00
|
|
|
background:none;
|
2012-11-21 22:01:02 +01:00
|
|
|
border:none;
|
|
|
|
}
|
2012-12-13 22:03:43 +01:00
|
|
|
&.loading {
|
|
|
|
background: transparent url(../../images/network-save.gif) no-repeat $grid-x center;
|
|
|
|
.ui-button-text {
|
|
|
|
padding-left: 16px /* icon */ + ($grid-x/2);
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
|
|
|
|
2012-12-13 22:03:43 +01:00
|
|
|
}
|
2012-11-21 22:01:02 +01:00
|
|
|
}
|
|
|
|
}
|
2011-07-21 20:14:33 +02:00
|
|
|
|
2012-02-17 00:35:10 +01:00
|
|
|
.Actions, .cms-actions-row {
|
|
|
|
> * {
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin-right: $grid-x;
|
|
|
|
}
|
2011-07-21 20:14:33 +02:00
|
|
|
|
2012-02-17 00:35:10 +01:00
|
|
|
> *:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2012-02-01 02:06:06 +01:00
|
|
|
}
|
2011-07-21 20:14:33 +02:00
|
|
|
|
2012-02-17 00:35:10 +01:00
|
|
|
.Actions {
|
2012-11-27 06:03:43 +01:00
|
|
|
min-height: 30px;
|
2012-11-21 22:01:02 +01:00
|
|
|
overflow: auto;
|
2012-12-06 04:01:33 +01:00
|
|
|
padding: $grid-x $grid-y * 1.5;
|
2012-11-22 04:30:50 +01:00
|
|
|
}
|
|
|
|
.south .Actions, .ui-tabs-panel .Actions, .ui-tabs-panel iframe .Actions {
|
|
|
|
padding: 0;
|
2012-02-17 00:35:10 +01:00
|
|
|
}
|
2011-12-21 19:45:20 +01:00
|
|
|
|
2012-03-09 22:05:06 +01:00
|
|
|
input.loading, button.loading,
|
2016-01-06 00:34:58 +01:00
|
|
|
input.ui-state-default.loading, .ui-widget-content input.ui-state-default.loading,
|
2011-08-22 06:44:41 +02:00
|
|
|
.ui-widget-header input.ui-state-default.loading {
|
2012-03-09 22:05:06 +01:00
|
|
|
.ui-icon {
|
|
|
|
background: transparent url(../../images/network-save.gif) no-repeat 0 0;
|
|
|
|
}
|
|
|
|
|
2011-08-22 06:44:41 +02:00
|
|
|
color: lighten($color-text-dark, 20%);
|
|
|
|
border-color: darken($color-button-disabled, 10%);
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
2012-03-12 11:10:25 +01:00
|
|
|
input.loading, button.loading {
|
|
|
|
&.ss-ui-action-constructive {
|
|
|
|
.ui-icon {
|
|
|
|
background: transparent url(../../images/network-save-constructive.gif) no-repeat 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-22 06:44:41 +02:00
|
|
|
.ss-ui-button {
|
2012-08-02 23:12:56 +02:00
|
|
|
margin-top:0px;
|
2011-08-22 06:44:41 +02:00
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
2012-02-14 11:18:58 +01:00
|
|
|
line-height: $grid-y * 2;
|
2011-08-22 06:44:41 +02:00
|
|
|
color: lighten($color-text-dark, 10%);
|
|
|
|
border: 1px solid $color-button-generic-border;
|
2011-12-21 19:45:20 +01:00
|
|
|
border-bottom: 1px solid darken($color-button-generic-border, 10%);
|
2012-01-23 09:01:30 +01:00
|
|
|
cursor: pointer;
|
2012-02-17 00:35:10 +01:00
|
|
|
background-color: $color-button-generic;
|
2012-08-02 23:12:56 +02:00
|
|
|
white-space: nowrap;
|
|
|
|
|
2011-12-21 19:45:20 +01:00
|
|
|
@include background(
|
2011-08-22 06:44:41 +02:00
|
|
|
linear-gradient(color-stops(
|
|
|
|
lighten($color-button-generic, 10%),
|
|
|
|
darken($color-button-generic, 5%)
|
|
|
|
))
|
|
|
|
);
|
2012-02-17 00:35:10 +01:00
|
|
|
|
2012-08-02 23:12:56 +02:00
|
|
|
@include text-shadow(lighten($color-button-generic, 20%) 0 1px 1px);
|
|
|
|
|
2012-01-23 09:01:30 +01:00
|
|
|
&.ui-state-hover, &:hover {
|
2012-02-17 00:35:10 +01:00
|
|
|
text-decoration: none;
|
|
|
|
background-color: lighten($color-button-generic, 10%);
|
2011-12-21 19:45:20 +01:00
|
|
|
@include background(
|
2011-08-04 02:02:39 +02:00
|
|
|
linear-gradient(color-stops(
|
2011-08-22 06:44:41 +02:00
|
|
|
lighten($color-button-generic, 20%),
|
2012-01-23 09:01:30 +01:00
|
|
|
$color-button-generic
|
2011-08-04 02:02:39 +02:00
|
|
|
))
|
|
|
|
);
|
2012-01-23 09:01:30 +01:00
|
|
|
@include box-shadow(0 0 5px darken($color-button-generic, 20%));
|
2011-08-22 06:44:41 +02:00
|
|
|
}
|
2012-02-17 00:35:10 +01:00
|
|
|
|
2012-01-23 09:01:30 +01:00
|
|
|
&:active, &:focus, &.ui-state-active, &.ui-state-focus {
|
|
|
|
border: 1px solid darken($color-button-generic, 20%);
|
2012-02-17 00:35:10 +01:00
|
|
|
background-color: lighten($color-button-generic, 10%);
|
2011-12-21 19:45:20 +01:00
|
|
|
@include background(
|
2011-08-22 06:44:41 +02:00
|
|
|
linear-gradient(color-stops(
|
2012-01-23 09:01:30 +01:00
|
|
|
lighten($color-button-generic, 20%),
|
|
|
|
$color-button-generic
|
2011-08-22 06:44:41 +02:00
|
|
|
))
|
2012-01-23 09:01:30 +01:00
|
|
|
);
|
|
|
|
@include box-shadow(0 0 5px darken($color-button-generic, 20%) inset);
|
2011-08-22 06:44:41 +02:00
|
|
|
}
|
2013-02-04 12:10:34 +01:00
|
|
|
|
|
|
|
&.ss-ui-action-minor {
|
|
|
|
span {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-22 06:44:41 +02:00
|
|
|
/* constructive */
|
|
|
|
&.ss-ui-action-constructive {
|
2012-05-08 04:15:09 +02:00
|
|
|
text-shadow:none;
|
2012-02-17 00:35:10 +01:00
|
|
|
font-weight: bold;
|
|
|
|
color: $color-text-light;
|
|
|
|
border-color: $color-button-constructive-border;
|
2016-01-06 00:34:58 +01:00
|
|
|
border-bottom-color: darken($color-button-constructive-border, 10%);
|
2012-02-17 00:35:10 +01:00
|
|
|
background-color: $color-button-constructive;
|
|
|
|
@include background(
|
|
|
|
linear-gradient(color-stops(
|
2012-05-08 04:15:09 +02:00
|
|
|
scale-color(lighten($color-button-constructive, 10%), $red:50%),
|
|
|
|
$color-button-constructive
|
2012-02-17 00:35:10 +01:00
|
|
|
))
|
|
|
|
);
|
2012-05-08 04:15:09 +02:00
|
|
|
@include text-shadow(darken($color-button-constructive, 3%) 0 -1px -1px);
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-02-17 00:35:10 +01:00
|
|
|
&.ui-state-hover, &:hover {
|
|
|
|
border-color: darken($color-button-constructive-border, 10%);
|
2012-05-08 04:15:09 +02:00
|
|
|
background-color: $color-button-constructive;
|
2012-02-17 00:35:10 +01:00
|
|
|
@include background(
|
|
|
|
linear-gradient(color-stops(
|
2012-05-08 04:15:09 +02:00
|
|
|
scale-color(saturate(lighten($color-button-constructive, 10%), 10%), $red:60%),
|
|
|
|
lighten($color-button-constructive, 5%)
|
2012-02-17 00:35:10 +01:00
|
|
|
))
|
|
|
|
);
|
|
|
|
}
|
|
|
|
&:active, &:focus, &.ui-state-active, &.ui-state-focus {
|
|
|
|
background-color: darken($color-button-constructive, 2%);
|
|
|
|
@include box-shadow(inset 0 1px 3px rgb(23, 24, 26), 0 1px 0 rgba(255, 255, 255, .6));
|
|
|
|
}
|
2011-12-21 19:45:20 +01:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-22 06:44:41 +02:00
|
|
|
/* destructive */
|
|
|
|
&.ss-ui-action-destructive {
|
2013-10-24 11:37:40 +02:00
|
|
|
color: $color-button-destructive;
|
|
|
|
background-color: $color-button-generic;
|
2011-09-29 04:15:12 +02:00
|
|
|
}
|
|
|
|
|
2011-08-22 06:44:41 +02:00
|
|
|
&.ss-ui-button-small {
|
2012-05-10 14:17:02 +02:00
|
|
|
.ui-button-text {
|
|
|
|
font-size: $font-base-size - 2;
|
|
|
|
}
|
2011-08-22 06:44:41 +02:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-22 06:44:41 +02:00
|
|
|
&.ui-state-highlight {
|
|
|
|
background-color: $color-button-highlight;
|
|
|
|
border: 1px solid $color-button-highlight-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.ss-ui-action-minor {
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
color: lighten($color-text-dark, 10%);
|
|
|
|
text-decoration: underline;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-22 06:44:41 +02:00
|
|
|
@include box-shadow(none);
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-22 06:44:41 +02:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
color: $color-text-dark;
|
2011-08-04 02:02:39 +02:00
|
|
|
}
|
2011-08-22 06:44:41 +02:00
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
text-decoration: none;
|
|
|
|
color: lighten($color-text-dark, 20%);
|
2011-08-04 02:02:39 +02:00
|
|
|
}
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-03-24 02:20:33 +01:00
|
|
|
&.ss-ui-button-loading {
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
2015-08-25 05:03:29 +02:00
|
|
|
|
|
|
|
/* font-icon buttons */
|
|
|
|
&[class*="font-icon-"],
|
|
|
|
&[class^="font-icon-"],
|
|
|
|
&.ss-ui-button-constructive[class*="font-icon-"] {
|
|
|
|
padding: 5px 8px;
|
|
|
|
margin-bottom: $grid-y*1.5;
|
|
|
|
vertical-align: middle;
|
|
|
|
box-shadow: none;
|
|
|
|
border: 0;
|
|
|
|
background: none;
|
|
|
|
text-shadow: none;
|
|
|
|
text-decoration: none;
|
|
|
|
font-weight: normal;
|
|
|
|
color: $color-text;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2015-08-25 05:03:29 +02:00
|
|
|
&:hover {
|
|
|
|
@include box-shadow(none);
|
|
|
|
background: #dee3e8;
|
2015-10-23 05:01:40 +02:00
|
|
|
color: darken($color-text, 10%);
|
2015-08-25 05:03:29 +02:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
@include box-shadow(none);
|
|
|
|
background: #dee3e8;
|
2015-10-23 05:01:40 +02:00
|
|
|
color: darken($color-text, 10%);
|
2015-08-25 05:03:29 +02:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
font-size: 16px;
|
|
|
|
margin-right: 5px;
|
|
|
|
margin-top: 0;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.ui-state-focus {
|
|
|
|
@include box-shadow(none);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&:active {
|
|
|
|
@include box-shadow(0 0 3px rgba(191, 194, 196, .9) inset);
|
|
|
|
background: #dee3e8;
|
2015-10-23 05:01:40 +02:00
|
|
|
color: darken($color-text, 10%);
|
2015-08-25 05:03:29 +02:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.font-icon-search {
|
2015-10-23 05:01:40 +02:00
|
|
|
padding: 4px 5px;
|
|
|
|
margin-right: 6px;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
font-size: 20px;
|
2015-08-25 05:03:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-button-text {
|
|
|
|
@include inline-block;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-10-23 05:01:40 +02:00
|
|
|
|
|
|
|
&.no-text {
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&.active {
|
|
|
|
@include box-shadow(none);
|
|
|
|
background: none;
|
|
|
|
color: darken($color-text, 10%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-08-25 05:03:29 +02:00
|
|
|
}
|
2012-03-24 02:20:33 +01:00
|
|
|
}
|
2012-08-07 18:05:45 +02:00
|
|
|
|
|
|
|
.ss-ui-buttonset {
|
|
|
|
.ui-button {
|
|
|
|
margin-left: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ss-ui-buttonset {
|
|
|
|
margin-left: 1px;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-03-24 02:20:33 +01:00
|
|
|
.ss-ui-loading-icon {
|
|
|
|
background: url(../../images/network-save.gif) no-repeat;
|
|
|
|
display: block;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2011-07-07 08:01:25 +02:00
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
|
|
|
|
2011-07-29 05:10:14 +02:00
|
|
|
/** ----------------------------------------------------
|
|
|
|
* Grouped form fields
|
|
|
|
* ---------------------------------------------------- */
|
|
|
|
.fieldgroup {
|
|
|
|
.fieldgroup-field {
|
|
|
|
float: left;
|
|
|
|
display: block;
|
2013-01-14 01:38:09 +01:00
|
|
|
padding: $grid-y $grid-x 0 0;
|
2011-08-09 07:52:13 +02:00
|
|
|
|
|
|
|
.field {
|
|
|
|
border: none;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
2013-01-14 01:38:09 +01:00
|
|
|
|
2013-07-28 15:52:39 +02:00
|
|
|
.fieldholder-small {
|
|
|
|
padding: 0 0 $grid-y 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fieldgroup input.text, .fieldgroup textarea, .fieldgroup select, .fieldgroup .TreeDropdownField {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Style specific label with display block, otherwise
|
|
|
|
// checkbox falls under the text
|
|
|
|
.fieldholder-small-label {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2013-01-14 01:38:09 +01:00
|
|
|
label {
|
2013-07-28 15:52:39 +02:00
|
|
|
padding: $grid-y $grid-x $grid-y 0;
|
2013-01-14 01:38:09 +01:00
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 1em;
|
|
|
|
width: auto;
|
|
|
|
}
|
2011-04-17 09:57:36 +02:00
|
|
|
}
|
2012-08-27 15:50:21 +02:00
|
|
|
|
|
|
|
&.stacked {
|
|
|
|
.fieldgroup-field {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
2011-07-29 05:10:14 +02:00
|
|
|
}
|
2012-06-13 06:20:07 +02:00
|
|
|
|
|
|
|
.ss-toggle {
|
2012-11-22 04:30:50 +01:00
|
|
|
margin: $grid-y 0;
|
2012-06-13 06:20:07 +02:00
|
|
|
|
|
|
|
.ui-accordion-header {
|
|
|
|
font-weight: bold;
|
2012-11-22 04:30:50 +01:00
|
|
|
font-size: 12px;
|
2012-06-13 06:20:07 +02:00
|
|
|
|
|
|
|
&.ui-state-default {
|
|
|
|
@include background-image(
|
|
|
|
linear-gradient(lighten($color-shadow-light, 15%), $color-shadow-light)
|
|
|
|
);
|
|
|
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
|
|
|
|
}
|
2012-11-22 04:30:50 +01:00
|
|
|
.ui-accordion-header-icon {
|
|
|
|
margin-top: -9px;
|
|
|
|
}
|
2012-06-13 06:20:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.ui-accordion-content {
|
2012-11-22 04:30:50 +01:00
|
|
|
padding: $grid-y 0 $grid-y*1.5;
|
2012-06-13 06:20:07 +02:00
|
|
|
|
|
|
|
.field {
|
|
|
|
@include box-shadow(none);
|
2012-11-22 04:30:50 +01:00
|
|
|
padding-left: $grid-x*1.5;
|
|
|
|
padding-right: $grid-x*1.5;
|
2012-06-13 06:20:07 +02:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2012-11-22 04:30:50 +01:00
|
|
|
.middleColumn {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
label {
|
|
|
|
float: none;
|
|
|
|
margin-left: 0;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2015-06-12 01:59:48 +02:00
|
|
|
&.ss-ui-button {
|
2016-01-06 00:34:58 +01:00
|
|
|
float: left;
|
2015-06-12 01:59:48 +02:00
|
|
|
}
|
2012-11-22 04:30:50 +01:00
|
|
|
}
|
2012-12-13 16:33:58 +01:00
|
|
|
.description {
|
2012-11-22 04:30:50 +01:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
2012-06-13 06:20:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-08-01 00:54:31 +02:00
|
|
|
/** ----------------------------------------------------
|
|
|
|
* Checkbox Field
|
|
|
|
* ---------------------------------------------------- */
|
2012-01-03 14:49:35 +01:00
|
|
|
.field.checkbox {
|
2012-02-14 11:18:58 +01:00
|
|
|
padding-left: $grid-x * 23;
|
|
|
|
margin-bottom: $grid-y;
|
2012-01-03 14:49:35 +01:00
|
|
|
|
|
|
|
input {
|
|
|
|
margin-left: 0;
|
2011-08-01 04:27:52 +02:00
|
|
|
}
|
2011-08-01 00:54:31 +02:00
|
|
|
}
|
2012-01-06 20:44:34 +01:00
|
|
|
input.checkbox {
|
|
|
|
margin-left: 0
|
|
|
|
}
|
|
|
|
|
|
|
|
/** ----------------------------------------------------
|
|
|
|
* Radiobutton Field
|
|
|
|
* ---------------------------------------------------- */
|
|
|
|
.field.radio {
|
2012-02-14 11:18:58 +01:00
|
|
|
padding-left: $grid-x * 23;
|
|
|
|
margin-bottom: $grid-y;
|
2012-01-06 20:44:34 +01:00
|
|
|
|
|
|
|
input {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
input.radio {
|
|
|
|
margin-left: 0
|
|
|
|
}
|
|
|
|
|
2011-07-29 05:10:14 +02:00
|
|
|
/** ----------------------------------------------------
|
|
|
|
* Optionsets and Checkboxsets
|
|
|
|
* ---------------------------------------------------- */
|
|
|
|
.optionset {
|
2011-08-01 04:27:52 +02:00
|
|
|
padding-bottom: 8px;
|
2012-11-22 04:30:50 +01:00
|
|
|
padding-top: 8px;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-07-29 05:10:14 +02:00
|
|
|
li {
|
|
|
|
float: left;
|
|
|
|
display: block;
|
2012-02-14 11:18:58 +01:00
|
|
|
width: $grid-x * 27;
|
|
|
|
padding-bottom: $grid-x;
|
2012-11-22 04:30:50 +01:00
|
|
|
padding-top: 0;
|
2012-02-14 11:18:58 +01:00
|
|
|
line-height: $grid-y * 2;
|
2011-07-29 05:10:14 +02:00
|
|
|
list-style: none;
|
2011-08-01 00:54:31 +02:00
|
|
|
|
|
|
|
input {
|
2012-01-06 20:44:34 +01:00
|
|
|
display: inline-block;
|
|
|
|
padding-right: 0;
|
|
|
|
margin-right: 0;
|
2011-08-01 00:54:31 +02:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-07-29 05:10:14 +02:00
|
|
|
label {
|
2012-01-06 20:44:34 +01:00
|
|
|
display: inline;
|
2011-08-01 00:54:31 +02:00
|
|
|
cursor: pointer;
|
2012-02-14 11:18:58 +01:00
|
|
|
padding-left: $grid-y;
|
2011-07-29 05:10:14 +02:00
|
|
|
}
|
2011-07-21 20:14:33 +02:00
|
|
|
|
2011-04-24 01:05:59 +02:00
|
|
|
}
|
2012-11-22 04:30:50 +01:00
|
|
|
&.field {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
2011-08-01 04:27:52 +02:00
|
|
|
|
2012-02-14 03:18:24 +01:00
|
|
|
|
2011-07-07 07:34:55 +02:00
|
|
|
/** ----------------------------------------------------
|
2016-01-06 00:34:58 +01:00
|
|
|
* HTML Text
|
2011-07-07 07:34:55 +02:00
|
|
|
* ---------------------------------------------------- */
|
2011-06-10 04:56:55 +02:00
|
|
|
|
2011-07-07 07:34:55 +02:00
|
|
|
.htmleditor {
|
2013-05-22 16:15:16 +02:00
|
|
|
|
|
|
|
@include form-field-stacked;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-12-14 16:54:52 +01:00
|
|
|
textarea {
|
|
|
|
visibility: hidden; // enabled by JS
|
|
|
|
}
|
|
|
|
|
2012-01-03 14:49:35 +01:00
|
|
|
.mceEditor {
|
|
|
|
input, select {
|
|
|
|
width: auto;
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|
2011-07-07 07:34:55 +02:00
|
|
|
}
|
2012-06-11 06:02:33 +02:00
|
|
|
label.left {
|
|
|
|
padding-bottom: $grid-y/2;
|
|
|
|
}
|
2011-06-10 04:56:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-hidden {
|
|
|
|
display: none;
|
2012-03-24 04:38:57 +01:00
|
|
|
}
|
2012-05-08 04:15:09 +02:00
|
|
|
|
|
|
|
|
2012-11-22 04:30:50 +01:00
|
|
|
/***************************************************************
|
2016-01-06 00:34:58 +01:00
|
|
|
* On/Off Switch.
|
2012-12-03 03:17:16 +01:00
|
|
|
* Supports switching between up to 5 values (used for Draft/Published)
|
2012-11-22 04:30:50 +01:00
|
|
|
* Example html set-up:
|
2016-01-06 00:34:58 +01:00
|
|
|
* <fieldset class="switch-states size_2">
|
|
|
|
* <div class="switch">
|
2012-12-03 03:17:16 +01:00
|
|
|
* <input id="Draft" class="first" name="view" type="radio" checked>
|
2016-01-06 00:34:58 +01:00
|
|
|
* <label for="Draft">Draft</label>
|
2012-12-03 03:17:16 +01:00
|
|
|
* <input id="Published" class="last" name="view" type="radio">
|
2016-01-06 00:34:58 +01:00
|
|
|
* <label for="Published">Published</label>
|
|
|
|
* <span class="slide-button"></span>
|
|
|
|
* </div>
|
2012-12-03 03:17:16 +01:00
|
|
|
* </fieldset>
|
2012-11-22 04:30:50 +01:00
|
|
|
****************************************************************/
|
2016-01-06 00:34:58 +01:00
|
|
|
fieldset.switch-states{
|
2015-08-31 23:46:39 +02:00
|
|
|
margin-right: 8px;
|
2012-12-06 04:01:33 +01:00
|
|
|
|
2012-12-03 03:17:16 +01:00
|
|
|
.switch{
|
2015-08-31 23:46:39 +02:00
|
|
|
border: 2px solid lighten(#2d3035,65%);
|
2012-12-03 03:17:16 +01:00
|
|
|
@include border-radius(3px);
|
|
|
|
-webkit-animation: bugfix infinite 1s; //Bugfix for older Webkit, including mobile Webkit.
|
2016-01-06 00:34:58 +01:00
|
|
|
background:lighten(#2d3035,69%);
|
|
|
|
display: block;
|
2015-08-31 23:46:39 +02:00
|
|
|
height: 24px;
|
2016-01-06 00:34:58 +01:00
|
|
|
position: relative;
|
2012-12-03 03:17:16 +01:00
|
|
|
width:100%;
|
|
|
|
z-index:5;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-12-03 03:17:16 +01:00
|
|
|
label{
|
2012-12-04 06:10:20 +01:00
|
|
|
@include hide-text-overflow;
|
|
|
|
color:lighten($color-text-dark,40%);
|
2012-12-03 03:17:16 +01:00
|
|
|
color:rgba($color-text-dark,0.5);
|
2012-12-04 06:10:20 +01:00
|
|
|
cursor: pointer;
|
2012-12-03 03:17:16 +01:00
|
|
|
float:left;
|
|
|
|
font-weight:bold;
|
|
|
|
height: 100%;
|
2016-01-06 00:34:58 +01:00
|
|
|
line-height: 25px;
|
2012-12-03 03:17:16 +01:00
|
|
|
position:relative;
|
2016-01-06 00:34:58 +01:00
|
|
|
z-index:2;
|
2015-08-31 23:46:39 +02:00
|
|
|
min-width: 80px;
|
2012-12-04 06:10:20 +01:00
|
|
|
/* Make text unselectable in browsers that support that */
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-khtml-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
2016-01-06 00:34:58 +01:00
|
|
|
user-select: none;
|
2012-12-03 03:17:16 +01:00
|
|
|
&:hover{
|
2016-01-06 00:34:58 +01:00
|
|
|
color:lighten($color-text-dark, 30%);
|
|
|
|
color:rgba($color-text-dark,0.7);
|
|
|
|
}
|
2012-12-03 03:17:16 +01:00
|
|
|
span{
|
|
|
|
@include box-sizing('border-box');
|
2012-12-04 06:10:20 +01:00
|
|
|
@include hide-text-overflow;
|
|
|
|
display:inline-block;
|
2015-08-31 23:46:39 +02:00
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
2012-12-04 06:10:20 +01:00
|
|
|
}
|
2012-12-03 03:17:16 +01:00
|
|
|
}
|
|
|
|
input {
|
|
|
|
opacity: 0;
|
2012-12-04 06:10:20 +01:00
|
|
|
filter: alpha(opacity = 0);
|
2016-01-06 00:34:58 +01:00
|
|
|
visibility:none;
|
|
|
|
position: absolute;
|
2012-12-03 03:17:16 +01:00
|
|
|
&:checked + label {
|
2016-01-06 00:34:58 +01:00
|
|
|
@include transition(all 0.3s ease-out 0s);
|
2012-12-03 03:17:16 +01:00
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.slide-button{
|
|
|
|
@include border-radius(3px);
|
2016-01-06 00:34:58 +01:00
|
|
|
@include transition(all 0.3s ease-out 0s);
|
|
|
|
background-color: #2b9c32;
|
2012-12-03 03:17:16 +01:00
|
|
|
display:block;
|
2015-08-31 23:46:39 +02:00
|
|
|
height: 24px;
|
|
|
|
left: 0;
|
2012-12-03 03:17:16 +01:00
|
|
|
padding: 0;
|
|
|
|
position: absolute;
|
2016-01-06 00:34:58 +01:00
|
|
|
top: 0;
|
|
|
|
z-index: 1;
|
2012-12-03 03:17:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-06 00:34:58 +01:00
|
|
|
/*
|
2012-12-03 03:17:16 +01:00
|
|
|
Produce css for up to 5 states.
|
|
|
|
|
2016-01-06 00:34:58 +01:00
|
|
|
Note: with a little adjustment the switch can take more than 5 items,
|
2012-12-03 03:17:16 +01:00
|
|
|
but a dropdown would probably be more appropriate
|
|
|
|
*/
|
|
|
|
@for $i from 1 through 5 {
|
|
|
|
&.size_#{$i} {
|
2016-01-06 00:34:58 +01:00
|
|
|
label, .slide-button {
|
|
|
|
width: 100% / $i;
|
|
|
|
}
|
2012-12-03 03:17:16 +01:00
|
|
|
@if $i == 1{
|
|
|
|
label span{
|
2012-12-06 04:01:33 +01:00
|
|
|
padding-right:0; //even up the padding for a single item
|
2012-11-27 06:03:43 +01:00
|
|
|
}
|
2012-12-03 03:17:16 +01:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
input:checked:nth-of-type(2) ~ .slide-button {
|
2012-12-03 03:17:16 +01:00
|
|
|
left: 100% / $i;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
input:checked:nth-of-type(3) ~ .slide-button {
|
2012-12-03 03:17:16 +01:00
|
|
|
left: (100% / $i) * 2;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
input:checked:nth-of-type(4) ~ .slide-button {
|
2012-12-03 03:17:16 +01:00
|
|
|
left: (100% / $i) * 3;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
input:checked:nth-of-type(5) ~ .slide-button {
|
2012-12-03 03:17:16 +01:00
|
|
|
left: (100% / $i) * 4;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//old web-kit browser fix
|
2012-12-03 03:17:16 +01:00
|
|
|
@-webkit-keyframes bugfix { from { position: relative; } to { position: relative; } }
|
2015-06-16 00:52:42 +02:00
|
|
|
|
|
|
|
//Styling for filter/search dropdown
|
|
|
|
.cms-content-filters {
|
|
|
|
fieldset {
|
|
|
|
margin-left: -16px;
|
|
|
|
margin-right: -16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fieldgroup {
|
|
|
|
width: 50%;
|
|
|
|
display: inline-block;
|
|
|
|
max-width: 440px;
|
|
|
|
padding-right: 16px;
|
|
|
|
padding-left: 16px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-right: -2px;
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
|
.first {
|
|
|
|
label, h1, h2, h3, h4, h5 {
|
|
|
|
display: block;
|
|
|
|
width: 176px;
|
|
|
|
padding: 8px 8px 6px 0;
|
|
|
|
line-height: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.field {
|
|
|
|
width: 100%;
|
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fieldgroup-field {
|
|
|
|
position: relative;
|
|
|
|
margin-right: 0;
|
|
|
|
width: 48%;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
.description {
|
|
|
|
margin-top: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
position: absolute;
|
|
|
|
top: 28px;
|
|
|
|
font-style: italic;
|
|
|
|
color: #777;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.first {
|
|
|
|
width: 100%;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.last {
|
|
|
|
padding-right: 0;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fieldgroup {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.field {
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
width: 50%;
|
|
|
|
max-width: 440px;
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 0 8px 0;
|
|
|
|
padding-right: 16px;
|
|
|
|
padding-left: 16px;
|
|
|
|
padding-bottom: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-right: -2px;
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
|
label.left {
|
|
|
|
text-shadow: none;
|
|
|
|
padding-bottom: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dropdown {
|
|
|
|
float: none;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chzn-container {
|
|
|
|
width: 100% !important;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
input.text {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.checkbox {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.importSpec {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
padding-left: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.middleColumn {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Actions {
|
2016-01-04 23:10:48 +01:00
|
|
|
margin: $grid-y 0;
|
2015-06-16 00:52:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width:767px) {
|
|
|
|
fieldset {
|
|
|
|
.field,
|
|
|
|
.fieldgroup {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-06-26 02:45:02 +02:00
|
|
|
|
|
|
|
// Context specific rules for when the filters are in a panel
|
|
|
|
.cms-panel & {
|
|
|
|
.field,
|
|
|
|
.fieldgroup {
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fieldgroup-field {
|
|
|
|
h4 {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.Actions {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-06-16 00:52:42 +02:00
|
|
|
}
|
|
|
|
|