activeadmin_materialize_theme 0.1.2 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6549ff445c844c97a9da951f609bc9dc831a2d4f2105e79821cc35d628f0c35b
4
- data.tar.gz: e0b3ee1c6de8d2ec07cf450b694f1c82f96dd7749d39a88ad282dd697693e64c
3
+ metadata.gz: 015f2ca110a8d6b4ba1f6f0c07acec5947b64d02c85eee983095c2622e0559d1
4
+ data.tar.gz: 68ee4d6d6cb43173ff0b4bc3ba4b5a519e2f0352ecf7d815cfbe489d6fbc7b97
5
5
  SHA512:
6
- metadata.gz: 4f7d306351a90d3f58526c5cc4f373226649fa9ddae22aa7cb94d8aae923aabff227bf891810be8b536d7f2f367d00cd7029863e10e07c84552e52f3fd166d63
7
- data.tar.gz: 0dd6a6f8710dc9b980cf0791348ad9d898b7fa26ece978194f6f36dff7ebf0c660b73db0c76bd84288c357b11077b148d50d4905eacb5fc8f93fdfd1aa9eb1ce
6
+ metadata.gz: 23c2e79b69519d9a32b5d0c2936af55a30e5ccf333b07ee4b91ab6f81a99181210fa5fc93aa9964d3ae4a87093d4d8eb6e8cd6bc6f3d5526ec064c55c14f6360
7
+ data.tar.gz: 8d53bf464819fc5458865a13ef0ce8f6419ff828b9101189fda8f6f3c1141d181c45928e9e49de564fcf3cc0b7268795e26d28e8952c39bf392882ce8f9fbe26
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Active Admin Materialize Theme
2
- A theme for Active Admin based on Materialize framework.
2
+ [![Gem Version](https://badge.fury.io/rb/activeadmin_materialize_theme.svg)](https://badge.fury.io/rb/activeadmin_materialize_theme) [![CircleCI](https://circleci.com/gh/blocknotes/activeadmin_materialize_theme.svg?style=svg)](https://circleci.com/gh/blocknotes/activeadmin_materialize_theme)
3
3
 
4
- > NOTICE: this is still a beta version
4
+ A theme for Active Admin based on Materialize framework.
5
5
 
6
6
  ## Installation
7
7
  - Add to the Gemfile: `gem 'activeadmin_materialize_theme'` (and execute `bundle`)
@@ -9,18 +9,29 @@ A theme for Active Admin based on Materialize framework.
9
9
  ```scss
10
10
  @import 'activeadmin_materialize_theme/theme';
11
11
  ```
12
+ - (optionally) Enable Roboto font:
13
+ ```scss
14
+ @import 'activeadmin_materialize_theme/roboto';
15
+ ```
12
16
  - Add at the end of your Active Admin javascripts (_app/assets/javascripts/active_admin.js_):
13
17
  ```js
14
18
  //= require activeadmin_materialize_theme
15
19
  ```
16
20
 
21
+ ## Screenshots
22
+ Index page (with scopes and filters):
23
+ ![index_page](extra/screenshot.png)
24
+
25
+ Edit page (with a nested form):
26
+ ![edit_page](extra/screenshot2.png)
27
+
17
28
  ## Do you like it? Star it!
18
29
  If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
19
30
 
20
- Take a look at [other Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) that I made if you are curious.
31
+ Take a look at [other Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) if you are curious.
21
32
 
22
33
  ## Contributors
23
- [Mattia Roccoberton](http://blocknot.es): author
34
+ - [Mattia Roccoberton](http://blocknot.es): author
24
35
 
25
36
  ## License
26
37
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -2,9 +2,9 @@
2
2
 
3
3
  (function () {
4
4
  // --- functions -------------------------------------------------------------
5
- function addClassToElements(class_name, elements) {
5
+ function addClassToElements(elements, class_name) {
6
6
  document.querySelectorAll(elements).forEach(
7
- (el) => el.className += ' ' + class_name
7
+ (el) => el.classList.add(class_name)
8
8
  )
9
9
  }
10
10
 
@@ -13,10 +13,13 @@
13
13
  const checkbox = el.querySelector('[type="checkbox"]')
14
14
  const label = document.createElement('label')
15
15
  const span = document.createElement('span')
16
+ span.className = 'aa_mt_checkbox'
16
17
  label.appendChild(span)
17
18
  el.appendChild(label)
18
19
  label.insertBefore(checkbox, span)
19
20
  })
21
+ const selector = 'body.active_admin .resource_selection_toggle_cell >label, body.active_admin .choices >label'
22
+ document.querySelectorAll(selector).forEach((el) => prepareCheckbox(el))
20
23
  }
21
24
 
22
25
  function initDropdowns() {
@@ -34,32 +37,64 @@
34
37
  }
35
38
 
36
39
  function initFormFields() {
37
- addClassToElements('input-field', 'body.active_admin .formtastic .input')
38
- addClassToElements('materialize-textarea', 'body.active_admin .formtastic textarea')
39
- document.querySelectorAll('body.active_admin .input-field.boolean > label').forEach((el) => {
40
- const text = el.lastChild
41
- if (text.nodeType == Node.TEXT_NODE) {
42
- const span = document.createElement('span')
43
- span.innerHTML = text.textContent
44
- text.replaceWith(span)
45
- }
40
+ addClassToElements('body.active_admin .formtastic .input', 'input-field')
41
+ addClassToElements('body.active_admin .formtastic textarea', 'materialize-textarea')
42
+ document.querySelectorAll('body.active_admin .input-field.boolean > label').forEach((el) => prepareCheckbox(el))
43
+ }
44
+
45
+ function initNestedMenu() {
46
+ let nested_menu_cnt = 0
47
+ addClassToElements('body.active_admin .menu_item.has_nested >ul', 'dropdown-content')
48
+ document.querySelectorAll('.menu_item.has_nested').forEach((el) => {
49
+ nested_menu_cnt += 1
50
+ el.childNodes.forEach((node) => {
51
+ if(node.tagName == 'A') {
52
+ node.className += ' dropdown-trigger'
53
+ node.setAttribute('data-target', `nested-menu-${nested_menu_cnt}`)
54
+ }
55
+ else if(node.tagName == 'UL') {
56
+ node.setAttribute('id', `nested-menu-${nested_menu_cnt}`)
57
+ }
58
+ })
46
59
  })
47
60
  }
48
61
 
62
+ function initTabs() {
63
+ document.querySelectorAll('body.active_admin .formtastic >.tabs').forEach(
64
+ (el) => el.classList.remove('tabs')
65
+ )
66
+ addClassToElements('body.active_admin .formtastic .nav-tabs', 'tabs')
67
+ addClassToElements('body.active_admin .formtastic .nav-tabs >li', 'tab')
68
+ }
69
+
70
+ function prepareCheckbox(el) {
71
+ const text = el.lastChild
72
+ if (text.nodeType == Node.TEXT_NODE) {
73
+ const span = document.createElement('span')
74
+ span.innerHTML = text.textContent
75
+ span.className = 'aa_mt_checkbox'
76
+ text.replaceWith(span)
77
+ }
78
+ }
79
+
49
80
  function setup() {
50
- addClassToElements('no-autoinit', 'body.active_admin #header >.tabs')
81
+ addClassToElements('body.active_admin #header >.tabs', 'no-autoinit')
51
82
  initCheckboxes()
52
83
  initDropdowns()
53
84
  initFormFields()
85
+ initNestedMenu()
86
+ initTabs()
54
87
  M.AutoInit()
55
88
  }
56
89
 
57
90
  // --- events ----------------------------------------------------------------
58
91
  document.addEventListener('DOMContentLoaded', () => {
59
92
  setup()
60
- })
61
-
62
- $(document).on('has_many_add:after', '.has_many_container', () => {
63
- setup()
93
+ document.querySelectorAll('body.active_admin .has_many_container').forEach((el) => {
94
+ const observer = new MutationObserver((_mutationsList, _observer) => {
95
+ initFormFields()
96
+ })
97
+ observer.observe(el, { childList: true, subtree: true });
98
+ })
64
99
  })
65
100
  })()
@@ -10,16 +10,38 @@ body.active_admin {
10
10
  @extend .btn;
11
11
  }
12
12
 
13
+ .aa_mt_checkbox {
14
+ padding-left: 2.5rem;
15
+ padding-right: 1.5rem;
16
+ vertical-align: middle;
17
+ }
18
+
13
19
  .col-selectable {
14
20
  text-align: center;
15
21
  }
16
22
 
17
23
  .dropdown_menu_button {
18
- border: 1px solid #ccc;
19
- padding: 0.5rem 0.6rem;
24
+ @extend .btn, .btn-small;
25
+
26
+ vertical-align: middle;
20
27
 
21
28
  &::after {
22
- content: ' ';
29
+ content: ' ';
30
+ font-size: 1.8rem;
31
+ padding-left: 0.5rem;
32
+ }
33
+ }
34
+
35
+ .dropdown-content {
36
+ width: auto !important;
37
+ height: auto !important;
38
+ }
39
+
40
+ .dropdown_menu_list {
41
+ margin: 0;
42
+
43
+ a.batch_action {
44
+ color: $link-color;
23
45
  }
24
46
  }
25
47
 
@@ -43,6 +65,29 @@ body.active_admin {
43
65
  }
44
66
  }
45
67
 
68
+ .pagination {
69
+ background: transparent;
70
+ box-shadow: none;
71
+ color: #000;
72
+ height: auto;
73
+ line-height: initial;
74
+ margin-bottom: 1.5rem;
75
+ text-align: center;
76
+
77
+ a {
78
+ color: $link-color;
79
+ }
80
+
81
+ >span {
82
+ display: inline-block;
83
+ padding: 0.5rem;
84
+ }
85
+
86
+ >.current {
87
+ background: #eee;
88
+ }
89
+ }
90
+
46
91
  .sorted-asc::after {
47
92
  content: ' ↑';
48
93
  }
@@ -51,11 +96,6 @@ body.active_admin {
51
96
  content: ' ↓';
52
97
  }
53
98
 
54
- .resource_selection_cell span {
55
- padding: 0 1rem;
56
- vertical-align: middle;
57
- }
58
-
59
99
  .ui-dialog {
60
100
  @extend .modal;
61
101
 
@@ -89,6 +129,12 @@ body.active_admin {
89
129
  &.without_sidebar #main_content_wrapper {
90
130
  @extend .col, .s12;
91
131
  }
132
+
133
+ >#sidebar {
134
+ @extend .col, .s3;
135
+
136
+ padding-left: 0 !important;
137
+ }
92
138
  }
93
139
 
94
140
  #dashboard_default_message {
@@ -97,6 +143,16 @@ body.active_admin {
97
143
  text-align: center;
98
144
  }
99
145
 
146
+ #main_content {
147
+ @extend .card;
148
+
149
+ margin-top: 0.75rem;
150
+
151
+ >.panel {
152
+ padding: 2rem !important;
153
+ }
154
+ }
155
+
100
156
  #wrapper {
101
157
  @extend .container;
102
158
 
@@ -6,13 +6,17 @@ body.active_admin {
6
6
  }
7
7
 
8
8
  .formtastic {
9
- padding: 1rem;
9
+ padding: 2rem;
10
10
 
11
11
  fieldset {
12
- @extend .row;
13
-
14
12
  border: none;
15
13
  margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ h3 {
18
+ font-size: 2.2rem;
19
+ margin: 0.4rem 0 0 0;
16
20
  }
17
21
 
18
22
  .actions ol, .inputs ol {
@@ -22,8 +26,7 @@ body.active_admin {
22
26
  }
23
27
 
24
28
  .actions {
25
- margin-top: 1.4rem;
26
- padding: 0;
29
+ margin: 2rem 0 0.5rem 0 !important;
27
30
 
28
31
  a {
29
32
  @extend .btn;
@@ -57,6 +60,15 @@ body.active_admin {
57
60
  }
58
61
  }
59
62
 
63
+ >.errors {
64
+ @extend .z-depth-2;
65
+
66
+ background: color('red', 'base');
67
+ color: #fff;
68
+ margin: 0.7rem 0;
69
+ padding: 1rem;
70
+ }
71
+
60
72
  .field_with_errors {
61
73
  >input {
62
74
  border-bottom: 1px solid color('materialize-red', 'base');
@@ -72,19 +84,13 @@ body.active_admin {
72
84
  margin: 0;
73
85
  }
74
86
 
75
- >.inputs {
76
- @extend .card;
77
-
78
- padding-bottom: 1rem;
79
- padding-top: 3rem;
87
+ .inputs {
80
88
  position: relative;
89
+ margin-bottom: 2rem;
81
90
 
82
91
  >legend {
83
92
  display: block;
84
- font-size: 1.8rem;
85
- left: 1rem;
86
- position: absolute;
87
- top: 1rem;
93
+ font-size: 2.2rem;
88
94
  }
89
95
  }
90
96
 
@@ -111,17 +117,12 @@ body.active_admin {
111
117
  }
112
118
 
113
119
  .has_many_container {
114
- @extend .card;
120
+ @extend .z-depth-1;
115
121
 
116
122
  margin: 1.4rem -0.7rem 0 -0.8rem;
117
- padding: 1rem;
123
+ padding: 2rem;
118
124
  position: relative;
119
125
 
120
- >h3 {
121
- font-size: 2.2rem;
122
- margin: 0.4rem 0 0 0;
123
- }
124
-
125
126
  >.has_many_add {
126
127
  background-color: color('cyan', 'base');
127
128
  margin-top: 0.4rem;
@@ -132,9 +133,14 @@ body.active_admin {
132
133
  }
133
134
 
134
135
  >.inputs {
135
- margin: 0;
136
- padding: 0.8rem;
136
+ margin-bottom: 2rem;
137
137
  }
138
138
  }
139
+
140
+ .nav-tabs {
141
+ @extend .z-depth-1;
142
+
143
+ margin-bottom: 2rem;
144
+ }
139
145
  }
140
146
  }
@@ -12,6 +12,14 @@ body.active_admin .header {
12
12
  display: inline-block;
13
13
  }
14
14
 
15
+ .dropdown-content {
16
+ background: darken($header-bg-color, 10%);
17
+
18
+ a:hover {
19
+ background: darken($header-bg-color, 10%);
20
+ }
21
+ }
22
+
15
23
  #site_title {
16
24
  @extend .col, .s3;
17
25
 
@@ -17,11 +17,36 @@ body.active_admin.index {
17
17
  thead >tr {
18
18
  border-bottom: 1px solid #aaa;
19
19
  }
20
+
21
+ th, td {
22
+ padding-bottom: 0.3rem !important;
23
+ padding-top: 0.3rem !important;
24
+ }
25
+
26
+ .aa_mt_checkbox {
27
+ padding: 0 1rem !important;
28
+ }
20
29
  }
21
30
 
22
- .paginated_collection {
23
- @extend .row;
31
+ .index_as_grid {
32
+ >table {
33
+ display: block;
34
+
35
+ tbody {
36
+ display: block;
37
+ }
24
38
 
39
+ tr {
40
+ display: flex;
41
+ }
42
+
43
+ img {
44
+ width: 100%;
45
+ }
46
+ }
47
+ }
48
+
49
+ .paginated_collection {
25
50
  margin-bottom: 0;
26
51
  }
27
52
 
@@ -30,10 +55,39 @@ body.active_admin.index {
30
55
  }
31
56
 
32
57
  .table_tools {
33
- @extend .row;
34
-
35
58
  >.batch_actions_selector {
36
- @extend .col, .s12;
59
+ display: inline-block;
60
+ margin-bottom: 1rem;
61
+ margin-right: 2rem;
62
+ }
63
+
64
+ >.scopes {
65
+ display: inline-block;
66
+ }
67
+
68
+ .table_tools_segmented_control {
69
+ border: 1px solid #ddd;
70
+ border-radius: 0.5rem;
71
+ display: inline-block;
72
+ margin: 0 0 0 2rem;
73
+ vertical-align: middle;
74
+
75
+ >li {
76
+ display: inline-block;
77
+ padding: 0.2rem 1rem;
78
+
79
+ &:first-child {
80
+ border-radius: 0.6rem 0 0 0.6rem;
81
+ }
82
+
83
+ &:last-child {
84
+ border-radius: 0 0.6rem 0.6rem 0;
85
+ }
86
+
87
+ &.selected {
88
+ background: #eee;
89
+ }
90
+ }
37
91
  }
38
92
  }
39
93
 
@@ -42,9 +96,7 @@ body.active_admin.index {
42
96
  }
43
97
 
44
98
  #index_footer {
45
- @extend .col, .s12;
46
-
47
- margin-top: 1rem;
99
+ margin-top: 1.5rem;
48
100
 
49
101
  .download_links {
50
102
  display: inline-block;
@@ -56,16 +108,6 @@ body.active_admin.index {
56
108
  }
57
109
  }
58
110
 
59
- #main_content {
60
- @extend .card;
61
- }
62
-
63
- #sidebar {
64
- @extend .col, .s3;
65
-
66
- padding-left: 0 !important;
67
- }
68
-
69
111
  &.admin_comments {
70
112
  .paginated_collection {
71
113
  padding: 0 1.5rem 1.5rem 1.5rem;
@@ -1,11 +1,10 @@
1
1
  body.active_admin.show {
2
2
  .active_admin_comment {
3
3
  margin-top: 1rem;
4
+ padding: 0;
4
5
  }
5
6
 
6
7
  #main_content {
7
- @extend .card;
8
-
9
8
  .attributes_table {
10
9
  tr >th {
11
10
  width: 30rem;
@@ -28,6 +28,8 @@ body.active_admin .sidebar {
28
28
  .sidebar_section {
29
29
  @extend .card;
30
30
 
31
+ margin-top: 0.75rem;
32
+
31
33
  >.panel_contents {
32
34
  @extend .card-content;
33
35
 
@@ -0,0 +1,172 @@
1
+ /* cyrillic-ext */
2
+ @font-face {
3
+ font-family: 'Roboto';
4
+ font-style: normal;
5
+ font-weight: 300;
6
+ src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP.woff2) format('woff2');
7
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
8
+ }
9
+ /* cyrillic */
10
+ @font-face {
11
+ font-family: 'Roboto';
12
+ font-style: normal;
13
+ font-weight: 300;
14
+ src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP.woff2) format('woff2');
15
+ unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
16
+ }
17
+ /* greek-ext */
18
+ @font-face {
19
+ font-family: 'Roboto';
20
+ font-style: normal;
21
+ font-weight: 300;
22
+ src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP.woff2) format('woff2');
23
+ unicode-range: U+1F00-1FFF;
24
+ }
25
+ /* greek */
26
+ @font-face {
27
+ font-family: 'Roboto';
28
+ font-style: normal;
29
+ font-weight: 300;
30
+ src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP.woff2) format('woff2');
31
+ unicode-range: U+0370-03FF;
32
+ }
33
+ /* vietnamese */
34
+ @font-face {
35
+ font-family: 'Roboto';
36
+ font-style: normal;
37
+ font-weight: 300;
38
+ src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP.woff2) format('woff2');
39
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
40
+ }
41
+ /* latin-ext */
42
+ @font-face {
43
+ font-family: 'Roboto';
44
+ font-style: normal;
45
+ font-weight: 300;
46
+ src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2) format('woff2');
47
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
48
+ }
49
+ /* latin */
50
+ @font-face {
51
+ font-family: 'Roboto';
52
+ font-style: normal;
53
+ font-weight: 300;
54
+ src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2) format('woff2');
55
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
56
+ }
57
+ /* cyrillic-ext */
58
+ @font-face {
59
+ font-family: 'Roboto';
60
+ font-style: normal;
61
+ font-weight: 400;
62
+ src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2) format('woff2');
63
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
64
+ }
65
+ /* cyrillic */
66
+ @font-face {
67
+ font-family: 'Roboto';
68
+ font-style: normal;
69
+ font-weight: 400;
70
+ src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2) format('woff2');
71
+ unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
72
+ }
73
+ /* greek-ext */
74
+ @font-face {
75
+ font-family: 'Roboto';
76
+ font-style: normal;
77
+ font-weight: 400;
78
+ src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2) format('woff2');
79
+ unicode-range: U+1F00-1FFF;
80
+ }
81
+ /* greek */
82
+ @font-face {
83
+ font-family: 'Roboto';
84
+ font-style: normal;
85
+ font-weight: 400;
86
+ src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2) format('woff2');
87
+ unicode-range: U+0370-03FF;
88
+ }
89
+ /* vietnamese */
90
+ @font-face {
91
+ font-family: 'Roboto';
92
+ font-style: normal;
93
+ font-weight: 400;
94
+ src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2) format('woff2');
95
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
96
+ }
97
+ /* latin-ext */
98
+ @font-face {
99
+ font-family: 'Roboto';
100
+ font-style: normal;
101
+ font-weight: 400;
102
+ src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2) format('woff2');
103
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
104
+ }
105
+ /* latin */
106
+ @font-face {
107
+ font-family: 'Roboto';
108
+ font-style: normal;
109
+ font-weight: 400;
110
+ src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');
111
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
112
+ }
113
+ /* cyrillic-ext */
114
+ @font-face {
115
+ font-family: 'Roboto';
116
+ font-style: normal;
117
+ font-weight: 500;
118
+ src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP.woff2) format('woff2');
119
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
120
+ }
121
+ /* cyrillic */
122
+ @font-face {
123
+ font-family: 'Roboto';
124
+ font-style: normal;
125
+ font-weight: 500;
126
+ src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP.woff2) format('woff2');
127
+ unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
128
+ }
129
+ /* greek-ext */
130
+ @font-face {
131
+ font-family: 'Roboto';
132
+ font-style: normal;
133
+ font-weight: 500;
134
+ src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP.woff2) format('woff2');
135
+ unicode-range: U+1F00-1FFF;
136
+ }
137
+ /* greek */
138
+ @font-face {
139
+ font-family: 'Roboto';
140
+ font-style: normal;
141
+ font-weight: 500;
142
+ src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP.woff2) format('woff2');
143
+ unicode-range: U+0370-03FF;
144
+ }
145
+ /* vietnamese */
146
+ @font-face {
147
+ font-family: 'Roboto';
148
+ font-style: normal;
149
+ font-weight: 500;
150
+ src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP.woff2) format('woff2');
151
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
152
+ }
153
+ /* latin-ext */
154
+ @font-face {
155
+ font-family: 'Roboto';
156
+ font-style: normal;
157
+ font-weight: 500;
158
+ src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2) format('woff2');
159
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
160
+ }
161
+ /* latin */
162
+ @font-face {
163
+ font-family: 'Roboto';
164
+ font-style: normal;
165
+ font-weight: 500;
166
+ src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2) format('woff2');
167
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
168
+ }
169
+
170
+ body.active_admin {
171
+ font-family: Roboto, Ubuntu, "Segoe UI", "Helvetica Neue", sans-serif;
172
+ }
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'activeadmin'
3
4
  require 'activeadmin_materialize_theme/engine'
