Fix the alignment of `<fa-icon>` in `.box*`
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jul 2023 17:21:28 +0000 (19:21 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jul 2023 17:21:28 +0000 (19:21 +0200)
See https://www.woltlab.com/community/thread/300726-file-icons-in-featured-plugins-box-are-misaligned/

wcfsetup/install/files/style/bootstrap/mixin/box.scss

index a7fd59486680e685cae2af548efd4f6b474421d0..817a378edfcc1bc54cac65d52582b46c51844a6d 100644 (file)
@@ -1,6 +1,11 @@
 @mixin box($imageSize, $margin: 0) {
        display: flex;
 
+       > :first-child fa-icon {
+               left: #{($imageSize - $imageSize * 1.25) / 2};
+               position: relative;
+       }
+
        > :first-child:not(:last-child) {
                flex: 0 0 auto;
                margin-right: $margin;