2011-09-28 05:06:06 +02:00
|
|
|
/**
|
2011-09-30 00:59:44 +02:00
|
|
|
* Core styles for the basic GridField form field without any specific style.
|
2011-09-28 05:06:06 +02:00
|
|
|
*
|
|
|
|
* @package sapphire
|
|
|
|
* @subpackage scss
|
2011-12-06 01:56:24 +01:00
|
|
|
* @todo Add radial gradient to default delete button state
|
|
|
|
* @todo Create SASS mixin-function to simply swap the from/to, to to/from colours in grsdient mixins?
|
2011-09-28 05:06:06 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
@import "compass/css3";
|
|
|
|
|
2011-12-06 01:56:24 +01:00
|
|
|
$gf_colour_gradient_light: #B1C0C5;
|
|
|
|
$gf_colour_gradient_dark: #7F9198;
|
|
|
|
$gf_colour_base: #95a5ab;
|
|
|
|
$gf_colour_header_border: #819198;
|
|
|
|
$gf_colour_border: #DBDDDD;
|
|
|
|
$gf_colour_zebra: #f2f9fd;
|
|
|
|
$gf_border_radius: 7px;
|
2011-09-28 05:06:06 +02:00
|
|
|
|
2012-01-09 01:46:06 +01:00
|
|
|
@mixin box-shadow-none {
|
|
|
|
-moz-box-shadow: none;
|
|
|
|
-webkit-box-shadow: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2011-12-06 01:56:24 +01:00
|
|
|
@mixin gridfield-gradient-top {
|
|
|
|
background: $gf_colour_gradient_light;
|
|
|
|
background: -moz-linear-gradient($gf_colour_gradient_light 20%, $gf_colour_gradient_dark); /* FF3.6+ */
|
|
|
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(20%,$gf_colour_gradient_light), color-stop(80%,$gf_colour_gradient_dark)); /* Chrome,Safari4+ */
|
|
|
|
background: -webkit-linear-gradient(top, $gf_colour_gradient_light 20%,$gf_colour_gradient_dark 80%); /* Chrome10+,Safari5.1+ */
|
|
|
|
background: -o-linear-gradient(top, $gf_colour_gradient_light 20%,$gf_colour_gradient_dark 80%); /* Opera 11.10+ */
|
|
|
|
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#{$gf_colour_gradient_light}', endColorstr='#{$gf_colour_gradient_dark}'); /* IE5.5+ */
|
|
|
|
background: -ms-linear-gradient(top, $gf_colour_gradient_light 20%,$gf_colour_gradient_dark 80%); /* IE10+ */
|
|
|
|
background: linear-gradient(top, $gf_colour_gradient_light 20%,$gf_colour_gradient_dark 80%); /* W3C */
|
|
|
|
}
|
|
|
|
@mixin gridfield-gradient-bottom {
|
|
|
|
background: $gf_colour_gradient_dark;
|
|
|
|
background: -moz-linear-gradient($gf_colour_gradient_dark 20%, $gf_colour_gradient_light); /* FF3.6+ */
|
|
|
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(20%,$gf_colour_gradient_dark), color-stop(80%,$gf_colour_gradient_light)); /* Chrome,Safari4+ */
|
|
|
|
background: -webkit-linear-gradient(top, $gf_colour_gradient_dark 20%,$gf_colour_gradient_light 80%); /* Chrome10+,Safari5.1+ */
|
|
|
|
background: -o-linear-gradient(top, $gf_colour_gradient_dark 20%,$gf_colour_gradient_light 80%); /* Opera 11.10+ */
|
|
|
|
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#{$gf_colour_gradient_dark}', endColorstr='#{$gf_colour_gradient_light}'); /* IE5.5+ */
|
|
|
|
background: -ms-linear-gradient(top, $gf_colour_gradient_dark 20%,$gf_colour_gradient_dark 80%); /* IE10+ */
|
|
|
|
background: linear-gradient(top, $gf_colour_gradient_dark 20%,$gf_colour_gradient_light 80%); /* W3C */
|
|
|
|
}
|
|
|
|
|
|
|
|
.cms {
|
2012-01-29 21:26:39 +01:00
|
|
|
fieldset.ss-gridfield>div {
|
|
|
|
margin-bottom: 35px;
|
|
|
|
}
|
2012-01-09 20:38:58 +01:00
|
|
|
table.ss-gridfield.field {
|
|
|
|
box-shadow: none;
|
2011-12-06 01:56:24 +01:00
|
|
|
padding: 0;
|
|
|
|
margin: 20px 0 0 0;
|
|
|
|
border-collapse: separate;
|
|
|
|
border-bottom: 0 none;
|
2011-09-28 05:06:06 +02:00
|
|
|
|
2011-12-06 01:56:24 +01:00
|
|
|
thead {
|
|
|
|
color: darken($gf_colour_base, 50%);
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
background: #FFF;
|
|
|
|
td {
|
2012-01-09 17:16:07 +01:00
|
|
|
/* Emulate a link by default */
|
2011-12-06 01:56:24 +01:00
|
|
|
button {
|
2012-01-09 17:16:07 +01:00
|
|
|
border: none;
|
|
|
|
background: none;
|
2011-12-06 01:56:24 +01:00
|
|
|
margin: 0 0 0 2px;
|
|
|
|
padding: 0;
|
|
|
|
width: auto;
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-09-28 05:06:06 +02:00
|
|
|
|
2011-12-06 01:56:24 +01:00
|
|
|
tfoot {
|
|
|
|
color: darken($gf_colour_base, 50%);
|
|
|
|
tr {
|
|
|
|
td {
|
|
|
|
background: $gf_colour_base;
|
|
|
|
padding: .7em;
|
2011-09-28 05:06:06 +02:00
|
|
|
}
|
|
|
|
}
|
2011-12-06 01:56:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tr {
|
|
|
|
&.sortable-header {
|
|
|
|
th {
|
|
|
|
background: $gf_colour_gradient_dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
background: #FFFAD6 !important;
|
2011-09-28 05:06:06 +02:00
|
|
|
}
|
2011-12-06 01:56:24 +01:00
|
|
|
&:first-child {
|
|
|
|
background: transparent;
|
2011-09-28 05:06:06 +02:00
|
|
|
}
|
2011-12-06 01:56:24 +01:00
|
|
|
&.ss-gridfield-even {
|
|
|
|
background: $gf_colour_zebra;
|
2011-09-28 05:06:06 +02:00
|
|
|
|
2011-12-06 01:56:24 +01:00
|
|
|
&.ss-gridfield-last {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
2011-09-28 05:06:06 +02:00
|
|
|
}
|
2011-12-06 01:56:24 +01:00
|
|
|
th {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 12px;
|
|
|
|
color: #FFF;
|
|
|
|
padding: 0;
|
|
|
|
border-right: 1px solid #85959C;
|
|
|
|
height: 20px;
|
2012-01-29 21:26:39 +01:00
|
|
|
white-space: nowrap;
|
2011-09-28 05:06:06 +02:00
|
|
|
|
2011-12-06 01:56:24 +01:00
|
|
|
/* Makes it appear as though the text sits over the boundary of the two <tr>'s in <thead> */
|
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
left: 20px;
|
|
|
|
top: -7px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
div {
|
|
|
|
&.fieldgroup,&.fieldgroup-field {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
&.fieldgroup {
|
2012-01-09 20:38:58 +01:00
|
|
|
min-width: 200px;
|
2011-12-06 01:56:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.extra,&.action {
|
|
|
|
background: $gf_colour_gradient_dark;
|
|
|
|
padding: 0;
|
|
|
|
cursor: default;
|
|
|
|
button,button:hover {
|
|
|
|
&.ss-ui-button {
|
|
|
|
margin-left: .9em;
|
|
|
|
color: #222;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.extra {
|
|
|
|
text-align: center;
|
|
|
|
@include gridfield-gradient-top;
|
|
|
|
span {
|
|
|
|
width: auto;
|
|
|
|
display: inline;
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.action {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
&.first {
|
|
|
|
@include border-top-left-radius($gf_border_radius);
|
|
|
|
}
|
|
|
|
&.last {
|
|
|
|
@include border-top-right-radius($gf_border_radius);
|
|
|
|
}
|
|
|
|
button,button:hover {
|
|
|
|
font-size: 12px;
|
|
|
|
margin-left: -.9em;
|
2012-01-10 00:46:41 +01:00
|
|
|
border-bottom: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
2011-12-06 01:56:24 +01:00
|
|
|
&.ss-gridfield-sort {
|
|
|
|
text-align: left;
|
|
|
|
padding: 0;
|
|
|
|
color: #FFF;
|
2012-01-29 21:26:39 +01:00
|
|
|
min-width: 100px;
|
2011-12-06 01:56:24 +01:00
|
|
|
background: transparent;
|
|
|
|
border: 0 none;
|
2012-01-09 01:46:06 +01:00
|
|
|
@include box-shadow-none;
|
2011-12-06 01:56:24 +01:00
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
button {
|
|
|
|
&:hover {
|
|
|
|
color: #CCC !important; /* Not sure why IE think it needs this */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.extra button.ss-ui-button {
|
|
|
|
padding: .3em;
|
|
|
|
line-height: 1;
|
2012-01-09 01:46:06 +01:00
|
|
|
@include box-shadow-none;
|
2011-12-06 01:56:24 +01:00
|
|
|
position: relative;
|
|
|
|
top: -24px;
|
|
|
|
border: $gf_colour_gradient_light solid 10px;
|
|
|
|
border-bottom-width: 0;
|
|
|
|
}
|
|
|
|
input {
|
|
|
|
&.ss-gridfield-sort {
|
|
|
|
position: relative;
|
|
|
|
top: -24px;
|
|
|
|
padding: 2px;
|
|
|
|
width: 65%;
|
|
|
|
margin: 0 auto;
|
|
|
|
border: $gf_colour_gradient_light solid 10px;
|
|
|
|
border-bottom: 0;
|
2012-01-09 01:46:06 +01:00
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
&:focus {
|
|
|
|
@include box-shadow-none;
|
|
|
|
}
|
2011-12-06 01:56:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
td {
|
|
|
|
border-right: 1px solid $gf_colour_border;
|
2012-01-10 00:58:48 +01:00
|
|
|
border-bottom: 1px solid $gf_colour_border;
|
2011-12-06 01:56:24 +01:00
|
|
|
padding: 10px;
|
|
|
|
&.bottom-all {
|
|
|
|
@include border-bottom-radius($gf_border_radius);
|
|
|
|
@include gridfield-gradient-bottom;
|
2011-09-28 05:06:06 +02:00
|
|
|
}
|
|
|
|
}
|
2012-01-10 00:58:48 +01:00
|
|
|
&.last td {
|
|
|
|
border-bottom: 0 none;
|
|
|
|
}
|
2011-09-28 05:06:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|