swop 0.1.1 → 1.0.1

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 (139) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +47 -9
  3. data/app/assets/images/swop/favicon.ico +0 -0
  4. data/app/assets/stylesheets/rails_admin/application.scss.erb +11 -20
  5. data/app/assets/stylesheets/{rails_admin/themes/base/base.scss → swop/swop-base/swop-base.scss} +1 -5
  6. data/app/assets/stylesheets/swop/swop-base/swop-typography.scss +11 -0
  7. data/app/assets/stylesheets/swop/swop-colors/swop-colors.scss +2 -0
  8. data/app/assets/stylesheets/swop/swop-core/swop-bootstrap-variables.scss +172 -0
  9. data/app/assets/stylesheets/swop/swop-core/swop-variables.scss +34 -0
  10. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-base/swop-base.scss +3 -0
  11. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-base/swop-main.scss +25 -0
  12. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-base/swop-typography.scss +4 -0
  13. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-amethyst.scss +29 -0
  14. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-dark.scss +29 -0
  15. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-forest.scss +29 -0
  16. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-light.scss +29 -0
  17. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-royal.scss +29 -0
  18. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-alerts.scss +12 -0
  19. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-badges.scss +31 -0
  20. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-buttons.scss +133 -0
  21. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-dropdowns.scss +26 -0
  22. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-filters.scss +57 -0
  23. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-forms.scss +158 -0
  24. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-images.scss +31 -0
  25. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-input-groups.scss +18 -0
  26. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-loading.scss +14 -0
  27. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-navbar.scss +15 -0
  28. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-navs.scss +77 -0
  29. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-offcanvas.scss +64 -0
  30. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-pagination.scss +21 -0
  31. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-progress.scss +3 -0
  32. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-sidebars.scss +49 -0
  33. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-tables.scss +82 -0
  34. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-tiles.scss +20 -0
  35. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-core/swop-bootstrap-variables.scss +149 -0
  36. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-core/swop-variables.scss +41 -0
  37. data/app/assets/stylesheets/{rails_admin/themes/simple/components/containers.scss → swop/swop-themes/swop-simple/swop-layouts/swop-containers.scss} +9 -0
  38. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-layouts/swop-header.scss +15 -0
  39. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-amethyst.scss +35 -0
  40. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-base.scss +3 -0
  41. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-components.scss +17 -0
  42. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-dark.scss +35 -0
  43. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-forest.scss +35 -0
  44. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-layouts.scss +2 -0
  45. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-light.scss +35 -0
  46. data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-royal.scss +35 -0
  47. data/app/assets/stylesheets/swop/swop.scss +8 -0
  48. data/app/views/kaminari/ra-twitter-bootstrap/_next_page.html.erb +7 -0
  49. data/app/views/kaminari/ra-twitter-bootstrap/_prev_page.html.erb +5 -0
  50. data/app/views/kaminari/ra-twitter-bootstrap/default/_next_page.html.erb +9 -0
  51. data/app/views/kaminari/ra-twitter-bootstrap/default/_prev_page.html.erb +9 -0
  52. data/app/views/kaminari/ra-twitter-bootstrap/swop-simple/_next_page.html.erb +9 -0
  53. data/app/views/kaminari/ra-twitter-bootstrap/swop-simple/_prev_page.html.erb +9 -0
  54. data/app/views/layouts/rails_admin/_head.html.erb +5 -32
  55. data/app/views/layouts/rails_admin/_sidebar_navigation.html.erb +5 -3
  56. data/app/views/layouts/rails_admin/application.html.erb +5 -27
  57. data/app/views/layouts/rails_admin/content.html.erb +4 -11
  58. data/app/views/layouts/rails_admin/default/_application.html.erb +27 -0
  59. data/app/views/layouts/rails_admin/default/_content.html.erb +22 -0
  60. data/app/views/layouts/rails_admin/default/_head.html.erb +32 -0
  61. data/app/views/layouts/rails_admin/default/_sidebar_navigation.html.erb +5 -0
  62. data/app/views/layouts/rails_admin/swop-simple/_application.html.erb +17 -0
  63. data/app/views/layouts/rails_admin/swop-simple/_content.html.erb +41 -0
  64. data/app/views/layouts/rails_admin/swop-simple/_head.html.erb +42 -0
  65. data/app/views/layouts/rails_admin/swop-simple/_sidebar_navigation.html.erb +12 -0
  66. data/app/views/rails_admin/main/_delete_notice.html.erb +7 -0
  67. data/app/views/rails_admin/main/default/_delete.html.erb +21 -0
  68. data/app/views/rails_admin/main/default/_delete_notice.html.erb +34 -0
  69. data/app/views/rails_admin/main/default/_edit.html.erb +3 -0
  70. data/app/views/rails_admin/main/default/_export.html.erb +149 -0
  71. data/app/views/rails_admin/main/default/_history.html.erb +80 -0
  72. data/app/views/rails_admin/main/default/_index.html.erb +184 -0
  73. data/app/views/rails_admin/main/default/_new.html.erb +3 -0
  74. data/app/views/rails_admin/main/default/_show.html.erb +30 -0
  75. data/app/views/rails_admin/main/delete.html.erb +5 -0
  76. data/app/views/rails_admin/main/edit.html.erb +5 -0
  77. data/app/views/rails_admin/main/export.html.erb +5 -128
  78. data/app/views/rails_admin/main/history.html.erb +4 -86
  79. data/app/views/rails_admin/main/index.html.erb +4 -173
  80. data/app/views/rails_admin/main/new.html.erb +5 -0
  81. data/app/views/rails_admin/main/show.html.erb +5 -20
  82. data/app/views/rails_admin/main/swop-simple/_delete.html.erb +11 -0
  83. data/app/views/rails_admin/main/swop-simple/_delete_notice.html.erb +23 -0
  84. data/app/views/rails_admin/main/swop-simple/_edit.html.erb +3 -0
  85. data/app/views/rails_admin/main/swop-simple/_export.html.erb +90 -0
  86. data/app/views/rails_admin/main/swop-simple/_history.html.erb +80 -0
  87. data/app/views/rails_admin/main/swop-simple/_index.html.erb +169 -0
  88. data/app/views/rails_admin/main/swop-simple/_new.html.erb +3 -0
  89. data/app/views/rails_admin/main/swop-simple/_show.html.erb +18 -0
  90. data/lib/swop/engine.rb +8 -3
  91. data/lib/swop/railtie.rb +7 -0
  92. data/lib/swop/version.rb +1 -1
  93. data/lib/swop.rb +20 -2
  94. metadata +102 -98
  95. data/CHANGELOG.md +0 -5
  96. data/CODE_OF_CONDUCT.md +0 -132
  97. data/LICENSE +0 -201
  98. data/Rakefile +0 -4
  99. data/app/assets/javascripts/rails_admin/application.js.erb +0 -33
  100. data/app/assets/javascripts/rails_admin/custom/abstract-select.js +0 -30
  101. data/app/assets/javascripts/rails_admin/custom/filter-box.js +0 -363
  102. data/app/assets/javascripts/rails_admin/custom/filtering-multiselect.js +0 -387
  103. data/app/assets/javascripts/rails_admin/custom/filtering-select.js +0 -304
  104. data/app/assets/stylesheets/rails_admin/themes/base/bootstrap-variables.scss +0 -252
  105. data/app/assets/stylesheets/rails_admin/themes/base/theming.scss +0 -22
  106. data/app/assets/stylesheets/rails_admin/themes/base/variables.scss +0 -71
  107. data/app/assets/stylesheets/rails_admin/themes/simple/base/typography.scss +0 -22
  108. data/app/assets/stylesheets/rails_admin/themes/simple/base/variables-dark.scss +0 -74
  109. data/app/assets/stylesheets/rails_admin/themes/simple/base/variables-light.scss +0 -77
  110. data/app/assets/stylesheets/rails_admin/themes/simple/base/variables-navy.scss +0 -74
  111. data/app/assets/stylesheets/rails_admin/themes/simple/base/variables.scss +0 -129
  112. data/app/assets/stylesheets/rails_admin/themes/simple/components/alerts.scss +0 -88
  113. data/app/assets/stylesheets/rails_admin/themes/simple/components/breadcrumbs.scss +0 -44
  114. data/app/assets/stylesheets/rails_admin/themes/simple/components/buttons.scss +0 -138
  115. data/app/assets/stylesheets/rails_admin/themes/simple/components/dropdowns.scss +0 -12
  116. data/app/assets/stylesheets/rails_admin/themes/simple/components/filter-box.scss +0 -8
  117. data/app/assets/stylesheets/rails_admin/themes/simple/components/filtering-multiselect.scss +0 -40
  118. data/app/assets/stylesheets/rails_admin/themes/simple/components/filtering-select.scss +0 -42
  119. data/app/assets/stylesheets/rails_admin/themes/simple/components/forms.scss +0 -27
  120. data/app/assets/stylesheets/rails_admin/themes/simple/components/images.scss +0 -19
  121. data/app/assets/stylesheets/rails_admin/themes/simple/components/links.scss +0 -25
  122. data/app/assets/stylesheets/rails_admin/themes/simple/components/navs.scss +0 -73
  123. data/app/assets/stylesheets/rails_admin/themes/simple/components/progress.scss +0 -4
  124. data/app/assets/stylesheets/rails_admin/themes/simple/components/sidebar.scss +0 -84
  125. data/app/assets/stylesheets/rails_admin/themes/simple/components/tables.scss +0 -84
  126. data/app/assets/stylesheets/rails_admin/themes/simple/layouts/rows.scss +0 -34
  127. data/app/assets/stylesheets/rails_admin/themes/simple/light/components/links.scss +0 -15
  128. data/app/assets/stylesheets/rails_admin/themes/simple/light/components/sidebar.scss +0 -25
  129. data/app/assets/stylesheets/rails_admin/themes/simple.scss.erb +0 -37
  130. data/app/helpers/rails_admin/application_helper.rb +0 -258
  131. data/app/helpers/rails_admin/form_builder.rb +0 -166
  132. data/app/views/layouts/rails_admin/_custom_navigation.html.erb +0 -10
  133. data/app/views/layouts/rails_admin/_header.html.erb +0 -43
  134. data/app/views/rails_admin/main/_form_polymorphic_association.html.erb +0 -15
  135. data/app/views/rails_admin/main/_submit_buttons.html.erb +0 -29
  136. data/app/views/rails_admin/main/dashboard.html.erb +0 -64
  137. data/config/locales/rails_admin.en.yml +0 -158
  138. data/sig/swop.rbs +0 -4
  139. /data/app/assets/stylesheets/{rails_admin/themes/base/mixins.scss → swop/swop-core/swop-mixins.scss} +0 -0
