]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Change border class
authorenvolute <adm@envolute.com>
Tue, 1 Aug 2017 05:50:09 +0000 (02:50 -0300)
committerMark Otto <markd.otto@gmail.com>
Fri, 11 Aug 2017 05:48:26 +0000 (22:48 -0700)
The class ".border" (css/utilities/_borders.scss) is set the border-color to "$gray-200".
So I see that it would be nice to create a variable for the border color "$border-color". Because the default border should not always be "gray-200".
Another thing, there is a "$border-width" variable. Would not it be better to use this variable to set the default width of the border?

scss/utilities/_borders.scss

index 82e177c80bfc4c94d87c0fa536e170a7e01a8185..b7e91c26074a98a431e7edae93803d27d0d4d5db 100644 (file)
@@ -2,7 +2,7 @@
 // Border
 //
 
-.border          { border: 1px solid $gray-200 !important; }
+.border          { border: $border-width solid $border-color !important; }
 .border-0        { border: 0 !important; }
 .border-top-0    { border-top: 0 !important; }
 .border-right-0  { border-right: 0 !important; }