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
|
|
|
|
*/
|
|
|
|
|
|
|
|
@import "compass/css3";
|
|
|
|
|
|
|
|
$base: #dadada;
|
|
|
|
$zebra: #f2f9fd;
|
|
|
|
|
2011-09-30 00:59:44 +02:00
|
|
|
.ss-gridfield {
|
2011-09-28 05:06:06 +02:00
|
|
|
border: none;
|
|
|
|
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
|
|
|
background: #fff;
|
|
|
|
border: 1px solid darken($base, 10%);
|
|
|
|
}
|
|
|
|
|
|
|
|
thead {
|
|
|
|
color: darken($base, 50%);
|
|
|
|
|
|
|
|
background: $base;
|
|
|
|
|
|
|
|
@include background-image(linear-gradient(
|
|
|
|
lighten($base, 10%), $base
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
|
|
th {
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 8px 24px 8px 8px;
|
|
|
|
position: relative;
|
|
|
|
border: 1px solid darken($base, 10%);
|
|
|
|
border-width: 0 1px 1px 0;
|
|
|
|
|
2011-09-30 00:59:44 +02:00
|
|
|
&.ss-gridfield-sortable {
|
2011-09-28 05:06:06 +02:00
|
|
|
|
|
|
|
&.hover {
|
|
|
|
color: darken($base, 40%);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
background: lighten($base, 10%);
|
|
|
|
|
|
|
|
@include background-image(linear-gradient(
|
|
|
|
lighten($base, 15%), lighten($base, 5%)
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-09-30 00:59:44 +02:00
|
|
|
&.ss-gridfield-sorted {
|
2011-09-28 05:06:06 +02:00
|
|
|
background: lighten($base, 5%);
|
|
|
|
|
|
|
|
@include background-image(linear-gradient(
|
|
|
|
$base, lighten($base, 10%)
|
|
|
|
));
|
|
|
|
|
|
|
|
&.hover {
|
|
|
|
background: lighten($base, 10%);
|
|
|
|
|
|
|
|
@include background-image(linear-gradient(
|
|
|
|
lighten($base, 5%), lighten($base, 12%)
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 5px;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2011-09-30 00:59:44 +02:00
|
|
|
&.ss-gridfield-desc .ui-icon {
|
2011-09-28 05:06:06 +02:00
|
|
|
background-position: 0 -48px;
|
|
|
|
}
|
|
|
|
|
2011-09-30 00:59:44 +02:00
|
|
|
&.ss-gridfield-asc .ui-icon {
|
2011-09-28 05:06:06 +02:00
|
|
|
background-position: -64px -48px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
padding: 8px;
|
|
|
|
border-right: 1px solid lighten($base, 10%);
|
|
|
|
|
2011-09-30 00:59:44 +02:00
|
|
|
&.ss-gridfield-last {
|
2011-09-28 05:06:06 +02:00
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tr {
|
|
|
|
|
2011-09-30 00:59:44 +02:00
|
|
|
&.ss-gridfield-even {
|
2011-09-28 05:06:06 +02:00
|
|
|
border: 1px solid darken($zebra, 10%);
|
|
|
|
border-width: 1px 0;
|
|
|
|
background: $zebra;
|
|
|
|
|
2011-09-30 00:59:44 +02:00
|
|
|
&.ss-gridfield-last {
|
2011-09-28 05:06:06 +02:00
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
border-right: 1px solid darken($zebra, 5%);
|
|
|
|
|
2011-09-30 00:59:44 +02:00
|
|
|
&.ss-gridfield-last {
|
2011-09-28 05:06:06 +02:00
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|