liuxiaolong
2019-05-06 2ab7a76a38fbf8fa107bf6371f5410ba54e1d394
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// -------------------------------------------------------------------------------
// Theme mixin
 
@mixin appwork-common-theme($background, $color: null) {
  @include text-emphasis-variant('.text-primary', $background);
  @include bg-variant('.bg-primary', $background);
  html:not([dir=rtl]) .border-primary, html[dir=rtl] .border-primary { border-color: $background !important; }
  @include appwork-badge-variant('.badge-primary', $background, $color);
  @include appwork-badge-outline-variant('.badge-outline-primary', $background);
  @include appwork-pagination-theme($background, $color);
  @include appwork-progress-bar-theme($background, $color);
  @include appwork-list-group-theme($background, $color);
  @include appwork-alert-variant('.alert-primary', $background);
  @include appwork-alert-dark-variant('.alert-dark-primary', $background, $color);
  @include appwork-tooltip-variant('.tooltip-primary, .tooltip-primary > .tooltip, .ngb-tooltip-primary + ngb-tooltip-window', $background, $color);
  @include appwork-popover-variant('.popover-primary, .popover-primary > .popover, .ngb-popover-primary + ngb-popover-window', $background, $color);
  @include appwork-table-row-variant('.table-primary', $background);
  @include appwork-button-variant('.btn-primary', $background, $color);
  @include appwork-button-outline-variant('.btn-outline-primary', $background, $color);
  @include appwork-dropdown-theme($background, $color);
  @include appwork-nav-theme($background, $color);
  @include appwork-custom-control-theme($background, $color);
  @include appwork-custom-file-input-theme($background);
  @include appwork-form-control-theme($background);
  @include appwork-switcher-theme($background, $color);
  @include appwork-navbar-variant('.navbar.bg-primary', $primary-color);
  @include appwork-sidenav-variant('.sidenav.bg-primary', $primary-color);
  @include appwork-footer-variant('.footer.bg-primary', $primary-color);
  .fill-primary { fill: $background }
}
 
@mixin appwork-common-material-theme($background, $color: null) {
  @include text-emphasis-variant('.text-primary', $background);
  @include bg-variant('.bg-primary', $background);
  html:not([dir=rtl]) .border-primary, html[dir=rtl] .border-primary { border-color: $background !important; }
  @include appwork-badge-variant('.badge-primary', $background, $color);
  @include appwork-badge-outline-variant('.badge-outline-primary', $background);
  @include appwork-pagination-theme($background, $color);
  @include appwork-progress-bar-theme($background, $color);
  @include appwork-list-group-theme($background, $color);
  @include appwork-alert-variant('.alert-primary', $background);
  @include appwork-alert-dark-variant('.alert-dark-primary', $background, $color);
  @include appwork-tooltip-variant('.tooltip-primary, .tooltip-primary > .tooltip, .ngb-tooltip-primary + ngb-tooltip-window', $background, $color);
  @include appwork-popover-variant('.popover-primary, .popover-primary > .popover, .ngb-popover-primary + ngb-popover-window', $background, $color);
  @include appwork-table-row-variant('.table-primary', $background);
  @include appwork-material-button-variant('.btn-primary', $background, $color);
  @include appwork-material-button-outline-variant('.btn-outline-primary', $background, $color);
  @include appwork-material-dropdown-theme($background, $color);
  @include appwork-material-nav-theme($background, $color);
  @include appwork-material-custom-control-theme($background, $color);
  @include appwork-material-custom-file-input-theme($background);
  @include appwork-material-form-control-theme($background);
  @include appwork-material-switcher-theme($background);
  @include appwork-navbar-variant('.navbar.bg-primary', $primary-color);
  @include appwork-sidenav-variant('.sidenav.bg-primary', $primary-color);
  @include appwork-footer-variant('.footer.bg-primary', $primary-color);
  .fill-primary { fill: $background }
}