Skip to content

Commit

Permalink
adjusted checkbox (and related radio) styles, #1046
Browse files Browse the repository at this point in the history
  • Loading branch information
parsch committed Jan 25, 2024
1 parent ab39bed commit 24fe279
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions grappelli/sass/partials/forms/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ fieldset.monospace textarea {
.grp-row input[type=checkbox],
.grp-row input[type=radio] {
position: relative;
top: 1px;
top: -1px;
margin: 0;

&+label {
position: relative;
Expand Down Expand Up @@ -267,8 +268,6 @@ input[type=text].grp-search-field {
padding: 0 !important;
width: auto !important;
white-space: nowrap;

input {}
}

li+li {
Expand All @@ -281,7 +280,7 @@ input[type=text].grp-search-field {
max-width: 760px;
float: left;
display: inline;
margin-top: 5px;
margin-top: 4px;
margin-bottom: 3px;
padding-right: 20px;

Expand Down Expand Up @@ -311,7 +310,7 @@ ul.checkboxlist.inline {
}

.radiolist.inline label input {
margin-top: -1px;
margin-top: 1px;
margin-right: 5px
}

Expand Down
6 changes: 3 additions & 3 deletions grappelli/sass/partials/layout/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ table.grp-table {

>input[type="checkbox"],
>input[type="radio"] {
margin: 0;
margin: -5px 0 !important;
}

// > input[type="text"],
Expand All @@ -179,8 +179,6 @@ table.grp-table {
// > input[type="email"],
// > input[type="number"],
>input[type="file"],
>input[type="checkbox"],
>input[type="radio"],
>select,
// p input[type="url"],
// p input[type="email"],
Expand Down Expand Up @@ -291,6 +289,8 @@ table.grp-table.grp-sortable {
white-space: nowrap;

input[type="checkbox"] {
position: relative;
top: -1px;
margin: -6px 0 !important;
}
}
Expand Down
2 changes: 1 addition & 1 deletion grappelli/static/grappelli/stylesheets/screen.css

Large diffs are not rendered by default.

0 comments on commit 24fe279

Please sign in to comment.