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-04-30 06:48:57 +02:00
|
|
|
.field {
|
|
|
|
display: block;
|
|
|
|
padding: 10px 0;
|
|
|
|
border-bottom: 1px solid $color-shadow-light;
|
2011-04-19 06:34:30 +02:00
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
label {
|
|
|
|
float: left;
|
|
|
|
width: 10em;
|
2011-04-22 13:34:01 +02:00
|
|
|
}
|
|
|
|
|
2011-04-30 06:48:57 +02:00
|
|
|
// Don't float inner/contained fields
|
|
|
|
.middleColumn {
|
|
|
|
margin-left: 10em;
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
input, textarea {
|
|
|
|
@include border-radius(5px);
|
|
|
|
@include linear-gradient(color-stops(
|
|
|
|
$color-widget-bg,
|
|
|
|
lighten($color-widget-bg, 10%),
|
|
|
|
$color-widget-bg
|
|
|
|
));
|
|
|
|
border: 1px solid $color-shadow-light;
|
|
|
|
padding: 3px;
|
|
|
|
}
|
|
|
|
|
2011-05-02 01:43:34 +02:00
|
|
|
input.loading,
|
|
|
|
input.ui-state-default.loading, .ui-widget-content input.ui-state-default.loading,
|
|
|
|
.ui-widget-header input.ui-state-default.loading {
|
2011-04-30 06:48:57 +02:00
|
|
|
padding-left: 16px;
|
|
|
|
background: $color-widget-bg url(../../images/network-save.gif) no-repeat center left;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Buttons
|
|
|
|
.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 {
|
|
|
|
background: none; // avoid overwritten gradient from jQuery UI styles
|
|
|
|
@include linear-gradient(color-stops(
|
|
|
|
$color-button-constructive,
|
|
|
|
darken($color-button-constructive, 20%)
|
|
|
|
));
|
|
|
|
color: $color-text-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
width: 300px;
|
2011-04-17 09:57:36 +02:00
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
|
|
|
|
// TODO Unclear if "button bar" concept is edit form specific
|
|
|
|
.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-04-30 06:48:57 +02:00
|
|
|
.cms-content-tools {
|
|
|
|
.field {
|
|
|
|
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-22 13:34:01 +02:00
|
|
|
}
|
|
|
|
}
|
2011-04-30 06:48:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.field#ViewerGroups, .field#EditorGroups, .field#CreateTopLevelGroups {
|
|
|
|
label {
|
|
|
|
display: none;
|
|
|
|
}
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|