Skip to content

Commit

Permalink
fix: add missed border utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorrusakov committed Feb 16, 2023
1 parent c226353 commit e292ff1
Show file tree
Hide file tree
Showing 6 changed files with 145 additions and 3 deletions.
1 change: 0 additions & 1 deletion scss/core/_utilities.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// explicitly import bootstrap's utility module to exclude some modules which do not work
// with CSS variables, they are instead overriden by Paragon
@import "~bootstrap/scss/utilities/align";
@import "~bootstrap/scss/utilities/borders";
@import "~bootstrap/scss/utilities/clearfix";
@import "~bootstrap/scss/utilities/display";
@import "~bootstrap/scss/utilities/embed";
Expand Down
1 change: 1 addition & 0 deletions scss/core/bootstrap-override/_utilities.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "utilities/spacing";
@import "utilities/text";
@import "utilities/background";
@import "utilities/borders";
46 changes: 46 additions & 0 deletions scss/core/bootstrap-override/utilities/_borders.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// Border
//

.border { border: $border-width solid $border-color !important; }
.border-top { border-top: $border-width solid $border-color !important; }
.border-right { border-right: $border-width solid $border-color !important; }
.border-bottom { border-bottom: $border-width solid $border-color !important; }
.border-left { border-left: $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; }
.border-bottom-0 { border-bottom: 0 !important; }
.border-left-0 { border-left: 0 !important; }

.border-white {
border-color: $white !important;
}

//
// Border-radius
//

.rounded-sm {
border-radius: $border-radius-sm !important;
}

.rounded {
border-radius: $border-radius !important;
}

.rounded-top {
border-top-left-radius: $border-radius !important;
border-top-right-radius: $border-radius !important;
}

.rounded-right {
border-top-right-radius: $border-radius !important;
border-bottom-right-radius: $border-radius !important;
}

.rounded-bottom {
border-bottom-right-radius: $border-radius !important;
border-bottom-left-radius: $border-radius !important;
}
48 changes: 48 additions & 0 deletions scss/core/css/utility-classes.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
.bg-accent-a {
background-color: #00BBF9FF !important;
}

a.bg-accent-a:hover,
a.bg-accent-a:focus,
button.bg-accent-a:hover,
button.bg-accent-a:focus {
background-color: #0095C6FF !important;
}

.text-accent-a {
color: #00BBF9FF !important;
}

a.text-accent-a:hover,
a.text-accent-a:focus {
color: #0082ADFF !important;
}

.border-accent-a {
border-color: #00BBF9FF !important;
}

.bg-accent-b {
background-color: #FFEE88FF !important;
}

a.bg-accent-b:hover,
a.bg-accent-b:focus,
button.bg-accent-b:hover,
button.bg-accent-b:focus {
background-color: #FFE755FF !important;
}

.text-accent-b {
color: #FFEE88FF !important;
}

a.text-accent-b:hover,
a.text-accent-b:focus {
color: #FFE33BFF !important;
}

.border-accent-b {
border-color: #FFEE88FF !important;
}

.bg-gray-100 {
background-color: #EBEBEBFF !important;
}
Expand Down
48 changes: 48 additions & 0 deletions tokens/build/utility-classes.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
.bg-accent-a {
background-color: #00BBF9FF !important;
}

a.bg-accent-a:hover,
a.bg-accent-a:focus,
button.bg-accent-a:hover,
button.bg-accent-a:focus {
background-color: #0095C6FF !important;
}

.text-accent-a {
color: #00BBF9FF !important;
}

a.text-accent-a:hover,
a.text-accent-a:focus {
color: #0082ADFF !important;
}

.border-accent-a {
border-color: #00BBF9FF !important;
}

.bg-accent-b {
background-color: #FFEE88FF !important;
}

a.bg-accent-b:hover,
a.bg-accent-b:focus,
button.bg-accent-b:hover,
button.bg-accent-b:focus {
background-color: #FFE755FF !important;
}

.text-accent-b {
color: #FFEE88FF !important;
}

a.text-accent-b:hover,
a.text-accent-b:focus {
color: #FFE33BFF !important;
}

.border-accent-b {
border-color: #FFEE88FF !important;
}

.bg-gray-100 {
background-color: #EBEBEBFF !important;
}
Expand Down
4 changes: 2 additions & 2 deletions tokens/src/utilities/color.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"utilities": [
{
"filters": {
"type": ["gray", "primary", "secondary", "brand", "success", "info", "warning", "danger", "light", "dark"],
"item": ["base","100", "200", "300", "400", "500", "600", "700", "800", "900"]
"type": ["gray", "primary", "secondary", "brand", "success", "info", "warning", "danger", "light", "dark", "accent"],
"item": ["base","100", "200", "300", "400", "500", "600", "700", "800", "900", "a", "b"]
},
"utilityFunctionsToApply": ["bgVariant", "textEmphasisVariant", "borderColor"]
}
Expand Down

0 comments on commit e292ff1

Please sign in to comment.