sneat_rails 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +6 -0
  5. data/app/assets/builds/sneat_rails/application.css +3 -0
  6. data/app/assets/builds/sneat_rails/fonts/boxicons.eot +0 -0
  7. data/app/assets/builds/sneat_rails/fonts/boxicons.svg +1660 -0
  8. data/app/assets/builds/sneat_rails/fonts/boxicons.ttf +0 -0
  9. data/app/assets/builds/sneat_rails/fonts/boxicons.woff +0 -0
  10. data/app/assets/builds/sneat_rails/fonts/boxicons.woff2 +0 -0
  11. data/app/assets/builds/sneat_rails/sneat.css +43157 -0
  12. data/app/assets/builds/sneat_rails/sneat.css.map +1 -0
  13. data/app/assets/config/manifest.js +3 -0
  14. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_accordion.scss +56 -0
  15. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_alert.scss +9 -0
  16. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_badge.scss +18 -0
  17. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_breadcrumb.scss +47 -0
  18. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_button-group.scss +59 -0
  19. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_buttons.scss +127 -0
  20. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_card.scss +197 -0
  21. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_carousel.scss +42 -0
  22. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_close.scss +6 -0
  23. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_dropdown.scss +63 -0
  24. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_forms.scss +10 -0
  25. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_functions.scss +147 -0
  26. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_include.scss +13 -0
  27. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_list-group.scss +58 -0
  28. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_mixins.scss +16 -0
  29. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_modal.scss +110 -0
  30. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_nav.scss +327 -0
  31. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_navbar.scss +58 -0
  32. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_offcanvas.scss +10 -0
  33. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_pagination.scss +92 -0
  34. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_popover.scss +31 -0
  35. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_progress.scss +31 -0
  36. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_reboot.scss +32 -0
  37. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_root.scss +4 -0
  38. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_spinners.scss +21 -0
  39. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_tables.scss +106 -0
  40. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_toasts.scss +61 -0
  41. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_tooltip.scss +11 -0
  42. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_type.scss +2 -0
  43. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_utilities-ltr.scss +283 -0
  44. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_utilities.scss +1027 -0
  45. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/_variables.scss +935 -0
  46. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/forms/_floating-labels.scss +12 -0
  47. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/forms/_form-control.scss +15 -0
  48. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/forms/_form-range.scss +52 -0
  49. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/forms/_form-select.scss +11 -0
  50. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/forms/_input-group.scss +77 -0
  51. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/forms/_labels.scss +17 -0
  52. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/forms/_validation.scss +58 -0
  53. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_alert.scss +39 -0
  54. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_badge.scss +9 -0
  55. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_buttons.scss +190 -0
  56. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_caret.scss +42 -0
  57. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_dropdown.scss +26 -0
  58. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_forms.scss +281 -0
  59. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_list-group.scss +66 -0
  60. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_misc.scss +120 -0
  61. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_navs.scss +37 -0
  62. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_pagination.scss +21 -0
  63. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_progress.scss +19 -0
  64. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_table-variants.scss +31 -0
  65. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended/mixins/_toasts.scss +33 -0
  66. data/app/assets/stylesheets/sneat_rails/_bootstrap-extended.scss +39 -0
  67. data/app/assets/stylesheets/sneat_rails/_bootstrap.scss +44 -0
  68. data/app/assets/stylesheets/sneat_rails/_boxicons.scss +6944 -0
  69. data/app/assets/stylesheets/sneat_rails/_colors.scss +39 -0
  70. data/app/assets/stylesheets/sneat_rails/_components/_app-brand.scss +64 -0
  71. data/app/assets/stylesheets/sneat_rails/_components/_avatar.scss +126 -0
  72. data/app/assets/stylesheets/sneat_rails/_components/_base.scss +159 -0
  73. data/app/assets/stylesheets/sneat_rails/_components/_common.scss +232 -0
  74. data/app/assets/stylesheets/sneat_rails/_components/_footer.scss +39 -0
  75. data/app/assets/stylesheets/sneat_rails/_components/_include.scss +11 -0
  76. data/app/assets/stylesheets/sneat_rails/_components/_layout.scss +539 -0
  77. data/app/assets/stylesheets/sneat_rails/_components/_menu.scss +346 -0
  78. data/app/assets/stylesheets/sneat_rails/_components/_mixins.scss +6 -0
  79. data/app/assets/stylesheets/sneat_rails/_components/_text-divider.scss +89 -0
  80. data/app/assets/stylesheets/sneat_rails/_components/_variables.scss +93 -0
  81. data/app/assets/stylesheets/sneat_rails/_components/mixins/_app-brand.scss +33 -0
  82. data/app/assets/stylesheets/sneat_rails/_components/mixins/_avatar.scss +22 -0
  83. data/app/assets/stylesheets/sneat_rails/_components/mixins/_footer.scss +39 -0
  84. data/app/assets/stylesheets/sneat_rails/_components/mixins/_menu.scss +124 -0
  85. data/app/assets/stylesheets/sneat_rails/_components/mixins/_misc.scss +6 -0
  86. data/app/assets/stylesheets/sneat_rails/_components/mixins/_navbar.scss +90 -0
  87. data/app/assets/stylesheets/sneat_rails/_components/mixins/_text-divider.scss +16 -0
  88. data/app/assets/stylesheets/sneat_rails/_components.scss +11 -0
  89. data/app/assets/stylesheets/sneat_rails/_custom-variables/_bootstrap-extended.scss +7 -0
  90. data/app/assets/stylesheets/sneat_rails/_custom-variables/_components.scss +6 -0
  91. data/app/assets/stylesheets/sneat_rails/_custom-variables/_libs.scss +8 -0
  92. data/app/assets/stylesheets/sneat_rails/_custom-variables/_pages.scss +8 -0
  93. data/app/assets/stylesheets/sneat_rails/_custom-variables/_support.scss +9 -0
  94. data/app/assets/stylesheets/sneat_rails/_theme/_common.scss +49 -0
  95. data/app/assets/stylesheets/sneat_rails/_theme/_theme.scss +131 -0
  96. data/app/assets/stylesheets/sneat_rails/application.css +15 -0
  97. data/app/assets/stylesheets/sneat_rails/application.scss +9 -0
  98. data/app/assets/stylesheets/sneat_rails/core.scss +4 -0
  99. data/app/assets/stylesheets/sneat_rails/pages/page-account-settings.scss +13 -0
  100. data/app/assets/stylesheets/sneat_rails/pages/page-auth.scss +106 -0
  101. data/app/assets/stylesheets/sneat_rails/pages/page-icons.scss +46 -0
  102. data/app/assets/stylesheets/sneat_rails/pages/page-misc.scss +15 -0
  103. data/app/assets/stylesheets/sneat_rails/sneat.css +3 -0
  104. data/app/assets/stylesheets/sneat_rails/sneat.scss +6 -0
  105. data/app/assets/stylesheets/sneat_rails/theme-default.scss +111 -0
  106. data/app/controllers/sneat_rails/application_controller.rb +4 -0
  107. data/app/controllers/sneat_rails/dashboard_controller.rb +10 -0
  108. data/app/helpers/sneat_rails/application_helper.rb +4 -0
  109. data/app/jobs/sneat_rails/application_job.rb +4 -0
  110. data/app/mailers/sneat_rails/application_mailer.rb +6 -0
  111. data/app/models/sneat_rails/application_record.rb +5 -0
  112. data/app/views/layouts/sneat_rails/application.html.erb +30 -0
  113. data/app/views/sneat_rails/dashboard/index.html.erb +1 -0
  114. data/app/views/sneat_rails/shared/_navbar.html.erb +3 -0
  115. data/app/views/sneat_rails/shared/_sidebar.html.erb +3 -0
  116. data/config/dartsass.rb +3 -0
  117. data/config/routes.rb +3 -0
  118. data/lib/generators/sneat_rails/install/install_generator.rb +16 -0
  119. data/lib/sneat_rails/engine.rb +20 -0
  120. data/lib/sneat_rails/version.rb +3 -0
  121. data/lib/sneat_rails.rb +6 -0
  122. data/lib/tasks/sneat_rails_tasks.rake +4 -0
  123. metadata +193 -0
