Skip to content

Commit

Permalink
CSS fixes for Batchactions.
Browse files Browse the repository at this point in the history
On some browsers Batchactions block looked OK, but on others (e.t. Opera on Linux) every element in Batchactions block had different height.
The height of these elements was related to font size which is a little bit different on every OS'es and browsers.

See #1132
  • Loading branch information
elvinas-liut authored and chillu committed Jan 30, 2013
1 parent b76f18e commit ebe41cd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
9 changes: 6 additions & 3 deletions admin/css/screen.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 25 additions & 8 deletions admin/scss/_style.scss
Expand Up @@ -823,16 +823,22 @@ body.cms {
display: block;

.view-mode-batchactions-wrapper {
height: 18px;
float: left;
padding: 4px 6px;
border: 1px solid #aaa;
margin-bottom: 8px;
background-color: #D9D9D9;
@include background-image(linear-gradient(top, #fff, #D9D9D9));
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;

input {
vertical-align: middle;
}

label {
vertical-align: middle;
display: none;
}

Expand All @@ -842,18 +848,18 @@ body.cms {
}

&.inactive .view-mode-batchactions-wrapper {
border-radius: 4px;
border-radius: 4px;

label {
display: inline;
}
}

form > * {
display: block;
float: left;
}

form.cms-batch-actions {
float: left;
}
Expand All @@ -862,13 +868,24 @@ body.cms {
display: none;
}

.chzn-container-single .chzn-single {
margin-left: -1px;
border-radius: 0;
@include background-image(linear-gradient(top, #fff, #D9D9D9));
.chzn-container-single {
display: block;

.chzn-single {
margin-left: -1px;
border-radius: 0;
@include background-image(linear-gradient(top, #fff, #D9D9D9));

span {
padding-top: 0;
}
}
}

.cms-batch-actions .Actions .ss-ui-button {
padding-top: 4px;
padding-bottom: 4px;
height: 28px;
margin-left: -1px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
Expand Down

0 comments on commit ebe41cd

Please sign in to comment.