@@ -0,0 +1,133 @@
1
+ .btn {
2
+
3
+ &-primary {
4
+
5
+ @include button-variant(
6
+ $background: $primary-color,
7
+ $border: $primary-color,
8
+ $color: $white,
9
+ $hover-background: darken($primary-color, 2%),
10
+ $hover-border: darken($primary-color, 2%),
11
+ $hover-color: $white,
12
+ $active-background: darken($primary-color, 1%),
13
+ $active-border: darken($primary-color, 1%),
14
+ $active-color: $white,
15
+ $disabled-background: $primary-color,
16
+ $disabled-border: $primary-color,
17
+ $disabled-color: $white
18
+ );
19
+ }
20
+
21
+ &-danger {
22
+
23
+ @include button-variant(
24
+ $background: $danger-color,
25
+ $border: $danger-color,
26
+ $color: $white,
27
+ $hover-background: darken($danger-color, 2%),
28
+ $hover-border: darken($danger-color, 2%),
29
+ $hover-color: $white,
30
+ $active-background: darken($danger-color, 1%),
31
+ $active-border: darken($danger-color, 1%),
32
+ $active-color: $white,
33
+ $disabled-background: $danger-color,
34
+ $disabled-border: $danger-color,
35
+ $disabled-color: $white
36
+ );
37
+ }
38
+
39
+ &-body {
40
+
41
+ @include button-variant(
42
+ $background: $body-bg,
43
+ $border: $inputs-border-color,
44
+ $color: $body-dark-color,
45
+ $hover-background: $body-bg,
46
+ $hover-border: $btn-body-hover-border,
47
+ $hover-color: $body-dark-color,
48
+ $active-background: $body-bg,
49
+ $active-border: $btn-body-active-border,
50
+ $active-color: $body-dark-color,
51
+ $disabled-background: $body-bg,
52
+ $disabled-border: $inputs-border-color,
53
+ $disabled-color: $body-secondary-color
54
+ );
55
+ }
56
+
57
+ &-info {
58
+ @extend .btn-primary;
59
+ }
60
+
61
+ &-light {
62
+ @extend .btn-body;
63
+ }
64
+
65
+ &-toggle {
66
+ align-items: start !important;
67
+ border-radius: $md-border-radius;
68
+ border: none;
69
+ color: $body-dark-color;
70
+ display: flex;
71
+ justify-content: start;
72
+ padding: ($spacer * 1.5) ($spacer * 4); // 6px 16px
73
+ width: 100%;
74
+
75
+ &:hover {
76
+ color: $body-dark-color;
77
+ }
78
+
79
+ &:focus {
80
+ box-shadow: none;
81
+ }
82
+
83
+ *[class*="fa"] {
84
+ color: $body-secondary-color;
85
+ font-size: $sm-font-size;
86
+ margin-left: auto;
87
+ order: 1;
88
+ position: relative;
89
+ top: $spacer-1;
90
+ }
91
+ }
92
+
93
+ &-current-user {
94
+ align-items: center;
95
+ background-color: transparent;
96
+ border-radius: 0;
97
+ border: 0;
98
+ display: flex;
99
+ gap: $spacer-4;
100
+ margin-bottom: -$spacer-1;
101
+ margin-top: -$spacer-1;
102
+ max-width: rem(256px);
103
+ padding: 0;
104
+
105
+ @include media-breakpoint-up(lg) {
106
+ margin-bottom: 0;
107
+ margin-top: 0;
108
+ }
109
+
110
+ &:focus {
111
+ box-shadow: none;
112
+ }
113
+
114
+ &-details {
115
+ display: none;
116
+
117
+ @include media-breakpoint-up(md) {
118
+ display: block;
119
+ }
120
+ }
121
+ }
122
+
123
+ // remove Font Awesome icons
124
+ &.create,
125
+ &.update,
126
+ &.btn-remove-image,
127
+ &[type="submit"] {
128
+
129
+ *[class*="fa"] {
130
+ display: none !important;
131
+ }
132
+ }
133
+ }
@@ -0,0 +1,26 @@
1
+ .dropdown {
2
+
3
+ &-menu {
4
+ border-top-left-radius: $dropdown-border-radius !important;
5
+ border-top-right-radius: $dropdown-border-radius !important;
6
+ box-shadow: $md-box-shadow;
7
+ }
8
+
9
+ &-item {
10
+ color: $dropdown-color;
11
+ font-weight: $fw-medium;
12
+ }
13
+
14
+ &-header {
15
+ font-size: $md-font-size;
16
+ }
17
+
18
+ &-toggle::after {
19
+ @extend .fas;
20
+ border: 0;
21
+ color: $body-secondary-color;
22
+ content: "\f107";
23
+ margin-left: $spacer-1;
24
+ vertical-align: unset;
25
+ }
26
+ }
@@ -0,0 +1,57 @@
1
+ .filters {
2
+
3
+ &-wrapper {
4
+ display: none;
5
+
6
+ @include media-breakpoint-up(md) {
7
+ background-color: $light-color;
8
+ border-radius: $lg-border-radius;
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: $spacer-3;
12
+ margin-bottom: $spacer-4;
13
+ padding: $spacer-5;
14
+ }
15
+ }
16
+
17
+ &-box {
18
+ display: flex;
19
+ flex-direction: column;
20
+ gap: $spacer-2;
21
+
22
+ &:empty {
23
+ margin-bottom: -$spacer-3;
24
+ }
25
+ }
26
+
27
+ .filter {
28
+ align-items: center;
29
+ display: flex !important;
30
+ font-size: 0;
31
+ gap: $spacer-1;
32
+ margin-bottom: 0 !important;
33
+ margin-top: 0 !important;
34
+
35
+ .form-control,
36
+ .form-select,
37
+ .additional-fieldset,
38
+ .additional-fieldset .input-sm {
39
+ flex-grow: 1;
40
+ width: 100% !important;
41
+ }
42
+
43
+ .btn {
44
+ @extend .btn-body;
45
+ align-items: center;
46
+ display: flex;
47
+ flex-shrink: 0;
48
+ margin-left: $spacer-1;
49
+ order: 1;
50
+
51
+ *[class*="fa"] {
52
+ margin-left: $spacer-2 !important;
53
+ order: 1 !important;
54
+ }
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,158 @@
1
+ .form {
2
+
3
+ &-check {
4
+
5
+ &-input {
6
+ margin-top: 0;
7
+ }
8
+
9
+ &-label {
10
+ color: $form-label-color;
11
+ font-size: $form-label-font-size;
12
+ font-weight: $form-label-font-weight;
13
+ }
14
+ }
15
+
16
+ &-actions {
17
+ display: flex;
18
+ flex-direction: row;
19
+ flex-wrap: wrap;
20
+ gap: $spacer-4;
21
+ margin-bottom: 0 !important;
22
+ margin-top: $spacer-6 !important;
23
+
24
+ &,
25
+ *[class*="col"],
26
+ .extra_buttons {
27
+ display: flex;
28
+ flex-direction: row;
29
+ flex-wrap: wrap;
30
+ gap: $spacer-4;
31
+ }
32
+
33
+ &.row {
34
+ flex-basis: 100%;
35
+ justify-content: start !important;
36
+ }
37
+
38
+ .extra_buttons .btn-primary {
39
+ @extend .btn-body;
40
+ }
41
+ }
42
+ }
43
+
44
+ // simplest way to make labels + inputs stack
45
+ .control-group {
46
+ margin-bottom: $spacer-4 !important;
47
+
48
+ &:last-child {
49
+ margin-bottom: 0 !important;
50
+ }
51
+ }
52
+
53
+ .col-form-label {
54
+ flex-basis: 100%;
55
+ padding-bottom: $form-label-margin-bottom;
56
+ padding-top: 0;
57
+ text-align: left !important;
58
+ }
59
+
60
+ .controls {
61
+
62
+ &[class*="col-sm"] {
63
+ flex-basis: 100%;
64
+ }
65
+
66
+ &[class*="ui-sortable"] {
67
+ display: flex;
68
+ flex-wrap: wrap;
69
+ gap: $spacer-3;
70
+
71
+ .toggle {
72
+ margin-bottom: 0 !important;
73
+ position: relative;
74
+
75
+ .btn {
76
+ @extend .btn-danger;
77
+ align-items: center;
78
+ border-radius: $base-border-radius * 1.75; // 7px
79
+ bottom: $spacer-2;
80
+ display: flex;
81
+ font-size: 0;
82
+ height: rem(36.25px);
83
+ justify-content: center;
84
+ padding: 0;
85
+ position: absolute;
86
+ right: $spacer-2;
87
+ width: rem(36.25px);
88
+
89
+ &::after {
90
+ @extend .fas;
91
+ content: "\f1f8";
92
+ font-size: $base-font-size * 0.625; // 10px
93
+ }
94
+ }
95
+ }
96
+
97
+ input,
98
+ .form-text {
99
+ flex-basis: 100%;
100
+ }
101
+
102
+ input {
103
+ padding-top: $spacer-1;
104
+ }
105
+
106
+ .form-text {
107
+ margin-top: -$spacer-2;
108
+ }
109
+ }
110
+
111
+ .row {
112
+
113
+ *[class*="col-"] {
114
+ flex: 1 0 0% !important;
115
+ width: 100% !important;
116
+ }
117
+
118
+ *[class*="modal-actions"] {
119
+ align-items: start;
120
+ display: flex;
121
+ flex: 0 0 auto !important;
122
+ gap: $spacer-3;
123
+ margin-top: $spacer-3 !important;
124
+ width: 100% !important;
125
+
126
+ @include media-breakpoint-up(md) {
127
+ width: auto !important;
128
+ margin-top: 0 !important;
129
+ }
130
+
131
+ .btn {
132
+ @extend .btn-body;
133
+ flex-grow: 1;
134
+ margin-left: 0 !important;
135
+ }
136
+ }
137
+
138
+ .ra-multiselect {
139
+ display: flex;
140
+ flex-direction: row;
141
+ flex-wrap: wrap;
142
+ gap: $spacer-3;
143
+
144
+ &-header {
145
+ flex-basis: 100%;
146
+ margin-bottom: $spacer-3;
147
+
148
+ input {
149
+ width: 100%;
150
+ }
151
+ }
152
+
153
+ &-column:not(.ra-multiselect-center) {
154
+ flex-grow: 1;
155
+ }
156
+ }
157
+ }
158
+ }
@@ -0,0 +1,31 @@
1
+ .img {
2
+
3
+ &-thumbnail {
4
+ background-color: transparent;
5
+ border: none;
6
+ height: rem(96px);
7
+ max-width: 100%;
8
+ padding: 0;
9
+
10
+ // smaller thumbnails in rows
11
+ td & {
12
+ border-radius: $sm-border-radius;
13
+ height: rem(40px);
14
+ }
15
+ }
16
+ }
17
+
18
+ // only show first image in rows
19
+ td.attachments_field.multiple_active_storage_type a:not(:first-child) {
20
+ display: none;
21
+ }
22
+
23
+ .multiple_active_storage_type.attachments_field {
24
+ display: flex;
25
+ flex-wrap: wrap;
26
+ gap: $spacer-3;
27
+
28
+ :not(a):not(p) {
29
+ flex-basis: 100%;
30
+ }
31
+ }
@@ -0,0 +1,18 @@
1
+ .input-group {
2
+
3
+ .btn,
4
+ .btn-primary,
5
+ &-btn .btn {
6
+ @extend .btn-body;
7
+ }
8
+
9
+ &-btn .btn {
10
+ border-bottom-left-radius: inherit !important;
11
+ border-top-left-radius: inherit !important;
12
+ }
13
+
14
+ .form-control {
15
+ border-bottom-left-radius: $md-inputs-btn-border-radius !important;
16
+ border-top-left-radius: $md-inputs-btn-border-radius !important;
17
+ }
18
+ }
@@ -0,0 +1,14 @@
1
+ .loading {
2
+ align-items: center;
3
+ background-color: $overlay-bg;
4
+ color: $white;
5
+ display: flex;
6
+ font-size: $h1-font-size;
7
+ height: 100%;
8
+ justify-content: center;
9
+ left: 0;
10
+ position: fixed;
11
+ top: 0;
12
+ width: 100%;
13
+ z-index: 999;
14
+ }
@@ -0,0 +1,15 @@
1
+ .navbar {
2
+
3
+ &-toggler {
4
+ border-radius: 0;
5
+ border: 0;
6
+ color: $body-secondary-color;
7
+ font-size: $h3-font-size;
8
+ outline: 0;
9
+ padding: rem(2.75px 4.25px);
10
+
11
+ &:focus {
12
+ box-shadow: none;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,77 @@
1
+ .nav {
2
+
3
+ &-tabs {
4
+ align-items: center;
5
+ gap: $spacer-3;
6
+ margin-bottom: $spacer-6 !important;
7
+
8
+ .nav-item {
9
+ flex-shrink: 0;
10
+
11
+ &.dropdown {
12
+ display: none;
13
+ margin-left: auto;
14
+ margin-right: 0;
15
+
16
+ @include media-breakpoint-up(md) {
17
+ align-items: center;
18
+ display: flex;
19
+ }
20
+
21
+ & + .nav-item.dropdown {
22
+ margin-left: 0;
23
+ }
24
+
25
+ .nav-link {
26
+ background: transparent;
27
+
28
+ &:hover {
29
+
30
+ @include media-breakpoint-up(md) {
31
+ background-color: $light-color;
32
+ }
33
+ }
34
+
35
+ *[class*="fa"] {
36
+ color: $body-secondary-color;
37
+ display: inline-block;
38
+ margin-left: $spacer-1;
39
+ }
40
+
41
+ &.show {
42
+ background-color: $light-color;
43
+ color: $body-dark-color;
44
+ }
45
+ }
46
+ }
47
+ }
48
+
49
+ .nav-link {
50
+ background: $light-color;
51
+ border-radius: $md-border-radius;
52
+ border: 0 !important;
53
+ color: $body-color;
54
+ font-weight: $fw-medium;
55
+ outline: 0;
56
+ padding: ($spacer * 1.5) ($spacer * 4); // 6px 16px
57
+
58
+ &:hover {
59
+
60
+ @include media-breakpoint-up(md) {
61
+ background-color: $light-color;
62
+ color: $body-dark-color;
63
+ }
64
+ }
65
+
66
+ &.active {
67
+ background-color: $primary-color;
68
+ color: $white;
69
+ font-weight: $fw-semibold;
70
+ }
71
+
72
+ *[class*="fa"] {
73
+ display: none;
74
+ }
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,64 @@
1
+ .offcanvas {
2
+ border-radius: $lg-border-radius;
3
+ height: calc(100vh - 16px);
4
+ margin-left: $spacer-2;
5
+ margin-top: $spacer-2;
6
+ max-width: rem(208px);
7
+ min-width: rem(208px);
8
+ transition: all 0.275s cubic-bezier(0.1, 0, 0.1, 1) !important;
9
+ width: rem(208px);
10
+
11
+ @include media-breakpoint-up(md) {
12
+ height: calc(100vh - 24px);
13
+ margin-left: $spacer-3;
14
+ margin-top: $spacer-3;
15
+ max-width: rem(216px);
16
+ min-width: rem(216px);
17
+ width: rem(216px);
18
+ }
19
+
20
+ @include media-breakpoint-up(xl) {
21
+ background-clip: unset;
22
+ background-color: transparent;
23
+ border-radius: 0;
24
+ height: 100vh;
25
+ margin-left: 0;
26
+ margin-top: 0;
27
+ max-width: rem(192px);
28
+ min-width: rem(192px);
29
+ position: relative;
30
+ transform: none;
31
+ visibility: visible;
32
+ width: rem(192px);
33
+ z-index: 3;
34
+ }
35
+
36
+ .offcanvas-body {
37
+ height: 100vh;
38
+ overflow-x: scroll;
39
+ padding-bottom: $spacer-3;
40
+ padding-left: $spacer-2;
41
+ padding-right: $spacer-2;
42
+ padding-top: $spacer-2;
43
+
44
+ @include media-breakpoint-up(md) {
45
+ padding-bottom: $spacer-4;
46
+ padding-top: $spacer-3;
47
+ }
48
+
49
+ @include media-breakpoint-up(xl) {
50
+ padding-bottom: $spacer-8;
51
+ padding-left: 0;
52
+ padding-right: 0;
53
+ padding-top: $spacer-7;
54
+ }
55
+
56
+ &::-webkit-scrollbar {
57
+ display: none;
58
+ }
59
+ }
60
+
61
+ &-backdrop {
62
+ transition: all 0.275s cubic-bezier(0.1, 0, 0.1, 1) !important;
63
+ }
64
+ }
@@ -0,0 +1,21 @@
1
+ #sidescroll + .row {
2
+
3
+ *[class*="col"] {
4
+ flex: 0 0 auto;
5
+ width: auto;
6
+ }
7
+
8
+ .pagination {
9
+ margin-bottom: 0;
10
+
11
+ .page-link {
12
+ border-radius: $sm-inputs-btn-border-radius;
13
+ font-size: $pagination-font-size;
14
+ padding: rem(11px 18.2625px);
15
+ }
16
+ }
17
+ }
18
+
19
+ #sidescroll {
20
+ margin-bottom: $spacer-6 !important;
21
+ }
@@ -0,0 +1,3 @@
1
+ .progress {
2
+ font-weight: $fw-semibold;
3
+ }
@@ -0,0 +1,49 @@
1
+ .sidebar {
2
+ display: flex;
3
+ flex-direction: column;
4
+ flex-grow: 1;
5
+ flex-wrap: nowrap;
6
+ gap: $spacer-1;
7
+ max-width: 100%;
8
+ min-width: 100%;
9
+ width: 100%;
10
+
11
+ .nav-link {
12
+ border-radius: $md-border-radius;
13
+ color: $body-color;
14
+ outline: 0;
15
+ padding: ($spacer * 1.5) ($spacer * 4); // 6px 16px
16
+
17
+ &:hover {
18
+
19
+ @include media-breakpoint-up(xl) {
20
+ background-color: $light-color;
21
+ color: $body-dark-color;
22
+ }
23
+ }
24
+
25
+ &.active {
26
+ background-color: $primary-color;
27
+ color: $white;
28
+ font-weight: $fw-semibold;
29
+ }
30
+ }
31
+
32
+ li {
33
+ margin-bottom: 0 !important;
34
+ }
35
+
36
+ .btn-toggle-nav {
37
+ padding: 0 !important;
38
+ margin-bottom: 0 !important;
39
+ }
40
+
41
+ .nav-item-dashboard {
42
+ margin-bottom: -$spacer-1 !important;
43
+
44
+ // hide default "Navigation" btn-toggle
45
+ & + li .btn-toggle {
46
+ display: none;
47
+ }
48
+ }
49
+ }