Workaround for an incorrect width calculation inside `<details>`
authorAlexander Ebert <ebert@woltlab.com>
Thu, 9 Dec 2021 18:13:55 +0000 (19:13 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 9 Dec 2021 18:13:55 +0000 (19:13 +0100)
wcfsetup/install/files/style/bootstrap/reset.scss

index c9448ddfb7249cd7396666605725832d54b03520..d72b54cc36431641fadb270295c69377eba4360a 100644 (file)
@@ -106,6 +106,11 @@ html {
        min-width: 0;
 }
 
+// See https://www.paulirish.com/2012/box-sizing-border-box-ftw/
+details * {
+       box-sizing: border-box;
+}
+
 html {
        // prevent iOS Safari from blowing up font size when in landscape mode
        -webkit-text-size-adjust: 100%;