swop 0.1.0 → 0.1.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 (77) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/rails_admin/application.js.erb +3 -2
  3. data/app/assets/javascripts/rails_admin/custom/abstract-select.js +30 -0
  4. data/app/assets/javascripts/rails_admin/custom/filter-box.js +363 -0
  5. data/app/assets/javascripts/rails_admin/custom/filtering-multiselect.js +387 -0
  6. data/app/assets/javascripts/rails_admin/custom/filtering-select.js +1 -1
  7. data/app/assets/stylesheets/rails_admin/application.scss.erb +19 -33
  8. data/app/assets/stylesheets/rails_admin/{custom → themes}/base/base.scss +4 -0
  9. data/app/assets/stylesheets/rails_admin/themes/base/bootstrap-variables.scss +252 -0
  10. data/app/assets/stylesheets/rails_admin/{custom → themes}/base/mixins.scss +0 -16
  11. data/app/assets/stylesheets/rails_admin/themes/base/theming.scss +22 -0
  12. data/app/assets/stylesheets/rails_admin/themes/base/variables.scss +71 -0
  13. data/app/assets/stylesheets/rails_admin/themes/simple/base/typography.scss +22 -0
  14. data/app/assets/stylesheets/rails_admin/themes/simple/base/variables-dark.scss +74 -0
  15. data/app/assets/stylesheets/rails_admin/themes/simple/base/variables-light.scss +77 -0
  16. data/app/assets/stylesheets/rails_admin/themes/simple/base/variables-navy.scss +74 -0
  17. data/app/assets/stylesheets/rails_admin/themes/simple/base/variables.scss +129 -0
  18. data/app/assets/stylesheets/rails_admin/themes/simple/components/alerts.scss +88 -0
  19. data/app/assets/stylesheets/rails_admin/themes/simple/components/breadcrumbs.scss +44 -0
  20. data/app/assets/stylesheets/rails_admin/themes/simple/components/buttons.scss +138 -0
  21. data/app/assets/stylesheets/rails_admin/themes/simple/components/containers.scss +15 -0
  22. data/app/assets/stylesheets/rails_admin/themes/simple/components/dropdowns.scss +12 -0
  23. data/app/assets/stylesheets/rails_admin/themes/simple/components/filter-box.scss +8 -0
  24. data/app/assets/stylesheets/rails_admin/themes/simple/components/filtering-multiselect.scss +40 -0
  25. data/app/assets/stylesheets/rails_admin/themes/simple/components/filtering-select.scss +42 -0
  26. data/app/assets/stylesheets/rails_admin/{custom → themes/simple}/components/forms.scss +4 -2
  27. data/app/assets/stylesheets/rails_admin/{custom → themes/simple}/components/images.scss +4 -6
  28. data/app/assets/stylesheets/rails_admin/themes/simple/components/links.scss +25 -0
  29. data/app/assets/stylesheets/rails_admin/themes/simple/components/navs.scss +73 -0
  30. data/app/assets/stylesheets/rails_admin/themes/simple/components/progress.scss +4 -0
  31. data/app/assets/stylesheets/rails_admin/themes/simple/components/sidebar.scss +84 -0
  32. data/app/assets/stylesheets/rails_admin/themes/simple/components/tables.scss +84 -0
  33. data/app/assets/stylesheets/rails_admin/themes/simple/layouts/rows.scss +34 -0
  34. data/app/assets/stylesheets/rails_admin/themes/simple/light/components/links.scss +15 -0
  35. data/app/assets/stylesheets/rails_admin/themes/simple/light/components/sidebar.scss +25 -0
  36. data/app/assets/stylesheets/rails_admin/themes/simple.scss.erb +37 -0
  37. data/app/helpers/rails_admin/application_helper.rb +34 -46
  38. data/app/helpers/rails_admin/form_builder.rb +166 -0
  39. data/app/views/layouts/rails_admin/_custom_navigation.html.erb +10 -0
  40. data/app/views/layouts/rails_admin/_head.html.erb +32 -0
  41. data/app/views/layouts/rails_admin/_header.html.erb +43 -0
  42. data/app/views/layouts/rails_admin/_sidebar_navigation.html.erb +3 -1
  43. data/app/views/layouts/rails_admin/application.html.erb +15 -12
  44. data/app/views/layouts/rails_admin/content.html.erb +6 -51
  45. data/app/views/rails_admin/main/_form_polymorphic_association.html.erb +15 -0
  46. data/app/views/rails_admin/main/_submit_buttons.html.erb +22 -18
  47. data/app/views/rails_admin/main/dashboard.html.erb +49 -55
  48. data/app/views/rails_admin/main/export.html.erb +23 -23
  49. data/app/views/rails_admin/main/history.html.erb +87 -0
  50. data/app/views/rails_admin/main/index.html.erb +60 -56
  51. data/app/views/rails_admin/main/show.html.erb +15 -23
  52. data/config/locales/rails_admin.en.yml +158 -0
  53. data/lib/swop/version.rb +1 -1
  54. data/lib/swop.rb +1 -0
  55. metadata +41 -28
  56. data/app/assets/javascripts/rails_admin/custom/sidescroll.js +0 -20
  57. data/app/assets/javascripts/rails_admin/custom/ui.js +0 -11
  58. data/app/assets/stylesheets/rails_admin/custom/base/bootstrap-variables.scss +0 -196
  59. data/app/assets/stylesheets/rails_admin/custom/base/typography.scss +0 -16
  60. data/app/assets/stylesheets/rails_admin/custom/base/variables.scss +0 -86
  61. data/app/assets/stylesheets/rails_admin/custom/components/breadcrumbs.scss +0 -18
  62. data/app/assets/stylesheets/rails_admin/custom/components/buttons.scss +0 -55
  63. data/app/assets/stylesheets/rails_admin/custom/components/dropdowns.scss +0 -40
  64. data/app/assets/stylesheets/rails_admin/custom/components/filtering-select.scss +0 -43
  65. data/app/assets/stylesheets/rails_admin/custom/components/navbar.scss +0 -18
  66. data/app/assets/stylesheets/rails_admin/custom/components/navs.scss +0 -28
  67. data/app/assets/stylesheets/rails_admin/custom/components/offcanvas.scss +0 -18
  68. data/app/assets/stylesheets/rails_admin/custom/components/progress.scss +0 -11
  69. data/app/assets/stylesheets/rails_admin/custom/components/sidebar.scss +0 -115
  70. data/app/assets/stylesheets/rails_admin/custom/components/table.scss +0 -59
  71. data/app/assets/stylesheets/rails_admin/custom/components/tiles.scss +0 -20
  72. data/app/assets/stylesheets/rails_admin/custom/layouts/body.scss +0 -10
  73. data/app/assets/stylesheets/rails_admin/custom/layouts/containers.scss +0 -31
  74. data/app/views/layouts/rails_admin/custom/_nav.html.erb +0 -10
  75. data/app/views/rails_admin/main/delete.html.erb +0 -19
  76. data/app/views/rails_admin/main/edit.html.erb +0 -5
  77. data/app/views/rails_admin/main/new.html.erb +0 -5
