swop 0.1.0 → 1.0.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.
- checksums.yaml +4 -4
- data/README.md +47 -9
- data/app/assets/images/swop/favicon.ico +0 -0
- data/app/assets/stylesheets/rails_admin/application.scss.erb +11 -34
- data/app/assets/stylesheets/{rails_admin/custom/base/base.scss → swop/swop-base/swop-base.scss} +1 -1
- data/app/assets/stylesheets/swop/swop-base/swop-typography.scss +11 -0
- data/app/assets/stylesheets/swop/swop-colors/swop-colors.scss +2 -0
- data/app/assets/stylesheets/swop/swop-core/swop-bootstrap-variables.scss +172 -0
- data/app/assets/stylesheets/{rails_admin/custom/base/mixins.scss → swop/swop-core/swop-mixins.scss} +0 -16
- data/app/assets/stylesheets/swop/swop-core/swop-variables.scss +34 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-base/swop-base.scss +3 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-base/swop-main.scss +25 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-base/swop-typography.scss +4 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-amethyst.scss +29 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-dark.scss +29 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-forest.scss +29 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-light.scss +29 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-colors/swop-royal.scss +29 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-alerts.scss +12 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-badges.scss +31 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-buttons.scss +133 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-dropdowns.scss +26 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-filters.scss +57 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-forms.scss +158 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-images.scss +31 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-input-groups.scss +18 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-loading.scss +14 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-navbar.scss +15 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-navs.scss +77 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-offcanvas.scss +64 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-pagination.scss +21 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-progress.scss +3 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-sidebars.scss +49 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-tables.scss +82 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-components/swop-tiles.scss +20 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-core/swop-bootstrap-variables.scss +149 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-core/swop-variables.scss +41 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-layouts/swop-containers.scss +24 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-layouts/swop-header.scss +15 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-amethyst.scss +35 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-base.scss +3 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-components.scss +17 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-dark.scss +35 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-forest.scss +35 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-layouts.scss +2 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-light.scss +35 -0
- data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-simple-royal.scss +35 -0
- data/app/assets/stylesheets/swop/swop.scss +8 -0
- data/app/views/kaminari/ra-twitter-bootstrap/_next_page.html.erb +7 -0
- data/app/views/kaminari/ra-twitter-bootstrap/_prev_page.html.erb +5 -0
- data/app/views/kaminari/ra-twitter-bootstrap/default/_next_page.html.erb +9 -0
- data/app/views/kaminari/ra-twitter-bootstrap/default/_prev_page.html.erb +9 -0
- data/app/views/kaminari/ra-twitter-bootstrap/swop-simple/_next_page.html.erb +9 -0
- data/app/views/kaminari/ra-twitter-bootstrap/swop-simple/_prev_page.html.erb +9 -0
- data/app/views/layouts/rails_admin/_head.html.erb +5 -0
- data/app/views/layouts/rails_admin/_sidebar_navigation.html.erb +5 -1
- data/app/views/layouts/rails_admin/application.html.erb +5 -24
- data/app/views/layouts/rails_admin/content.html.erb +4 -56
- data/app/views/layouts/rails_admin/default/_application.html.erb +27 -0
- data/app/views/layouts/rails_admin/default/_content.html.erb +22 -0
- data/app/views/layouts/rails_admin/default/_head.html.erb +32 -0
- data/app/views/layouts/rails_admin/default/_sidebar_navigation.html.erb +5 -0
- data/app/views/layouts/rails_admin/swop-simple/_application.html.erb +17 -0
- data/app/views/layouts/rails_admin/swop-simple/_content.html.erb +41 -0
- data/app/views/layouts/rails_admin/swop-simple/_head.html.erb +42 -0
- data/app/views/layouts/rails_admin/swop-simple/_sidebar_navigation.html.erb +12 -0
- data/app/views/rails_admin/main/_delete_notice.html.erb +7 -0
- data/app/views/rails_admin/main/default/_delete.html.erb +21 -0
- data/app/views/rails_admin/main/default/_delete_notice.html.erb +34 -0
- data/app/views/rails_admin/main/default/_edit.html.erb +3 -0
- data/app/views/rails_admin/main/default/_export.html.erb +149 -0
- data/app/views/rails_admin/main/default/_history.html.erb +80 -0
- data/app/views/rails_admin/main/default/_index.html.erb +184 -0
- data/app/views/rails_admin/main/default/_new.html.erb +3 -0
- data/app/views/rails_admin/main/default/_show.html.erb +30 -0
- data/app/views/rails_admin/main/delete.html.erb +5 -19
- data/app/views/rails_admin/main/edit.html.erb +5 -5
- data/app/views/rails_admin/main/export.html.erb +5 -128
- data/app/views/rails_admin/main/history.html.erb +5 -0
- data/app/views/rails_admin/main/index.html.erb +4 -169
- data/app/views/rails_admin/main/new.html.erb +5 -5
- data/app/views/rails_admin/main/show.html.erb +5 -28
- data/app/views/rails_admin/main/swop-simple/_delete.html.erb +11 -0
- data/app/views/rails_admin/main/swop-simple/_delete_notice.html.erb +23 -0
- data/app/views/rails_admin/main/swop-simple/_edit.html.erb +3 -0
- data/app/views/rails_admin/main/swop-simple/_export.html.erb +90 -0
- data/app/views/rails_admin/main/swop-simple/_history.html.erb +80 -0
- data/app/views/rails_admin/main/swop-simple/_index.html.erb +169 -0
- data/app/views/rails_admin/main/swop-simple/_new.html.erb +3 -0
- data/app/views/rails_admin/main/swop-simple/_show.html.erb +18 -0
- data/lib/swop/engine.rb +8 -3
- data/lib/swop/railtie.rb +7 -0
- data/lib/swop/version.rb +1 -1
- data/lib/swop.rb +20 -1
- metadata +101 -84
- data/CHANGELOG.md +0 -5
- data/CODE_OF_CONDUCT.md +0 -132
- data/LICENSE +0 -201
- data/Rakefile +0 -4
- data/app/assets/javascripts/rails_admin/application.js.erb +0 -32
- data/app/assets/javascripts/rails_admin/custom/filtering-select.js +0 -304
- data/app/assets/javascripts/rails_admin/custom/sidescroll.js +0 -20
- data/app/assets/javascripts/rails_admin/custom/ui.js +0 -11
- data/app/assets/stylesheets/rails_admin/custom/base/bootstrap-variables.scss +0 -196
- data/app/assets/stylesheets/rails_admin/custom/base/typography.scss +0 -16
- data/app/assets/stylesheets/rails_admin/custom/base/variables.scss +0 -86
- data/app/assets/stylesheets/rails_admin/custom/components/breadcrumbs.scss +0 -18
- data/app/assets/stylesheets/rails_admin/custom/components/buttons.scss +0 -55
- data/app/assets/stylesheets/rails_admin/custom/components/dropdowns.scss +0 -40
- data/app/assets/stylesheets/rails_admin/custom/components/filtering-select.scss +0 -43
- data/app/assets/stylesheets/rails_admin/custom/components/forms.scss +0 -25
- data/app/assets/stylesheets/rails_admin/custom/components/images.scss +0 -21
- data/app/assets/stylesheets/rails_admin/custom/components/navbar.scss +0 -18
- data/app/assets/stylesheets/rails_admin/custom/components/navs.scss +0 -28
- data/app/assets/stylesheets/rails_admin/custom/components/offcanvas.scss +0 -18
- data/app/assets/stylesheets/rails_admin/custom/components/progress.scss +0 -11
- data/app/assets/stylesheets/rails_admin/custom/components/sidebar.scss +0 -115
- data/app/assets/stylesheets/rails_admin/custom/components/table.scss +0 -59
- data/app/assets/stylesheets/rails_admin/custom/components/tiles.scss +0 -20
- data/app/assets/stylesheets/rails_admin/custom/layouts/body.scss +0 -10
- data/app/assets/stylesheets/rails_admin/custom/layouts/containers.scss +0 -31
- data/app/helpers/rails_admin/application_helper.rb +0 -270
- data/app/views/layouts/rails_admin/custom/_nav.html.erb +0 -10
- data/app/views/rails_admin/main/_submit_buttons.html.erb +0 -25
- data/app/views/rails_admin/main/dashboard.html.erb +0 -70
- data/sig/swop.rbs +0 -4
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
.table {
|
|
2
|
+
|
|
3
|
+
th {
|
|
4
|
+
background-color: $body-bg !important;
|
|
5
|
+
padding-bottom: rem(10px) !important;
|
|
6
|
+
padding-left: $table-cell-padding-x !important;
|
|
7
|
+
padding-right: $table-cell-padding-x !important;
|
|
8
|
+
padding-top: 0 !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
th:first-child {
|
|
12
|
+
padding-left: 0 !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
th.shrink {
|
|
16
|
+
padding-bottom: rem(8px) !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
th.header {
|
|
20
|
+
font-weight: $fw-bold !important;
|
|
21
|
+
color: $body-dark-color !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
th.sticky input[type="checkbox"],
|
|
25
|
+
td.sticky input[type="checkbox"] {
|
|
26
|
+
@extend .form-check-input;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-group-divider {
|
|
30
|
+
border-top: $border-width solid $border-color !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:not(thead) tr:last-child {
|
|
34
|
+
|
|
35
|
+
thead, tbody, tfoot, tr, td, th {
|
|
36
|
+
border-width: 0 !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
thead tr th {
|
|
41
|
+
padding-top: $spacer-1 !important;
|
|
42
|
+
margin-top: -$spacer-1 !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
td {
|
|
46
|
+
background-color: $body-bg !important;
|
|
47
|
+
padding: $table-cell-padding-y $table-cell-padding-x !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
td:first-child {
|
|
51
|
+
padding-left: 0 !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
tr:first-child th.sticky,
|
|
55
|
+
td:first-child.sticky {
|
|
56
|
+
padding-left: $spacer-1 !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
tbody tr:hover .links .nav .nav-item .nav-link {
|
|
60
|
+
color: $body-color;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
tbody tr .links .nav .nav-item {
|
|
64
|
+
padding: 0 $spacer-1 !important;
|
|
65
|
+
|
|
66
|
+
.nav-link {
|
|
67
|
+
color: $body-secondary-color;
|
|
68
|
+
|
|
69
|
+
&:hover {
|
|
70
|
+
color: $body-dark-color;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
#sidescroll {
|
|
77
|
+
scrollbar-width: none;
|
|
78
|
+
|
|
79
|
+
&::-webkit-scrollbar {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.tile {
|
|
2
|
+
|
|
3
|
+
&-avatar {
|
|
4
|
+
align-items: center;
|
|
5
|
+
background-color: $avatar-bg-color;
|
|
6
|
+
border-radius: 50%;
|
|
7
|
+
color: $avatar-color;
|
|
8
|
+
display: flex;
|
|
9
|
+
font-size: rem(26px);
|
|
10
|
+
height: rem(32px);
|
|
11
|
+
justify-content: center;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
width: rem(32px);
|
|
14
|
+
|
|
15
|
+
&-icon {
|
|
16
|
+
position: relative;
|
|
17
|
+
top: rem(5px);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
data/app/assets/stylesheets/swop/swop-themes/swop-simple/swop-core/swop-bootstrap-variables.scss
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// paragraphs
|
|
2
|
+
$paragraph-margin-bottom: $spacer-5;
|
|
3
|
+
|
|
4
|
+
// typography
|
|
5
|
+
$font-weight-base: $fw-medium;
|
|
6
|
+
|
|
7
|
+
$headings-margin-bottom: $spacer-4;
|
|
8
|
+
$headings-font-weight: $fw-bold;
|
|
9
|
+
|
|
10
|
+
$lead-font-size: $lg-font-size;
|
|
11
|
+
$lead-font-weight: $fw-medium;
|
|
12
|
+
|
|
13
|
+
// buttons + forms
|
|
14
|
+
$input-btn-padding-y: $md-inputs-btn-padding-y;
|
|
15
|
+
$input-btn-padding-x: $md-inputs-btn-padding-x;
|
|
16
|
+
|
|
17
|
+
$input-btn-padding-y-sm: $sm-inputs-btn-padding-y;
|
|
18
|
+
$input-btn-padding-x-sm: $sm-inputs-btn-padding-x;
|
|
19
|
+
|
|
20
|
+
$input-btn-padding-y-lg: $lg-inputs-btn-padding-y;
|
|
21
|
+
$input-btn-padding-x-lg: $lg-inputs-btn-padding-x;
|
|
22
|
+
|
|
23
|
+
// buttons
|
|
24
|
+
$btn-font-weight: $fw-semibold;
|
|
25
|
+
|
|
26
|
+
// forms
|
|
27
|
+
$form-text-margin-top: $spacer-1;
|
|
28
|
+
$form-text-font-size: $sm-font-size;
|
|
29
|
+
$form-text-font-weight: $fw-medium;
|
|
30
|
+
$form-text-color: $body-secondary-color;
|
|
31
|
+
|
|
32
|
+
$form-label-margin-bottom: $spacer-1;
|
|
33
|
+
$form-label-font-size: $md-font-size;
|
|
34
|
+
$form-label-font-weight: $fw-semibold;
|
|
35
|
+
$form-label-color: $body-dark-color;
|
|
36
|
+
|
|
37
|
+
$input-disabled-color: $body-secondary-color;
|
|
38
|
+
$input-disabled-bg: $light-color;
|
|
39
|
+
$input-disabled-border-color: $inputs-border-color;
|
|
40
|
+
|
|
41
|
+
$form-check-input-width: rem(20px);
|
|
42
|
+
$form-check-padding-start: $form-check-input-width + $spacer-2;
|
|
43
|
+
$form-check-margin-bottom: 0;
|
|
44
|
+
$form-check-label-color: $form-label-color;
|
|
45
|
+
|
|
46
|
+
$form-check-input-border: $border-width solid darken($inputs-border-color, 1.25%);
|
|
47
|
+
$form-check-input-border-radius: $sm-border-radius;
|
|
48
|
+
|
|
49
|
+
$form-check-inline-margin-end: rem(16px);
|
|
50
|
+
|
|
51
|
+
$input-group-addon-color: $body-secondary-color;
|
|
52
|
+
$input-group-addon-bg: $body-bg;
|
|
53
|
+
|
|
54
|
+
// navs
|
|
55
|
+
$nav-link-padding-y: $spacer-3;
|
|
56
|
+
$nav-link-padding-x: 0;
|
|
57
|
+
$nav-link-font-size: $md-font-size;
|
|
58
|
+
$nav-link-font-weight: $fw-medium;
|
|
59
|
+
$nav-link-color: $body-color;
|
|
60
|
+
$nav-link-hover-color: $body-dark-color;
|
|
61
|
+
|
|
62
|
+
$nav-tabs-border-color: transparent;
|
|
63
|
+
$nav-tabs-border-width: rem(2px);
|
|
64
|
+
$nav-tabs-link-hover-border-color: $light-color;
|
|
65
|
+
$nav-tabs-link-active-color: $primary-color;
|
|
66
|
+
$nav-tabs-link-active-bg: transparent;
|
|
67
|
+
$nav-tabs-link-active-border-color: $primary-color;
|
|
68
|
+
|
|
69
|
+
// dropdowns
|
|
70
|
+
$dropdown-min-width: rem(160px);
|
|
71
|
+
$dropdown-padding-y: $spacer-1;
|
|
72
|
+
$dropdown-spacer: $spacer-1;
|
|
73
|
+
$dropdown-color: $body-color;
|
|
74
|
+
$dropdown-bg: $body-bg;
|
|
75
|
+
$dropdown-border-color: $borders-color;
|
|
76
|
+
$dropdown-border-radius: $md-border-radius;
|
|
77
|
+
$dropdown-divider-margin-y: $spacer-1;
|
|
78
|
+
|
|
79
|
+
$dropdown-link-hover-color: $body-dark-color;
|
|
80
|
+
$dropdown-link-hover-bg: $light-color;
|
|
81
|
+
|
|
82
|
+
$dropdown-link-active-color: $body-dark-color;
|
|
83
|
+
$dropdown-link-active-bg: $body-bg;
|
|
84
|
+
|
|
85
|
+
$dropdown-link-disabled-color: $body-secondary-color;
|
|
86
|
+
|
|
87
|
+
$dropdown-item-padding-y: $spacer * 1.5; // 6px
|
|
88
|
+
$dropdown-item-padding-x: $spacer * 4; // 16px
|
|
89
|
+
|
|
90
|
+
$dropdown-header-color: $body-secondary-color;
|
|
91
|
+
|
|
92
|
+
// pagination
|
|
93
|
+
$pagination-padding-y: $spacer-1;
|
|
94
|
+
$pagination-padding-x: $spacer-1;
|
|
95
|
+
|
|
96
|
+
$pagination-font-size: $sm-font-size;
|
|
97
|
+
|
|
98
|
+
$pagination-color: $body-color;
|
|
99
|
+
$pagination-bg: $body-bg;
|
|
100
|
+
$pagination-border-radius: $md-inputs-btn-border-radius;
|
|
101
|
+
$pagination-border-width: 0;
|
|
102
|
+
|
|
103
|
+
$pagination-focus-color: $body-dark-color;
|
|
104
|
+
$pagination-focus-bg: $light-color;
|
|
105
|
+
|
|
106
|
+
$pagination-hover-color: $body-dark-color;
|
|
107
|
+
$pagination-hover-bg: $light-color;
|
|
108
|
+
|
|
109
|
+
$pagination-active-color: $white;
|
|
110
|
+
$pagination-active-bg: $primary-color;
|
|
111
|
+
|
|
112
|
+
$pagination-disabled-color: $body-secondary-color;
|
|
113
|
+
$pagination-disabled-bg: transparent;
|
|
114
|
+
|
|
115
|
+
$pagination-transition: color .0s ease-in-out, background-color .0s ease-in-out, box-shadow .0s ease-in-out;
|
|
116
|
+
|
|
117
|
+
// alerts
|
|
118
|
+
$alert-padding-y: $spacer-3;
|
|
119
|
+
$alert-padding-x: $spacer-4;
|
|
120
|
+
$alert-margin-bottom: $spacer-4;
|
|
121
|
+
$alert-border-radius: $md-border-radius;
|
|
122
|
+
$alert-link-font-weight: $fw-semibold;
|
|
123
|
+
$alert-border-width: 0;
|
|
124
|
+
$alert-dismissible-padding-r: $alert-padding-x * 3;
|
|
125
|
+
|
|
126
|
+
// progress bars
|
|
127
|
+
$progress-height: rem(14px);
|
|
128
|
+
$progress-font-size: $sm-font-size;
|
|
129
|
+
$progress-bg: $light-color;
|
|
130
|
+
$progress-border-radius: $lg-border-radius;
|
|
131
|
+
|
|
132
|
+
// offcanvas
|
|
133
|
+
$offcanvas-padding-y: $spacer-4;
|
|
134
|
+
$offcanvas-padding-x: $spacer-4;
|
|
135
|
+
$offcanvas-horizontal-width: rem(256px);
|
|
136
|
+
$offcanvas-border-width: 0;
|
|
137
|
+
$offcanvas-bg-color: $body-bg;
|
|
138
|
+
$offcanvas-backdrop-bg: $overlay-bg;
|
|
139
|
+
$offcanvas-backdrop-opacity: 0.5;
|
|
140
|
+
|
|
141
|
+
// cards
|
|
142
|
+
$card-spacer-y: 0;
|
|
143
|
+
$card-spacer-x: 0;
|
|
144
|
+
$card-title-spacer-y: 0;
|
|
145
|
+
$card-border-width: 0;
|
|
146
|
+
$card-border-radius: $lg-border-radius;
|
|
147
|
+
$card-cap-padding-y: 0;
|
|
148
|
+
$card-cap-padding-x: 0;
|
|
149
|
+
$card-bg: transparent;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// components
|
|
2
|
+
$sm-border-radius: $base-border-radius * 1; // 4px
|
|
3
|
+
$md-border-radius: $base-border-radius * 2; // 8px
|
|
4
|
+
$lg-border-radius: $base-border-radius * 3; // 12px
|
|
5
|
+
$xl-border-radius: $base-border-radius * 4; // 16px
|
|
6
|
+
|
|
7
|
+
$sm-box-shadow: 0 0 rem(24px) 0 rgba($box-shadow-color, 0.075);
|
|
8
|
+
$md-box-shadow: 0 0 rem(48px) 0 rgba($box-shadow-color, 0.075);
|
|
9
|
+
$lg-box-shadow: 0 0 rem(96px) 0 rgba($box-shadow-color, 0.075);
|
|
10
|
+
|
|
11
|
+
// typography
|
|
12
|
+
$figtree: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif; // private
|
|
13
|
+
$font-family: $figtree;
|
|
14
|
+
|
|
15
|
+
$h1-font-size: $base-font-size * 2; // 32px
|
|
16
|
+
$h2-font-size: $base-font-size * 1.75; // 28px
|
|
17
|
+
$h3-font-size: $base-font-size * 1.4; // 24px
|
|
18
|
+
$h4-font-size: $base-font-size * 1.25; // 20px
|
|
19
|
+
$h5-font-size: $base-font-size * 1.125; // 18px
|
|
20
|
+
$h6-font-size: $base-font-size * 1; // 16px
|
|
21
|
+
|
|
22
|
+
$lg-font-size: $base-font-size * 1; // 16px
|
|
23
|
+
$md-font-size: $base-font-size * 0.875; // 14px
|
|
24
|
+
$sm-font-size: $base-font-size * 0.75; // 12px
|
|
25
|
+
|
|
26
|
+
// buttons + forms
|
|
27
|
+
$lg-inputs-btn-padding-y: $spacer * 3; // 12px
|
|
28
|
+
$lg-inputs-btn-padding-x: $spacer * 4; // 16px
|
|
29
|
+
$md-inputs-btn-padding-y: $spacer * 2.75; // 11px
|
|
30
|
+
$md-inputs-btn-padding-x: $spacer * 4; // 16px
|
|
31
|
+
$sm-inputs-btn-padding-y: $spacer * 2.5; // 10px
|
|
32
|
+
$sm-inputs-btn-padding-x: $spacer * 3.5; // 14px
|
|
33
|
+
|
|
34
|
+
$lg-inputs-btn-border-radius: $base-border-radius * 2.5; // 10px
|
|
35
|
+
$md-inputs-btn-border-radius: $base-border-radius * 2.25; // 9px
|
|
36
|
+
$sm-inputs-btn-border-radius: $base-border-radius * 2; // 8px
|
|
37
|
+
|
|
38
|
+
// buttons
|
|
39
|
+
$lg-btn-padding-x: $spacer * 6; // 24px
|
|
40
|
+
$md-btn-padding-x: $spacer * 5.5; // 22px
|
|
41
|
+
$sm-btn-padding-x: $spacer * 5; // 20px
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
|
|
3
|
+
&-fluid {
|
|
4
|
+
|
|
5
|
+
@include media-breakpoint-up(md) {
|
|
6
|
+
padding-left: $spacer-6;
|
|
7
|
+
padding-right: $spacer-6;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include media-breakpoint-up(lg) {
|
|
11
|
+
padding-left: $spacer-7;
|
|
12
|
+
padding-right: $spacer-7;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include media-breakpoint-up(xl) {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
gap: $spacer-9;
|
|
20
|
+
padding-left: $spacer-4;
|
|
21
|
+
padding-right: $spacer-9;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
header {
|
|
2
|
+
align-items: start;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: $spacer-4;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
margin-bottom: $spacer-4 !important;
|
|
7
|
+
|
|
8
|
+
h1 {
|
|
9
|
+
-webkit-box-orient: vertical;
|
|
10
|
+
-webkit-line-clamp: 2;
|
|
11
|
+
display: -webkit-box;
|
|
12
|
+
margin-bottom: 0 !important;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// swop
|
|
2
|
+
@import "swop/swop";
|
|
3
|
+
|
|
4
|
+
// theme colors
|
|
5
|
+
@import "swop/swop-themes/swop-simple/swop-colors/swop-amethyst";
|
|
6
|
+
|
|
7
|
+
// core
|
|
8
|
+
@import "swop/swop-core/swop-variables";
|
|
9
|
+
|
|
10
|
+
// theme core
|
|
11
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-variables";
|
|
12
|
+
|
|
13
|
+
// core
|
|
14
|
+
@import "swop/swop-core/swop-bootstrap-variables";
|
|
15
|
+
|
|
16
|
+
// theme core
|
|
17
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-bootstrap-variables";
|
|
18
|
+
|
|
19
|
+
// fontawesome
|
|
20
|
+
@import "rails_admin/font-awesome";
|
|
21
|
+
|
|
22
|
+
// bootstrap
|
|
23
|
+
@import "rails_admin/bootstrap/bootstrap";
|
|
24
|
+
|
|
25
|
+
// base
|
|
26
|
+
@import "swop/swop-base/swop-typography";
|
|
27
|
+
|
|
28
|
+
// theme base
|
|
29
|
+
@import "swop/swop-themes/swop-simple/swop-simple-base";
|
|
30
|
+
|
|
31
|
+
// theme layouts
|
|
32
|
+
@import "swop/swop-themes/swop-simple/swop-simple-layouts";
|
|
33
|
+
|
|
34
|
+
// theme components
|
|
35
|
+
@import "swop/swop-themes/swop-simple/swop-simple-components";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-alerts";
|
|
2
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-badges";
|
|
3
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-buttons";
|
|
4
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-dropdowns";
|
|
5
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-filters";
|
|
6
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-forms";
|
|
7
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-images";
|
|
8
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-input-groups";
|
|
9
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-loading";
|
|
10
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-navbar";
|
|
11
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-navs";
|
|
12
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-offcanvas";
|
|
13
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-pagination";
|
|
14
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-progress";
|
|
15
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-sidebars";
|
|
16
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-tables";
|
|
17
|
+
@import "swop/swop-themes/swop-simple/swop-components/swop-tiles";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// swop
|
|
2
|
+
@import "swop/swop";
|
|
3
|
+
|
|
4
|
+
// theme colors
|
|
5
|
+
@import "swop/swop-themes/swop-simple/swop-colors/swop-dark";
|
|
6
|
+
|
|
7
|
+
// core
|
|
8
|
+
@import "swop/swop-core/swop-variables";
|
|
9
|
+
|
|
10
|
+
// theme core
|
|
11
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-variables";
|
|
12
|
+
|
|
13
|
+
// core
|
|
14
|
+
@import "swop/swop-core/swop-bootstrap-variables";
|
|
15
|
+
|
|
16
|
+
// theme core
|
|
17
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-bootstrap-variables";
|
|
18
|
+
|
|
19
|
+
// fontawesome
|
|
20
|
+
@import "rails_admin/font-awesome";
|
|
21
|
+
|
|
22
|
+
// bootstrap
|
|
23
|
+
@import "rails_admin/bootstrap/bootstrap";
|
|
24
|
+
|
|
25
|
+
// base
|
|
26
|
+
@import "swop/swop-base/swop-typography";
|
|
27
|
+
|
|
28
|
+
// theme base
|
|
29
|
+
@import "swop/swop-themes/swop-simple/swop-simple-base";
|
|
30
|
+
|
|
31
|
+
// theme layouts
|
|
32
|
+
@import "swop/swop-themes/swop-simple/swop-simple-layouts";
|
|
33
|
+
|
|
34
|
+
// theme components
|
|
35
|
+
@import "swop/swop-themes/swop-simple/swop-simple-components";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// swop
|
|
2
|
+
@import "swop/swop";
|
|
3
|
+
|
|
4
|
+
// theme colors
|
|
5
|
+
@import "swop/swop-themes/swop-simple/swop-colors/swop-forest";
|
|
6
|
+
|
|
7
|
+
// core
|
|
8
|
+
@import "swop/swop-core/swop-variables";
|
|
9
|
+
|
|
10
|
+
// theme core
|
|
11
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-variables";
|
|
12
|
+
|
|
13
|
+
// core
|
|
14
|
+
@import "swop/swop-core/swop-bootstrap-variables";
|
|
15
|
+
|
|
16
|
+
// theme core
|
|
17
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-bootstrap-variables";
|
|
18
|
+
|
|
19
|
+
// fontawesome
|
|
20
|
+
@import "rails_admin/font-awesome";
|
|
21
|
+
|
|
22
|
+
// bootstrap
|
|
23
|
+
@import "rails_admin/bootstrap/bootstrap";
|
|
24
|
+
|
|
25
|
+
// base
|
|
26
|
+
@import "swop/swop-base/swop-typography";
|
|
27
|
+
|
|
28
|
+
// theme base
|
|
29
|
+
@import "swop/swop-themes/swop-simple/swop-simple-base";
|
|
30
|
+
|
|
31
|
+
// theme layouts
|
|
32
|
+
@import "swop/swop-themes/swop-simple/swop-simple-layouts";
|
|
33
|
+
|
|
34
|
+
// theme components
|
|
35
|
+
@import "swop/swop-themes/swop-simple/swop-simple-components";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// swop
|
|
2
|
+
@import "swop/swop";
|
|
3
|
+
|
|
4
|
+
// theme colors
|
|
5
|
+
@import "swop/swop-themes/swop-simple/swop-colors/swop-light";
|
|
6
|
+
|
|
7
|
+
// core
|
|
8
|
+
@import "swop/swop-core/swop-variables";
|
|
9
|
+
|
|
10
|
+
// theme core
|
|
11
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-variables";
|
|
12
|
+
|
|
13
|
+
// core
|
|
14
|
+
@import "swop/swop-core/swop-bootstrap-variables";
|
|
15
|
+
|
|
16
|
+
// theme core
|
|
17
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-bootstrap-variables";
|
|
18
|
+
|
|
19
|
+
// fontawesome
|
|
20
|
+
@import "rails_admin/font-awesome";
|
|
21
|
+
|
|
22
|
+
// bootstrap
|
|
23
|
+
@import "rails_admin/bootstrap/bootstrap";
|
|
24
|
+
|
|
25
|
+
// base
|
|
26
|
+
@import "swop/swop-base/swop-typography";
|
|
27
|
+
|
|
28
|
+
// theme base
|
|
29
|
+
@import "swop/swop-themes/swop-simple/swop-simple-base";
|
|
30
|
+
|
|
31
|
+
// theme layouts
|
|
32
|
+
@import "swop/swop-themes/swop-simple/swop-simple-layouts";
|
|
33
|
+
|
|
34
|
+
// theme components
|
|
35
|
+
@import "swop/swop-themes/swop-simple/swop-simple-components";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// swop
|
|
2
|
+
@import "swop/swop";
|
|
3
|
+
|
|
4
|
+
// theme colors
|
|
5
|
+
@import "swop/swop-themes/swop-simple/swop-colors/swop-royal";
|
|
6
|
+
|
|
7
|
+
// core
|
|
8
|
+
@import "swop/swop-core/swop-variables";
|
|
9
|
+
|
|
10
|
+
// theme core
|
|
11
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-variables";
|
|
12
|
+
|
|
13
|
+
// core
|
|
14
|
+
@import "swop/swop-core/swop-bootstrap-variables";
|
|
15
|
+
|
|
16
|
+
// theme core
|
|
17
|
+
@import "swop/swop-themes/swop-simple/swop-core/swop-bootstrap-variables";
|
|
18
|
+
|
|
19
|
+
// fontawesome
|
|
20
|
+
@import "rails_admin/font-awesome";
|
|
21
|
+
|
|
22
|
+
// bootstrap
|
|
23
|
+
@import "rails_admin/bootstrap/bootstrap";
|
|
24
|
+
|
|
25
|
+
// base
|
|
26
|
+
@import "swop/swop-base/swop-typography";
|
|
27
|
+
|
|
28
|
+
// theme base
|
|
29
|
+
@import "swop/swop-themes/swop-simple/swop-simple-base";
|
|
30
|
+
|
|
31
|
+
// theme layouts
|
|
32
|
+
@import "swop/swop-themes/swop-simple/swop-simple-layouts";
|
|
33
|
+
|
|
34
|
+
// theme components
|
|
35
|
+
@import "swop/swop-themes/swop-simple/swop-simple-components";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<% current_page = current_page %>
|
|
2
|
+
|
|
3
|
+
<% if Swop.configuration.style == :simple %>
|
|
4
|
+
<%= render partial: "kaminari/ra-twitter-bootstrap/swop-simple/next_page", locals: { current_page: current_page, url: url } %>
|
|
5
|
+
<% else %>
|
|
6
|
+
<%= render partial: "kaminari/ra-twitter-bootstrap/default/next_page", locals: { current_page: current_page, url: url } %>
|
|
7
|
+
<% end %>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<% if Swop.configuration.style == :simple %>
|
|
2
|
+
<%= render partial: "kaminari/ra-twitter-bootstrap/swop-simple/prev_page", locals: { current_page: current_page, url: url } %>
|
|
3
|
+
<% else %>
|
|
4
|
+
<%= render partial: "kaminari/ra-twitter-bootstrap/default/prev_page", locals: { current_page: current_page, url: url } %>
|
|
5
|
+
<% end %>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<% if current_page.last? %>
|
|
2
|
+
<li class="page-item next disabled">
|
|
3
|
+
<%= link_to raw(t 'admin.pagination.next'), '#', class: 'page-link' %>
|
|
4
|
+
</li>
|
|
5
|
+
<% else %>
|
|
6
|
+
<li class="page-item next">
|
|
7
|
+
<%= link_to raw(t 'admin.pagination.next'), url, class: 'page-link' %>
|
|
8
|
+
</li>
|
|
9
|
+
<% end %>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<% if current_page.first? %>
|
|
2
|
+
<li class="page-item prev disabled">
|
|
3
|
+
<%= link_to raw(t 'admin.pagination.previous'), '#', class: 'page-link' %>
|
|
4
|
+
</li>
|
|
5
|
+
<% else %>
|
|
6
|
+
<li class="page-item prev">
|
|
7
|
+
<%= link_to raw(t 'admin.pagination.previous'), url, class: 'page-link' %>
|
|
8
|
+
</li>
|
|
9
|
+
<% end %>
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
<% if Swop.configuration.style == :simple %>
|
|
2
|
+
<%= render partial: "layouts/rails_admin/swop-simple/sidebar_navigation" %>
|
|
3
|
+
<% else %>
|
|
4
|
+
<%= render partial: "layouts/rails_admin/default/sidebar_navigation" %>
|
|
5
|
+
<% end %>
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
7
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
8
|
-
<link href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap" rel="stylesheet">
|
|
9
|
-
<title>
|
|
10
|
-
<%= "#{@abstract_model.try(:pretty_name) || @page_name} | #{[_get_plugin_name[0] || 'Rails', _get_plugin_name[1] || 'Admin'].join(' ')}" %>
|
|
11
|
-
</title>
|
|
12
|
-
</head>
|
|
13
|
-
<body class="rails_admin">
|
|
14
|
-
<div data-i18n-options="<%= I18n.t("admin.js").to_json %>" id="admin-js"></div>
|
|
15
|
-
<!-- To-DO: Review this -->
|
|
16
|
-
<div class="badge bg-warning" id="loading" style="display:none; position:fixed; right:20px; bottom:20px; z-index:100000">
|
|
17
|
-
<%= t('admin.loading') %>
|
|
18
|
-
</div>
|
|
19
|
-
<%= render "layouts/rails_admin/sidebar_navigation" %>
|
|
20
|
-
<div class="container-fluid position-relative">
|
|
21
|
-
<%= render template: 'layouts/rails_admin/content' %>
|
|
22
|
-
</div>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
|
1
|
+
<% if Swop.configuration.style == :simple %>
|
|
2
|
+
<%= render partial: "layouts/rails_admin/swop-simple/application" %>
|
|
3
|
+
<% else %>
|
|
4
|
+
<%= render partial: "layouts/rails_admin/default/application" %>
|
|
5
|
+
<% end %>
|