File tree Expand file tree Collapse file tree 3 files changed +13
-54
lines changed Expand file tree Collapse file tree 3 files changed +13
-54
lines changed Original file line number Diff line number Diff line change 1
- // styles for
1
+ // temp fix .chartjs-tooltip-body-item
2
2
3
- // @import "~@coreui/coreui/scss/bootstrap";
4
-
5
- @import " ~@coreui/coreui/scss/functions" ;
6
- @import " ~@coreui/coreui/scss/variables" ;
7
- @import " ~@coreui/coreui/scss/mixins" ;
8
-
9
- .c-chartjs-tooltip {
10
- position : absolute ;
11
- z-index : $zindex-sticky + 1 ;
12
- display : flex ;
13
- flex-direction : column ;
14
- padding : ($spacer * .25 ) ($spacer * .5 );
15
- color : #fff ;
16
- pointer-events : none ;
17
- background : rgba (0 , 0 , 0 , .7 );
18
- opacity : 0 ;
19
- @include transition (all .15s ease );
20
- transform : translate (-50% , 0 );
21
- @include border-radius ($border-radius );
22
- }
23
-
24
- .c-tooltip-header {
25
- margin-bottom : ($spacer * .5 );
26
- }
27
-
28
- .c-tooltip-header-item {
29
- font-size : $font-size-sm ;
30
- font-weight : $font-weight-bold ;
31
- }
32
-
33
- .c-tooltip-body-item {
34
- display : flex ;
35
- align-items : center ;
36
- font-size : $font-size-sm ;
37
- white-space : nowrap ;
38
- }
39
-
40
- .c-tooltip-body-item-color {
41
- display : inline-block ;
42
- width : $font-size-sm ;
43
- height : $font-size-sm ;
44
- margin-right : $font-size-sm ;
45
- }
46
-
47
- .c-tooltip-body-item-value {
48
- padding-left : $spacer ;
49
- margin-left : auto ;
50
- font-weight : $font-weight-semibold ;
3
+ .chartjs-tooltip-body-item > td {
4
+ padding-bottom : 0 !important ;
5
+ padding-top : 0 !important ;
6
+ font-size : smaller ;
51
7
}
Original file line number Diff line number Diff line change 1
1
// Place for temp fixes
2
2
3
- // temp fix for tooltip styles v2
4
- @import " charts" ;
5
-
6
3
// temp fix for scrollbar styling (wip)
7
4
@import " scrollbar" ;
5
+
6
+ // temp fix .chartjs-tooltip-body-item padding
7
+ @import " charts" ;
Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ $enable-rtl: true;
8
8
// Import styles with default layout.
9
9
@import " ~@coreui/coreui/scss/coreui" ;
10
10
11
- // perfect scrollbar
12
- @import ' ~perfect-scrollbar/css/perfect-scrollbar.css' ;
11
+ // Import Chart.js custom tooltips styles
12
+ @import " ~@coreui/chartjs/scss/coreui-chartjs" ;
13
+
14
+ // perfect scrollbar theming for use with [perfectScrollbar] directive
15
+ // @import '~perfect-scrollbar/css/perfect-scrollbar.css';
13
16
14
17
@import " layout" ;
15
18
You can’t perform that action at this time.
0 commit comments