@@ -0,0 +1,252 @@
1
+ // Color system
2
+ $white: $white;
3
+ $black: $black;
4
+
5
+ $primary: $primary;
6
+ $secondary: $secondary;
7
+ $success: $success;
8
+ $info: $info;
9
+ $warning: $warning;
10
+ $danger: $danger;
11
+ $light: $light;
12
+ $dark: $dark;
13
+
14
+ // Options
15
+ $enable-negative-margins: $enable-negative-margins;
16
+
17
+ // Spacing
18
+ $spacer: $spacer;
19
+ $spacers: (
20
+ 0: 0,
21
+ 1: $spacer-1,
22
+ 2: $spacer-2,
23
+ 3: $spacer-3,
24
+ 4: $spacer-4,
25
+ 5: $spacer-5,
26
+ 6: $spacer-6,
27
+ 7: $spacer-7,
28
+ 8: $spacer-8,
29
+ 9: $spacer-9,
30
+ 10: $spacer-10,
31
+ 11: $spacer-11,
32
+ 12: $spacer-12,
33
+ 13: $spacer-13,
34
+ 14: $spacer-14,
35
+ 15: $spacer-15
36
+ );
37
+
38
+ // Body
39
+ $body-color: $body-color;
40
+ $body-bg: $body-bg;
41
+
42
+ $body-secondary-color: $body-secondary-color;
43
+
44
+ // Links
45
+ $link-decoration: $link-decoration;
46
+ $link-shade-percentage: $link-shade-percentage;
47
+ $link-hover-decoration: $link-hover-decoration;
48
+
49
+ // Paragraphs
50
+ $paragraph-margin-bottom: $paragraph-margin-bottom;
51
+
52
+ // Grid columns
53
+ $grid-columns: $grid-columns;
54
+ $grid-gutter-width: $grid-gutter-width;
55
+
56
+ // Container padding
57
+ $container-padding-x: $container-padding-x;
58
+
59
+ // Components
60
+ $border-width: $border-width;
61
+ $border-color: $border-color;
62
+
63
+ $border-radius: $border-radius;
64
+ $border-radius-sm: $border-radius-sm;
65
+ $border-radius-lg: $border-radius-lg;
66
+ $border-radius-xl: $border-radius-xl;
67
+ $border-radius-xxl: $border-radius-xxl;
68
+
69
+ // Typography
70
+ $font-family-sans-serif: $font-family-sans-serif;
71
+
72
+ $font-size-base: $font-size-base;
73
+ $font-size-sm: $font-size-sm;
74
+ $font-size-lg: $font-size-lg;
75
+
76
+ $font-weight-light: $font-weight-light;
77
+ $font-weight-normal: $font-weight-normal;
78
+ $font-weight-medium: $font-weight-medium;
79
+ $font-weight-semibold: $font-weight-semibold;
80
+ $font-weight-bold: $font-weight-bold;
81
+
82
+ $font-weight-base: $font-weight-base;
83
+
84
+ $line-height-base: $line-height-base;
85
+ $line-height-sm: $line-height-sm;
86
+ $line-height-lg: $line-height-lg;
87
+
88
+ $h1-font-size: $h1-font-size;
89
+ $h2-font-size: $h2-font-size;
90
+ $h3-font-size: $h3-font-size;
91
+ $h4-font-size: $h4-font-size;
92
+ $h5-font-size: $h5-font-size;
93
+ $h6-font-size: $h6-font-size;
94
+
95
+ $headings-margin-bottom: $headings-margin-bottom;
96
+ $headings-font-family: $headings-font-family;
97
+ $headings-font-weight: $headings-font-weight;
98
+ $headings-line-height: $headings-line-height;
99
+ $headings-color: $headings-color;
100
+
101
+ $display-font-weight: $display-font-weight;
102
+
103
+ $lead-font-weight: $lead-font-weight;
104
+
105
+ $hr-margin-y: $hr-margin-y;
106
+ $hr-color: $hr-color;
107
+
108
+ $hr-bg-color: $hr-bg-color;
109
+
110
+ $hr-border-color: $hr-border-color;
111
+
112
+ $hr-margin-y: $hr-margin-y;
113
+
114
+ $hr-height: $hr-height;
115
+
116
+ $hr-border-width: $hr-border-width;
117
+ $hr-opacity: $hr-opacity;
118
+
119
+ // Tables
120
+ $table-cell-padding-y: $table-cell-padding-y;
121
+ $table-cell-padding-x: $table-cell-padding-x;
122
+
123
+ $table-cell-vertical-align: $table-cell-vertical-align;
124
+
125
+ $table-color: $table-color;
126
+ $table-bg: $table-bg;
127
+
128
+ $table-th-font-weight: $table-th-font-weight;
129
+
130
+ $table-active-color: $table-active-color;
131
+ $table-active-bg: $table-active-bg;
132
+
133
+ $table-hover-color: $table-hover-color;
134
+ $table-hover-bg: $table-hover-bg;
135
+
136
+ $table-border-width: $table-border-width;
137
+ $table-border-color: $table-border-color;
138
+
139
+ // Buttons + Forms
140
+ $input-btn-padding-y: $input-btn-padding-y;
141
+ $input-btn-padding-x: $input-btn-padding-x;
142
+ $input-btn-line-height: $input-btn-line-height;
143
+
144
+ $input-btn-padding-y-sm: $input-btn-padding-y-sm;
145
+ $input-btn-padding-x-sm: $input-btn-padding-x-sm;
146
+
147
+ $input-btn-padding-y-lg: $input-btn-padding-y-lg;
148
+ $input-btn-padding-x-lg: $input-btn-padding-x-lg;
149
+
150
+ // Buttons
151
+ $btn-padding-x: $btn-padding-x;
152
+
153
+ $btn-padding-x-sm: $btn-padding-x-sm;
154
+
155
+ $btn-padding-x-lg: $btn-padding-x-lg;
156
+
157
+ $btn-border-radius: $btn-border-radius;
158
+ $btn-border-radius-sm: $btn-border-radius-sm;
159
+ $btn-border-radius-lg: $btn-border-radius-lg;
160
+
161
+ $btn-font-weight: $btn-font-weight;
162
+
163
+ // Forms
164
+ $form-text-font-size: $font-size-sm;
165
+
166
+ $form-label-margin-bottom: $spacer-1;
167
+ $form-label-font-weight: $font-weight-medium;
168
+ $form-label-color: $dark;
169
+
170
+ $input-border-color: $input-border-color;
171
+
172
+ $form-check-padding-start: $spacer-6;
173
+ $form-check-margin-bottom: 0;
174
+
175
+ $form-check-input-border: $border-width solid $input-border-color;
176
+
177
+ $form-switch-color: $input-border-color;
178
+
179
+ $form-switch-padding-start: 0;
180
+
181
+ // Navs
182
+ $nav-link-padding-y: 0;
183
+ $nav-link-padding-x: 0;
184
+ $nav-link-font-size: $nav-link-font-size;
185
+ $nav-link-font-weight: $nav-link-font-weight;
186
+ $nav-link-color: $nav-link-color;
187
+ $nav-link-hover-color: $nav-link-hover-color;
188
+
189
+ $nav-tabs-border-radius: $nav-tabs-border-radius;
190
+ $nav-tabs-link-hover-border-color: $nav-tabs-link-hover-border-color;
191
+ $nav-tabs-link-active-color: $nav-tabs-link-active-color;
192
+ $nav-tabs-link-active-bg: $nav-tabs-link-active-bg;
193
+ $nav-tabs-link-active-border-color: $nav-tabs-link-active-border-color;
194
+
195
+ // Dropdowns
196
+ $dropdown-padding-y: $dropdown-padding-y;
197
+ $dropdown-spacer: $dropdown-spacer;
198
+ $dropdown-font-size: $dropdown-font-size;
199
+ $dropdown-border-color: $dropdown-border-color;
200
+ $dropdown-border-radius: $dropdown-border-radius;
201
+ $dropdown-divider-bg: $dropdown-divider-bg;
202
+ $dropdown-divider-margin-y: $dropdown-divider-margin-y;
203
+
204
+ $dropdown-link-color: $dropdown-link-color;
205
+ $dropdown-link-hover-color: $dropdown-link-hover-color;
206
+ $dropdown-link-hover-bg: $dropdown-link-hover-bg;
207
+
208
+ $dropdown-link-active-color: $dropdown-link-active-color;
209
+ $dropdown-link-active-bg: $dropdown-link-active-bg;
210
+
211
+ $dropdown-link-disabled-color: $dropdown-link-disabled-color;
212
+
213
+ $dropdown-item-padding-y: $dropdown-item-padding-y;
214
+ $dropdown-item-padding-x: $dropdown-item-padding-x;
215
+
216
+ $dropdown-header-color: $dropdown-header-color;
217
+ $dropdown-header-padding-x: $dropdown-header-padding-x;
218
+ $dropdown-header-padding-y: $dropdown-header-padding-y;
219
+
220
+ $dropdown-header-padding: $dropdown-header-padding;
221
+
222
+ // Pagination
223
+ $pagination-padding-y: $spacer-2;
224
+ $pagination-padding-x: $spacer-4;
225
+
226
+ $pagination-font-size: $font-size-base;
227
+
228
+ $pagination-color: $body-color;
229
+ $pagination-bg: $white;
230
+ $pagination-border-width: 0;
231
+
232
+ $pagination-active-color: $primary;
233
+ $pagination-active-bg: $white;
234
+
235
+ $pagination-disabled-color: $body-secondary-color;
236
+ $pagination-disabled-bg: $white;
237
+
238
+ // Offcanvas
239
+ $offcanvas-padding-y: $offcanvas-padding-y;
240
+ $offcanvas-padding-x: $offcanvas-padding-x;
241
+ $offcanvas-horizontal-width: $offcanvas-horizontal-width;
242
+ $offcanvas-transition-duration: $offcanvas-transition-duration;
243
+ $offcanvas-border-width: $offcanvas-border-width;
244
+ $offcanvas-backdrop-bg: $offcanvas-backdrop-bg;
245
+
246
+ // Alerts
247
+ $alert-padding-y: $alert-padding-y;
248
+ $alert-padding-x: $alert-padding-x;
249
+ $alert-margin-bottom: $alert-margin-bottom;
250
+ $alert-border-radius: $alert-border-radius;
251
+ $alert-link-font-weight: $alert-link-font-weight;
252
+ $alert-border-width: $alert-border-width;
@@ -70,19 +70,3 @@ $rem-px-only: false !default;
70
70
  }
