]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/application.scss
Better admin tables
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
index 968dc5f5887a3496dae7e3dd06c52b809e8752d6..0539ec486a7b505722f89dcc2f3680ea5be9fea7 100644 (file)
@@ -2,7 +2,7 @@
 @import '_mixins';
 
 $icon-font-path: '../../node_modules/bootstrap-sass/assets/fonts/bootstrap/';
-@import '~bootstrap-sass/assets/stylesheets/_bootstrap';
+@import '_bootstrap';
 
 $FontPathSourceSansPro: '../../node_modules/npm-font-source-sans-pro/fonts';
 @import '~npm-font-source-sans-pro/source-sans-pro';
@@ -158,6 +158,9 @@ p-datatable {
   td {
     border: 1px solid #E5E5E5 !important;
     padding-left: 15px !important;
+    overflow: hidden !important;
+    text-overflow: ellipsis !important;
+    white-space: nowrap !important;
   }
 
   tr {
@@ -191,17 +194,31 @@ p-datatable {
     font-weight: $font-semibold !important;
     color: #000 !important;
 
-    &.ui-sortable-column:hover:not(.ui-state-active) {
+    &.ui-sortable-column:hover {
       background-color: #f0f0f0 !important;
       border: 1px solid #f0f0f0 !important;
       border-width: 0 1px !important;
+
+      &:first-child {
+        border-width: 0 1px 0 0 !important;
+      }
     }
 
     &.ui-state-active {
-      color: #fff !important;
-      background-color: $orange-color !important;
-      border: 1px solid $orange-color !important;
-      border-width: 0 1px !important;
+      background-color: #fff !important;
+
+      .fa {
+        @extend .glyphicon;
+        font-size: 11px;
+
+        &.fa-sort-asc {
+          @extend .glyphicon-triangle-top;
+        }
+
+        &.fa-sort-desc {
+          @extend .glyphicon-triangle-bottom;
+        }
+      }
     }
   }
 
@@ -258,9 +275,39 @@ p-datatable {
 .modal {
   .modal-header {
     border-bottom: none;
+    margin-bottom: 5px;
+
+    .modal-title {
+      font-size: 20px;
+      font-weight: $font-semibold;
+    }
+
+    .close {
+      @include icon(24px);
 
-    .title-page-single {
-      margin: 0;
+      position: relative;
+      right: -1px;
+      float: right;
+      background-image: url('../assets/images/global/cross.svg');
+    }
+  }
+
+  .inputs {
+    margin-top: 40px;
+    margin-bottom: 0;
+    text-align: right;
+
+    .action-button-cancel {
+      @include peertube-button;
+      @include grey-button;
+
+      display: inline-block;
+      margin-right: 10px;
+    }
+
+    .action-button-submit {
+      @include peertube-button;
+      @include orange-button;
     }
   }
 }
@@ -317,6 +364,15 @@ p-datatable {
   @include grey-button;
 }
 
+// In tables, don't have a hover different background
+table {
+  .action-button-edit, .action-button-delete {
+    &:hover, &:active, &:focus, &[disabled], &.disabled {
+      background-color: $grey-color !important;
+    }
+  }
+}
+
 // On small screen, menu is absolute
 @media screen and (max-width: 800px) {
   .title-menu-left {