From 3555ef23a55c0f16103f7cfc7d44fddd2de95e79 Mon Sep 17 00:00:00 2001 From: Russell Michell Date: Tue, 10 Jan 2012 12:58:48 +1300 Subject: [PATCH] MINOR: Re-instated horizontal borders --- css/GridField.css | 3 ++- scss/GridField.scss | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/css/GridField.css b/css/GridField.css index 39d76c416..38e41e393 100644 --- a/css/GridField.css +++ b/css/GridField.css @@ -28,5 +28,6 @@ .cms table.ss-gridfield.field tr th.extra button.ss-ui-button { padding: .3em; line-height: 1; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; position: relative; top: -24px; border: #b1c0c5 solid 10px; border-bottom-width: 0; } .cms table.ss-gridfield.field tr th input.ss-gridfield-sort { position: relative; top: -24px; padding: 2px; width: 65%; margin: 0 auto; border: #b1c0c5 solid 10px; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .cms table.ss-gridfield.field tr th input.ss-gridfield-sort:focus { -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; } -.cms table.ss-gridfield.field tr td { border-right: 1px solid #dbdddd; padding: 10px; } +.cms table.ss-gridfield.field tr td { border-right: 1px solid #dbdddd; border-bottom: 1px solid #dbdddd; padding: 10px; } .cms table.ss-gridfield.field tr td.bottom-all { -moz-border-radius-bottomleft: 7px; -webkit-border-bottom-left-radius: 7px; -o-border-bottom-left-radius: 7px; -ms-border-bottom-left-radius: 7px; -khtml-border-bottom-left-radius: 7px; border-bottom-left-radius: 7px; -moz-border-radius-bottomright: 7px; -webkit-border-bottom-right-radius: 7px; -o-border-bottom-right-radius: 7px; -ms-border-bottom-right-radius: 7px; -khtml-border-bottom-right-radius: 7px; border-bottom-right-radius: 7px; background: #7f9198; background: -moz-linear-gradient(#7f9198 20%, #b1c0c5); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #7f9198), color-stop(80%, #b1c0c5)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #7f9198 20%, #b1c0c5 80%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #7f9198 20%, #b1c0c5 80%); /* Opera 11.10+ */ filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#7f9198', endColorstr='#b1c0c5'); /* IE5.5+ */ background: -ms-linear-gradient(top, #7f9198 20%, #7f9198 80%); /* IE10+ */ background: linear-gradient(top, #7f9198 20%, #b1c0c5 80%); /* W3C */ } +.cms table.ss-gridfield.field tr.last td { border-bottom: 0 none; } diff --git a/scss/GridField.scss b/scss/GridField.scss index 59afa4c51..3e5e9482e 100644 --- a/scss/GridField.scss +++ b/scss/GridField.scss @@ -204,12 +204,16 @@ $gf_border_radius: 7px; } td { border-right: 1px solid $gf_colour_border; + border-bottom: 1px solid $gf_colour_border; padding: 10px; &.bottom-all { @include border-bottom-radius($gf_border_radius); @include gridfield-gradient-bottom; } } + &.last td { + border-bottom: 0 none; + } } } } \ No newline at end of file