mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-5575] Should use declaration-no-important rule in the stylelint-config.json file to avoid use of !important in ADF (#9302)
This commit is contained in:
@@ -114,9 +114,9 @@ h2.adf-search-results-label {
|
||||
fill: var(--theme-primary-color);
|
||||
}
|
||||
|
||||
.adf-no-content-container {
|
||||
.adf-no-content-container.adf-datatable-cell {
|
||||
text-align: center;
|
||||
border: none !important;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.adf-datatable-cell {
|
||||
@@ -167,8 +167,8 @@ h2.adf-search-results-label {
|
||||
}
|
||||
|
||||
&-searchLayout {
|
||||
.adf-datatable-list .adf-datatable-row {
|
||||
min-height: 65px !important;
|
||||
.adf-datatable-list .adf-datatable-body .adf-datatable-row {
|
||||
min-height: 65px;
|
||||
|
||||
.adf-datatable-cell {
|
||||
.adf-name-location-cell-location {
|
||||
|
@@ -131,6 +131,13 @@
|
||||
&-userinfo-detail {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&-hide-small.adf-userinfo-profile-initials,
|
||||
&-hide-small.adf-userinfo-profile-container {
|
||||
@include layout-bp(lt-md) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-device-width: 480px) {
|
||||
|
@@ -109,7 +109,7 @@
|
||||
|
||||
.adf-empty-list-header {
|
||||
height: 32px;
|
||||
opacity: 0.26 !important;
|
||||
opacity: 0.26;
|
||||
font-size: var(--theme-headline-font-size);
|
||||
line-height: 1.33;
|
||||
letter-spacing: -1px;
|
||||
@@ -179,8 +179,8 @@
|
||||
}
|
||||
|
||||
.adf-datatable-gallery-thumbnails {
|
||||
.adf-datatable-card .adf-datatable-row {
|
||||
height: 300px !important;
|
||||
.adf-datatable-card .adf-datatable-row:is(adf-datatable-row) {
|
||||
height: 300px;
|
||||
|
||||
img {
|
||||
height: 130px;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
.adf {
|
||||
&-people-initial {
|
||||
.adf-cell-value {
|
||||
.adf-people-initial {
|
||||
background: var(--theme-primary-color);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
@@ -7,25 +7,32 @@
|
||||
align-items: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: var(--theme-primary-color-default-contrast) !important;
|
||||
color: var(--theme-primary-color-default-contrast);
|
||||
font-weight: bolder;
|
||||
font-size: var(--theme-adf-picture-1-font-size);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
&-group-icon {
|
||||
height: 20px !important;
|
||||
width: 20px !important;
|
||||
.adf-group-icon {
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
background: var(--theme-primary-color);
|
||||
border-radius: 50%;
|
||||
padding: 10px;
|
||||
color: var(--theme-primary-color-default-contrast) !important;
|
||||
color: var(--theme-primary-color-default-contrast);
|
||||
font-weight: bolder;
|
||||
font-size: var(--theme-title-font-size);
|
||||
}
|
||||
|
||||
&-people-select-icon {
|
||||
margin: 0 !important;
|
||||
.adf-datatable-selected {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin-left: -2px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.adf-people-select-icon {
|
||||
margin: 0;
|
||||
|
||||
svg {
|
||||
fill: var(--theme-accent-color);
|
||||
@@ -33,11 +40,4 @@
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
&-datatable-selected {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin-left: -2px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
|
@@ -12,6 +12,7 @@
|
||||
[matTooltip]="getTooltipTranslation(col?.title)">
|
||||
<adf-icon value="filter_list"
|
||||
[ngClass]="{ 'adf-icon-active': isActive() || menuTrigger.menuOpen }"
|
||||
class="adf-filter-icon"
|
||||
matBadge="filter"
|
||||
matBadgeColor="warn"
|
||||
[matBadgeHidden]="!isActive()">
|
||||
|
@@ -1,20 +1,20 @@
|
||||
.adf-filter {
|
||||
&-button {
|
||||
margin-left: -7px !important;
|
||||
&-button:has(.adf-filter-icon) {
|
||||
margin-left: -7px;
|
||||
|
||||
.adf-icon {
|
||||
opacity: 1;
|
||||
color: var(--adf-theme-foreground-icon-color);
|
||||
|
||||
&-active {
|
||||
&.adf-icon-active {
|
||||
color: var(--theme-primary-color);
|
||||
|
||||
span {
|
||||
border: 2px solid var(--adf-theme-background-card-color) !important;
|
||||
border: 2px solid var(--adf-theme-background-card-color);
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
top: -3px !important;
|
||||
right: -6px !important;
|
||||
top: -3px;
|
||||
right: -6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,7 +24,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 15px 15px 10px;
|
||||
color: var(--adf-theme-foreground-text-color-087) !important;
|
||||
color: var(--adf-theme-foreground-text-color-087);
|
||||
|
||||
.adf-facet-buttons {
|
||||
display: none;
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
input {
|
||||
background: 2px solid var(--adf-theme-background-card-color) !important;
|
||||
background: 2px solid var(--adf-theme-background-card-color);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -5,6 +5,7 @@ adf-search-filter-tabbed {
|
||||
|
||||
// The important tag is used here as a workaround for a bug in angular material, when MatTabs are used in conjunction with MatMenu
|
||||
// https://github.com/angular/components/issues/27426
|
||||
/* stylelint-disable declaration-no-important */
|
||||
.adf-search-tab-content-active {
|
||||
& > div {
|
||||
visibility: visible !important;
|
||||
|
@@ -32,9 +32,9 @@ $adf-average-star-color: #808080;
|
||||
color: $adf-rated-star-color;
|
||||
}
|
||||
|
||||
.adf-grey-star,
|
||||
.adf-average-star {
|
||||
color: $adf-average-star-color !important;
|
||||
.adf-colored-star.adf-grey-star,
|
||||
.adf-colored-star.adf-average-star {
|
||||
color: $adf-average-star-color;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -72,7 +72,7 @@ $tree-header-font-size: 12px !default;
|
||||
min-width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
.adf-tree-cell-header {
|
||||
.adf-tree-cell-header:has(.adf-tree-cell-value) {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
vertical-align: bottom;
|
||||
@@ -80,11 +80,11 @@ $tree-header-font-size: 12px !default;
|
||||
font-weight: bold;
|
||||
line-height: 24px;
|
||||
letter-spacing: 0;
|
||||
min-height: $tree-row-height !important;
|
||||
min-height: $tree-row-height;
|
||||
font-size: $tree-header-font-size;
|
||||
color: var(--adf-theme-foreground-text-color);
|
||||
box-sizing: border-box;
|
||||
padding-top: 12px !important;
|
||||
padding-top: 12px;
|
||||
|
||||
&:focus {
|
||||
outline-offset: -1px;
|
||||
|
@@ -8,6 +8,7 @@
|
||||
<header class="adf-upload-dialog__header">
|
||||
<button
|
||||
mat-button
|
||||
class="adf-upload-dialog__header-button"
|
||||
[attr.data-automation-id]="'adf-upload-dialog__toggle-minimize'"
|
||||
[attr.aria-label]="(isDialogMinimized ?
|
||||
'ADF_FILE_UPLOAD.ARIA-LABEL.DIALOG_MAXIMIZE':
|
||||
@@ -16,6 +17,7 @@
|
||||
[attr.aria-expanded]="!isDialogMinimized"
|
||||
(click)="toggleMinimized()">
|
||||
<mat-icon
|
||||
class="adf-upload-dialog__header-button-icon"
|
||||
mat-list-icon
|
||||
title="{{ (isDialogMinimized ? 'ADF_FILE_UPLOAD.BUTTON.MAXIMIZE': 'ADF_FILE_UPLOAD.BUTTON.MINIMIZE') | translate }}">
|
||||
{{ isDialogMinimized ? 'keyboard_arrow_up' : 'keyboard_arrow_down' }}
|
||||
@@ -56,6 +58,7 @@
|
||||
<section class="adf-upload-dialog__content"
|
||||
[class.adf-upload-dialog--padding]="isConfirmation">
|
||||
<adf-file-uploading-list
|
||||
class="adf-file-uploading-list"
|
||||
[class.adf-upload-dialog--hide]="isConfirmation"
|
||||
#uploadList
|
||||
[files]="filesUploadingList">
|
||||
|
@@ -12,8 +12,9 @@
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
&--hide {
|
||||
display: none !important;
|
||||
&--hide.adf-upload-dialog__confirmation,
|
||||
&--hide.adf-file-uploading-list {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&--minimized {
|
||||
@@ -29,11 +30,11 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
button {
|
||||
&-button:is(button) {
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
line-height: 0;
|
||||
color: var(--adf-theme-foreground-text-color-054) !important;
|
||||
color: var(--adf-theme-foreground-text-color-054);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -23,11 +23,11 @@ adf-file-uploading-list-row:not(:first-child) {
|
||||
padding: 0 1em 0 0.5em;
|
||||
}
|
||||
|
||||
&__group,
|
||||
&__block,
|
||||
&__file-version {
|
||||
.adf-file-uploading-row__group,
|
||||
.adf-file-uploading-row__block,
|
||||
.adf-file-uploading-row__file-version {
|
||||
min-width: 100px;
|
||||
display: flex !important;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
line-height: 40px;
|
||||
height: 40px;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* stylelint-disable no-descending-specificity */
|
||||
/* stylelint-disable declaration-no-important, no-descending-specificity */
|
||||
$adf-upload-dragging-color: #2196f3 !default;
|
||||
$adf-upload-dragging-border: 1px dashed #2196f3 !default;
|
||||
$adf-upload-dragging-background: #e3f2fd !default;
|
||||
|
@@ -1,16 +1,16 @@
|
||||
adf-version-manager {
|
||||
.adf-version-list .adf-version-list-item {
|
||||
height: auto !important;
|
||||
width: 100% !important;
|
||||
padding: 16px 0 !important;
|
||||
.adf-version-list .adf-version-list-item:has(.adf-version-list-item-line) {
|
||||
height: auto;
|
||||
width: 100%;
|
||||
padding: 16px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.adf-version-list-item-comment.adf-version-list-item-line {
|
||||
height: 100%;
|
||||
word-break: break-all;
|
||||
white-space: unset !important;
|
||||
overflow: unset !important;
|
||||
white-space: unset;
|
||||
overflow: unset;
|
||||
}
|
||||
|
||||
.adf-button.adf-upload-new-version {
|
||||
@@ -21,17 +21,22 @@ adf-version-manager {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.adf-new-version-uploader-container {
|
||||
padding: 16px 0;
|
||||
width: 100%;
|
||||
height: 0;
|
||||
float: left !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.adf-new-version-container {
|
||||
height: inherit;
|
||||
overflow: hidden;
|
||||
|
||||
.adf-new-version-uploader-container {
|
||||
padding: 16px 0;
|
||||
width: 100%;
|
||||
height: 0;
|
||||
float: left;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.adf-version-list.adf-version-list-element {
|
||||
width: 100%;
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
.adf-version-list-table {
|
||||
@@ -41,8 +46,3 @@ adf-version-manager {
|
||||
.adf-version-upload-table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.adf-version-list {
|
||||
width: 100% !important;
|
||||
float: left !important;
|
||||
}
|
||||
|
@@ -17,8 +17,8 @@
|
||||
.adf-new-version-max-width {
|
||||
width: 100%;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.adf-new-version-text-area {
|
||||
resize: none !important;
|
||||
.adf-new-version-text-area {
|
||||
resize: none;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user