Remove the legacy icon class
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 Aug 2022 14:13:45 +0000 (16:13 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 15 Aug 2022 14:13:45 +0000 (16:13 +0200)
wcfsetup/install/files/style/font-awesome/000-woltlab.scss

index 6b2ed6b0444caf7d2ac8907bb85c97f4d42c0a49..85d51c76f492bbe9c439a85aadf432d202cc9181 100644 (file)
   src: url("../font/fa-solid-900.woff2?v=6.1.2") format("woff2");
 }
 
-.icon {
-  // TODO: Check if this applies to `<fa-icon>` and `<fa-brand>`. Maybe define the
-  //       icons as `pointer-events: none` and let the surrounding element deal with
-  //       it instead?
-
-  &.disabled {
-    cursor: not-allowed;
-    opacity: 0.3;
-  }
-
-  &:hover {
-    text-decoration: none;
-  }
-}
-
 fa-brand,
 fa-icon {
   align-items: center;
@@ -108,7 +93,7 @@ fa-icon {
   }
 }
 
-/* Default icon sizes */
+/* @deprecated 6.0 Use the new icons instead, `.icon` is now just an easy-to-spot reminder. */
 .icon {
   align-items: center;
   background-color: #f0c !important;
@@ -165,9 +150,7 @@ fa-icon {
     --font-size: 130px;
     --icon-size: 144px;
   }
-}
 
-.icon {
   &.green {
     color: rgba(0, 153, 0, 1);
   }
@@ -204,23 +187,3 @@ fa-icon {
     color: #f0c;
   }
 }
-
-/* TODO: Figure out what to do with the spinner */
-
-.icon.fa-spinner {
-  animation: wcfSpinner 0.6s linear infinite;
-  border: 2px solid rgb(204, 204, 204);
-  border-top-color: rgb(79, 129, 189);
-  border-radius: 50%;
-  vertical-align: middle;
-
-  /* The new icons have a width of 1.25 times the height. */
-  margin: 0 calc(var(--icon-size) * 0.125);
-  width: var(--icon-size);
-}
-
-@keyframes wcfSpinner {
-  to {
-    transform: rotate(360deg);
-  }
-}