]> cat aescling's git repositories - mastodon.git/commitdiff
Fix various CodeClimate warnings
authorClaire <claire.github-309c@sitedethib.com>
Sat, 6 Mar 2021 12:12:35 +0000 (13:12 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Sat, 6 Mar 2021 13:51:53 +0000 (14:51 +0100)
13 files changed:
app/javascript/flavours/glitch/styles/_mixins.scss
app/javascript/flavours/glitch/styles/accessibility.scss
app/javascript/flavours/glitch/styles/admin.scss
app/javascript/flavours/glitch/styles/components/accounts.scss
app/javascript/flavours/glitch/styles/components/columns.scss
app/javascript/flavours/glitch/styles/components/composer.scss
app/javascript/flavours/glitch/styles/components/drawer.scss
app/javascript/flavours/glitch/styles/components/index.scss
app/javascript/flavours/glitch/styles/components/media.scss
app/javascript/flavours/glitch/styles/components/modal.scss
app/javascript/flavours/glitch/styles/components/status.scss
app/javascript/flavours/glitch/styles/forms.scss
app/javascript/styles/mastodon/admin.scss

index 088b41e76a18fc9cda4ae76bfebbea7be26a10c5..c92bc8608936461e8ffeb8c3b5389b3f52d39746 100644 (file)
@@ -55,7 +55,7 @@
   outline: 0;
   box-sizing: border-box;
   width: 100%;
-  border: none;
+  border: 0;
   box-shadow: none;
   font-family: inherit;
   background: $ui-base-color;
index 1a2de2f068222a13bd1123b904e07d8305f8812f..cb27497a49931ffa1512dc44db3132b050d7dd83 100644 (file)
@@ -15,21 +15,21 @@ $emojis-requiring-inversion: 'back' 'copyright' 'curly_loop' 'currency_exchange'
 .hicolor-privacy-icons {
   .status__visibility-icon.fa-globe,
   .composer--options--dropdown--content--item .fa-globe {
-    color: #1976D2;
+    color: #1976d2;
   }
 
   .status__visibility-icon.fa-unlock,
   .composer--options--dropdown--content--item .fa-unlock {
-    color: #388E3C;
+    color: #388e3c;
   }
 
   .status__visibility-icon.fa-lock,
   .composer--options--dropdown--content--item .fa-lock {
-    color: #FFA000;
+    color: #ffa000;
   }
 
   .status__visibility-icon.fa-envelope,
   .composer--options--dropdown--content--item .fa-envelope {
-    color: #D32F2F;
+    color: #d32f2f;
   }
 }
index 3cf5ee970b1ad425a3fe68142ede895c406b26d1..4801a464401d35ac3fdec323430c830a71149462 100644 (file)
@@ -267,7 +267,7 @@ $content-width: 840px;
       text-transform: none;
       padding-bottom: 0;
       margin-bottom: 0;
-      border-bottom: none;
+      border-bottom: 0;
     }
 
     & > p {
index c0bbe5633f896fcdbf575961137ba234d66fa2e7..6dcfbcb0244ddc54507f67e28e4dd26d3321d8f1 100644 (file)
@@ -14,7 +14,7 @@
   }
 
   &.small {
-    border: none;
+    border: 0;
     padding: 0;
 
     & > .account__avatar-wrapper { margin: 0 8px 0 0 }
 }
 
 .account-gallery__item {
-  border: none;
+  border: 0;
   box-sizing: border-box;
   display: block;
   position: relative;
index 2d080d3b9c286339ddf95f19b4253f8f27c8e062..90aa5859db30aa703ab11184a53171717bdc94c8 100644 (file)
 
   & > button {
     margin: 0;
-    border: none;
+    border: 0;
     padding: 15px;
     color: inherit;
     background: transparent;
index 460f75c1fc83eb3c4b022b32916488b442e87546..fd62bb651e9ac8414e52524855669c6d9bf6eeb5 100644 (file)
@@ -44,7 +44,7 @@
     display: block;
     box-sizing: border-box;
     margin: 0;
-    border: none;
+    border: 0;
     border-radius: 4px;
     padding: 10px;
     width: 100%;
@@ -81,7 +81,9 @@
 
     &:active,
     &:focus,
-    &:hover { text-decoration: none }
+    &:hover {
+      text-decoration: none;
+    }
   }
 }
 
       display: block;
       box-sizing: border-box;
       margin: 0;
