]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app.component.scss
Move to sass module
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.scss
index 38ec11b5bd980fc0f03758be1f456318c667b7ca..4a32ad2d7ab83492532204ed64ac5ff1171dfe0b 100644 (file)
@@ -1,7 +1,5 @@
-@import '_variables';
-@import '_mixins';
-@import '~bootstrap/scss/functions';
-@import '~bootstrap/scss/variables';
+@use '_variables' as *;
+@use '_mixins' as *;
 
 .peertube-container {
   padding-bottom: 20px;
   z-index: z(header);
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
   display: flex;
+}
 
-  .top-left-block {
-    z-index: 1;
-    height: $header-height;
-    display: flex;
-    align-items: center;
-    min-width: 0;
-
-    .icon {
-      @include icon(24px);
-
-      &.icon-menu {
-        background-color: pvar(--mainForegroundColor);
-        mask-image: url('../assets/images/misc/menu.svg');
-        margin: 0 18px 0 20px;
-      }
-    }
+.top-left-block {
+  z-index: 1;
+  height: $header-height;
+  display: flex;
+  align-items: center;
+  min-width: 0;
 
-    .peertube-title {
-      @include disable-default-a-behaviour;
-
-      font-size: 20px;
-      font-weight: $font-bold;
-      color: inherit !important;
-      display: flex;
-      align-items: center;
-      overflow: hidden;
-
-      .instance-name {
-        @include ellipsis;
-
-        width: 100%;
-      }
-
-      .icon.icon-logo {
-        display: inline-block;
-        background-repeat: no-repeat;
-        width: 23px;
-        height: 24px;
-        margin-right: .5rem;
-      }
-    }
+  .icon {
+    @include icon(24px);
+  }
 
-    @media screen and (max-width: $mobile-view) {
-      width: 70px;
+  .icon-menu {
+    mask-image: url('../assets/images/misc/menu.svg');
+    -webkit-mask-image: url('../assets/images/misc/menu.svg');
 
-      .peertube-title {
-        display: none;
-      }
+    background-color: pvar(--mainForegroundColor);
+    margin: 0 18px 0 20px;
+
+    @media screen and (max-width: $mobile-view) {
+      margin: 0 10px;
     }
+  }
+}
+
+.header-right {
+  height: $header-height;
+  display: flex;
+  align-items: center;
+  justify-content: flex-end;
+  white-space: nowrap;
+  flex: 1;
+}
+
+.peertube-title {
+  @include disable-default-a-behaviour;
+
+  font-size: 20px;
+  font-weight: $font-bold;
+  color: inherit !important;
+  display: flex;
+  align-items: center;
+  overflow: hidden;
+  padding: 0 0 0 10px;
+
+  .instance-name {
+    @include ellipsis;
+
+    width: 100%;
 
-    @media screen and (max-width: 350px) {
-      flex: auto;
+    @media screen and (max-width: $mobile-view) {
+      display: none;
     }
   }
 
-  .header-right {
-    height: $header-height;
-    display: flex;
-    align-items: center;
-    justify-content: flex-end;
-    white-space: nowrap;
-    flex: 1;
+  .icon.icon-logo {
+    @include margin-right(0.5rem);
+
+    display: inline-block;
+    width: 23px;
+    height: 24px;
   }
 }
 
     justify-self: center;
     align-self: center;
     cursor: pointer;
-
     width: 20px;
   }
 
-  @each $color, $value in $theme-colors {
-    &.alert-#{$color} {
-      my-global-icon {
-        @include apply-svg-color(theme-color-level($color, $alert-color-level));
-      }
-    }
-  }
-
   ::ng-deep {
     p {
       font-size: 16px;