71
71
  }
72
72
  }
73
-
74
- //does not work with colors containing alpha
75
- @function encode-color($string) {
76
- @if type-of($string) == 'color' {
77
- $hex: str-slice(ie-hex-str($string), 4);
78
- $string:unquote("#{$hex}");
79
- }
80
- $string: '%23' + $string;
81
- @return $string;
82
- }
83
-
84
- @mixin text-gradient() {
85
- -webkit-background-clip: text;
86
- background-clip: text;
87
- -webkit-text-fill-color: transparent;
88
- }
@@ -0,0 +1,22 @@
1
+ body.rails_admin {
2
+
3
+ /* Table cells behaviour */
4
+ .table {
5
+
6
+ .sticky {
7
+ position: sticky;
8
+ }
9
+
10
+ /* Shrink to content width */
11
+ .shrink {
12
+ white-space: nowrap;
13
+ width: 1px;
14
+ }
15
+
16
+ th.last,
17
+ td.last {
18
+ position: sticky;
19
+ right: 0px;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,71 @@
1
+ // Colours
2
+ $white: #fff;
3
+ $black: #000;
4
+
5
+ // Options
6
+ $enable-negative-margins: true;
7
+
8
+ // Spacing
9
+ $spacer: rem(4px);
10
+ $spacer-1: $spacer * 1; // 4px
11
+ $spacer-2: $spacer * 2; // 8px
12
+ $spacer-3: $spacer * 3; // 12px
13
+ $spacer-4: $spacer * 4; // 16px
14
+ $spacer-5: $spacer * 5; // 20px
15
+ $spacer-6: $spacer * 6; // 24px
16
+ $spacer-7: $spacer * 8; // 32px
17
+ $spacer-8: $spacer * 10; // 40px
18
+ $spacer-9: $spacer * 12; // 48px
19
+ $spacer-10: $spacer * 16; // 64px
20
+ $spacer-11: $spacer * 20; // 80px
21
+ $spacer-12: $spacer * 24; // 96px
22
+ $spacer-13: $spacer * 28; // 112px
23
+ $spacer-14: $spacer * 32; // 128px
24
+ $spacer-15: $spacer * 36; // 144px
25
+
26
+ // Grid columns
27
+ $grid-columns: 24;
28
+
29
+ // Components
30
+ $border-width: rem(1px);
31
+
32
+ $base-border-radius: rem(4px);
33
+
34
+ // Typography
35
+ $base-font-size: rem(16px);
36
+
37
+ $font-weight-light: 300;
38
+ $font-weight-normal: 400;
39
+ $font-weight-medium: 500;
40
+ $font-weight-semibold: 600;
41
+ $font-weight-bold: 700;
42
+
43
+ $font-weight-base: $font-weight-normal;
44
+
45
+ $line-height-base: 1.5;
46
+ $line-height-sm: 1.25;
47
+ $line-height-lg: 1.75;
48
+
49
+ $headings-font-weight: $font-weight-bold;
50
+ $headings-line-height: $line-height-sm;
51
+
52
+ $display-font-weight: $font-weight-base;
53
+
54
+ $lead-font-weight: $font-weight-base;
55
+
56
+ $hr-margin-y: 0;
57
+
58
+ $hr-height: $border-width;
59
+
60
+ $hr-border-width: $border-width;
61
+ $hr-opacity: 1;
62
+
63
+ // Buttons
64
+ $btn-transition: color 0.25s cubic-bezier(0.1, 0, 0.1, 1), background-color 0.25s cubic-bezier(0.1, 0, 0.1, 1), border-color 0.25s cubic-bezier(0.1, 0, 0.1, 1), box-shadow 0.25s cubic-bezier(0.1, 0, 0.1, 1);
65
+
66
+ // Offcanvas
67
+ $offcanvas-horizontal-width: 325px;
68
+ $offcanvas-transition-duration: 0.25s;
69
+
70
+ // Other
71
+ $transition: 0.25s cubic-bezier(0.1, 0, 0.1, 1);
@@ -0,0 +1,22 @@
1
+ body {
2
+ letter-spacing: $letter-spacing-body;
3
+ }
4
+
5
+ h1, .h1,
6
+ h2, .h2,
7
+ h3, .h3,
8
+ h4, .h4,
9
+ h5, .h5,
10
+ h6, .h6 {
11
+ letter-spacing: $letter-spacing-headings;
12
+ }
13
+
14
+ ::selection {
15
+ background-color: $selection-bg;
16
+ color: $selection-color;
17
+ }
18
+
19
+ ::-moz-selection {
20
+ background-color: $selection-bg;
21
+ color: $selection-color;
22
+ }
@@ -0,0 +1,74 @@
1
+ // Colours - https://developer.apple.com/design/human-interface-guidelines/color
2
+ $primary: #007aff;
3
+ $secondary: #ffcc00;
4
+ $success: #34c759;
5
+ $info: #af52De;
6
+ $warning: #ff5900;
7
+ $danger: #ff3b30;
8
+ $light: #0E1218;
9
+ $dark: #040507;
10
+
11
+ // Body
12
+ $body-color: #80909C;
13
+ $body-bg: #080A0E;
14
+
15
+ $body-secondary-color: #505964;
16
+
17
+ // Components
18
+ $border-color: #111620;
19
+
20
+ // Typography
21
+ $headings-color: #ffffff;
22
+
23
+ $hr-color: $border-color;
24
+
25
+ $hr-bg-color: $border-color;
26
+
27
+ $hr-border-color: $border-color;
28
+
29
+ // Tables
30
+ $table-color: $body-color;
31
+ $table-bg: $body-bg;
32
+
33
+ $table-active-color: $body-color;
34
+ $table-active-bg: $light;
35
+
36
+ $table-hover-color: $body-color;
37
+ $table-hover-bg: $light;
38
+
39
+ $table-border-color: $border-color;
40
+
41
+ // Navs
42
+ $nav-link-color: $body-color;
43
+ $nav-link-hover-color: $white;
44
+
45
+ $nav-tabs-link-hover-border-color: $light;
46
+ $nav-tabs-link-active-color: $primary;
47
+ $nav-tabs-link-active-bg: transparent;
48
+ $nav-tabs-link-active-border-color: $primary;
49
+ $offcanvas-backdrop-bg: $black;
50
+
51
+ // Dropdowns
52
+ $dropdown-border-color: desaturate(lighten($border-color, 8%), 16%);
53
+ $dropdown-divider-bg: $border-color;
54
+
55
+ $dropdown-link-color: $body-color;
56
+
57
+ $dropdown-link-hover-color: $white;
58
+ $dropdown-link-hover-bg: $light;
59
+
60
+ $dropdown-link-active-color: $white;
61
+ $dropdown-link-active-bg: $light;
62
+
63
+ $dropdown-link-disabled-color: $body-secondary-color;
64
+
65
+ $dropdown-header-color: $body-secondary-color;
66
+
67
+ // Progress bars
68
+ $progress-bg: $light;
69
+ $progress-bar-color: $white;
70
+ $progress-bar-bg: $primary;
71
+
72
+ // Other
73
+ $selection-bg: $primary;
74
+ $selection-color: $white;
@@ -0,0 +1,77 @@
1
+ // Colours - https://developer.apple.com/design/human-interface-guidelines/color
2
+ $primary: #007aff;
3
+ $secondary: #ffcc00;
4
+ $success: #34c759;
5
+ $info: #af52De;
6
+ $warning: #ff5900;
7
+ $danger: #ff3b30;
8
+ $light: #FBFCFF;
9
+ $dark: #181c20;
10
+
11
+ // Body
12
+ $body-color: #4C5966;
13
+ $body-bg: #ffffff;
14
+
15
+ $body-secondary-color: #98A8B2;
16
+
17
+ // Components
18
+ $border-color: #F4F5FC;
19
+
20
+ // Typography
21
+ $headings-color: #181c20;
22
+
23
+ $hr-color: $border-color;
24
+
25
+ $hr-bg-color: $border-color;
26
+
27
+ $hr-border-color: $border-color;
28
+
29
+ // Tables
30
+ $table-color: $body-color;
31
+ $table-bg: $body-bg;
32
+
33
+ $table-active-color: $body-color;
34
+ $table-active-bg: $light;
35
+
36
+ $table-hover-color: $body-color;
37
+ $table-hover-bg: $light;
38
+
39
+ $table-border-color: $border-color;
40
+
41
+ // Forms
42
+ $input-border-color: darken(#F4F5FC, 3.25%); // Check with haz
43
+
44
+ // Navs
45
+ $nav-link-color: $body-color;
46
+ $nav-link-hover-color: $dark;
47
+
48
+ $nav-tabs-link-hover-border-color: $light;
49
+ $nav-tabs-link-active-color: $primary;
50
+ $nav-tabs-link-active-bg: transparent;
51
+ $nav-tabs-link-active-border-color: $primary;
52
+ $offcanvas-backdrop-bg: $black;
53
+
54
+ // Dropdowns
55
+ $dropdown-border-color: darken($border-color, 7.5%);
56
+ $dropdown-divider-bg: $border-color;
57
+
58
+ $dropdown-link-color: $body-color;
59
+
60
+ $dropdown-link-hover-color: $dark;
61
+ $dropdown-link-hover-bg: $light;
62
+
63
+ $dropdown-link-active-color: $dark;
64
+ $dropdown-link-active-bg: $light;
65
+
66
+ $dropdown-link-disabled-color: $body-secondary-color;
67
+
68
+ $dropdown-header-color: $body-secondary-color;
69
+
70
+ // Progress bars
71
+ $progress-bg: darken($light, 0.25%);
72
+ $progress-bar-color: $dark;
73
+ $progress-bar-bg: $primary;
74
+
75
+ // Other
76
+ $selection-bg: $primary;
77
+ $selection-color: $dark;
@@ -0,0 +1,74 @@
1
+ // Colours - https://developer.apple.com/design/human-interface-guidelines/color
2
+ $primary: #007aff;
3
+ $secondary: #ffcc00;
4
+ $success: #34c759;
5
+ $info: #af52De;
6
+ $warning: #ff5900;
7
+ $danger: #ff3b30;
8
+ $light: #001024;
9
+ $dark: #000A18;
10
+
11
+ // Body
12
+ $body-color: #7090AC;
13
+ $body-bg: #000B1C;
14
+
15
+ $body-secondary-color: #445C70;
16
+
17
+ // Components
18
+ $border-color: #00122A;
19
+
20
+ // Typography
21
+ $headings-color: #ffffff;
22
+
23
+ $hr-color: $border-color;
24
+
25
+ $hr-bg-color: $border-color;
26
+
27
+ $hr-border-color: $border-color;
28
+
29
+ // Tables
30
+ $table-color: $body-color;
31
+ $table-bg: $body-bg;
32
+
33
+ $table-active-color: $body-color;
34
+ $table-active-bg: $light;
35
+
36
+ $table-hover-color: $body-color;
37
+ $table-hover-bg: $light;
38
+
39
+ $table-border-color: $border-color;
40
+
41
+ // Navs
42
+ $nav-link-color: $body-color;
43
+ $nav-link-hover-color: $white;
44
+
45
+ $nav-tabs-link-hover-border-color: $light;
46
+ $nav-tabs-link-active-color: $primary;
47
+ $nav-tabs-link-active-bg: transparent;
48
+ $nav-tabs-link-active-border-color: $primary;
49
+ $offcanvas-backdrop-bg: $black;
50
+
51
+ // Dropdowns
52
+ $dropdown-border-color: lighten($border-color, 7.5%);
53
+ $dropdown-divider-bg: $border-color;
54
+
55
+ $dropdown-link-color: $body-color;
56
+
57
+ $dropdown-link-hover-color: $white;
58
+ $dropdown-link-hover-bg: $light;
59
+
60
+ $dropdown-link-active-color: $white;
61
+ $dropdown-link-active-bg: $light;
62
+
63
+ $dropdown-link-disabled-color: $body-secondary-color;
64
+
65
+ $dropdown-header-color: $body-secondary-color;
66
+
67
+ // Progress bars
68
+ $progress-bg: $light;
69
+ $progress-bar-color: $white;
70
+ $progress-bar-bg: $primary;
71
+
72
+ // Other
73
+ $selection-bg: $primary;
74
+ $selection-color: $white;