]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/primeng-custom.scss
Refractor notification service
[github/Chocobozzz/PeerTube.git] / client / src / sass / primeng-custom.scss
index b28b20e0f063f39b9e421f06b0b5e952bd928174..21452fa16d43d663538304934aba5fe61811301d 100644 (file)
@@ -2,35 +2,66 @@
 @import '_mixins';
 
 @import '~primeng/resources/primeng.css';
-@import '~primeng/resources/themes/bootstrap/theme.css';
+@import '~primeng/resources/themes/nova-light/theme.css';
 
 @mixin glyphicon-light {
   font-family: 'Glyphicons Halflings';
   text-decoration: none !important;
-  color: #000 !important;
+  color: var(--mainForegroundColor) !important;
 }
 
 // data table customizations
 p-table {
-  font-size: 15px !important;
+  .ui-table-caption {
+    border: none !important;
+    background-color: #fff !important;
+
+    .caption {
+      height: 40px;
+      display: flex;
+      align-items: center;
+    }
+  }
+
+  th {
+    background-color: #fff !important;
+    outline: 0;
+  }
+
+  td, th {
+    font-family: $main-fonts;
+    font-size: 15px !important;
+    color: var(--mainForegroundColor) !important;
+  }
 
   td {
-    border: 1px solid #E5E5E5 !important;
     padding-left: 15px !important;
-    overflow: hidden !important;
-    text-overflow: ellipsis !important;
-    white-space: nowrap !important;
+
+    &:not(.action-cell) {
+      overflow: hidden !important;
+      text-overflow: ellipsis !important;
+      white-space: nowrap !important;
+    }
   }
 
   tr {
-    background-color: #fff !important;
+    outline: 0;
+    background-color: var(--mainBackgroundColor) !important;
     height: 46px;
+
+    &.ui-state-highlight {
+      background-color: var(--submenuColor) !important;
+
+      td, td > a {
+        color: var(--mainForegroundColor) !important;
+      }
+    }
   }
 
   .ui-table-tbody {
     tr {
       &:hover {
-        background-color: #f0f0f0 !important;
+        background-color: var(--submenuColor) !important;
       }
 
       &:not(:hover) {
@@ -39,6 +70,10 @@ p-table {
         }
       }
 
+      td {
+        border: none !important;
+      }
+
       &:first-child td {
         border-top: none !important;
       }
@@ -57,15 +92,17 @@ p-table {
 
   th {
     border: none !important;
-    border-bottom: 1px solid #f0f0f0 !important;
+    border-bottom: 1px solid !important;
+    border-color: var(--submenuColor) !important;
     text-align: left !important;
     padding: 5px 0 5px 15px !important;
     font-weight: $font-semibold !important;
-    color: #000 !important;
+    color: var(--mainForegroundColor) !important;
 
     &.ui-sortable-column:hover {
-      background-color: #f0f0f0 !important;
-      border: 1px solid #f0f0f0 !important;
+      background-color: var(--submenuColor) !important;
+      border: 1px solid !important;
+      border-color: var(--submenuColor) !important;
       border-width: 0 1px !important;
 
       &:first-child {
@@ -74,13 +111,14 @@ p-table {
     }
 
     &.ui-state-highlight {
-      background-color: #fff !important;
+      background-color: var(--submenuColor) !important;
 
       .pi {
         @extend .glyphicon;
 
-        color: #000;
-        font-size: 11px;
+        color: #000 !important;
+        font-size: 11px !important;
+        top: 0 !important;
 
         &.pi-sort-up {
           @extend .glyphicon-triangle-top;
@@ -105,29 +143,69 @@ p-table {
 
   p-paginator {
     .ui-paginator-bottom {
+      background-color: var(--mainBackgroundColor) !important;
       position: relative;
-      border: 1px solid #f0f0f0 !important;
+      border: none;
+      border-top: 1px solid !important;
+      border-color: var(--submenuColor) !important;
       height: 40px;
       display: flex;
       justify-content: center;
       align-items: center;
 
+      .ui-paginator-first,
+      .ui-paginator-prev,
+      .ui-paginator-next,
+      .ui-paginator-last {
+        @include glyphicon-light;
+        padding: 5px 2px;
+        height: auto;
+        outline: none;
+        font-size: 13px;
+        top: -1px;
+
+        &.ui-state-disabled:hover {
+          background-color: #fff !important;
+        }
+
+        &.ui-paginator-first {
+          @extend .glyphicon-step-backward;
+        }
+
+        &.ui-paginator-prev {
+          @extend .glyphicon-chevron-left;
+
+          margin-right: 10px;
+        }
+
+        &.ui-paginator-next {
+          @extend .glyphicon-chevron-right;
+
+          margin-left: 10px;
+        }
+
+        &.ui-paginator-last {
+          @extend .glyphicon-step-forward;
+        }
+      }
+
       .ui-paginator-pages {
         height: auto !important;
 
         a {
           color: #000 !important;
           font-weight: $font-semibold !important;
-          margin-right: 20px !important;
+          margin: 0 5px !important;
           outline: 0 !important;
           border-radius: 3px !important;
           padding: 5px 2px !important;
           height: auto !important;
+          line-height: initial !important;
 
           &.ui-state-active {
             &, &:hover, &:active, &:focus {
               color: #fff !important;
-              background-color: $orange-color !important;
+              background-color: var(--mainColor) !important;
             }
           }
         }
@@ -151,11 +229,23 @@ p-calendar .ui-datepicker {
     .ui-datepicker-next {
       @extend .glyphicon-chevron-right;
       @include glyphicon-light;
+
+      text-align: right;
+
+      .pi.pi-chevron-right {
+        display: none !important;
+      }
     }
 
     .ui-datepicker-prev {
       @extend .glyphicon-chevron-left;
       @include glyphicon-light;
+
+      text-align: left;
+
+      .pi.pi-chevron-left {
+        display: none !important;
+      }
     }
   }
 
@@ -171,4 +261,86 @@ p-calendar .ui-datepicker {
       @include glyphicon-light;
     }
   }
-}
\ No newline at end of file
+}
+
+
+.ui-chkbox-box {
+  &.ui-state-active {
+    border-color: var(--mainColor) !important;
+    background-color: var(--mainColor) !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);
+    }
+
+    &.pi-check:after {
+      opacity: 1;
+      transform: rotate(45deg) scale(1);
+    }
+  }
+}
+
+p-inputswitch {
+  .ui-inputswitch-checked .ui-inputswitch-slider {
+    background-color: var(--mainColor) !important;
+  }
+}
+
+p-toast {
+  .ui-toast-message {
+    font-family: $main-fonts;
+
+    &.ui-toast-message-success {
+      color: #fff !important;
+      background-color: #8BC34A !important;
+    }
+
+    &.ui-toast-message-error {
+      color: #fff !important;
+      background-color: #F44336 !important;
+    }
+
+    &.ui-toast-message-info {
+      color: #fff !important;
+      background-color: #03A9F4 !important;
+    }
+
+    &.ui-toast-message-info {
+      color: #fff !important;
+      background-color: #03A9F4 !important;
+    }
+
+    .message {
+      float: left;
+
+      h3 {
+        font-size: 21px;
+      }
+
+      p {
+        font-size: 15px;
+      }
+    }
+
+    .glyphicon {
+      float: right;
+      font-size: 32px;
+      margin-top: 15px;
+      margin-right: 5px;
+    }
+  }
+}