]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix end-user-facing uses of inline CSS
authorThibG <thib@sitedethib.com>
Tue, 28 Apr 2020 08:16:55 +0000 (10:16 +0200)
committerThibaut Girka <thib@sitedethib.com>
Sun, 3 May 2020 19:44:43 +0000 (21:44 +0200)
Port 0e362b7678e75cb71ce207fd45dd4dc0d955fdca to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/styles/about.scss
app/javascript/flavours/glitch/styles/basics.scss
app/javascript/flavours/glitch/styles/components/accounts.scss
app/javascript/flavours/glitch/styles/forms.scss
app/javascript/flavours/glitch/styles/polls.scss
app/javascript/flavours/glitch/styles/statuses.scss

index a38ca99b4e4aed07142097a9e3457e8e857e58af..f0a44aa944809a82ed0bef083726def30af8ca24 100644 (file)
@@ -760,8 +760,13 @@ $small-breakpoint: 960px;
       }
     }
 
+    &__counters__wrapper {
+      display: flex;
+    }
+
     &__counter {
       padding: 10px;
+      width: 50%;
 
       strong {
         font-family: $font-display, sans-serif;
index eb78b189d7d1c51b5d3b98d882266964ccac7605..9ff3f3bacbff3a04954760babae963b683770ea9 100644 (file)
@@ -151,6 +151,10 @@ button {
   }
 }
 
+.logo-resources {
+  display: none;
+}
+
 // NoScript adds a __ns__pop2top class to the full ancestry of blocked elements,
 // to set the z-index to a high value, which messes with modals and dropdowns.
 // Blocked elements can in theory only be media and frames/embeds, so they
index 491ceb6ecc26a1fa7adc950dfec2f6b41624503c..ccd620215ddf38b21772cca4e0653db0e7fa00a1 100644 (file)
   &-base {
     @include avatar-radius();
     @include avatar-size(36px);
+
+    img {
+      @include avatar-radius;
+      width: 100%;
+      height: 100%;
+    }
   }
 
   &-overlay {
     bottom: 0;
     right: 0;
     z-index: 1;
+
+    img {
+      @include avatar-radius;
+      width: 100%;
+      height: 100%;
+    }
   }
 }
 
index 396e87c6c1201ab12ae1e654572a18be1b8d5c0b..5de650f0a822670f6f3df77634f72641a3f33cf5 100644 (file)
@@ -133,6 +133,10 @@ code {
     }
   }
 
+  .otp-hint {
+    margin-bottom: 25px;
+  }
+
   .card {
     margin-bottom: 15px;
   }
@@ -276,6 +280,14 @@ code {
         margin-bottom: 25px;
       }
     }
+
+    .fields-group.invited-by {
+      margin-bottom: 30px;
+
+      .hint {
+        text-align: center;
+      }
+    }
   }
 
   .input.radio_buttons .radio label {
@@ -626,6 +638,15 @@ code {
   @media screen and (max-width: 740px) and (min-width: 441px) {
     margin-top: 40px;
   }
+
+  &.translation-prompt {
+    text-align: unset;
+    color: unset;
+
+    a {
+      text-decoration: underline;
+    }
+  }
 }
 
 .form-footer {
index 44338338fd6a5ba0293f2c66aae2f32540b811fb..5fc41ed9e966b1f6abcb6a63461eee2ae03eae42 100644 (file)
     }
   }
 
+  progress {
+    border: 0;
+    display: block;
+    width: 100%;
+    height: 5px;
+    appearance: none;
+    background: transparent;
+
+    &::-webkit-progress-bar {
+      background: transparent;
+    }
+
+    // Those rules need to be entirely separate or they won't work, hence the
+    // duplication
+    &::-moz-progress-bar {
+      border-radius: 4px;
+      background: darken($ui-primary-color, 5%);
+    }
+
+    &::-ms-fill {
+      border-radius: 4px;
+      background: darken($ui-primary-color, 5%);
+    }
+
+    &::-webkit-progress-value {
+      border-radius: 4px;
+      background: darken($ui-primary-color, 5%);
+    }
+  }
+
   &__option {
     position: relative;
     display: flex;
index 22fa7b3fd27c7c220c1e5d791f999494dcb34594..4122e121ac7ec3ac1edb242085d5a1e804002714 100644 (file)
 
 .embed,
 .public-layout {
+  .status__content[data-spoiler=folded] {
+    .e-content {
+      display: none;
+    }
+
+    p:first-child {
+      margin-bottom: 0;
+    }
+  }
+
   .detailed-status {
     padding: 15px;
   }
     .video-player {
       margin-top: 10px;
     }
+
+    &__action-bar-button {
+      font-size: 18px;
+      width: 23.1429px;
+      height: 23.1429px;
+      line-height: 23.15px;
+    }
   }
 }