-      border: none;
+      border: 0;
       border-radius: 4px 4px 0 0;
       padding: 10px 32px 0 10px;
       width: 100%;
         all: unset;
       }
 
-      &:disabled { background: $ui-secondary-color }
-      &:focus { outline: 0 }
-      @include single-column('screen and (max-width: 630px)') { font-size: 16px }
+      &:disabled {
+        background: $ui-secondary-color;
+      }
+
+      &:focus {
+        outline: 0;
+      }
+
+      @include single-column('screen and (max-width: 630px)') {
+        font-size: 16px;
+      }
 
       @include limited-single-column('screen and (max-width: 600px)') {
         height: 100px !important; // prevent auto-resize textarea
index fa410234a8db35d037f60bbab26be9d8ea62d6bd..b6d06f53a5cb50f83f91d4d812fc3ed30cd65639 100644 (file)
     padding-right: 10px;
   }
 
-  @include single-column('screen and (max-width: 630px)') { flex: auto }
+  @include single-column('screen and (max-width: 630px)') {
+    flex: auto;
+  }
 
   @include limited-single-column('screen and (max-width: 630px)') {
-    &, &:first-child, &:last-child { padding: 0 }
+    &,
+    &:first-child,
+    &:last-child {
+      padding: 0;
+    }
   }
 
   .wide & {
     display: block;
     width: 100%;
     height: 100%;
-    border: none;
+    border: 0;
     cursor: inherit;
   }
 
index 40206c696a08f11b287a6f5157b5c1e03459b68b..aada9a9289eff4da9aab97833e7040c6529cb844 100644 (file)
 .setting-text {
   color: $darker-text-color;
   background: transparent;
-  border: none;
+  border: 0;
   border-bottom: 2px solid $ui-primary-color;
   box-sizing: border-box;
   display: block;
index f504fa91e564e0c61bbf2026681f74aa690ff675..6cbcb05bd86329b58f57b98fff2a2b411ba719db 100644 (file)
@@ -82,7 +82,7 @@
 }
 
 .media-gallery__item {
-  border: none;
+  border: 0;
   box-sizing: border-box;
   display: block;
   float: left;
index 0bda305a8b360022416ebab60aa310981354ab4d..f5acd814e02b7135d11c77f628cbcf0e9b4dce95 100644 (file)
       box-sizing: border-box;
       display: block;
       width: 100%;
-      border: none;
+      border: 0;
       padding: 10px;
       font-family: 'mastodon-font-monospace', monospace;
       background: $ui-base-color;
index d6fbfbaa4a6786d6f543adcbac2657416dabc353..4248657ad29eb280a97550ad2ef07d74627f0e57 100644 (file)
   display: inline-block;
   border-radius: 2px;
   background: lighten($ui-base-color, 30%);
-  border: none;
+  border: 0;
   color: $inverted-text-color;
   font-weight: 500;
   font-size: 11px;
       &:after {
         content: "";
         position: absolute;
-        top: 0; bottom: 0;
-        left: 0; right: 0;
+        top: 0;
+        bottom: 0;
+        left: 0;
+        right: 0;
         background: linear-gradient(rgba($ui-base-color, 0), rgba($ui-base-color, 1));
         pointer-events: none;
       }
index 8ea50733385cac9984938a98b0e57a7c93377674..a65ef44541239ad05a1a684d585523c41b5409b2 100644 (file)
@@ -625,7 +625,7 @@ code {
     box-sizing: border-box;
     display: block;
     width: 100%;
-    border: none;
+    border: 0;
     padding: 10px;
     font-family: $font-monospace, monospace;
     background: $ui-base-color;
index fea64f45c8a40f9fb038f7a5e71190367aa8b53f..4801a464401d35ac3fdec323430c830a71149462 100644 (file)
@@ -459,22 +459,6 @@ body,
   }
 }
 
-.flavour-screen {
-  display: block;
-  margin: 10px auto;
-  max-width: 100%;
-}
-
-.flavour-description {
-  display: block;
-  font-size: 16px;
-  margin: 10px 0;
-
-  & > p {
-    margin: 10px 0;
-  }
-}
-
 .report-accounts {
   display: flex;
   flex-wrap: wrap;