mazer-rails 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/assets/fonts/Iconly---Bold.eot +0 -0
  3. data/assets/fonts/Iconly---Bold.svg +19 -0
  4. data/assets/fonts/Iconly---Bold.ttf +0 -0
  5. data/assets/fonts/Iconly---Bold.woff +0 -0
  6. data/assets/fonts/iconly/Iconly---Bold.eot +0 -0
  7. data/assets/fonts/iconly/Iconly---Bold.svg +19 -0
  8. data/assets/fonts/iconly/Iconly---Bold.ttf +0 -0
  9. data/assets/fonts/iconly/Iconly---Bold.woff +0 -0
  10. data/assets/images/bg/4853433.png +0 -0
  11. data/assets/images/faces/1.jpg +0 -0
  12. data/assets/images/faces/2.jpg +0 -0
  13. data/assets/images/faces/3.jpg +0 -0
  14. data/assets/images/faces/4.jpg +0 -0
  15. data/assets/images/faces/5.jpg +0 -0
  16. data/assets/images/faces/6.jpg +0 -0
  17. data/assets/images/faces/7.jpg +0 -0
  18. data/assets/images/faces/8.jpg +0 -0
  19. data/assets/images/logo/favicon.png +0 -0
  20. data/assets/images/logo/favicon.svg +1 -0
  21. data/assets/images/logo/logo.svg +1 -0
  22. data/assets/images/samples/1.png +0 -0
  23. data/assets/images/samples/2.png +0 -0
  24. data/assets/images/samples/3.png +0 -0
  25. data/assets/images/samples/4.png +0 -0
  26. data/assets/images/samples/architecture1.jpg +0 -0
  27. data/assets/images/samples/banana.jpg +0 -0
  28. data/assets/images/samples/bg-mountain.jpg +0 -0
  29. data/assets/images/samples/building.jpg +0 -0
  30. data/assets/images/samples/error-403.svg +94 -0
  31. data/assets/images/samples/error-404.svg +88 -0
  32. data/assets/images/samples/error-500.svg +76 -0
  33. data/assets/images/samples/jump.jpg +0 -0
  34. data/assets/images/samples/motorcycle.jpg +0 -0
  35. data/assets/images/samples/origami.jpg +0 -0
  36. data/assets/images/samples/water.jpg +0 -0
  37. data/assets/images/svg-loaders/audio.svg +29 -0
  38. data/assets/images/svg-loaders/ball-triangle.svg +1 -0
  39. data/assets/images/svg-loaders/bars.svg +1 -0
  40. data/assets/images/svg-loaders/circles.svg +20 -0
  41. data/assets/images/svg-loaders/grid.svg +1 -0
  42. data/assets/images/svg-loaders/hearts.svg +1 -0
  43. data/assets/images/svg-loaders/oval.svg +1 -0
  44. data/assets/images/svg-loaders/puff.svg +1 -0
  45. data/assets/images/svg-loaders/rings.svg +1 -0
  46. data/assets/images/svg-loaders/spinning-circles.svg +1 -0
  47. data/assets/images/svg-loaders/tail-spin.svg +1 -0
  48. data/assets/images/svg-loaders/three-dots.svg +1 -0
  49. data/assets/javascripts/app.js +9 -0
  50. data/assets/javascripts/bootstrap.js +6 -0
  51. data/assets/javascripts/components/dark.js +65 -0
  52. data/assets/javascripts/components/sidebar.js +185 -0
  53. data/assets/javascripts/helper/isDesktop.js +1 -0
  54. data/assets/javascripts/initTheme.js +5 -0
  55. data/assets/javascripts/mazer.js +9 -0
  56. data/assets/javascripts/pages/ckeditor.js +3 -0
  57. data/assets/javascripts/pages/component-toasts.js +9 -0
  58. data/assets/javascripts/pages/dashboard.js +158 -0
  59. data/assets/javascripts/pages/datatables.js +1 -0
  60. data/assets/javascripts/pages/filepond.js +181 -0
  61. data/assets/javascripts/pages/form-editor.js +27 -0
  62. data/assets/javascripts/pages/form-element-select.js +14 -0
  63. data/assets/javascripts/pages/horizontal-layout.js +43 -0
  64. data/assets/javascripts/pages/jquery.js +1 -0
  65. data/assets/javascripts/pages/jsvectormap.js +60 -0
  66. data/assets/javascripts/pages/parsley.js +55 -0
  67. data/assets/javascripts/pages/quill.js +27 -0
  68. data/assets/javascripts/pages/rater-js.js +38 -0
  69. data/assets/javascripts/pages/simple-datatables.js +46 -0
  70. data/assets/javascripts/pages/summernote.js +20 -0
  71. data/assets/javascripts/pages/sweetalert2.js +142 -0
  72. data/assets/javascripts/pages/tinymce.js +22 -0
  73. data/assets/javascripts/pages/toastify.js +81 -0
  74. data/assets/javascripts/pages/ui-apexchart.js +521 -0
  75. data/assets/javascripts/pages/ui-chartjs.js +445 -0
  76. data/assets/javascripts/pages/ui-todolist.js +5 -0
  77. data/assets/stylesheets/_fonts.scss +5 -0
  78. data/assets/stylesheets/_mazer.scss +103 -0
  79. data/assets/stylesheets/_utilities.scss +53 -0
  80. data/assets/stylesheets/_variables.scss +1626 -0
  81. data/assets/stylesheets/app.scss +20 -0
  82. data/assets/stylesheets/bootstrap.scss +58 -0
  83. data/assets/stylesheets/components/_alert.scss +43 -0
  84. data/assets/stylesheets/components/_avatar.scss +78 -0
  85. data/assets/stylesheets/components/_badge.scss +20 -0
  86. data/assets/stylesheets/components/_breadcrumb.scss +10 -0
  87. data/assets/stylesheets/components/_buttons.scss +62 -0
  88. data/assets/stylesheets/components/_card.scss +126 -0
  89. data/assets/stylesheets/components/_carousel.scss +6 -0
  90. data/assets/stylesheets/components/_divider.scss +37 -0
  91. data/assets/stylesheets/components/_dropdowns.scss +24 -0
  92. data/assets/stylesheets/components/_forms.scss +213 -0
  93. data/assets/stylesheets/components/_icons.scss +48 -0
  94. data/assets/stylesheets/components/_modal.scss +46 -0
  95. data/assets/stylesheets/components/_navbar.scss +280 -0
  96. data/assets/stylesheets/components/_navs.scss +32 -0
  97. data/assets/stylesheets/components/_pagination.scss +39 -0
  98. data/assets/stylesheets/components/_progress.scss +32 -0
  99. data/assets/stylesheets/components/_sidebar.scss +171 -0
  100. data/assets/stylesheets/components/_table.scss +36 -0
  101. data/assets/stylesheets/iconly.scss +327 -0
  102. data/assets/stylesheets/layouts/main.scss +48 -0
  103. data/assets/stylesheets/mixins/_navbar.scss +20 -0
  104. data/assets/stylesheets/pages/auth.scss +51 -0
  105. data/assets/stylesheets/pages/chat.scss +145 -0
  106. data/assets/stylesheets/pages/datatables.scss +7 -0
  107. data/assets/stylesheets/pages/dripicons.scss +20 -0
  108. data/assets/stylesheets/pages/email.scss +625 -0
  109. data/assets/stylesheets/pages/error.scss +22 -0
  110. data/assets/stylesheets/pages/form-element-select.scss +7 -0
  111. data/assets/stylesheets/pages/simple-datatables.scss +20 -0
  112. data/assets/stylesheets/pages/summernote.scss +4 -0
  113. data/assets/stylesheets/themes/dark/_mazer-dark.scss +82 -0
  114. data/assets/stylesheets/themes/dark/_root.scss +55 -0
  115. data/assets/stylesheets/themes/dark/_variables-dark.scss +329 -0
  116. data/assets/stylesheets/themes/dark/app-dark.scss +54 -0
  117. data/assets/stylesheets/widgets/chat.scss +26 -0
  118. data/assets/stylesheets/widgets/todo.scss +33 -0
  119. data/lib/mazer_rails/engine.rb +16 -0
  120. data/lib/mazer_rails/version.rb +5 -0
  121. data/lib/mazer_rails.rb +77 -0
  122. data/mazer-rails.gemspec +5 -5
  123. data/yarn.lock +9209 -0
  124. metadata +151 -4
  125. data/lib/mazer/rails/version.rb +0 -7
  126. data/lib/mazer/rails.rb +0 -10
