p-table {
.ui-table-caption {
border: none !important;
- background-color: #fff !important;
+ background-color: var(--mainBackgroundColor) !important;
.caption {
height: 40px;
}
th {
- background-color: #fff !important;
+ background-color: var(--mainBackgroundColor) !important;
outline: 0;
}
tr {
&:hover {
background-color: var(--submenuColor) !important;
- }
- &:not(:hover) {
- .action-cell * {
- display: none !important;
+ .action-cell {
+ .dropdown-root,
+ my-edit-button,
+ my-delete-button,
+ my-button {
+ display: block !important;
+ }
}
}
&.pi-sort-up {
@extend .glyphicon-triangle-top;
+
+ color: var(--mainForegroundColor) !important;
}
&.pi-sort-down {
@extend .glyphicon-triangle-bottom;
+
+ color: var(--mainForegroundColor) !important;
}
}
}
padding: 0 !important;
text-align: center;
+ .dropdown-root,
+ my-edit-button,
+ my-delete-button,
+ my-button {
+ display: none !important;
+
+ &.show {
+ display: block !important;
+ }
+ }
+
my-edit-button + my-delete-button {
margin-left: 5px;
}
height: auto !important;
a {
- color: #000 !important;
+ color: var(--mainForegroundColor) !important;
font-weight: $font-semibold !important;
margin: 0 5px !important;
outline: 0 !important;
}
}
+// multiselect customizations
+p-multiselect {
+ .ui-multiselect-label {
+ font-size: 15px !important;
+ padding: 4px 30px 4px 12px !important;
+
+ $width: 338px;
+ width: $width !important;
+
+ @media screen and (max-width: $width) {
+ width: 100% !important;
+ }
+ }
+
+ .pi.pi-chevron-down{
+ margin-left: 0 !important;
+
+ &::after {
+ @include select-arrow-down;
+
+ right: 0;
+ margin-top: 6px;
+ }
+ }
+
+ .ui-chkbox-icon {
+ //position: absolute !important;
+ width: 18px;
+ height: 18px;
+ //left: 0;
+
+ //&::after {
+ // left: -2px !important;
+ //}
+ }
+}
+
// PrimeNG calendar tweaks
p-calendar .ui-datepicker {
a {
@extend .glyphicon-chevron-right;
@include glyphicon-light;
+ color: #000 !important;
text-align: right;
.pi.pi-chevron-right {
@extend .glyphicon-chevron-left;
@include glyphicon-light;
+ color: #000 !important;
text-align: left;
.pi.pi-chevron-left {
.pi.pi-chevron-up {
@extend .glyphicon-chevron-up;
@include glyphicon-light;
+
+ color: #000 !important;
}
.pi.pi-chevron-down {
@extend .glyphicon-chevron-down;
@include glyphicon-light;
+
+ color: #000 !important;
}
}
}
+.ui-chkbox {
-.ui-chkbox-box {
- &.ui-state-active {
- border-color: var(--mainColor) !important;
- background-color: var(--mainColor) !important;
+ &, .ui-chkbox-box {
+ width: 18px !important;
+ height: 18px !important;
}
- .ui-chkbox-icon {
- position: relative;
- overflow: visible !important;
-
- &:after {
- content: '';
- position: absolute;
- top: 1px;
- left: 7px;
- width: 5px;
- height: 13px;
- opacity: 0;
- transform: rotate(45deg) scale(0);
- border-right: 2px solid var(--mainBackgroundColor);
- border-bottom: 2px solid var(--mainBackgroundColor);
+ .ui-chkbox-box {
+ &.ui-state-active {
+ border-color: var(--mainColor) !important;
+ background-color: var(--mainColor) !important;
}
- &.pi-check:after {
- opacity: 1;
- transform: rotate(45deg) scale(1);
+ .ui-chkbox-icon {
+ position: relative;
+ overflow: visible !important;
+
+ &:after {
+ content: '';
+ position: absolute;
+ top: 1px;
+ left: 6px;
+ width: 5px;
+ height: 12px;
+ opacity: 0;
+ transform: rotate(45deg) scale(0);
+ border-right: 2px solid var(--mainBackgroundColor);
+ border-bottom: 2px solid var(--mainBackgroundColor);
+ }
+
+ &.pi-check:after {
+ opacity: 1;
+ transform: rotate(45deg) scale(1);
+ }
}
}
}
}
p-toast {
+ .ui-toast {
+ // Modal is 10005
+ z-index: 10010 !important;
+ }
+
.ui-toast-message {
font-family: $main-fonts;
.notification-block {
display: flex;
+ align-items: center;
+ padding: 5px;
.message {
+ flex-grow: 1;
+
h3 {
font-size: 21px;
}
p {
font-size: 15px;
+ margin-bottom: 0;
}
}
.glyphicon {
font-size: 32px;
- margin-top: 15px;
margin-right: 5px;
}
}
}
}
+
+.ui-widget {
+ font-family: $main-fonts !important;
+}