From ef578110339fc2cfd66f1a8814ff0c4824fbdaac Mon Sep 17 00:00:00 2001 From: Merrin Macleod Date: Mon, 8 Jul 2019 12:28:30 +1200 Subject: [PATCH] Change first-child to first-of-type --- assets/stylesheets/bootstrap/_button-group.scss | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/stylesheets/bootstrap/_button-group.scss b/assets/stylesheets/bootstrap/_button-group.scss index d7220029..995bd2c8 100644 --- a/assets/stylesheets/bootstrap/_button-group.scss +++ b/assets/stylesheets/bootstrap/_button-group.scss @@ -37,19 +37,19 @@ .btn-group { // Prevent double borders when buttons are next to each other - > .btn:not(:first-child), - > .btn-group:not(:first-child) { + > .btn:not(:first-of-type), + > .btn-group:not(:first-of-type) { margin-left: -$btn-border-width; } // Reset rounded corners - > .btn:not(:last-child):not(.dropdown-toggle), - > .btn-group:not(:last-child) > .btn { + > .btn:not(:last-of-type):not(.dropdown-toggle), + > .btn-group:not(:last-of-type) > .btn { @include border-right-radius(0); } - > .btn:not(:first-child), - > .btn-group:not(:first-child) > .btn { + > .btn:not(:first-of-type), + > .btn-group:not(:first-of-type) > .btn { @include border-left-radius(0); } }