From 72101c254a237d7e5161572e155cecf0de473d2e Mon Sep 17 00:00:00 2001 From: jbridson Date: Thu, 8 Mar 2012 17:21:26 +1300 Subject: [PATCH] MINOR:SSF-106 - fixed position of pagination on datagrid. --- admin/css/ie7.css | 2 +- admin/scss/ie7.scss | 2 ++ css/GridField.css | 2 +- scss/GridField.scss | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/admin/css/ie7.css b/admin/css/ie7.css index 35d53db43..e1776a625 100644 --- a/admin/css/ie7.css +++ b/admin/css/ie7.css @@ -39,7 +39,7 @@ html { overflow: hidden; } .cms .cms-content .cms-content-fields .field.dropdown .middleColumn { max-width: 512px; } .pagination-page-number { position: relative; bottom: 10px; right: 10px; } -.pagination-page-number input { width: 45px; padding: 0px; } +.pagination-page-number input { width: 45px; padding: 0px; position: relative; bottom: 2px; } table.ss-gridfield-table tr.title th h2 { float: left; } diff --git a/admin/scss/ie7.scss b/admin/scss/ie7.scss index af47dfde1..a8e249f81 100644 --- a/admin/scss/ie7.scss +++ b/admin/scss/ie7.scss @@ -145,6 +145,8 @@ html { input { width:45px; padding:0px; + position:relative; + bottom:2px; } } diff --git a/css/GridField.css b/css/GridField.css index 8f99fced2..16b55b33b 100644 --- a/css/GridField.css +++ b/css/GridField.css @@ -56,7 +56,7 @@ .cms table.ss-gridfield-table tr th span.non-sortable { padding: 1em 1em; display: block; } .cms table.ss-gridfield-table tr td { border-right: 1px solid rgba(0, 0, 0, 0.1); padding: 6.4px 12px; color: #666666; } .cms table.ss-gridfield-table 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-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #b1c0c5), color-stop(100%, #7f9198)); background-image: -webkit-linear-gradient(#b1c0c5, #7f9198); background-image: -moz-linear-gradient(#b1c0c5, #7f9198); background-image: -o-linear-gradient(#b1c0c5, #7f9198); background-image: -ms-linear-gradient(#b1c0c5, #7f9198); background-image: linear-gradient(#b1c0c5, #7f9198); } -.cms table.ss-gridfield-table tr td.bottom-all .datagrid-pagination { position: absolute; left: 50%; margin-left: -116px; } +.cms table.ss-gridfield-table tr td.bottom-all .datagrid-pagination { padding-top: 2px; position: absolute; left: 50%; margin-left: -116px; } .cms table.ss-gridfield-table tr td.bottom-all .datagrid-pagination .pagination-page-number { color: white; } .cms table.ss-gridfield-table tr td.bottom-all .datagrid-pagination .pagination-page-number input { width: 35px; height: 20px; margin-bottom: -6px; padding: 0px; } .cms table.ss-gridfield-table tr td.bottom-all .datagrid-pagination button.ss-gridfield-previouspage { background: url(../images/icons/pagination-arrows.png) no-repeat -23px 7px; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; border: none; width: 10px; margin: 0 10px; } diff --git a/scss/GridField.scss b/scss/GridField.scss index 7e108d6ae..685a8de4d 100644 --- a/scss/GridField.scss +++ b/scss/GridField.scss @@ -367,6 +367,7 @@ $gf_grid_x: 16px; @include border-bottom-radius($gf_border_radius); @include background-image(linear-gradient($gf_colour_gradient_light, $gf_colour_gradient_dark)); .datagrid-pagination { + padding-top:2px; position:absolute; left:50%; margin-left:$gf_grid_x*-7 - 4;