mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
79 lines
1.6 KiB
SCSS
79 lines
1.6 KiB
SCSS
/**
|
|
* 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.
|
|
*/
|
|
.cms {
|
|
|
|
// Form fields
|
|
|
|
.field {
|
|
display: block;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid $color-shadow-light;
|
|
|
|
label {
|
|
float: left;
|
|
width: 10em;
|
|
}
|
|
|
|
// Don't float inner/contained fields
|
|
.middleColumn {
|
|
margin-left: 10em;
|
|
|
|
.field {
|
|
display: inline;
|
|
padding: 0;
|
|
border: none;
|
|
}
|
|
|
|
label {
|
|
float: none;
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
input.loading {
|
|
padding-left: 16px;
|
|
background: $color-widget-bg url(../../images/network-save.gif) no-repeat center left;
|
|
}
|
|
|
|
// Buttons
|
|
.ss-ui-action-constructive,
|
|
.ui-widget-content .ss-ui-action-constructive,
|
|
.ui-widget-header .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-action-destructive,
|
|
.ui-widget-content .ss-ui-action-destructive,
|
|
.ui-widget-header .ss-ui-action-destructive {
|
|
color: $color-button-destructive;
|
|
}
|
|
|
|
.cms-edit-form {
|
|
padding-bottom: 20px;
|
|
|
|
// TODO Unclear if "button bar" concept is edit form specific
|
|
.Actions {
|
|
text-align: right;
|
|
}
|
|
}
|
|
} |