@use '_mixins' as *;
/* stylelint-disable */
-@use 'primeng/resources/primeng';
+@import '~primeng/resources/primeng.css';
// Override primeng style we don't want
input[type=button] {
border: 1px solid #a80000;
}
-//
+// data table customizations
@mixin glyphicon-light {
font-family: 'Glyphicons Halflings';
font-display: swap;
}
-// data table customizations
p-table {
.p-datatable-header {
border: none !important;
}
}
}
+
+ .pt-badge {
+ font-size: 12px;
+ text-transform: uppercase;
+ }
}
// overflow data table
max-width: 100%;
table {
- min-width: breakpoint(lg);
+ width: 100%;
}
}
width: auto;
max-width: 300px;
min-width: 200px;
- z-index: z(notification) !important;
.p-toast-icon-close {
font-family: "Glyphicons Halflings";
box-shadow: 0 2px 12px 0 rgba(0, 0 , 0, .1);
overflow: hidden;
- &.p-toast-message-success .glyphicon {
+ &.p-toast-message-success my-global-icon {
color: #8BC34A !important;
}
- &.p-toast-message-error .glyphicon {
+ &.p-toast-message-error my-global-icon {
color: #F44336 !important;
}
- &.p-toast-message-warn .glyphicon {
+ &.p-toast-message-warn my-global-icon {
color: #F1680D !important;
}
- &.p-toast-message-info .glyphicon {
+ &.p-toast-message-info my-global-icon {
color: #03A9F4 !important;
}
font-weight: 600;
}
}
+
+@media screen and (max-width: $primeng-breakpoint) {
+ p-table {
+ td {
+ padding: 3px 0;
+
+ &.expand-cell {
+ padding: 5px;
+ }
+ }
+
+ .p-datatable-tbody {
+
+ td:last-child {
+ padding-bottom: 15px;
+ margin-bottom: 15px;
+ border-bottom: 1px solid $separator-border-color !important;
+ }
+ }
+ }
+}
+
+@media screen and (max-width: $mobile-view) {
+ p-table {
+ .p-datatable-header {
+ .caption {
+ flex-wrap: wrap;
+
+ > div {
+ width: 100%;
+ padding: 0 !important;
+ margin-bottom: 5px;
+ }
+ }
+ }
+ }
+}