]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/application.scss
Add ability to preview embed in share modal
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
index 6b32d4cd624a763d46f4dc038a0702ff2918d2c4..87a21543def802845f89f0133f0f0557cfa1c92c 100644 (file)
@@ -1,15 +1,21 @@
 $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
 
+@use 'sass:math';
+
 @use '_variables' as *;
 @use '_mixins' as *;
 
 @use '_fonts';
 
-@use './bootstrap';
-@use './primeng-custom';
+@use './classes';
+
+@use './custom-markup';
+
 @use './ng-select';
 
-@use './classes';
+// Needs an import because we extends glyphicon icons in primeng
+@import './bootstrap';
+@import './primeng-custom';
 
 [hidden] {
   display: none !important;
@@ -86,7 +92,7 @@ strong {
   font-weight: $font-semibold;
 }
 
-input.readonly {
+input[readonly] {
   /* Force blank on readonly inputs */
   background-color: pvar(--inputBackgroundColor) !important;
 }
@@ -119,12 +125,16 @@ code {
   vertical-align: middle;
 }
 
-.form-error {
+.form-error,
+.form-warning {
   display: block;
-  color: $red;
   margin-top: 5px;
 }
 
+.form-error {
+  color: $red;
+}
+
 .input-error,
 my-input-toggle-hidden ::ng-deep input {
   border-color: $red !important;
@@ -252,10 +262,6 @@ my-input-toggle-hidden ::ng-deep input {
   align-items: center;
   margin-bottom: 30px;
 
-  .form-sub-title {
-    flex-grow: 1;
-  }
-
   .admin-sub-nav a {
     @include disable-default-a-behaviour;
 
@@ -279,11 +285,6 @@ my-input-toggle-hidden ::ng-deep input {
   }
 }
 
-.form-sub-title {
-  font-size: 20px;
-  font-weight: bold;
-}
-
 // In tables, don't have a hover different background
 table {
   .action-button-edit,
@@ -345,11 +346,11 @@ ngx-loading-bar {
 
 @media screen and (max-width: #{breakpoint(xxl)}) {
   .main-col {
-    --horizontalMarginContent: #{$not-expanded-horizontal-margins / 2};
+    --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
     --videosHorizontalMarginContent: 30px;
 
     &.expanded {
-      --horizontalMarginContent: #{$expanded-horizontal-margins / 2};
+      --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
     }
   }
 }
@@ -362,7 +363,7 @@ ngx-loading-bar {
   /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
   .main-col,
   .main-col.expanded {
-    --horizontalMarginContent: #{$expanded-horizontal-margins / 3};
+    --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
 
     .sub-menu {
       padding: 0 50px;
@@ -402,13 +403,6 @@ ngx-loading-bar {
     .admin-sub-header {
       flex-direction: column;
 
-      .form-sub-title {
-        @include margin-right(0 !important);
-
-        margin-bottom: 10px;
-        text-align: center;
-      }
-
       .admin-sub-nav {
         display: block;
         overflow-x: auto;