Skip to content

Commit

Permalink
feat: 添加自定义样式入口,但是现在尚未启用
Browse files Browse the repository at this point in the history
  • Loading branch information
damingerdai committed Jan 25, 2019
1 parent c5f4476 commit c4d60e0
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 1 deletion.
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"src/assets"
],
"styles": [
"src/styles.scss"
"src/styles.scss",
// "src/scss/style.scss"
],
"scripts": []
},
Expand Down
1 change: 1 addition & 0 deletions src/assets/scss/_custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Here you can add other styles
1 change: 1 addition & 0 deletions src/assets/scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Variable overrides
8 changes: 8 additions & 0 deletions src/assets/scss/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// If you want to override variables do it here
@import "variables";

// Import styles
@import "~@coreui/coreui/scss/coreui";

// If you want to add something do it here
@import "custom";
4 changes: 4 additions & 0 deletions src/assets/scss/vendors/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Override Boostrap variables
@import "../variables";
@import "~bootstrap/scss/mixins";
@import "~@coreui/coreui/scss/variables";
48 changes: 48 additions & 0 deletions src/assets/scss/vendors/chart.js/chart.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Import variables
@import '../variables';

.chart-legend,
.bar-legend,
.line-legend,
.pie-legend,
.radar-legend,
.polararea-legend,
.doughnut-legend {
list-style-type: none;
margin-top: 5px;
text-align: center;
-webkit-padding-start: 0;
-moz-padding-start: 0;
padding-left: 0;
}
.chart-legend li,
.bar-legend li,
.line-legend li,
.pie-legend li,
.radar-legend li,
.polararea-legend li,
.doughnut-legend li {
display: inline-block;
white-space: nowrap;
position: relative;
margin-bottom: 4px;
@include border-radius($border-radius);
padding: 2px 8px 2px 28px;
font-size: smaller;
cursor: default;
}
.chart-legend li span,
.bar-legend li span,
.line-legend li span,
.pie-legend li span,
.radar-legend li span,
.polararea-legend li span,
.doughnut-legend li span {
display: block;
position: absolute;
left: 0;
top: 0;
width: 20px;
height: 20px;
@include border-radius($border-radius);
}

0 comments on commit c4d60e0

Please sign in to comment.