4
5
 
5
6
  module ActiveadminMaterializeTheme
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveadminMaterializeTheme
4
- VERSION = '0.1.2'
4
+ VERSION = '0.2.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_materialize_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-07 00:00:00.000000000 Z
11
+ date: 2020-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -24,6 +24,132 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activestorage
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 6.0.3.2
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 6.0.3.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: capybara
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 3.33.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 3.33.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.13.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.13.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: puma
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 4.3.5
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 4.3.5
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec_junit_formatter
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.4.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.4.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 4.0.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 4.0.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.90.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.90.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: selenium-webdriver
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 3.142.7
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 3.142.7
139
+ - !ruby/object:Gem::Dependency
140
+ name: sqlite3
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.4.2
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.4.2
27
153
  description: A theme for Active Admin based on Materialize framework.
28
154
  email:
29
155
  - mat@blocknot.es
@@ -118,12 +244,13 @@ files:
118
244
  - app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_switches.scss
119
245
  - app/assets/stylesheets/activeadmin_materialize_theme/materialize/materialize.scss
120
246
  - app/assets/stylesheets/activeadmin_materialize_theme/normalize.css
247
+ - app/assets/stylesheets/activeadmin_materialize_theme/roboto.scss
121
248
  - app/assets/stylesheets/activeadmin_materialize_theme/theme.scss
122
249
  - app/assets/stylesheets/activeadmin_materialize_theme/variables.scss
123
250
  - lib/activeadmin_materialize_theme.rb
124
251
  - lib/activeadmin_materialize_theme/engine.rb
125
252
  - lib/activeadmin_materialize_theme/version.rb
126
- homepage: https://blocknot.es
253
+ homepage: https://github.com/blocknotes/activeadmin_materialize_theme
127
254
  licenses:
128
255
  - MIT
129
256
  metadata: {}