activeadmin_materialize_theme 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +26 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/config/activeadmin_materialize_theme_manifest.js +1 -0
  6. data/app/assets/javascripts/activeadmin_materialize_theme.js +65 -0
  7. data/app/assets/javascripts/materialize/anime.min.js +34 -0
  8. data/app/assets/javascripts/materialize/autocomplete.js +450 -0
  9. data/app/assets/javascripts/materialize/bin/materialize.js +12374 -0
  10. data/app/assets/javascripts/materialize/bin/materialize.min.js +6 -0
  11. data/app/assets/javascripts/materialize/buttons.js +354 -0
  12. data/app/assets/javascripts/materialize/cards.js +40 -0
  13. data/app/assets/javascripts/materialize/carousel.js +717 -0
  14. data/app/assets/javascripts/materialize/cash.js +960 -0
  15. data/app/assets/javascripts/materialize/characterCounter.js +136 -0
  16. data/app/assets/javascripts/materialize/chips.js +481 -0
  17. data/app/assets/javascripts/materialize/collapsible.js +275 -0
  18. data/app/assets/javascripts/materialize/component.js +44 -0
  19. data/app/assets/javascripts/materialize/datepicker.js +975 -0
  20. data/app/assets/javascripts/materialize/dropdown.js +617 -0
  21. data/app/assets/javascripts/materialize/forms.js +275 -0
  22. data/app/assets/javascripts/materialize/global.js +427 -0
  23. data/app/assets/javascripts/materialize/materialbox.js +453 -0
  24. data/app/assets/javascripts/materialize/modal.js +382 -0
  25. data/app/assets/javascripts/materialize/parallax.js +138 -0
  26. data/app/assets/javascripts/materialize/pushpin.js +145 -0
  27. data/app/assets/javascripts/materialize/range.js +263 -0
  28. data/app/assets/javascripts/materialize/scrollspy.js +295 -0
  29. data/app/assets/javascripts/materialize/select.js +432 -0
  30. data/app/assets/javascripts/materialize/sidenav.js +580 -0
  31. data/app/assets/javascripts/materialize/slider.js +359 -0
  32. data/app/assets/javascripts/materialize/tabs.js +402 -0
  33. data/app/assets/javascripts/materialize/tapTarget.js +314 -0
  34. data/app/assets/javascripts/materialize/timepicker.js +647 -0
  35. data/app/assets/javascripts/materialize/toasts.js +310 -0
  36. data/app/assets/javascripts/materialize/tooltip.js +303 -0
  37. data/app/assets/javascripts/materialize/waves.js +335 -0
  38. data/app/assets/stylesheets/activeadmin_materialize_theme/base.scss +107 -0
  39. data/app/assets/stylesheets/activeadmin_materialize_theme/components/footer.scss +18 -0
  40. data/app/assets/stylesheets/activeadmin_materialize_theme/components/form.scss +140 -0
  41. data/app/assets/stylesheets/activeadmin_materialize_theme/components/header.scss +61 -0
  42. data/app/assets/stylesheets/activeadmin_materialize_theme/components/layout_index.scss +83 -0
  43. data/app/assets/stylesheets/activeadmin_materialize_theme/components/layout_show.scss +56 -0
  44. data/app/assets/stylesheets/activeadmin_materialize_theme/components/sidebar.scss +37 -0
  45. data/app/assets/stylesheets/activeadmin_materialize_theme/components/title_bar.scss +43 -0
  46. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/LICENSE +21 -0
  47. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/README.md +91 -0
  48. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_badges.scss +55 -0
  49. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_buttons.scss +322 -0
  50. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_cards.scss +195 -0
  51. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_carousel.scss +90 -0
  52. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_chips.scss +90 -0
  53. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_collapsible.scss +91 -0
  54. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_color-classes.scss +32 -0
  55. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_color-variables.scss +370 -0
  56. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_datepicker.scss +191 -0
  57. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_dropdown.scss +85 -0
  58. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_global.scss +769 -0
  59. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_grid.scss +156 -0
  60. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_icons-material-design.scss +5 -0
  61. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_materialbox.scss +43 -0
  62. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_modal.scss +94 -0
  63. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_navbar.scss +208 -0
  64. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_normalize.scss +447 -0
  65. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_preloader.scss +334 -0
  66. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_pulse.scss +34 -0
  67. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_sidenav.scss +216 -0
  68. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_slider.scss +92 -0
  69. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_table_of_contents.scss +33 -0
  70. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_tabs.scss +99 -0
  71. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_tapTarget.scss +103 -0
  72. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_timepicker.scss +183 -0
  73. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_toast.scss +58 -0
  74. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_tooltip.scss +32 -0
  75. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_transitions.scss +13 -0
  76. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_typography.scss +60 -0
  77. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_variables.scss +349 -0
  78. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_waves.scss +114 -0
  79. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_checkboxes.scss +200 -0
  80. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_file-input.scss +44 -0
  81. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_forms.scss +22 -0
  82. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_input-fields.scss +354 -0
  83. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_radio-buttons.scss +115 -0
  84. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_range.scss +161 -0
  85. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_select.scss +180 -0
  86. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_switches.scss +89 -0
  87. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/materialize.scss +41 -0
  88. data/app/assets/stylesheets/activeadmin_materialize_theme/normalize.css +349 -0
  89. data/app/assets/stylesheets/activeadmin_materialize_theme/theme.scss +13 -0
  90. data/app/assets/stylesheets/activeadmin_materialize_theme/variables.scss +14 -0
  91. data/lib/activeadmin_materialize_theme.rb +6 -0
  92. data/lib/activeadmin_materialize_theme/engine.rb +7 -0
  93. data/lib/activeadmin_materialize_theme/version.rb +5 -0
  94. metadata +149 -0
