]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Refactoring error page component style
authorWicklow <wicklow@framasoft.org>
Thu, 16 Feb 2023 11:36:36 +0000 (12:36 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 20 Feb 2023 12:52:22 +0000 (13:52 +0100)
client/src/app/+error-page/error-page.component.html
client/src/app/+error-page/error-page.component.scss

index b8b9296a3d1c8e6762dc9c527a0d54d6732ba728..6a1675f902c39f7825979a15cf744cd6efcf197b 100644 (file)
@@ -54,5 +54,5 @@
     <div class="muted" i18n="This is about Sepia's tea">Sepia seems to like it.</div>
   </div>
 
-  <img src='/client/assets/images/mascot/{{ getMascotName() }}.svg' alt='{{ status }} mascot' class="mb-4">
+  <img src='/client/assets/images/mascot/{{ getMascotName() }}.svg' alt='{{ status }} mascot' class="mb-4 h-auto">
 </div>
index 4e12e8c78b54d4a3b7c6b9c5298dc112d9fafbb7..5193c2871b9d4533206adbe092340ce82bce06d4 100644 (file)
@@ -4,25 +4,26 @@
 .root {
   @include margin-left(auto);
   @include margin-right(auto);
+  @include padding-top(9rem);
+  @include rfs(45rem, width);
 
   height: 100%;
   text-align: center;
-  padding-top: 150px;
   display: flex;
   justify-content: center;
   flex-direction: column-reverse;
 
+
   .box {
+    @include font-size(1.20rem);
+
     text-align: start;
-    font-size: 120%;
     padding: 0 15px;
   }
 
   img {
     @include margin-left(auto);
-
-    width: 220px;
-    height: auto;
+    @include rfs(14rem, width);
   }
 
   @media screen and (max-width: $mobile-view) {
       @include margin-right(auto);
     }
   }
-
-  @media screen and (min-width: $mobile-view) {
-    width: 400px;
-  }
-
-  @media screen and (max-height: 600px) {
-    padding-top: 50px;
-
-    img {
-      width: 160px;
-    }
-  }
 }