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";
|
2012-02-01 02:06:06 +01:00
|
|
|
@import "compass/css3/images";
|
|
|
|
@import "compass/css3/text-shadow";
|
|
|
|
@import "compass/css3/border-radius";
|
2011-09-28 05:06:06 +02:00
|
|
|
|
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;
|
2012-02-01 02:06:06 +01:00
|
|
|
$gf_colour_subheader: #BAC8CE;
|
|
|
|
$gf_colour_border: rgba(0,0,0,.1);
|
|
|
|
$gf_colour_zebra: #F0F4F7;
|
|
|
|
$gf_colour_font: #666;
|
|
|
|
$gf_colour_text_shadow: rgba(0,0,0,.3);
|
2011-12-06 01:56:24 +01:00
|
|
|
$gf_border_radius: 7px;
|
2011-09-28 05:06:06 +02:00
|
|
|
|
2012-02-01 02:06:06 +01: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
|
|
|
.cms {
|
2012-02-07 20:56:40 +01:00
|
|
|
fieldset.ss-gridfield {
|
|
|
|
& > div {
|
|
|
|
margin-bottom: 35px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-selectable] {
|
|
|
|
tr.ui-selected, tr.ui-selecting {
|
|
|
|
background: #FFFAD6 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
2012-01-29 21:26:39 +01:00
|
|
|
}
|
2012-02-07 20:56:40 +01:00
|
|
|
|
2012-01-09 20:38:58 +01:00
|
|
|
table.ss-gridfield.field {
|
2012-02-09 17:17:39 +01:00
|
|
|
display: table;
|
2012-01-09 20:38:58 +01:00
|
|
|
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;
|
2012-02-09 17:17:39 +01:00
|
|
|
width: 100%;
|
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;
|
2012-02-01 02:06:06 +01:00
|
|
|
border-bottom: 1px solid rgba(0,0,0,.1);
|
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
|
|
|
}
|
2012-02-01 02:06:06 +01:00
|
|
|
&.even {
|
2012-02-06 22:39:49 +01:00
|
|
|
background: $gf_colour_zebra;
|
2012-02-01 02:06:06 +01:00
|
|
|
}
|
|
|
|
|
2011-12-06 01:56:24 +01:00
|
|
|
th {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 12px;
|
|
|
|
color: #FFF;
|
2012-02-01 02:06:06 +01:00
|
|
|
padding: 5px;
|
|
|
|
border-right: 1px solid $gf_colour_border;
|
|
|
|
&.main:first-child{
|
|
|
|
@include border-top-left-radius($gf_border_radius);
|
|
|
|
}
|
|
|
|
&.main:last-child{
|
|
|
|
@include border-top-right-radius($gf_border_radius);
|
2011-12-06 01:56:24 +01:00
|
|
|
}
|
|
|
|
div {
|
|
|
|
&.fieldgroup,&.fieldgroup-field {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
&.fieldgroup {
|
2012-01-09 20:38:58 +01:00
|
|
|
min-width: 200px;
|
2012-02-01 02:06:06 +01:00
|
|
|
padding-right:0;
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-02-01 02:06:06 +01:00
|
|
|
&.main{
|
|
|
|
border-top: 1px solid $gf_colour_border;
|
|
|
|
color:#fff;
|
|
|
|
@include background-image(linear-gradient($gf_colour_gradient_light, $gf_colour_gradient_dark));
|
|
|
|
span{
|
|
|
|
@include single-text-shadow($gf_colour_text_shadow, 0px, -1px, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2011-12-06 01:56:24 +01:00
|
|
|
&.extra {
|
2012-02-01 02:06:06 +01:00
|
|
|
background: $gf_colour_subheader;
|
|
|
|
padding: 5px;
|
|
|
|
border-top: $gf_colour_text_shadow;
|
2011-12-06 01:56:24 +01:00
|
|
|
span {
|
|
|
|
width: auto;
|
|
|
|
display: inline;
|
|
|
|
position: static;
|
|
|
|
}
|
2012-02-01 02:06:06 +01:00
|
|
|
button.ss-ui-button {
|
|
|
|
padding: .3em;
|
|
|
|
line-height: 1;
|
|
|
|
@include box-shadow-none;
|
|
|
|
position: relative;
|
|
|
|
border-bottom-width: 0;
|
|
|
|
@include border-radius(2px, 2px);
|
|
|
|
}
|
2011-12-06 01:56:24 +01:00
|
|
|
}
|
|
|
|
&.action {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
&.first {
|
|
|
|
@include border-top-left-radius($gf_border_radius);
|
|
|
|
}
|
|
|
|
&.last {
|
|
|
|
@include border-top-right-radius($gf_border_radius);
|
|
|
|
}
|
2012-02-01 02:06:06 +01:00
|
|
|
|
2011-12-06 01:56:24 +01:00
|
|
|
button {
|
|
|
|
&:hover {
|
2012-02-01 02:06:06 +01:00
|
|
|
color: #ccc !important; /* Not sure why IE think it needs this */
|
|
|
|
}
|
|
|
|
&.ss-gridfield-sort:hover {
|
|
|
|
color: #fff !important;
|
|
|
|
@include box-shadow-none;
|
|
|
|
}
|
|
|
|
&.ss-gridfield-sort {
|
|
|
|
background: transparent url(../images/arrows-01.png) no-repeat right 2px;
|
|
|
|
border:none;
|
|
|
|
width:100%;
|
|
|
|
text-align: left;
|
|
|
|
padding: 4px 0;
|
|
|
|
@include single-text-shadow($gf_colour_text_shadow, 0px, -1px, 0);
|
|
|
|
color: #fff;
|
2012-02-04 11:32:24 +01:00
|
|
|
@include border-radius(0);
|
2012-02-01 02:06:06 +01:00
|
|
|
}
|
2011-12-06 01:56:24 +01:00
|
|
|
}
|
|
|
|
input {
|
|
|
|
&.ss-gridfield-sort {
|
|
|
|
padding: 2px;
|
2012-01-09 01:46:06 +01:00
|
|
|
&:focus {
|
|
|
|
@include box-shadow-none;
|
|
|
|
}
|
2011-12-06 01:56:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
td {
|
|
|
|
border-right: 1px solid $gf_colour_border;
|
2012-02-01 02:06:06 +01:00
|
|
|
padding: 7px 12px;
|
|
|
|
color: $gf_colour_font;
|
2011-12-06 01:56:24 +01:00
|
|
|
&.bottom-all {
|
|
|
|
@include border-bottom-radius($gf_border_radius);
|
2012-02-01 02:06:06 +01:00
|
|
|
@include background-image(linear-gradient($gf_colour_gradient_light, $gf_colour_gradient_dark));
|
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
|
|
|
}
|
2012-02-01 02:06:06 +01:00
|
|
|
td:first-child, th:first-child{
|
|
|
|
border-left: 1px solid $gf_colour_border;
|
|
|
|
}
|
2011-09-28 05:06:06 +02:00
|
|
|
}
|
|
|
|
}
|