@@ -0,0 +1,140 @@
1
+ body.active_admin {
2
+ .filter_form {
3
+ input {
4
+ font-size: 1.4rem;
5
+ }
6
+ }
7
+
8
+ .formtastic {
9
+ padding: 1rem;
10
+
11
+ fieldset {
12
+ @extend .row;
13
+
14
+ border: none;
15
+ margin: 0;
16
+ }
17
+
18
+ .actions ol, .inputs ol {
19
+ list-style-type: none;
20
+ margin: 0;
21
+ padding: 0;
22
+ }
23
+
24
+ .actions {
25
+ margin-top: 1.4rem;
26
+ padding: 0;
27
+
28
+ a {
29
+ @extend .btn;
30
+ }
31
+
32
+ li {
33
+ display: inline-block;
34
+ margin-right: 1rem;
35
+ }
36
+
37
+ .cancel >a {
38
+ @extend .grey;
39
+ }
40
+ }
41
+
42
+ .button {
43
+ @extend .btn;
44
+ }
45
+
46
+ .datetime_select {
47
+ .fragments {
48
+ padding-bottom: 0;
49
+ }
50
+
51
+ .fragments-group {
52
+ @extend .row;
53
+ }
54
+
55
+ .fragment {
56
+ @extend .col, .s4;
57
+ }
58
+ }
59
+
60
+ .field_with_errors {
61
+ >input {
62
+ border-bottom: 1px solid color('materialize-red', 'base');
63
+ }
64
+
65
+ >label {
66
+ color: color('materialize-red', 'base');
67
+ }
68
+ }
69
+
70
+ .inline-errors {
71
+ color: color('materialize-red', 'base');
72
+ margin: 0;
73
+ }
74
+
75
+ >.inputs {
76
+ @extend .card;
77
+
78
+ padding-bottom: 1rem;
79
+ padding-top: 3rem;
80
+ position: relative;
81
+
82
+ >legend {
83
+ display: block;
84
+ font-size: 1.8rem;
85
+ left: 1rem;
86
+ position: absolute;
87
+ top: 1rem;
88
+ }
89
+ }
90
+
91
+ .input-field {
92
+ margin-top: 3rem;
93
+
94
+ &.boolean > label {
95
+ position: relative;
96
+ }
97
+
98
+ &.file, &.select {
99
+ >label {
100
+ margin-top: -3rem;
101
+ }
102
+ }
103
+
104
+ label {
105
+ font-size: 1.2rem;
106
+ }
107
+
108
+ input, textarea {
109
+ font-size: 1.4rem;
110
+ }
111
+ }
112
+
113
+ .has_many_container {
114
+ @extend .card;
115
+
116
+ margin: 1.4rem -0.7rem 0 -0.8rem;
117
+ padding: 1rem;
118
+ position: relative;
119
+
120
+ >h3 {
121
+ font-size: 2.2rem;
122
+ margin: 0.4rem 0 0 0;
123
+ }
124
+
125
+ >.has_many_add {
126
+ background-color: color('cyan', 'base');
127
+ margin-top: 0.4rem;
128
+ }
129
+
130
+ .has_many_remove {
131
+ background-color: color('materialize-red', 'base');
132
+ }
133
+
134
+ >.inputs {
135
+ margin: 0;
136
+ padding: 0.8rem;
137
+ }
138
+ }
139
+ }
140
+ }
@@ -0,0 +1,61 @@
1
+ body.active_admin .header {
2
+ @extend .row;
3
+
4
+ background: $header-bg-color;
5
+ margin-bottom: 0;
6
+
7
+ a {
8
+ color: $header-fg-color;
9
+ }
10
+
11
+ li {
12
+ display: inline-block;
13
+ }
14
+
15
+ #site_title {
16
+ @extend .col, .s3;
17
+
18
+ color: $header-fg-color;
19
+ font-size: 2.6rem;
20
+ height: 6.4rem;
21
+ line-height: 6.4rem;
22
+ margin: 0;
23
+ padding: 0 1.6rem;
24
+ }
25
+
26
+ #tabs {
27
+ @extend .col, .s9, .right-align;
28
+
29
+ height: 6.4rem;
30
+ line-height: 6.4rem;
31
+
32
+ .menu_item {
33
+ &.current >a {
34
+ background: darken($primary-color, 15%);
35
+ }
36
+
37
+ >a {
38
+ padding-left: 1rem;
39
+ padding-right: 1rem;
40
+ display: inline-block;
41
+ }
42
+ }
43
+ }
44
+
45
+ #utility_nav {
46
+ @extend .col, .s12, .right-align;
47
+
48
+ background: $titlebar-bg-color;
49
+ height: 2.2rem;
50
+ line-height: 2.2rem;
51
+
52
+ a {
53
+ font-size: 1.1rem;
54
+ padding: 0 0.8rem;
55
+ }
56
+ }
57
+
58
+ .tabs {
59
+ background: $header-bg-color;
60
+ }
61
+ }
@@ -0,0 +1,83 @@
1
+ body.active_admin.index {
2
+ .index_as_table {
3
+ >table {
4
+ @extend .responsive-table, .striped;
5
+
6
+ font-size: 1.3rem;
7
+
8
+ th {
9
+ white-space: nowrap;
10
+ }
11
+
12
+ .col {
13
+ float: none !important;
14
+ }
15
+ }
16
+
17
+ thead >tr {
18
+ border-bottom: 1px solid #aaa;
19
+ }
20
+ }
21
+
22
+ .paginated_collection {
23
+ @extend .row;
24
+
25
+ margin-bottom: 0;
26
+ }
27
+
28
+ .table_actions > a {
29
+ padding: 0 0.5rem;
30
+ }
31
+
32
+ .table_tools {
33
+ @extend .row;
34
+
35
+ >.batch_actions_selector {
36
+ @extend .col, .s12;
37
+ }
38
+ }
39
+
40
+ #collection_selection {
41
+ @extend .card-content;
42
+ }
43
+
44
+ #index_footer {
45
+ @extend .col, .s12;
46
+
47
+ margin-top: 1rem;
48
+
49
+ .download_links {
50
+ display: inline-block;
51
+ float: right;
52
+ }
53
+
54
+ .pagination_information {
55
+ display: inline-block;
56
+ }
57
+ }
58
+
59
+ #main_content {
60
+ @extend .card;
61
+ }
62
+
63
+ #sidebar {
64
+ @extend .col, .s3;
65
+
66
+ padding-left: 0 !important;
67
+ }
68
+
69
+ &.admin_comments {
70
+ .paginated_collection {
71
+ padding: 0 1.5rem 1.5rem 1.5rem;
72
+ }
73
+
74
+ .table_tools {
75
+ padding: 0.5rem 1.5rem 0 1.5rem;
76
+ margin-bottom: 0;
77
+ }
78
+
79
+ .scopes li {
80
+ display: inline-block;
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,56 @@
1
+ body.active_admin.show {
2
+ .active_admin_comment {
3
+ margin-top: 1rem;
4
+ }
5
+
6
+ #main_content {
7
+ @extend .card;
8
+
9
+ .attributes_table {
10
+ tr >th {
11
+ width: 30rem;
12
+ }
13
+
14
+ td, th {
15
+ padding: 0.5rem;
16
+ }
17
+ }
18
+
19
+ .comments {
20
+ h4 {
21
+ font-size: 1.6rem;
22
+ margin: 0;
23
+ }
24
+
25
+ [data-method="delete"] {
26
+ color: color('materialize-red', 'base');
27
+ }
28
+
29
+ .active_admin_comment {
30
+ font-size: 1.4rem;
31
+ }
32
+
33
+ .active_admin_comment_meta >a {
34
+ float: right;
35
+ padding: 0 1rem;
36
+ }
37
+
38
+ .active_admin_comment_meta >span {
39
+ float: right;
40
+ }
41
+
42
+ .pagination_information {
43
+ margin-top: 1.5rem;
44
+ }
45
+ }
46
+
47
+ >.comments, >.panel {
48
+ @extend .card-content;
49
+ }
50
+
51
+ h3 {
52
+ font-size: 2rem;
53
+ margin: 0.5rem 0 1.5rem 0;
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,37 @@
1
+ body.active_admin .sidebar {
2
+ form >.input {
3
+ margin-top: 1rem;
4
+ }
5
+
6
+ h3 {
7
+ font-size: 2.2rem;
8
+ margin: 0;
9
+ padding: 24px 24px 0 24px;
10
+ }
11
+
12
+ label {
13
+ font-size: 1.2rem;
14
+ }
15
+
16
+ .buttons {
17
+ margin-top: 1.5rem;
18
+
19
+ >[type="submit"] {
20
+ @extend .btn, .btn-small;
21
+ }
22
+
23
+ >.clear_filters_btn {
24
+ padding-left: 1rem;
25
+ }
26
+ }
27
+
28
+ .sidebar_section {
29
+ @extend .card;
30
+
31
+ >.panel_contents {
32
+ @extend .card-content;
33
+
34
+ padding-top: 1rem;
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,43 @@
1
+ body.active_admin .title_bar {
2
+ @extend .row;
3
+
4
+ background: $titlebar-bg-color;
5
+ margin-bottom: 0;
6
+ padding: 1rem;
7
+
8
+ .action_item >a {
9
+ @extend .btn, .btn-small;
10
+ }
11
+
12
+ .breadcrumb >a {
13
+ color: $titlebar-fg-link-color;
14
+ font-size: 1.4rem;
15
+ }
16
+
17
+ .breadcrumb_sep {
18
+ color: $titlebar-fg-color;
19
+ font-size: 1.4rem;
20
+ }
21
+
22
+ #titlebar_left {
23
+ @extend .col, .s6;
24
+
25
+ color: $titlebar-fg-color;
26
+ font-size: 1.4rem;
27
+
28
+ h2 {
29
+ display: inline-block;
30
+ font-size: 1.6rem;
31
+ line-height: 3.3rem;
32
+ margin: 0;
33
+ }
34
+ }
35
+
36
+ #titlebar_right {
37
+ @extend .col, .s6;
38
+
39
+ .action_items {
40
+ @extend .right-align;
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-2018 Materialize
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.