FIX: Minor cms updates

This commit is contained in:
Tony Air 2021-06-08 15:00:54 +07:00
parent bad7cba5d7
commit 66cc6949ca
2 changed files with 70 additions and 64 deletions

View File

@ -3,78 +3,82 @@
#Menu-Dynamic-Elements-Sponsors-Admin-SponsorsAdmin, #Menu-Dynamic-Elements-Sponsors-Admin-SponsorsAdmin,
#Menu-Dynamic-Elements-Admin-TestimonialsAdmin, #Menu-Dynamic-Elements-Admin-TestimonialsAdmin,
#Menu-Dynamic-Elements-Promos-Admin-PromosAdmin { #Menu-Dynamic-Elements-Promos-Admin-PromosAdmin {
display: none; display: none;
} }
// Fix form actions // Fix form actions
#Form_ItemEditForm_MajorActions_Holder { #Form_ItemEditForm_MajorActions_Holder {
min-width: 30%; min-width: 30%;
padding-bottom: 0; padding-bottom: 0;
margin-bottom: 0; margin-bottom: 0;
border: 0; border: 0;
} }
#Form_EditForm_MajorActions_Holder { #Form_EditForm_MajorActions_Holder {
min-width: 70%; min-width: 70%;
padding-bottom: 0; padding-bottom: 0;
margin-bottom: 0; margin-bottom: 0;
border: 0; border: 0;
} }
#Form_ItemEditForm_RightGroup_Holder { #Form_ItemEditForm_RightGroup_Holder {
min-width: 20%; min-width: 20%;
padding-bottom: 0; padding-bottom: 0;
margin-bottom: 0; margin-bottom: 0;
border: 0; border: 0;
} }
// make edit icon always shown // make edit icon always shown
.grid-field__icon-action { .grid-field__icon-action {
&.edit-link { &.edit-link {
opacity: 1; opacity: 1;
} }
} }
// correct primary buttons coloring // correct primary buttons coloring
.toolbar--south { .toolbar--south {
.btn-primary { .btn-primary {
color: #fff; color: #fff;
} }
.btn-outline-primary { .btn-outline-primary {
color: #999; color: #999;
} }
} }
#ActionMenus_MoreOptions { #ActionMenus_MoreOptions {
.btn-primary { .btn-primary {
color: #5589a7; color: #5589a7;
} }
} }
// correct scrolls // correct scrolls
body.cms { body.cms {
overflow: hidden; overflow-x: hidden;
flex-direction: column;
} }
// short fields margins/paddings // short fields margins/paddings
.fields-compact { .fields-compact {
.form-group { .form-group {
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
.form__field-label {
font-weight: bold;
}
&:after {
margin-bottom: 0.25rem;
}
}
.form-group:after, .form__field-label {
.form__divider:after { font-weight: bold;
display: none; }
}
/*.mce-edit-area { &:after {
margin-bottom: 0.25rem;
}
}
.form-group:after,
.form__divider:after {
display: none;
}
/*.mce-edit-area {
height: 5em; height: 5em;
iframe { iframe {
height: 5em !important; height: 5em !important;
@ -86,32 +90,33 @@ body.cms {
} }
.fields-row { .fields-row {
margin: 0 !important; margin: 0 !important;
padding: 0 0 2em !important; padding: 0 0 2em !important;
width: 100%; width: 100%;
.form__fieldgroup { .form__fieldgroup {
margin: 0 !important; margin: 0 !important;
padding: 0 !important; padding: 0 !important;
width: 100% !important; width: 100% !important;
max-width: 100% !important; max-width: 100% !important;
flex: 0 0 100% !important; flex: 0 0 100% !important;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
> .form-group {
padding: 0 1rem; >.form-group {
margin: 0 !important; padding: 0 1rem;
flex: 1 1 50%; margin: 0 !important;
max-width: 50%; flex: 1 1 50%;
} max-width: 50%;
} }
}
} }
// notifications rendering // notifications rendering
.notifications-list { .notifications-list {
.alert { .alert {
.btn-close { .btn-close {
display: none; display: none;
} }
} }
} }

View File

@ -204,6 +204,7 @@ img {
td { td {
display: flex; display: flex;
flex-direction: column;
&:before { &:before {
content: attr(data-label); content: attr(data-label);