@@ -0,0 +1,346 @@
1
+ // Menu
2
+ // *******************************************************************************
3
+
4
+ .menu {
5
+ display: flex;
6
+
7
+ .app-brand {
8
+ width: 100%;
9
+ }
10
+
11
+ //PS Scrollbar
12
+ .ps__thumb-y,
13
+ .ps__rail-y {
14
+ width: 0.125rem !important;
15
+ }
16
+
17
+ .ps__rail-y {
18
+ right: 0.25rem !important;
19
+ left: auto !important;
20
+ background: none !important;
21
+ }
22
+
23
+ .ps__rail-y:hover,
24
+ .ps__rail-y:focus,
25
+ .ps__rail-y.ps--clicking,
26
+ .ps__rail-y:hover > .ps__thumb-y,
27
+ .ps__rail-y:focus > .ps__thumb-y,
28
+ .ps__rail-y.ps--clicking > .ps__thumb-y {
29
+ width: 0.375rem !important;
30
+ }
31
+ }
32
+
33
+ .menu-inner {
34
+ display: flex;
35
+ align-items: flex-start;
36
+ justify-content: flex-start;
37
+ margin: 0;
38
+ padding: 0;
39
+ height: 100%;
40
+ }
41
+ .menu-inner-shadow {
42
+ display: none;
43
+ position: absolute;
44
+ top: $navbar-height + 0.35rem;
45
+ height: 3rem;
46
+ width: 100%;
47
+ pointer-events: none;
48
+ z-index: 2;
49
+ // Hide menu inner shadow in static layout
50
+ html:not(.layout-menu-fixed) & {
51
+ display: none !important;
52
+ }
53
+ }
54
+
55
+ // Menu item
56
+
57
+ .menu-item {
58
+ align-items: flex-start;
59
+ justify-content: flex-start;
60
+
61
+ &.menu-item-animating {
62
+ transition: height $menu-animation-duration ease-in-out;
63
+ }
64
+ }
65
+
66
+ .menu-item,
67
+ .menu-header,
68
+ .menu-divider,
69
+ .menu-block {
70
+ flex: 0 0 auto;
71
+ flex-direction: column;
72
+ margin: 0;
73
+ padding: 0;
74
+ list-style: none;
75
+ }
76
+ .menu-header {
77
+ opacity: 1;
78
+ transition: opacity $menu-animation-duration ease-in-out;
79
+ }
80
+
81
+ // Menu Icon
82
+ .menu-icon {
83
+ flex-grow: 0;
84
+ flex-shrink: 0;
85
+ margin-right: $menu-icon-expanded-spacer;
86
+ font-size: $menu-icon-expanded-font-size;
87
+ .menu:not(.menu-no-animation) & {
88
+ transition: margin-right $menu-animation-duration ease;
89
+ }
90
+ }
91
+
92
+ // Menu link
93
+ .menu-link {
94
+ position: relative;
95
+ display: flex;
96
+ align-items: center;
97
+ flex: 0 1 auto;
98
+ margin: 0;
99
+
100
+ .menu-item.disabled & {
101
+ cursor: not-allowed !important;
102
+ }
103
+ // link hover animation
104
+ .menu:not(.menu-no-animation) & {
105
+ transition-duration: $menu-animation-duration;
106
+ transition-property: color, background-color, left;
107
+ }
108
+
109
+ > :not(.menu-icon) {
110
+ flex: 0 1 auto;
111
+ opacity: 1;
112
+ .menu:not(.menu-no-animation) & {
113
+ transition: opacity $menu-animation-duration ease-in-out;
114
+ }
115
+ }
116
+ }
117
+
118
+ // Sub menu
119
+ .menu-sub {
120
+ display: none;
121
+ flex-direction: column;
122
+ margin: 0;
123
+ padding: 0;
124
+
125
+ .menu:not(.menu-no-animation) & {
126
+ transition: background-color $menu-animation-duration;
127
+ }
128
+
129
+ .menu-item.open > & {
130
+ display: flex;
131
+ }
132
+ }
133
+
134
+ // Menu toggle open/close arrow
135
+ .menu-toggle::after {
136
+ content: '';
137
+ position: absolute;
138
+ top: 50%;
139
+ display: block;
140
+ width: $caret-width;
141
+ height: $caret-width;
142
+ border: 1px solid;
143
+ border-bottom: 0;
144
+ border-left: 0;
145
+ transform: translateY(-50%) rotate(45deg);
146
+
147
+ .menu-item.open:not(.menu-item-closing) > & {
148
+ transform: translateY(-50%) rotate(135deg);
149
+ }
150
+
151
+ .menu:not(.menu-no-animation) & {
152
+ transition-duration: $menu-animation-duration;
153
+ transition-property: -webkit-transform, transform;
154
+ }
155
+ }
156
+
157
+ // Menu divider
158
+ .menu-divider {
159
+ width: 100%;
160
+ border: 0;
161
+ border-top: 1px solid;
162
+ }
163
+
164
+ // Vertical Menu
165
+ // *******************************************************************************
166
+
167
+ .menu-vertical {
168
+ // overflow: hidden;
169
+ flex-direction: column;
170
+
171
+ // menu expand collapse animation
172
+ &:not(.menu-no-animation) {
173
+ transition: width $menu-animation-duration;
174
+ }
175
+
176
+ &,
177
+ .menu-block,
178
+ .menu-inner > .menu-item,
179
+ .menu-inner > .menu-header {
180
+ width: $menu-width;
181
+ }
182
+
183
+ .menu-inner {
184
+ flex-direction: column;
185
+ flex: 1 1 auto;
186
+
187
+ > .menu-item {
188
+ margin: $menu-item-spacer 0;
189
+ // Sneat menu-link spacing
190
+ .menu-link {
191
+ margin: $menu-vertical-link-margin-y $menu-vertical-link-margin-x;
192
+ }
193
+ }
194
+ }
195
+
196
+ .menu-item .menu-link,
197
+ .menu-block {
198
+ padding: $menu-vertical-link-padding-y $menu-vertical-link-padding-x;
199
+ }
200
+ // Sneat menu-header spacing
201
+ .menu-header {
202
+ margin: $menu-vertical-header-margin-y 0 $menu-vertical-header-margin-y * 0.5 0;
203
+ padding: $menu-vertical-link-padding-y $menu-vertical-link-padding-x * 2 $menu-vertical-link-padding-y
204
+ $menu-vertical-link-padding-x * 2;
205
+ }
206
+ .menu-item .menu-link {
207
+ font-size: $menu-font-size;
208
+ }
209
+
210
+ .menu-item.active:not(.open) > {
211
+ .menu-link {
212
+ font-weight: $font-weight-medium;
213
+ }
214
+ }
215
+ .menu-item .menu-toggle {
216
+ padding-right: calc(#{$menu-vertical-link-padding-x} + #{$caret-width * 3});
217
+
218
+ &::after {
219
+ right: $menu-vertical-link-padding-x;
220
+ }
221
+ }
222
+
223
+ .menu-divider {
224
+ margin-top: $menu-vertical-link-padding-y;
225
+ margin-bottom: $menu-vertical-link-padding-y;
226
+ padding: 0;
227
+ }
228
+
229
+ .menu-sub {
230
+ padding-top: $menu-vertical-menu-link-padding-y * 0.5;
231
+ padding-bottom: $menu-vertical-menu-link-padding-y * 0.5;
232
+
233
+ .menu-link {
234
+ padding-top: $menu-vertical-menu-link-padding-y;
235
+ padding-bottom: $menu-vertical-menu-link-padding-y;
236
+ }
237
+ }
238
+
239
+ .menu-icon {
240
+ width: $menu-icon-expanded-width;
241
+ }
242
+
243
+ .menu-sub .menu-icon {
244
+ margin-right: 0;
245
+
246
+ @include media-breakpoint-down(xl) {
247
+ display: none;
248
+ }
249
+ }
250
+
251
+ .menu-horizontal-wrapper {
252
+ flex: none;
253
+ }
254
+
255
+ // Levels
256
+ //
257
+
258
+ $menu-first-level-spacer: $menu-vertical-link-padding-x + $menu-icon-expanded-width + $menu-icon-expanded-spacer;
259
+
260
+ .menu-sub .menu-link {
261
+ padding-left: $menu-first-level-spacer;
262
+ }
263
+ // Menu levels loop for padding left/right
264
+ @for $i from 2 through $menu-max-levels {
265
+ $selector: '';
266
+
267
+ @for $l from 1 through $i {
268
+ $selector: '#{$selector} .menu-sub';
269
+ }
270
+
271
+ #{$selector} .menu-link {
272
+ padding-left: $menu-first-level-spacer + ($menu-vertical-menu-level-spacer * ($i - 1));
273
+ }
274
+ }
275
+ }
276
+
277
+ // Vertical Menu Collapsed
278
+ // *******************************************************************************
279
+ // ! Updated menu collapsed styles for sneat in this mixin
280
+ @mixin layout-menu-collapsed() {
281
+ width: $menu-collapsed-width;
282
+
283
+ .menu-inner > .menu-item {
284
+ width: $menu-collapsed-width;
285
+ }
286
+ .menu-inner > .menu-item > .menu-link {
287
+ padding-left: $menu-vertical-link-margin-x;
288
+ }
289
+
290
+ .menu-inner > .menu-header,
291
+ .menu-block {
292
+ position: relative;
293
+ margin-left: $menu-vertical-header-margin-y;
294
+ padding-right: ($menu-vertical-link-padding-x * 2) - $menu-icon-expanded-spacer;
295
+ padding-left: $menu-icon-expanded-spacer;
296
+ width: $menu-width;
297
+ text-indent: -9999px;
298
+ text-overflow: ellipsis;
299
+ white-space: nowrap;
300
+ .menu-header-text {
301
+ overflow: hidden;
302
+ opacity: 0;
303
+ }
304
+
305
+ &::before {
306
+ content: '';
307
+ position: absolute;
308
+ left: ($menu-collapsed-width * 0.5) - $menu-vertical-header-margin-y - 0.5;
309
+ display: block;
310
+ width: 1rem;
311
+ text-align: center;
312
+ top: 1.1875rem;
313
+ }
314
+ }
315
+ // Custom for sneat only
316
+ .menu-block {
317
+ &::before {
318
+ bottom: 0.75rem;
319
+ }
320
+ }
321
+ .menu-inner > .menu-item div:not(.menu-block) {
322
+ overflow: hidden;
323
+ text-overflow: ellipsis;
324
+ white-space: nowrap;
325
+ opacity: 0;
326
+ }
327
+ .menu-inner > .menu-item > .menu-sub,
328
+ .menu-inner > .menu-item.open > .menu-sub {
329
+ display: none;
330
+ }
331
+ .menu-inner > .menu-item > .menu-toggle::after {
332
+ display: none;
333
+ }
334
+
335
+ .menu-inner > .menu-item > .menu-link .menu-icon {
336
+ margin-left: -($menu-vertical-link-margin-x * 2);
337
+ width: $menu-collapsed-width;
338
+ text-align: center;
339
+ margin-right: 0;
340
+ }
341
+ }
342
+
343
+ // Only for menu example
344
+ .menu-collapsed:not(:hover) {
345
+ @include layout-menu-collapsed();
346
+ }
@@ -0,0 +1,6 @@
1
+ @import 'mixins/navbar';
2
+ @import 'mixins/footer';
3
+ @import 'mixins/menu';
4
+ @import 'mixins/avatar';
5
+ @import 'mixins/text-divider';
6
+ @import 'mixins/misc';
@@ -0,0 +1,89 @@
1
+ // Divider
2
+ // *******************************************************************************
3
+
4
+ // @import '../../scss/_custom-variables/libs';
5
+
6
+ .divider {
7
+ display: block;
8
+ text-align: center;
9
+ margin: $divider-margin-y $divider-margin-x;
10
+ overflow: hidden;
11
+ white-space: nowrap;
12
+
13
+ .divider-text {
14
+ position: relative;
15
+ display: inline-block;
16
+ font-size: $divider-font-size;
17
+ padding: $divider-text-padding-y $divider-text-padding-x;
18
+
19
+ i {
20
+ font-size: $divider-icon-size;
21
+ }
22
+
23
+ &:before,
24
+ &:after {
25
+ content: '';
26
+ position: absolute;
27
+ top: 50%;
28
+ width: 100vw;
29
+ border-top: 1px solid $divider-color;
30
+ }
31
+
32
+ &:before {
33
+ right: 100%;
34
+ }
35
+
36
+ &:after {
37
+ left: 100%;
38
+ }
39
+ }
40
+ &.text-start {
41
+ .divider-text {
42
+ padding-left: 0;
43
+ }
44
+ }
45
+ &.text-end {
46
+ .divider-text {
47
+ padding-right: 0;
48
+ }
49
+ }
50
+ &.text-start-center {
51
+ .divider-text {
52
+ left: -25%;
53
+ }
54
+ }
55
+ &.text-end-center {
56
+ .divider-text {
57
+ right: -25%;
58
+ }
59
+ }
60
+ // Dotted Bordered Divider
61
+ &.divider-dotted {
62
+ .divider-text {
63
+ &:before,
64
+ &:after {
65
+ border-style: dotted;
66
+ border-width: 0 1px 1px;
67
+ border-color: $divider-color;
68
+ }
69
+ }
70
+ }
71
+ // Dashed Bordered Divider
72
+ &.divider-dashed {
73
+ .divider-text {
74
+ &:before,
75
+ &:after {
76
+ border-style: dashed;
77
+ border-width: 0 1px 1px;
78
+ border-color: $divider-color;
79
+ }
80
+ }
81
+ }
82
+ }
83
+
84
+ // For Contextual Colors
85
+ @each $color, $value in $theme-colors {
86
+ @if $color !=primary and $color !=light {
87
+ @include template-text-divider-variant('.divider.divider-#{$color}', $value);
88
+ }
89
+ }
@@ -0,0 +1,93 @@
1
+ // Common
2
+ // *******************************************************************************
3
+
4
+ $ui-star-size: 1.1em !default;
5
+ $ui-stars-spacer: -0.1em !default;
6
+ $ui-star-filled-color: $yellow !default;
7
+
8
+ // Navbar (custom navbar)
9
+ // *******************************************************************************
10
+ $navbar-height: 3.875rem !default;
11
+ $navbar-suggestion-width: 96% !default;
12
+ $navbar-suggestion-height: 28rem !default;
13
+ $navbar-suggestion-border-radius: 0.5rem !default;
14
+ $navbar-dropdown-width: 22rem !default;
15
+ $navbar-dropdown-content-height: 30rem !default;
16
+ $navbar-notifications-dropdown-item-padding: 1rem !default;
17
+
18
+ // Menu
19
+ // *******************************************************************************
20
+
21
+ $menu-width: 16.25rem !default;
22
+ $menu-collapsed-width: 5.25rem !default;
23
+ $menu-collapsed-layout-breakpoint: xl !default;
24
+ $menu-font-size: $font-size-base !default;
25
+
26
+ $menu-item-spacer: 0.0625rem !default;
27
+
28
+ $menu-vertical-link-margin-y: 0rem !default;
29
+ $menu-vertical-link-margin-x: 1rem !default;
30
+
31
+ $menu-vertical-header-margin-y: 1rem !default;
32
+ $menu-vertical-header-margin-x: 0 !default;
33
+
34
+ $menu-vertical-link-padding-y: 0.625rem !default;
35
+ $menu-vertical-link-padding-x: 1rem !default;
36
+
37
+ $menu-vertical-menu-link-padding-y: 0.625rem !default;
38
+ $menu-vertical-menu-level-spacer: 0.65rem !default;
39
+
40
+ $menu-horizontal-item-spacer: 0.325rem !default;
41
+ $menu-horizontal-link-padding-y: 0.565rem !default;
42
+ $menu-horizontal-link-padding-x: 1rem !default;
43
+ $menu-horizontal-menu-link-padding-y: 0.625rem !default;
44
+ $menu-horizontal-menu-level-spacer: 2.35rem !default;
45
+ $menu-horizontal-menu-box-shadow: $dropdown-box-shadow !default;
46
+
47
+ $menu-sub-width: 14.5rem !default;
48
+ $menu-control-width: 2.25rem !default;
49
+ $menu-control-arrow-size: 0.5rem !default;
50
+
51
+ $menu-icon-expanded-width: 1.5rem !default;
52
+ $menu-icon-expanded-font-size: 1.25rem !default;
53
+ $menu-icon-expanded-spacer: 0.5rem !default;
54
+
55
+ $menu-animation-duration: 0.3s !default;
56
+
57
+ $menu-max-levels: 5 !default;
58
+
59
+ $menu-dark-border-color: rgba(255, 255, 255, 0.2) !default;
60
+ $menu-dark-menu-bg: rgba(0, 0, 0, 0.06) !default;
61
+ $menu-light-border-color: rgba(0, 0, 0, 0.06) !default;
62
+ $menu-light-menu-bg: rgba(0, 0, 0, 0.05) !default;
63
+
64
+ // Avatars
65
+ // *******************************************************************************
66
+
67
+ $avatar-size-xl: 4.5rem !default;
68
+ $avatar-size-lg: 4rem !default;
69
+ $avatar-size-md: 3rem !default;
70
+ $avatar-size: 2.375rem !default; // Default
71
+ $avatar-size-sm: 2rem !default;
72
+ $avatar-size-xs: 1.625rem !default;
73
+
74
+ $avatar-initial-xl: 1.875rem !default;
75
+ $avatar-initial-lg: 1.5rem !default;
76
+ $avatar-initial-md: 1.125rem !default;
77
+ $avatar-initial-sm: 0.75rem !default;
78
+ $avatar-initial-xs: 0.625rem !default;
79
+
80
+ $avatar-group-border: $white !default;
81
+
82
+ // Text Divider
83
+ // *******************************************************************************
84
+ $divider-color: $gray-200 !default;
85
+
86
+ $divider-margin-y: 1rem !default;
87
+ $divider-margin-x: 0 !default;
88
+
89
+ $divider-text-padding-y: 0rem !default;
90
+ $divider-text-padding-x: 1rem !default;
91
+
92
+ $divider-font-size: 0.8rem !default;
93
+ $divider-icon-size: 1rem !default;
@@ -0,0 +1,33 @@
1
+ // Within menu
2
+ @mixin template-app-brand-collapsed() {
3
+ .app-brand {
4
+ width: $menu-collapsed-width;
5
+ }
6
+
7
+ .app-brand-logo,
8
+ .app-brand-link,
9
+ .app-brand-text {
10
+ margin-right: auto;
11
+ margin-left: auto;
12
+ }
13
+
14
+ .app-brand-logo ~ .app-brand-text {
15
+ overflow: hidden;
16
+ text-overflow: ellipsis;
17
+ white-space: nowrap;
18
+ opacity: 0;
19
+ }
20
+ .app-brand .layout-menu-toggle {
21
+ // display: none !important;
22
+ opacity: 0;
23
+ left: calc(#{$menu-collapsed-width} - 1.5rem);
24
+ }
25
+
26
+ .app-brand-img {
27
+ display: none;
28
+ }
29
+
30
+ .app-brand-img-collapsed {
31
+ display: block;
32
+ }
33
+ }
@@ -0,0 +1,22 @@
1
+ // Avatar
2
+ // *******************************************************************************
3
+
4
+ @mixin template-avatar-style($height, $width, $font-size, $status-indicator-position: 2px) {
5
+ width: $width;
6
+ height: $height;
7
+
8
+ .avatar-initial {
9
+ font-size: $font-size;
10
+ }
11
+
12
+ &.avatar-online,
13
+ &.avatar-offline,
14
+ &.avatar-away,
15
+ &.avatar-busy {
16
+ &:after {
17
+ width: $width * 0.2;
18
+ height: $height * 0.2;
19
+ right: $status-indicator-position;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,39 @@
1
+ // Footer
2
+ // *******************************************************************************
3
+
4
+ @mixin template-footer-style($parent, $bg, $color: null, $active-color: null, $border: null) {
5
+ $colors: get-navbar-prop($bg, $active-color, $color, $border);
6
+
7
+ #{$parent} {
8
+ background-color: map-get($colors, bg) !important;
9
+ color: map-get($colors, color);
10
+
11
+ .footer-link {
12
+ color: map-get($colors, color);
13
+
14
+ &:hover,
15
+ &:focus {
16
+ color: map-get($colors, active-color);
17
+ }
18
+
19
+ &.disabled {
20
+ color: map-get($colors, disabled-color) !important;
21
+ }
22
+ }
23
+
24
+ .footer-text {
25
+ color: map-get($colors, active-color);
26
+ }
27
+
28
+ .show > .footer-link,
29
+ .active > .footer-link,
30
+ .footer-link.show,
31
+ .footer-link.active {
32
+ color: map-get($colors, active-color);
33
+ }
34
+
35
+ hr {
36
+ border-color: map-get($colors, border);
37
+ }
38
+ }
39
+ }