@@ -0,0 +1,82 @@
1
+ .toast .btn-close {
2
+ background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
3
+ }
4
+
5
+ // Sweetalert2 Dark
6
+ .swal2-popup, .swal2-validation-message {
7
+ background-color: $swal-popup-bg !important;
8
+ color: $swal-popup-color !important;
9
+ }
10
+ .swal2-title {
11
+ color: $swal-popup-color !important;
12
+ }
13
+ .swal2-styled.swal2-confirm {
14
+ background-color: $swal-confirm-button-bg !important;
15
+ }
16
+ .swal2-styled.swal2-confirm:hover {
17
+ background-color: $swal-confirm-button-bg-hover !important;
18
+ }
19
+
20
+ // Apexcharts
21
+ .apexcharts-text tspan {
22
+ fill: $body-color !important;
23
+ }
24
+ .apexcharts-legend-text {
25
+ color: $body-color !important;
26
+ }
27
+
28
+ // Toggle theme
29
+ .theme-toggle {
30
+ color: #9899ac;
31
+ }
32
+
33
+ // Pricing Card
34
+ .pricing{
35
+ .card{
36
+ border: none;
37
+ box-shadow: none;
38
+ }
39
+ }
40
+
41
+ // Note
42
+ .note-editing-area .note-editable {
43
+ background-color: white;
44
+ }
45
+ // DataTable
46
+ .dataTable-input {
47
+ background-color: $input-bg;
48
+ border-color: $input-border-color;
49
+ transition: all .2s ease-in-out;
50
+
51
+ &:focus {
52
+ background-color: $input-focus-bg;
53
+ border-color: $input-focus-border-color;
54
+ color: $input-focus-color;
55
+ }
56
+
57
+ }
58
+
59
+ // override selector
60
+ // see original on mixins\_forms.scss
61
+ @mixin form-validation-state-selector($state) {
62
+ @if ($state == "valid" or $state == "invalid") {
63
+ .was-validated :#{$state},
64
+ .is-#{$state} {
65
+ @content;
66
+ }
67
+ } @else {
68
+ .is-#{$state} {
69
+ @content;
70
+ }
71
+ }
72
+ }
73
+
74
+ // to fix feedback message on input group
75
+ @each $state in map-keys($form-validation-states) {
76
+ @include form-validation-state-selector($state) {
77
+ ~ .#{$state}-feedback,
78
+ ~ .#{$state}-tooltip {
79
+ display: block;
80
+ }
81
+ }
82
+ }
@@ -0,0 +1,55 @@
1
+ html[data-bs-theme="dark"] {
2
+ // Note: Custom variable values only support SassScript inside `#{}`.
3
+
4
+ // Colors
5
+ //
6
+ // Generate palettes for full colors, grays, and theme colors.
7
+
8
+ @each $color, $value in $colors {
9
+ --#{$variable-prefix}#{$color}: #{$value};
10
+ }
11
+
12
+ @each $color, $value in $grays {
13
+ --#{$variable-prefix}gray-#{$color}: #{$value};
14
+ }
15
+
16
+ @each $color, $value in $theme-colors {
17
+ --#{$variable-prefix}#{$color}: #{$value};
18
+ }
19
+
20
+ @each $color, $value in $theme-colors-rgb {
21
+ --#{$variable-prefix}#{$color}-rgb: #{$value};
22
+ }
23
+
24
+ --#{$variable-prefix}white-rgb: #{to-rgb($white)};
25
+ --#{$variable-prefix}black-rgb: #{to-rgb($black)};
26
+ --#{$variable-prefix}body-color-rgb: #{to-rgb($body-color)};
27
+ --#{$variable-prefix}body-bg-rgb: #{to-rgb($body-bg)};
28
+
29
+ // Fonts
30
+
31
+ // Note: Use `inspect` for lists so that quoted items keep the quotes.
32
+ // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
33
+ --#{$variable-prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
34
+ --#{$variable-prefix}font-monospace: #{inspect($font-family-monospace)};
35
+ --#{$variable-prefix}gradient: #{$gradient};
36
+
37
+ // Root and body
38
+ // stylelint-disable custom-property-empty-line-before
39
+ // scss-docs-start root-body-variables
40
+ @if $font-size-root != null {
41
+ --#{$variable-prefix}root-font-size: #{$font-size-root};
42
+ }
43
+ --#{$variable-prefix}body-font-family: #{$font-family-base};
44
+ --#{$variable-prefix}body-font-size: #{$font-size-base};
45
+ --#{$variable-prefix}body-font-weight: #{$font-weight-base};
46
+ --#{$variable-prefix}body-line-height: #{$line-height-base};
47
+ --#{$variable-prefix}body-color: #{$body-color};
48
+ @if $body-text-align != null {
49
+ --#{$variable-prefix}body-text-align: #{$body-text-align};
50
+ }
51
+ --#{$variable-prefix}body-bg: #{$body-bg};
52
+ // scss-docs-end root-body-variables
53
+ // stylelint-enable custom-property-empty-line-before
54
+ }
55
+
@@ -0,0 +1,329 @@
1
+ @use 'sass:color';
2
+
3
+ $dark-mode: true;
4
+
5
+ $theme-colors-light: (
6
+ 'primary': tint-color($primary, 25%),
7
+ 'secondary': tint-color($secondary, 25%),
8
+ 'success': tint-color($success, 25%),
9
+ 'danger': tint-color($danger, 35%),
10
+ 'warning': tint-color($warning, 25%),
11
+ 'info': tint-color($info, 25%),
12
+ );
13
+
14
+ $alert-colors: (
15
+ primary: (
16
+ text-color: #fff,
17
+ background-color: #435ebe
18
+ ),
19
+ secondary: (
20
+ text-color: #383d41,
21
+ background-color: #ebeef3
22
+ ),
23
+ success: (
24
+ text-color: #fff,
25
+ background-color: #198754
26
+ ),
27
+ warning: (
28
+ text-color: #3f3a26,
29
+ background-color: #eaca4a,
30
+ ),
31
+ danger: (
32
+ text-color: #fff,
33
+ background-color: #f3616d,
34
+ ),
35
+ dark: (
36
+ text-color: #fff,
37
+ background-color: #454546,
38
+ ),
39
+ light: (
40
+ text-color: $body-color,
41
+ background-color: #f9f9f9,
42
+ ),
43
+ info: (
44
+ text-color: #fff,
45
+ background-color: #56b6f7,
46
+ ),
47
+ );
48
+
49
+ $primary-text-dark: $blue-300 !default;
50
+ $secondary-text-dark: $gray-300 !default;
51
+ $success-text-dark: $green-300 !default;
52
+ $info-text-dark: $cyan-300 !default;
53
+ $warning-text-dark: $yellow-300 !default;
54
+ $danger-text-dark: $red-300 !default;
55
+ $light-text-dark: $gray-100 !default;
56
+ $dark-text-dark: $gray-300 !default;
57
+
58
+ $primary-bg-subtle-dark: $blue-900 !default;
59
+ $secondary-bg-subtle-dark: $gray-900 !default;
60
+ $success-bg-subtle-dark: $green-900 !default;
61
+ $info-bg-subtle-dark: $cyan-900 !default;
62
+ $warning-bg-subtle-dark: $yellow-900 !default;
63
+ $danger-bg-subtle-dark: $red-900 !default;
64
+ $light-bg-subtle-dark: $gray-800 !default;
65
+ $dark-bg-subtle-dark: mix($gray-800, $black) !default;
66
+
67
+ $primary-border-subtle-dark: $blue-700 !default;
68
+ $secondary-border-subtle-dark: $gray-700 !default;
69
+ $success-border-subtle-dark: $green-700 !default;
70
+ $info-border-subtle-dark: $cyan-800 !default;
71
+ $warning-border-subtle-dark: $yellow-800 !default;
72
+ $danger-border-subtle-dark: $red-700 !default;
73
+ $light-border-subtle-dark: $gray-700 !default;
74
+ $dark-border-subtle-dark: $gray-800 !default;
75
+
76
+ $body-color-dark: $gray-500 !default;
77
+ $body-bg-dark: $gray-900 !default;
78
+ $body-emphasis-color-dark: $gray-100 !default;
79
+ $body-secondary-color-dark: rgba($body-color-dark, .75) !default;
80
+ $body-secondary-bg-dark: $gray-800 !default;
81
+ $body-tertiary-color-dark: rgba($body-color-dark, .5) !default;
82
+ $body-tertiary-bg-dark: mix($gray-800, $gray-900, 50%) !default;
83
+ $emphasis-color-dark: $white !default;
84
+ $border-color-dark: $gray-700 !default;
85
+ $border-color-translucent-dark: rgba($white, .15) !default;
86
+ $headings-color-dark: #fff !default;
87
+ $link-color-dark: $blue-300 !default;
88
+ $link-hover-color-dark: $blue-200 !default;
89
+ $code-color-dark: $pink-300 !default;
90
+
91
+
92
+ //
93
+ // Forms
94
+ //
95
+
96
+ $form-select-indicator-color-dark: $body-color-dark !default;
97
+ $form-select-indicator-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$form-select-indicator-color-dark}' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>") !default;
98
+
99
+ $form-switch-color-dark: rgba($white, .25) !default;
100
+ $form-switch-bg-image-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-color-dark}'/></svg>") !default;
101
+
102
+
103
+ //
104
+ // Accordion
105
+ //
106
+
107
+ $accordion-button-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$primary-text-dark}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !default;
108
+ $accordion-button-active-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$primary-text-dark}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !default;
109
+ // scss-docs-end sass-dark-mode-vars
110
+
111
+
112
+ $sidebar-bg: #1e1e2d;
113
+ $sidebar-link-color: #9899ac;
114
+ $sidebar-link-hover-bg: #282839;
115
+ $sidebar-link-hover-color: #fff;
116
+ $sidebar-submenu-color: $sidebar-link-color;
117
+ $sidebar-submenu-hover-color: $white;
118
+
119
+ $card-box-shadow: -8px 12px 18px 0 rgba(25,42,70,.13);
120
+
121
+ // Body
122
+ $body-bg: #151521;
123
+ $body-color: #c2c2d9;
124
+
125
+ // Pages
126
+ $page-auth-bg: #151521;
127
+ $page-auth-right-bg: linear-gradient(90deg, #151521, #151521) !default;
128
+ $page-error-bg: $body-bg;
129
+
130
+
131
+ $link-color: $primary;
132
+ $link-shade-percentage: -20%;
133
+ $link-hover-color: shift-color($link-color, $link-shade-percentage);
134
+
135
+ $component-active-color: #9899ac;
136
+ $component-active-bg: $primary;
137
+
138
+ $headings-color: #fff;
139
+ $text-muted: #7c8db5;
140
+ $mark-bg: #fcf8e3;
141
+
142
+ $table-color: $body-color;
143
+ $table-border-color: rgb(63, 63, 63);
144
+ $table-striped-bg: rgba(170, 168, 168, 0.05);
145
+ $table-striped-color: #c2c2d9;
146
+ $table-active-bg: rgba($black, $table-active-bg-factor);
147
+ $table-hover-color: $white;
148
+ $table-hover-bg: rgba($white, $table-hover-bg-factor);
149
+ $table-group-separator-color: #707070;
150
+ $table-variants: (
151
+ "primary": shift-color($primary, $table-bg-scale),
152
+ "secondary": shift-color($secondary, $table-bg-scale),
153
+ "success": shift-color($success, $table-bg-scale),
154
+ "info": shift-color($info, $table-bg-scale),
155
+ "warning": shift-color($warning, $table-bg-scale),
156
+ "danger": shift-color($danger, $table-bg-scale),
157
+ "light": $light,
158
+ "dark": $dark,
159
+ );
160
+
161
+ $btn-active-box-shadow: inset 0 3px 5px rgba($black, .125);
162
+ $btn-link-color: $link-color;
163
+ $btn-link-hover-color: $link-hover-color;
164
+ $btn-link-disabled-color: $gray-600;
165
+
166
+ $divider-bg: $gray-800;
167
+ $divider-text-bg: $body-bg;
168
+
169
+ $input-bg: #1b1b29;
170
+ $input-btn-focus-color : $primary;
171
+ $input-disabled-bg: #40404d;
172
+ $input-disabled-border-color: null !default;
173
+ $input-placeholder-color: $gray-500;
174
+ $input-plaintext-color: $body-color;
175
+ $input-color: $body-color;
176
+ $input-border-color: #35354f;
177
+
178
+ $input-focus-bg: $input-bg ;
179
+ $input-focus-border-color: #4b4b68;
180
+ $input-focus-color: $input-color;
181
+
182
+ $input-group-addon-color: #526e8a ;
183
+ $input-group-addon-bg: lighten($input-bg, 5%);
184
+ $input-group-addon-border-color: $input-border-color;
185
+
186
+ $form-check-input-bg: #20202d;
187
+ $form-check-input-border: 3px solid #393b42;
188
+ $form-label-color: $body-color;
189
+ $form-switch-color: $component-active-color;
190
+ $form-switch-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-color}'/></svg>") ;
191
+ $form-select-color: $input-color;
192
+ $form-select-border-color: $input-border-color;
193
+ $form-select-disabled-bg: $input-disabled-bg;
194
+ $form-select-bg: $input-bg;
195
+ $form-select-disabled-bg: $input-disabled-bg;
196
+ $form-range-track-bg: $gray-300;
197
+ $form-range-thumb-disabled-bg: $gray-500;
198
+ $form-textarea-title-bg: lighten($input-bg,10%);
199
+
200
+ $nav-link-disabled-color: $gray-600;
201
+ $nav-tabs-border-color: $gray-300;
202
+ $nav-tabs-link-hover-border-color: $gray-200 $gray-200 $nav-tabs-border-color;
203
+ $nav-tabs-link-active-bg: rgba(44, 44, 58, 0.85);
204
+ $nav-tabs-link-active-border-color: $gray-300 $gray-300 $nav-tabs-link-active-bg;
205
+
206
+
207
+ $dropdown-color: #92929F;
208
+ $dropdown-bg: #2d2d40;
209
+ $dropdown-border-color: rgba($black, .15);
210
+ $dropdown-divider-bg: rgb(189, 199, 209);
211
+ $dropdown-box-shadow: 1px 4px 15px #f4f5f9;
212
+ $dropdown-link-color: $dropdown-color;
213
+ $dropdown-link-hover-color: shade-color($dropdown-link-color, 10%);
214
+ $dropdown-link-hover-bg: tint-color($dropdown-bg, 7%);
215
+ $dropdown-link-disabled-color: $gray-600;
216
+ $dropdown-header-color: $gray-600;
217
+ $dropdown-dark-color: $gray-300;
218
+ $dropdown-dark-bg: $gray-800;
219
+ $dropdown-dark-link-hover-color: $white;
220
+ $dropdown-dark-link-hover-bg: rgba($white, .15);
221
+ $dropdown-dark-link-disabled-color: $gray-500;
222
+ $dropdown-dark-header-color: $gray-500;
223
+
224
+ $pagination-color: #92929F;
225
+ $pagination-border-color: transparent;
226
+ $pagination-bg: $body-bg;
227
+ $pagination-border-color: $body-bg;
228
+ $pagination-focus-bg: #212E48;
229
+ $pagination-hover-color: $white;
230
+ $pagination-hover-bg: tint-color($body-bg, 5%);
231
+ $pagination-hover-border-color: $body-bg;
232
+ $pagination-focus-box-shadow: none;
233
+ $pagination-disabled-color: $gray-600;
234
+ $pagination-disabled-bg: $black;
235
+ $pagination-disabled-border-color: $black;
236
+ $pagination-active-color: $component-active-color !default;
237
+ $pagination-active-bg: #3699FF !default;
238
+ $pagination-active-border-color: #3699FF !default;
239
+
240
+ $card-border-color: rgba($black, .125);
241
+ $card-bg: #1e1e2d;
242
+ $card-cap-bg: #1e1e2d;
243
+
244
+ $accordion-color: $body-color;
245
+ $accordion-bg: transparent;
246
+ $accordion-border-color: rgba($black, .125);
247
+ $accordion-button-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
248
+ $accordion-button-active-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-active-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
249
+
250
+ $tooltip-bg: $black;
251
+
252
+ $popover-bg: $white;
253
+ $popover-border-color: rgba($black, .2);
254
+
255
+ $badge-color: $white;
256
+ $border-color: $gray-600;
257
+
258
+ $modal-content-bg: $card-bg;
259
+ $modal-content-border-color: rgba($black, .2);
260
+ $modal-backdrop-bg: $black;
261
+ $modal-header-border-color: $border-color;
262
+ $modal-footer-border-color: $modal-header-border-color;
263
+
264
+ $progress-bar-color: $white;
265
+ $progress-bar-bg: $primary;
266
+
267
+
268
+ $list-group-color: #afb0be !default;
269
+ $list-group-action-hover-color: $list-group-color;
270
+ $list-group-bg: #151521;
271
+ $list-group-hover-bg: #101113;
272
+ $list-group-border-color: rgba($black, .125);
273
+ $list-group-active-color: $white;
274
+ $list-group-active-bg: #435ebe;
275
+ $list-group-active-border-color: $list-group-active-bg;
276
+ $list-group-disabled-color: $black;
277
+ $list-group-action-color: $gray-700;
278
+ $list-group-action-active-bg: lighten($list-group-bg, 10%);
279
+
280
+ $thumbnail-border-color: $gray-300;
281
+ $figure-caption-color: $gray-600;
282
+
283
+ $breadcrumb-divider-color: $gray-600;
284
+ $breadcrumb-active-color: $gray-600;
285
+
286
+ $carousel-control-color: $white;
287
+ $carousel-indicator-active-bg: $white;
288
+ $carousel-caption-color: $white;
289
+ $carousel-dark-indicator-active-bg: $black;
290
+ $carousel-dark-caption-color: $black;
291
+
292
+ // Toasts
293
+ $toast-color: $body-color ;
294
+ $toast-background-color: rgba(44, 46, 66, .85) ;
295
+ $toast-border-color: rgba(0, 0, 0, .1);
296
+ $toast-header-color: $white;
297
+ $toast-header-background-color: #35354d;
298
+
299
+
300
+
301
+ $btn-close-color: $black;
302
+ $code-color: $pink;
303
+ $kbd-color: $white;
304
+ $kbd-bg: $gray-900;
305
+ $pre-color: null;
306
+
307
+ // Layout Horizontal
308
+ $horizontal-header-bg: #171722;
309
+ $horizontal-navbar-bg: #22223c;
310
+ $horizontal-submenu-bg: #191926;
311
+ $horizontal-submenu-link-color: #9899ac;
312
+ $horizontal-submenu-link-hover-bg: #1b1b28;
313
+ $horizontal-submenu-link-hover-color: #187de4;
314
+ $horizontal-submenu-shadow-color: rgba(27, 27, 27, 0.1);
315
+
316
+ // External library
317
+ // Choicesjs
318
+ $choices-bg: $form-select-bg;
319
+ $choices-border-color: $form-select-border-color;
320
+ $choices-input-color: $white;
321
+ $choices-dropdown-bg: $form-select-bg;
322
+ $choices-dropdown-color: $choices-input-color;
323
+ $choices-highlight-bg: lighten($card-bg, 5%);
324
+
325
+ // Sweetalert
326
+ $swal-popup-bg: $sidebar-bg;
327
+ $swal-popup-color: $white;
328
+ $swal-confirm-button-bg: #3699ff;
329
+ $swal-confirm-button-bg-hover: #187de4;
@@ -0,0 +1,54 @@
1
+ // Import mazer Variables
2
+
3
+ @import "./../../variables";
4
+ @import "./variables-dark";
5
+ @import "~bootstrap/scss/functions";
6
+ @import "~bootstrap/scss/mixins";
7
+ @import "./root";
8
+
9
+ html[data-bs-theme="dark"] {
10
+ // Bootstrap
11
+ @import "~bootstrap/scss/maps";
12
+ @import "~bootstrap/scss/utilities";
13
+ @import "~bootstrap/scss/reboot";
14
+ @import "~bootstrap/scss/type";
15
+ @import "~bootstrap/scss/images";
16
+ @import "~bootstrap/scss/containers";
17
+ @import "~bootstrap/scss/grid";
18
+ @import "~bootstrap/scss/tables";
19
+ @import "~bootstrap/scss/forms";
20
+ @import "~bootstrap/scss/buttons";
21
+ @import "~bootstrap/scss/transitions";
22
+ @import "~bootstrap/scss/dropdown";
23
+ @import "~bootstrap/scss/button-group";
24
+ @import "~bootstrap/scss/nav";
25
+ @import "~bootstrap/scss/navbar";
26
+ @import "~bootstrap/scss/card";
27
+ @import "~bootstrap/scss/accordion";
28
+ @import "~bootstrap/scss/breadcrumb";
29
+ @import "~bootstrap/scss/pagination";
30
+ @import "~bootstrap/scss/badge";
31
+ @import "~bootstrap/scss/alert";
32
+ @import "~bootstrap/scss/progress";
33
+ @import "~bootstrap/scss/list-group";
34
+ @import "~bootstrap/scss/close";
35
+ @import "~bootstrap/scss/toasts";
36
+ @import "~bootstrap/scss/modal";
37
+ @import "~bootstrap/scss/tooltip";
38
+ @import "~bootstrap/scss/popover";
39
+ @import "~bootstrap/scss/carousel";
40
+ @import "~bootstrap/scss/spinners";
41
+ @import "~bootstrap/scss/offcanvas";
42
+ @import "~bootstrap/scss/placeholders";
43
+
44
+
45
+ // Import fonts
46
+ @import "./../../fonts";
47
+
48
+ // Mazer CSS
49
+ @import "./../../mazer";
50
+
51
+ // Additional dark-mode CSS
52
+ @import "./mazer-dark";
53
+ @import "~bootstrap/scss/utilities";
54
+ }
@@ -0,0 +1,26 @@
1
+ @import "./../variables";
2
+ .chat {
3
+ border-radius: 5px;
4
+ &.chat-left {
5
+ .chat-message {
6
+ background: #5A8DEE !important;
7
+ float: left !important;
8
+ color: #fff;
9
+ }
10
+ }
11
+ .chat-message {
12
+ text-align: left !important;
13
+ float: right !important;
14
+ margin: .2rem 0 1.8rem .2rem !important;
15
+ color: rgb(82, 83, 97);
16
+ background-color: #FAFBFB !important;
17
+ box-shadow: 0 2px 6px 0 rgba(0,0,0,.3) !important;
18
+ padding: .75rem 1rem !important;
19
+ position: relative !important;
20
+ max-width: calc(100% - 5rem) !important;
21
+ clear: both !important;
22
+ word-break: break-word !important;
23
+ border-radius: .267rem !important;
24
+
25
+ }
26
+ }
@@ -0,0 +1,33 @@
1
+
2
+ @import "./../variables";
3
+
4
+ .widget-todo-list-wrapper {
5
+ padding: 0;
6
+ margin: 0;
7
+ }
8
+ #widget-todo-list {
9
+ padding: 0;
10
+ }
11
+
12
+ [data-bs-theme="dark"] .widget-todo-item:hover {
13
+ background-color: $gray-900;
14
+ }
15
+
16
+ // Moved outside .widget-todo-list-wrapper because dragula
17
+ // renders a shadow element outside of the widget-todo-list-wrapper
18
+ .widget-todo-item {
19
+ padding: .8rem 2rem .8rem .8rem;
20
+ list-style: none;
21
+
22
+ &:hover {
23
+ background-color: $gray-100;
24
+ }
25
+ .checkbox {
26
+ margin-left: 1rem;
27
+ }
28
+ i, svg {
29
+ font-size: 12px;
30
+ cursor: move;
31
+ height: 1rem
32
+ }
33
+ }
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'autoprefixer-rails'
4
+ require 'sassc-rails'
5
+
6
+ module Bootstrap
7
+ module Rails
8
+ class Engine < ::Rails::Engine
9
+ initializer 'mazer.assets' do |app|
10
+ %w(stylesheets javascripts).each do |sub|
11
+ app.config.assets.paths << root.join('assets', sub).to_s
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MazerRails
4
+ VERSION = "0.1.2"
5
+ end
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "mazer_rails/version"
4
+
5
+ module MazerRails
6
+ class Error < StandardError; end
7
+
8
+ # https://github.com/twbs/bootstrap-rubygem/blob/main/lib/bootstrap.rb
9
+ class << self
10
+ # Inspired by Kaminari
11
+ def load!
12
+ if rails?
13
+ register_rails_engine
14
+ elsif hanami?
15
+ register_hanami
16
+ elsif sprockets?
17
+ register_sprockets
18
+ elsif defined?(::Sass) && ::Sass.respond_to?(:load_paths)
19
+ # The deprecated `sass` gem:
20
+ ::Sass.load_paths << stylesheets_path
21
+ end
22
+
23
+ if defined?(::Sass::Script::Value::Number)
24
+ # Set precision to 6 as per:
25
+ # https://github.com/twbs/bootstrap/blob/da717b03e6e72d7a61c007acb9223b9626ae5ee5/package.json#L28
26
+ ::Sass::Script::Value::Number.precision = [6, ::Sass::Script::Value::Number.precision].max
27
+ end
28
+ end
29
+
30
+ # Paths
31
+ def gem_path
32
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
33
+ end
34
+
35
+ def stylesheets_path
36
+ File.join assets_path, 'stylesheets'
37
+ end
38
+
39
+ def javascripts_path
40
+ File.join assets_path, 'javascripts'
41
+ end
42
+
43
+ def assets_path
44
+ @assets_path ||= File.join gem_path, 'assets'
45
+ end
46
+
47
+ # Environment detection helpers
48
+ def sprockets?
49
+ defined?(::Sprockets)
50
+ end
51
+
52
+ def rails?
53
+ defined?(::Rails)
54
+ end
55
+
56
+ def hanami?
57
+ defined?(::Hanami)
58
+ end
59
+
60
+ private
61
+
62
+ def register_rails_engine
63
+ require 'bootstrap/engine'
64
+ end
65
+
66
+ def register_sprockets
67
+ Sprockets.append_path(stylesheets_path)
68
+ Sprockets.append_path(javascripts_path)
69
+ end
70
+
71
+ def register_hanami
72
+ Hanami::Assets.sources << assets_path
73
+ end
74
+ end
75
+ end
76
+
77
+ MazerRails.load!