]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.scss
Use content box sizing instead of negative margins
[rails.git] / app / assets / stylesheets / common.scss
index ee551aed2a3ed0daed281cde7b6fa8e5c4b93c36..321b0bcb9af1dd17fa091ca51e1f8dbf397991b7 100644 (file)
@@ -415,6 +415,9 @@ body.small-nav {
     height: 3.5rem;
 
     > .btn {
+      box-sizing: content-box;
+      top: - map.get($border-widths, 4);
+      left: - map.get($border-widths, 4);
       --bs-btn-border-color: var(--bs-body-bg);
     }
     > .btn:hover {