Skip to content

Commit

Permalink
Merge pull request #377 from divio/bugfix/related-wrapper-links
Browse files Browse the repository at this point in the history
Bugfixes - related-widget-links
  • Loading branch information
vxsx authored Oct 12, 2016
2 parents 10fc948 + 6ef66ca commit c7be968
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 58 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
CHANGELOG
=========

1.2.6 (unreleased)
------------------

* Fixed an issue with related-widget-links display after filer widgets
* Fixed an issue with related-widget-links when only change link was showing up
after selects


1.2.5 (2016-10-04)
------------------

Expand Down
63 changes: 6 additions & 57 deletions djangocms_admin_style/sass/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,63 +65,9 @@ form {
display: none;
}
}
// styles should only grab if there is an image upload
// appears on form rows with file, image and visual in class name #242, #220
&[class*="file"],
&[class*="image"],
&[class*="visual"] {
.related-widget-wrapper-link {
// hides related widget wrapper links because they don't work correctly and are not necessary
// because of magnifier and delete link #220
display: none;
width: 36px;
height: 36px;
}
input {
width: calc(100% - 48px) !important;
margin-bottom: 10px;
}
input[type="checkbox"] {
width: auto !important;
margin-bottom: 3px;
}
.related-lookup {
float: right;
width: 36px;
height: 36px;
}
.file-upload {
p {
font-weight: normal;
}
a {
position: relative;
padding-left: 30px;
&:before {
position: absolute;
left: 0;
}
}
a,
input[type="file"] {
display: block;
font-size: 16px;
line-height: 16px;
margin: 10px 0;
}
a:before {
color: $gray;
vertical-align: top;
}
.clearable-file-input {
display: inline-block;
margin-bottom: 20px;
label {
font-size: 16px;
text-transform: none;
}
}
}
.filer-dropzone ~ .related-widget-wrapper-link {
// hides related widget wrapper links because they don't work with filer dropzones
display: none;
}
&.field-thumbnail {
margin: 0;
Expand Down Expand Up @@ -896,6 +842,9 @@ form select[multiple] {
margin-top: 0;
&.change-related {
margin-right: 5px;
&:last-child {
margin-right: 0;
}
}
}
// resets list styles that list looks same as sortedm2m #286
Expand Down

Large diffs are not rendered by default.

0 comments on commit c7be968

Please sign in to comment.