Skip to content

Commit

Permalink
UHF-9739: Modified admin theme for updating news paragraph.
Browse files Browse the repository at this point in the history
  • Loading branch information
khalima committed May 3, 2024
1 parent 85c211e commit b373990
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/scss/06_components/misc/_select-paragraph.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $button-border-radius: 6px;
background-color: $color-white;
height: $button-height;
min-height: $button-height;
width: 400px;
width: 450px;

.dropbutton__item {
min-height: calc(#{$button-height} - (#{$button-border-thickness} * 2));
Expand Down
1 change: 1 addition & 0 deletions src/scss/06_components/paragraphs/__index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
@import 'library';
@import 'liftup-with-image';
@import 'list-of-links';
@import 'news-update';
@import 'text';
36 changes: 36 additions & 0 deletions src/scss/06_components/paragraphs/_news-update.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Hide news item updating news paragraph label as it's obsolete in field group.
.field-news-item-updating-news-values > thead {
display: none;
}

// Hide news update paragraph field label as it's only taking extra space in UI.
.field-news-update-values > thead {
display: none;
}

// Remove extra margins, padding and borders from
// the date picker field wrapper and labels.
.hdbt-admin .field--name-field-news-update-date > fieldset {
border: 0;
margin-bottom: 0;
padding: 0;

// Unify the font-size of the date-picker field label.
.fieldset__label {
font-size: remify(16px) !important;
line-height: 1.5 !important;
padding: 0;
}

// Remove side margins from fieldset wrapper.
.fieldset__wrapper {
margin-left: 0;
margin-right: 0;
}

// Remove all margins from datetime wrapper and datetime label.
.fieldset__wrapper .form-datetime-wrapper,
.form-item.form-item--no-label {
margin: 0;
}
}

0 comments on commit b373990

Please sign in to comment.