2011-04-15 01:27:23 +02:00
|
|
|
/**
|
|
|
|
* This file defines common styles for form elements used throughout the CMS interface.
|
|
|
|
* It is an addition to the base styles defined in sapphire/css/Form.css.
|
|
|
|
*/
|
|
|
|
|
2011-07-07 07:34:55 +02:00
|
|
|
/** ----------------------------------------------------
|
|
|
|
* Basic form fields
|
|
|
|
* ---------------------------------------------------- */
|
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
.field {
|
|
|
|
display: block;
|
|
|
|
padding: 10px 0;
|
2011-06-10 04:56:55 +02:00
|
|
|
border-bottom: 1px solid $color-shadow-light;
|
|
|
|
overflow: hidden;
|
2011-07-06 15:22:13 +02:00
|
|
|
|
2011-06-10 04:56:55 +02:00
|
|
|
label.left {
|
2011-04-30 06:48:57 +02:00
|
|
|
float: left;
|
2011-06-10 04:56:55 +02:00
|
|
|
width: 170px;
|
|
|
|
padding: 8px 20px 8px 4px;
|
|
|
|
line-height: $font-base-lineheight;
|
2011-04-22 13:34:01 +02:00
|
|
|
}
|
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
// Don't float inner/contained fields
|
|
|
|
.middleColumn {
|
2011-07-06 15:22:13 +02:00
|
|
|
margin-left: 15em;
|
2011-04-30 06:48:57 +02:00
|
|
|
|
2011-04-24 01:05:59 +02:00
|
|
|
.field {
|
|
|
|
display: inline;
|
|
|
|
padding: 0;
|
2011-04-30 06:48:57 +02:00
|
|
|
border: none;
|
2011-04-24 01:05:59 +02:00
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
|
2011-04-24 01:05:59 +02:00
|
|
|
label {
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// TODO Change to mixin?
|
|
|
|
form.nostyle {
|
|
|
|
.field {
|
|
|
|
display: inline;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
2011-04-19 06:34:30 +02:00
|
|
|
}
|
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
label {
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
.middleColumn {
|
|
|
|
margin-left: 0;
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.field.nolabel {
|
|
|
|
.middleColumn {
|
|
|
|
margin-left: 0;
|
2011-04-17 09:57:36 +02:00
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
|
|
|
|
2011-07-07 08:01:25 +02:00
|
|
|
.field.text input, textarea {
|
2011-06-10 04:56:55 +02:00
|
|
|
@include border-radius(4px);
|
|
|
|
background: #fff;
|
2011-04-30 06:48:57 +02:00
|
|
|
@include linear-gradient(color-stops(
|
2011-06-10 04:56:55 +02:00
|
|
|
#efefef,
|
|
|
|
#fff 10%,
|
|
|
|
#fff 90%,
|
|
|
|
#efefef
|
2011-04-30 06:48:57 +02:00
|
|
|
));
|
2011-06-10 04:56:55 +02:00
|
|
|
border: 1px solid lighten($color-medium-separator, 20%);
|
|
|
|
padding: 7px;
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
|
|
|
|
2011-07-07 07:34:55 +02:00
|
|
|
/** ----------------------------------------------------
|
|
|
|
* Buttons
|
|
|
|
* ---------------------------------------------------- */
|
|
|
|
|
2011-07-07 08:01:25 +02:00
|
|
|
.cms {
|
|
|
|
input.loading,
|
|
|
|
input.ui-state-default.loading, .ui-widget-content input.ui-state-default.loading,
|
|
|
|
.ui-widget-header input.ui-state-default.loading {
|
|
|
|
padding-left: 16px;
|
|
|
|
background: $color-widget-bg url(../../images/network-save.gif) no-repeat center left;
|
|
|
|
}
|
2011-06-10 04:56:55 +02:00
|
|
|
|
2011-07-07 08:01:25 +02:00
|
|
|
.ss-ui-button.ss-ui-action-constructive,
|
|
|
|
.ui-widget-content .ss-ui-button.ss-ui-action-constructive,
|
|
|
|
.ui-widget-header .ss-ui-button.ss-ui-action-constructive {
|
|
|
|
padding-left: 23px;
|
|
|
|
color: $color-text-light;
|
|
|
|
border-color: $color-button-constructive-border;
|
|
|
|
@include background(image-url("../images/btn_icons_sprite.png") no-repeat 5px 6px,
|
|
|
|
linear-gradient(color-stops(
|
|
|
|
$color-button-constructive-light,
|
|
|
|
$color-button-constructive-dark
|
|
|
|
))
|
|
|
|
);
|
|
|
|
background-color: $color-button-constructive-light;
|
|
|
|
@include text-shadow(darken($color-base, 40%) 1px 1px 0);
|
|
|
|
@include box-shadow(darken($color-base, 20%) 1px 1px 2px);
|
|
|
|
}
|
2011-06-10 04:56:55 +02:00
|
|
|
|
2011-07-07 08:01:25 +02:00
|
|
|
.ss-ui-button.ss-ui-action-constructive.ui-state-hover {
|
|
|
|
@include background(image-url("../images/btn_icons_sprite.png") no-repeat 5px 6px,
|
|
|
|
linear-gradient(color-stops(
|
|
|
|
darken($color-button-constructive-light, 2%),
|
|
|
|
darken($color-button-constructive-dark, 3%)
|
|
|
|
))
|
|
|
|
);
|
|
|
|
background-color: $color-button-constructive-dark;
|
|
|
|
@include box-shadow(darken($color-base, 10%) 1px 1px 1px);
|
|
|
|
}
|
2011-06-10 04:56:55 +02:00
|
|
|
|
2011-07-07 08:01:25 +02:00
|
|
|
.ss-ui-button.ss-ui-action-constructive.cms-page-add-button {
|
|
|
|
background-position: 5px -155px;
|
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
|
2011-07-07 08:01:25 +02:00
|
|
|
.ss-ui-button.ss-ui-action-destructive,
|
|
|
|
.ui-widget-content .ss-ui-button.ss-ui-action-destructive,
|
|
|
|
.ui-widget-header .ss-ui-button.ss-ui-action-destructive {
|
|
|
|
color: $color-button-destructive;
|
|
|
|
background-color: $color-button-generic-light;
|
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
|
2011-07-07 08:01:25 +02:00
|
|
|
.ss-ui-button.ss-ui-action-destructive.delete {
|
|
|
|
padding-left: 23px;
|
|
|
|
color: $color-button-destructive;
|
|
|
|
border-color: $color-button-generic-border;
|
|
|
|
@include background(image-url("../images/btn_icons_sprite.png") no-repeat 5px -26px,
|
|
|
|
linear-gradient(color-stops(
|
|
|
|
$color-button-generic-light,
|
|
|
|
$color-button-generic-dark
|
|
|
|
))
|
|
|
|
);
|
|
|
|
@include text-shadow(none);
|
|
|
|
@include box-shadow(darken($color-base, 2%) 1px 1px 2px);
|
|
|
|
}
|
2011-06-10 04:56:55 +02:00
|
|
|
|
2011-07-07 08:01:25 +02:00
|
|
|
.ss-ui-button.ss-ui-action-destructive.delete.ui-state-hover {
|
|
|
|
@include background(image-url("../images/btn_icons_sprite.png") no-repeat 5px -26px,
|
|
|
|
linear-gradient(color-stops(
|
|
|
|
darken($color-button-generic-light, 2%),
|
|
|
|
darken($color-button-generic-dark, 3%)
|
|
|
|
))
|
|
|
|
);
|
|
|
|
background-color: $color-button-generic-dark;
|
|
|
|
@include box-shadow(darken($color-base, 10%) 1px 1px 1px);
|
|
|
|
}
|
2011-06-10 04:56:55 +02:00
|
|
|
|
2011-07-07 08:01:25 +02:00
|
|
|
.ss-ui-button.ss-ui-action-minor,
|
|
|
|
.ui-widget-content .ss-ui-button.ss-ui-action-minor
|
|
|
|
.ui-widget-header .ss-ui-button.ss-ui-action-minor {
|
|
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
color: $color-text-dark;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.cms-edit-form {
|
|
|
|
padding-bottom: 20px;
|
2011-04-17 09:57:36 +02:00
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
.text input, textarea {
|
2011-06-10 04:56:55 +02:00
|
|
|
width: 300px;
|
|
|
|
font-family: $font-family;
|
|
|
|
font-size: $font-base-size;
|
2011-04-17 09:57:36 +02:00
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
|
|
|
|
.Actions {
|
|
|
|
text-align: right;
|
2011-04-24 01:05:59 +02:00
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
2011-04-15 01:27:23 +02:00
|
|
|
|
2011-07-07 07:34:55 +02:00
|
|
|
/** ----------------------------------------------------
|
|
|
|
* Specific field overrides
|
|
|
|
* ---------------------------------------------------- */
|
2011-06-10 04:56:55 +02:00
|
|
|
|
2011-07-07 07:34:55 +02:00
|
|
|
.htmleditor {
|
|
|
|
label {
|
|
|
|
display: block;
|
|
|
|
float: none;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.middleColumn {
|
|
|
|
margin-left: 0px;
|
|
|
|
clear: left;
|
|
|
|
}
|
2011-06-10 04:56:55 +02:00
|
|
|
}
|
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
.field#ViewerGroups, .field#EditorGroups, .field#CreateTopLevelGroups {
|
|
|
|
label {
|
|
|
|
display: none;
|
|
|
|
}
|
2011-06-10 04:56:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.action-hidden {
|
|
|
|
display: none;
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|