-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove bootstrap dependency
- Loading branch information
Showing
11 changed files
with
304 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
::ng-deep .btn { | ||
display: inline-block; | ||
font-weight: 400; | ||
text-align: center; | ||
white-space: nowrap; | ||
vertical-align: middle; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
border: 1px solid transparent; | ||
padding: 0.375rem 0.75rem; | ||
font-size: 1rem; | ||
line-height: 1.5; | ||
border-radius: 0.25rem; | ||
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; | ||
|
||
&.btn-sm { | ||
padding: 0.25rem 0.5rem; | ||
font-size: 0.875rem; | ||
line-height: 1.5; | ||
border-radius: 0.2rem; | ||
} | ||
|
||
&:active, &:focus { | ||
outline: none; | ||
box-shadow: none; | ||
} | ||
|
||
&.btn-primary { | ||
color: #fff; | ||
background-color: #007bff; | ||
border-color: #007bff; | ||
|
||
&:hover { | ||
color: #fff; | ||
background-color: #0069d9; | ||
border-color: #0062cc; | ||
} | ||
} | ||
|
||
&:not(:disabled):not(.disabled) { | ||
cursor: pointer; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
::ng-deep form { | ||
.form-group { | ||
margin-bottom: 1rem; | ||
|
||
input { | ||
overflow: visible; | ||
} | ||
|
||
.form-control-sm { | ||
width: 100%; | ||
outline: none; | ||
border: none; | ||
border-bottom: solid 1px #bdbdbd; | ||
border-radius: 0; | ||
margin-bottom: 1px; | ||
padding: .25rem .5rem; | ||
font-size: .875rem; | ||
line-height: 1.5; | ||
} | ||
} | ||
|
||
.form-check { | ||
position: relative; | ||
display: block; | ||
padding-left: 1.25rem; | ||
|
||
.form-check-input { | ||
position: absolute; | ||
margin-top: .3rem; | ||
margin-left: -1.25rem; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
::ng-deep .popover { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
z-index: 1060; | ||
display: block; | ||
max-width: 276px; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 1.5; | ||
text-align: left; | ||
text-align: start; | ||
text-decoration: none; | ||
text-shadow: none; | ||
text-transform: none; | ||
letter-spacing: normal; | ||
word-break: normal; | ||
word-spacing: normal; | ||
white-space: normal; | ||
line-break: auto; | ||
font-size: 0.875rem; | ||
word-wrap: break-word; | ||
background-color: #fff; | ||
background-clip: padding-box; | ||
border: 1px solid rgba(0, 0, 0, 0.2); | ||
border-radius: 0.3rem; | ||
|
||
.arrow { | ||
position: absolute; | ||
display: block; | ||
width: 1rem; | ||
height: 0.5rem; | ||
margin: 0 0.3rem; | ||
|
||
&::before, | ||
&::after { | ||
position: absolute; | ||
display: block; | ||
content: ""; | ||
border-color: transparent; | ||
border-style: solid; | ||
} | ||
} | ||
|
||
.popover-header { | ||
padding: 0.5rem 0.75rem; | ||
margin-bottom: 0; | ||
font-size: 1rem; | ||
color: inherit; | ||
background-color: #f7f7f7; | ||
border-bottom: 1px solid #ebebeb; | ||
border-top-left-radius: calc(0.3rem - 1px); | ||
border-top-right-radius: calc(0.3rem - 1px); | ||
|
||
&:empty { | ||
display: none; | ||
} | ||
} | ||
|
||
.popover-body { | ||
padding: 0.5rem 0.75rem; | ||
color: #212529; | ||
} | ||
|
||
&.bs-popover-top { | ||
margin-bottom: 0.5rem; | ||
|
||
.arrow { | ||
bottom: calc((0.5rem + 1px) * -1); | ||
} | ||
|
||
.arrow::before, | ||
.arrow::after { | ||
border-width: 0.5rem 0.5rem 0; | ||
} | ||
|
||
.arrow::before { | ||
bottom: 0; | ||
border-top-color: rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.arrow::after { | ||
bottom: 1px; | ||
border-top-color: #fff; | ||
} | ||
} | ||
|
||
&.bs-popover-right { | ||
margin-left: 0.5rem; | ||
|
||
.arrow { | ||
left: calc((0.5rem + 1px) * -1); | ||
width: 0.5rem; | ||
height: 1rem; | ||
margin: 0.3rem 0; | ||
} | ||
|
||
.arrow::before, | ||
.arrow::after { | ||
border-width: 0.5rem 0.5rem 0.5rem 0; | ||
} | ||
|
||
.arrow::before { | ||
left: 0; | ||
border-right-color: rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.arrow::after { | ||
left: 1px; | ||
border-right-color: #fff; | ||
} | ||
} | ||
|
||
&.bs-popover-bottom { | ||
margin-top: 0.5rem; | ||
|
||
.arrow { | ||
top: calc((0.5rem + 1px) * -1); | ||
} | ||
|
||
.arrow::before, | ||
.arrow::after { | ||
border-width: 0 0.5rem 0.5rem 0.5rem; | ||
} | ||
|
||
.arrow::before { | ||
top: 0; | ||
border-bottom-color: rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.arrow::after { | ||
top: 1px; | ||
border-bottom-color: #fff; | ||
} | ||
|
||
// This will remove the popover-header's border just below the arrow | ||
.popover-header::before { | ||
position: absolute; | ||
top: 0; | ||
left: 50%; | ||
display: block; | ||
width: 1rem; | ||
margin-left: -0.5rem; | ||
content: ""; | ||
border-bottom: 1px solid #f7f7f7; | ||
} | ||
} | ||
|
||
&.bs-popover-left { | ||
margin-right: 0.5rem; | ||
|
||
.arrow { | ||
right: calc((0.5rem + 1px) * -1); | ||
width: 0.5rem; | ||
height: 1rem; | ||
margin: 0.3rem 0; | ||
} | ||
|
||
.arrow::before, | ||
.arrow::after { | ||
border-width: 0.5rem 0 0.5rem 0.5rem; | ||
} | ||
|
||
.arrow::before { | ||
right: 0; | ||
border-left-color: rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.arrow::after { | ||
right: 1px; | ||
border-left-color: #fff; | ||
} | ||
} | ||
|
||
&.bs-popover-auto { | ||
&[x-placement^="top"] { | ||
@extend .bs-popover-top; | ||
} | ||
|
||
&[x-placement^="right"] { | ||
@extend .bs-popover-right; | ||
} | ||
|
||
&[x-placement^="bottom"] { | ||
@extend .bs-popover-bottom; | ||
} | ||
|
||
&[x-placement^="left"] { | ||
@extend .bs-popover-left; | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
/* You can add global styles to this file, and also import other style files */ | ||
|
||
@import "../node_modules/bootstrap/scss/bootstrap"; // bootstrap | ||
@import "../node_modules/font-awesome/css/font-awesome.css"; // font-awesome | ||
@import "../node_modules/bootstrap/scss/_functions"; | ||
@import "../node_modules/bootstrap/scss/_variables"; | ||
@import "../node_modules/bootstrap/scss/_mixins"; | ||
@import "../node_modules/bootstrap/scss/_type"; | ||
@import "../node_modules/bootstrap/scss/_reboot"; | ||
@import "../node_modules/bootstrap/scss/_grid"; | ||
@import "../node_modules/font-awesome/css/font-awesome.css"; | ||
@import "../node_modules/codemirror/lib/codemirror.css"; |