Permalink
Browse files

Made GridField font size settings less cryptic

Instead of applying it to generic alignment classes like
"left" and "right", make it clear that those are targeted
at all contents of the button row.
  • Loading branch information...
chillu committed Dec 13, 2012
1 parent abf1ee9 commit 7dd224d2a43da5249ad947dfeb0304bc3801a3d2
Showing with 10 additions and 7 deletions.
  1. +3 −2 css/GridField.css
  2. +6 −4 scss/GridField.scss
  3. +1 −1 templates/Includes/GridFieldButtonRow.ss
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -74,8 +74,7 @@ $gf_grid_x: 16px;
float:right;
& > * {
float: right;
- margin-left:5px;
- font-size: $gf_grid_y*1.2;
+ margin-left:$gf_grid_x/2;
}
.pagination-records-number {
@@ -89,11 +88,14 @@ $gf_grid_x: 16px;
.left {
float:left;
& > * {
- margin-right:5px;
+ margin-right:$gf_grid_x/2;
float: left;
- font-size: $gf_grid_y*1.2;
}
}
+
+ .ss-gridfield-buttonrow {
+ font-size: $gf_grid_y*1.2;
+ }
}
.ss-gridfield {
@@ -1,4 +1,4 @@
-<div class="addNewGridFieldButton">
+<div class="addNewGridFieldButton ss-gridfield-buttonrow">
<div class="left">$LeftFragment</div>
<div class="right">$RightFragment</div>
</div>

0 comments on commit 7dd224d

Please sign in to comment.