material_icons 2.2.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f87d1314fa1478ced62e604bb57d068a29278470
4
- data.tar.gz: 7599ebb813fd6976182638bbea9a2c6e19b4c0d5
2
+ SHA256:
3
+ metadata.gz: 4f23a2a35fd57b5727eb8a2bdccb2ff088af3efa4e478454bb874a7983550b18
4
+ data.tar.gz: 03cedafcf0bef43611c10d3118e06c842376bb00cc018cbdd3eae6a46787220a
5
5
  SHA512:
6
- metadata.gz: 840926e154cff6ddfbb699936a9d4f37f97081e1391bf163da9c4eb7754498a00b9cceb28a354fb2087a64c88489344294fda5c814a53c8ae4f702486b9ca28d
7
- data.tar.gz: 27ae98079321f4c712c941ac479fd7f59b390546df173ff9795087dab0d927be5a2bd7c46f840b67148b528f79e9802c22d0be642d5c1bb4e2b658702e9cc213
6
+ metadata.gz: bb1db8eae576a48d875e6844b347cad51b5c4c4d9ce3ab1b8019d4ae5d6cbb4e120a975a7a8aa158c01c4e66826bc39163eb48886a9ee5a86442d54c4e7121e3
7
+ data.tar.gz: 0cf5737742226ebb9fcc0c3d8ac9ebf3032917bdb8d2bbc31d1d5667c90466365b7cee69f6bd09320f9dc3a52684e86c12149a02e325dbdb0cdbaada1c9baa88
data/README.md CHANGED
@@ -1,14 +1,12 @@
1
- [![Gem Version](https://badge.fury.io/rb/material_icons.svg)](http://badge.fury.io/rb/material_icons) [![Build Status](https://travis-ci.org/Angelmmiguel/material_icons.svg?branch=master)](https://travis-ci.org/Angelmmiguel/material_icons) [![Code Climate](https://codeclimate.com/github/Angelmmiguel/material_icons/badges/gpa.svg)](https://codeclimate.com/github/Angelmmiguel/material_icons) [![Codacy Badge](https://api.codacy.com/project/badge/grade/5eb6d2d5a9d24ab98a1aed5835510e4f)](https://www.codacy.com/app/angelmm/material_icons) [![Coverage Status](https://coveralls.io/repos/Angelmmiguel/material_icons/badge.svg?branch=master&service=github)](https://coveralls.io/github/Angelmmiguel/material_icons?branch=master)
1
+ [![Gem Version](https://badge.fury.io/rb/material_icons.svg)](http://badge.fury.io/rb/material_icons) [![Build Status](https://github.com/Angelmmiguel/material_icons/workflows/Ruby/badge.svg)](https://github.com/Angelmmiguel/material_icons/actions?query=workflow%3ARuby)
2
2
 
3
3
  ![Material Icons for Rails](https://raw.githubusercontent.com/Angelmmiguel/material_icons/master/material.png)
4
4
 
5
5
  # Material Icons for Rails
6
6
 
7
- [Google Material Icons](https://google.github.io/material-design-icons/) is a +900 set of icons based on Material Design guidelines. With this gem you can add it easily to your Rails projects.
7
+ [Material Design Icons](https://google.github.io/material-design-icons/) is a **+2500 set of icons** based on Material Design guidelines. You can check all the icons in the [official site](https://fonts.google.com/icons?selected=Material+Icons).
8
8
 
9
- ## Google Material Icons v2.2.2
10
-
11
- Google updates Material Icons to [v2.2.2](https://github.com/google/material-design-icons/releases/tag/2.2.2). It's include 41 new icons!
9
+ **This gem helps you to add this fantastic icon collection to your Rails projects easily**. I keep the gem updated so you always will have the latest icons in your project.
12
10
 
13
11
  # Installation
14
12
 
@@ -20,9 +18,9 @@ Then, execute `bundle install`.
20
18
 
21
19
  # CSS
22
20
 
23
- In your `app/assets/stylesheets/application.css` file you need to reference material icons CSS. There are two versions: ligature or unicode (See [Compatibility](#compatibility) section for more info).
21
+ In your `app/assets/stylesheets/application.css.erb` file you need to reference material icons CSS.
24
22
 
25
- Add this line at top of `application.css` to use ligature:
23
+ Add this line at top of `application.css`:
26
24
 
27
25
  ```css
28
26
  /*
@@ -34,9 +32,101 @@ Add this line at top of `application.css` to use ligature:
34
32
 
35
33
  These files provide multiple CSS classes to use in your views. Main classes are:
36
34
 
37
- .material-icons, .mi
35
+ ```
36
+ .material-icons, .mi
37
+ ```
38
+
39
+ ## Upgrade from v2.X to 4.X
40
+
41
+ The `v4.X` version changed how the icon shapes are set. Before, this gem used a `method_missing` approach (`mi.face`). Due to the amount of conflicting icon shape names, in `v4.X` I introduced the `shape` method to set the icon shape:
42
+
43
+ ```ruby
44
+ # In v2.X
45
+ mi.face
46
+
47
+ # In v4.X
48
+ mi.shape(:face)
49
+ ```
50
+
51
+ When upgrading to v4.X, you will need to update all the calls to the `mi` and `material_icon` helpers.
52
+
53
+ ## Other styles
54
+
55
+ This gem supports the new Google Material Icons styles. They are imported as a different CSS stylesheet, so you can set only the icons that are required for your project. You can set just one style or several ones.
56
+
57
+ Every CSS stylesheet includes everything you need to use that style. If you don't plan to use the regular style, feel free to include any of the next styles and remove the `*= require material_icons` line from your `application.css.erb` file.
58
+
59
+ ### Outlined
60
+
61
+ ```css
62
+ /*
63
+ *= require material_icons.outlined
64
+ */
65
+ ```
66
+
67
+ Usage in your template:
68
+
69
+ ```
70
+ <%= material_icon.shape(:face).outlined %>
71
+ # <i class="material-icons outlined">face</i>
72
+ ```
73
+
74
+ ### Sharp
38
75
 
39
- Some CSS classes are provided too:
76
+ ```css
77
+ /*
78
+ *= require material_icons.sharp
79
+ */
80
+ ```
81
+
82
+ Usage in your template:
83
+
84
+ ```
85
+ <%= material_icon.shape(:face).sharp %>
86
+ # <i class="material-icons sharp">face</i>
87
+ ```
88
+
89
+ ### Round
90
+
91
+ ```css
92
+ /*
93
+ *= require material_icons.round
94
+ */
95
+ ```
96
+
97
+ Usage in your template:
98
+
99
+ ```
100
+ <%= material_icon.shape(:face).round %>
101
+ # <i class="material-icons round">face</i>
102
+ ```
103
+
104
+ ### Two Tone
105
+
106
+ ```css
107
+ /*
108
+ *= require material_icons.twotone
109
+ */
110
+ ```
111
+
112
+ Usage in your template:
113
+
114
+ ```
115
+ <%= material_icon.shape(:face).twotone %>
116
+ # <i class="material-icons twotone">face</i>
117
+ ```
118
+
119
+ ## Helper classes
120
+
121
+ This gem includes several helper sizes. To add them to your project, add the following stylesheet:
122
+
123
+ ```css
124
+ /*
125
+ *= require material_icons.helpers
126
+ */
127
+ ```
128
+
129
+ After adding it, the following helpers will be available:
40
130
 
41
131
  ```
42
132
  /* Size */
@@ -70,25 +160,30 @@ An example of icon is:
70
160
  <i class="material-icons md-36">face</i>
71
161
  ```
72
162
 
73
- ## Helpers
163
+ ## Ruby helpers
164
+
165
+ Material Icons provide two helpers to build the HTML code of icons. The methods are `material_icon` and `mi`. These helpers use cascade style to set the icon and options. **[Remember you first need to add the helpers stylesheet to use these helpers](#helper-classes)**.
74
166
 
75
- Material Icons provide two helpers to build the HTML code of icons. The methods are `material_icon` and `mi`. These helpers use cascade style to set the icon and options. Using same example:
167
+ Using same example:
76
168
 
77
169
  ```
78
- <%= material_icon.face %>
170
+ <%= material_icon.shape(:face) %>
79
171
  # <i class="material-icons">face</i>
80
172
 
81
- <%= material_icon.face.md_36 %>
173
+ <%= material_icon.shape(:face).md_36 %>
82
174
  # <i class="material-icons md-36">face</i>
83
175
 
84
- # This is a special case because the icon name starts with a number. Only
85
- # 3d_rotation has this trouble.
86
- <%= material_icon.three_d_rotation.md_36 %>
176
+ # You can use string too
177
+ <%= material_icon.shape('3d_rotation').md_36 %>
87
178
  # <i class="material-icons md-36">3d_rotation</i>
88
179
 
89
180
  # Rotation and custom css class
90
- <%= mi.face.r90.css_class('my_class') %>
181
+ <%= mi.shape(:face).r90.css_class('my_class') %>
91
182
  # <i class="material-icons r90 my_class">face</i>
183
+
184
+ # Custom css and data attributes
185
+ <%= mi.shape(:face).css_class('my_class').html(data: {id: 1}) %>
186
+ # <i data-id="1" class="material-icons my_class">face</i>
92
187
  ```
93
188
 
94
189
  Allowed methods are:
@@ -119,85 +214,65 @@ html({ data: { id: 1 } })
119
214
 
120
215
  Remember this is a helper, you always can use HTML syntax ;).
121
216
 
122
- # Slim templating engine
123
-
124
- If you are using [Slim templating engine](http://slim-lang.com/) in your Rails application, use double equal `==` method to render icons or the content won't be marked as HTML safe. We are working on this issue, because we use `content_tag` and it sets the text as HTML safe (see [ActionView::Helpers::TagHelper line 146](https://github.com/rails/rails/blob/4-2-stable/actionview/lib/action_view/helpers/tag_helper.rb#L146)).
125
-
126
- ```
127
- p.text
128
- == material_icon.search.md_18
129
- ```
130
-
131
- Reference [#9](https://github.com/Angelmmiguel/material_icons/issues/9)
132
-
133
217
  # Compatibility
134
218
 
135
219
  Ligature feature requires a supported browser:
136
220
 
137
- Browser | Version
221
+ Browser | Version
138
222
  ---- | ----
139
- Google Chrome | >= 11
140
- Mozilla Firefox | >= 3.5
141
- Apple Safari | >= 5
142
- Microsoft IE | >= 10
143
- Opera | >= 15
223
+ Google Chrome | >= 11
224
+ Mozilla Firefox | >= 3.5
225
+ Apple Safari | >= 5
226
+ Microsoft IE | >= 10
227
+ Opera | >= 15
144
228
  Apple MobileSafari | >= iOS 4.2
145
- Android Browser | >= 3.0
229
+ Android Browser | >= 3.0
146
230
 
147
- To increase compatibility you can use Unicode version of the library. To set Unicode icons, you need to change the line to load ligature CSS file on `app/assets/stylesheets/application.css` (`*= require material_icons`) to this line:
231
+ You can find the current browser support in [_can I use?_](https://caniuse.com/kerning-pairs-ligatures).
148
232
 
149
- ```css
150
- /*
151
- *= require material_icons_unicode
152
- */
153
- ```
233
+ # Common issues
154
234
 
155
- **NOTE**: Depending on the comment style of `application.css`, you may need to add `//= require material_icons_unicode` instead of the previous line. See [Rails Asset Pipeline](http://guides.rubyonrails.org/asset_pipeline.html#manifest-files-and-directives) for more info.
235
+ ## Slim templating engine
156
236
 
157
- Next, you need to specify the helper to use unicode because it uses ligatures by default. Create an initializer file on `config/initializers/material_icons.rb` and set this content:
237
+ If you are using [Slim templating engine](http://slim-lang.com/) in your Rails application, use double equal `==` method to render icons or the content won't be marked as HTML safe. We are working on this issue, because we use `content_tag` and it sets the text as HTML safe (see [ActionView::Helpers::TagHelper line 146](https://github.com/rails/rails/blob/4-2-stable/actionview/lib/action_view/helpers/tag_helper.rb#L146)).
158
238
 
159
- ```ruby
160
- # Initialize material icons setup
161
- MaterialIcons.setup do |config|
162
- config.unicode = true
163
- end
239
+ ```
240
+ p.text
241
+ == material_icon.shape(:search).md_18
164
242
  ```
165
243
 
166
- The [Helpers](#helpers) has the same syntax.
244
+ Reference [#9](https://github.com/Angelmmiguel/material_icons/issues/9)
167
245
 
168
- Now, the text inside of HTML tag is the CSS class! CSS Icon classes use underscores.
246
+ ## Couldn't find file 'material_icons'
169
247
 
170
- ```html
171
- <i class="material-icons face"></i>
172
- <i class="mi md-36 face"></i>
173
- <i class="mi add_box"></i>
174
- <i class="mi three_d_rotation"></i>
248
+ ```
249
+ couldn't find file 'material_icons' with type 'application/javascript'
175
250
  ```
176
251
 
177
- This version increase the size of the CSS file too. To see the difference, these are the size for uncompressed CSS files:
252
+ This error is related with the asset compilation of Rails. To fix it, just follow these steps:
178
253
 
179
- File | Size
180
- ---- | ----
181
- material_icons.css.erb | 3 KB
182
- material_icons_unicode.css.erb | 68 KB
254
+ * Confirm that you [required the Material Icons CSS in your main CSS file](#CSS)
255
+ * Check and remove any similar line of code from `app/assets/javascripts/application.js.erb`
256
+ * Restart your rails server.
257
+
258
+ Reference [#10](https://github.com/Angelmmiguel/material_icons/issues/10)
183
259
 
184
260
  # Tested on
185
261
 
186
- Tested with [Travis CI](https://travis-ci.org/Angelmmiguel/material_icons).
262
+ Tested with [GitHub Actions](https://github.com/Angelmmiguel/material_icons/actions?query=workflow%3ARuby).
187
263
 
188
264
  Ruby versions:
189
265
 
190
- * 2.3.1
191
- * 2.2.2
192
- * 2.1.2
266
+ * 2.6
267
+ * 2.7
268
+ * 3.0
269
+ * 3.1
193
270
 
194
271
  Rails versions:
195
272
 
196
- * 3.2
197
- * 4.0
198
- * 4.1
199
- * 4.2
200
- * master
273
+ * 6.0
274
+ * 6.1
275
+ * 7.0
201
276
 
202
277
  # They are using Material icons for Rails :)
203
278
 
@@ -209,4 +284,4 @@ Rails versions:
209
284
 
210
285
  Google Material Icons are under [Apache License v2.0](http://www.apache.org/licenses/LICENSE-2.0). _We'd love attribution in your app's about screen, but [it's not required](https://github.com/google/material-design-icons#license)_.
211
286
 
212
- Material Icons gem is released under the MIT license. Copyright [@Laux_es ;)](https://twitter.com/Laux_es)
287
+ Material Icons gem is released under the MIT license. Copyright [Angel M Miguel](https://angel.kiwi)
@@ -1,25 +1,21 @@
1
1
  /*
2
2
  * CSS File of Material icons.
3
3
  * CSS code based on:
4
- * https://google.github.io/material-design-icons/#icon-font-for-the-web
4
+ * https://github.com/google/material-design-icons
5
5
  */
6
6
 
7
- //= depend_on_asset "MaterialIcons-Regular.eot"
8
- //= depend_on_asset "MaterialIcons-Regular.woff2"
9
- //= depend_on_asset "MaterialIcons-Regular.woff"
10
- //= depend_on_asset "MaterialIcons-Regular.ttf"
7
+ //= depend_on_asset "material-icons-regular.woff2"
8
+ //= depend_on_asset "material-icons-regular.woff"
11
9
 
12
10
  /* Use the font */
13
11
  @font-face {
14
12
  font-family: 'Material Icons';
15
13
  font-style: normal;
16
14
  font-weight: 400;
17
- src: url('<%= font_path('MaterialIcons-Regular.eot') %>'); /* For IE6-8 */
18
15
  src: local('Material Icons'),
19
16
  local('MaterialIcons-Regular'),
20
- url('<%= font_path('MaterialIcons-Regular.woff2') %>') format('woff2'),
21
- url('<%= font_path('MaterialIcons-Regular.woff') %>') format('woff'),
22
- url('<%= font_path('MaterialIcons-Regular.ttf') %>') format('truetype');
17
+ url('<%= font_path('material-icons-regular.woff2') %>') format('woff2'),
18
+ url('<%= font_path('material-icons-regular.woff') %>') format('woff');
23
19
  }
24
20
 
25
21
  /* Base class */
@@ -28,65 +24,14 @@
28
24
  font-family: 'Material Icons';
29
25
  font-weight: normal;
30
26
  font-style: normal;
31
- font-size: 24px; /* Preferred icon size */
32
- display: inline-block;
33
- width: 1em;
34
- height: 1em;
27
+ font-size: 24px;
35
28
  line-height: 1;
29
+ letter-spacing: normal;
36
30
  text-transform: none;
37
-
38
- /* Support for all WebKit browsers. */
39
- -webkit-font-smoothing: antialiased;
40
- /* Support for Safari and Chrome. */
41
- text-rendering: optimizeLegibility;
42
- /* Support for Firefox. */
31
+ display: inline-block;
32
+ white-space: nowrap;
33
+ word-wrap: normal;
34
+ direction: ltr;
35
+ -moz-font-feature-settings: 'liga';
43
36
  -moz-osx-font-smoothing: grayscale;
44
- /* Support for IE. */
45
- font-feature-settings: 'liga';
46
- }
47
-
48
- /* Rules for sizing the icon. */
49
- .material-icons.md-18, .mi.md-18 { font-size: 18px; }
50
- .material-icons.md-24, .mi.md-24 { font-size: 24px; }
51
- .material-icons.md-36, .mi.md-36 { font-size: 36px; }
52
- .material-icons.md-48, .mi.md-48 { font-size: 48px; }
53
-
54
- /* Rules for using icons as black on a light background. */
55
- .material-icons.md-dark, .mi.md-dark { color: rgba(0, 0, 0, 0.54); }
56
- .material-icons.md-dark.md-inactive, .mi.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }
57
-
58
- /* Rules for using icons as white on a dark background. */
59
- .material-icons.md-light, .mi.md-light { color: rgba(255, 255, 255, 1); }
60
- .material-icons.md-light.md-inactive, .mi.md-inactive { color: rgba(255, 255, 255, 0.3); }
61
-
62
- /* Rules to rotate items */
63
- .material-icons.r90, .mi.r90 {
64
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
65
- -webkit-transform: rotate(90deg);
66
- -ms-transform: rotate(90deg);
67
- transform: rotate(90deg);
68
- }
69
- .material-icons.r180, .mi.r180 {
70
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
71
- -webkit-transform: rotate(180deg);
72
- -ms-transform: rotate(180deg);
73
- transform: rotate(180deg);
74
- }
75
- .material-icons.r270, .mi.r270 {
76
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
77
- -webkit-transform: rotate(270deg);
78
- -ms-transform: rotate(270deg);
79
- transform: rotate(270deg);
80
- }
81
- .material-icons.flip-horizontal, .mi.flip-horizontal {
82
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);
83
- -webkit-transform: scale(-1, 1);
84
- -ms-transform: scale(-1, 1);
85
- transform: scale(-1, 1);
86
- }
87
- .material-icons.flip-vertical, .mi.flip-vertical {
88
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);
89
- -webkit-transform: scale(1, -1);
90
- -ms-transform: scale(1, -1);
91
- transform: scale(1, -1);
92
- }
37
+ }
@@ -0,0 +1,45 @@
1
+ /* Rules for sizing the icon. */
2
+ .material-icons.md-18, .mi.md-18 { font-size: 18px; }
3
+ .material-icons.md-24, .mi.md-24 { font-size: 24px; }
4
+ .material-icons.md-36, .mi.md-36 { font-size: 36px; }
5
+ .material-icons.md-48, .mi.md-48 { font-size: 48px; }
6
+
7
+ /* Rules for using icons as black on a light background. */
8
+ .material-icons.md-dark, .mi.md-dark { color: rgba(0, 0, 0, 0.54); }
9
+ .material-icons.md-dark.md-inactive, .mi.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }
10
+
11
+ /* Rules for using icons as white on a dark background. */
12
+ .material-icons.md-light, .mi.md-light { color: rgba(255, 255, 255, 1); }
13
+ .material-icons.md-light.md-inactive, .mi.md-inactive { color: rgba(255, 255, 255, 0.3); }
14
+
15
+ /* Rules to rotate items */
16
+ .material-icons.r90, .mi.r90 {
17
+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
18
+ -webkit-transform: rotate(90deg);
19
+ -ms-transform: rotate(90deg);
20
+ transform: rotate(90deg);
21
+ }
22
+ .material-icons.r180, .mi.r180 {
23
+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
24
+ -webkit-transform: rotate(180deg);
25
+ -ms-transform: rotate(180deg);
26
+ transform: rotate(180deg);
27
+ }
28
+ .material-icons.r270, .mi.r270 {
29
+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
30
+ -webkit-transform: rotate(270deg);
31
+ -ms-transform: rotate(270deg);
32
+ transform: rotate(270deg);
33
+ }
34
+ .material-icons.flip-horizontal, .mi.flip-horizontal {
35
+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);
36
+ -webkit-transform: scale(-1, 1);
37
+ -ms-transform: scale(-1, 1);
38
+ transform: scale(-1, 1);
39
+ }
40
+ .material-icons.flip-vertical, .mi.flip-vertical {
41
+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);
42
+ -webkit-transform: scale(1, -1);
43
+ -ms-transform: scale(1, -1);
44
+ transform: scale(1, -1);
45
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * CSS File of Material icons.
3
+ * CSS code based on:
4
+ * https://github.com/google/material-design-icons
5
+ */
6
+
7
+ //= depend_on_asset "material-icons-outlined.woff2"
8
+ //= depend_on_asset "material-icons-outlined.woff"
9
+
10
+ /* Use the font */
11
+ @font-face {
12
+ font-family: 'Material Icons Outlined';
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ src: local('Material Icons Outlined'),
16
+ local('MaterialIconsOutlined-Regular '),
17
+ url('<%= font_path('material-icons-outlined.woff2') %>') format('woff2'),
18
+ url('<%= font_path('material-icons-outlined.woff') %>') format('woff');
19
+ }
20
+
21
+ /* Add outlined styles */
22
+ .material-icons.outlined,
23
+ .mi.outlined {
24
+ font-family: 'Material Icons Outlined';
25
+ font-weight: normal;
26
+ font-style: normal;
27
+ font-size: 24px;
28
+ line-height: 1;
29
+ letter-spacing: normal;
30
+ text-transform: none;
31
+ display: inline-block;
32
+ white-space: nowrap;
33
+ word-wrap: normal;
34
+ direction: ltr;
35
+ -moz-font-feature-settings: 'liga';
36
+ -moz-osx-font-smoothing: grayscale;
37
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * CSS File of Material icons.
3
+ * CSS code based on:
4
+ * https://github.com/google/material-design-icons
5
+ */
6
+
7
+ //= depend_on_asset "material-icons-round.woff2"
8
+ //= depend_on_asset "material-icons-round.woff"
9
+
10
+ /* Use the font */
11
+ @font-face {
12
+ font-family: 'Material Icons Round';
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ src: local('Material Icons Round'),
16
+ local('MaterialIconsRound-Regular '),
17
+ url('<%= font_path('material-icons-round.woff2') %>') format('woff2'),
18
+ url('<%= font_path('material-icons-round.woff') %>') format('woff');
19
+ }
20
+
21
+ /* Add round styles */
22
+ .material-icons.round,
23
+ .mi.round {
24
+ font-family: 'Material Icons Round';
25
+ font-weight: normal;
26
+ font-style: normal;
27
+ font-size: 24px;
28
+ line-height: 1;
29
+ letter-spacing: normal;
30
+ text-transform: none;
31
+ display: inline-block;
32
+ white-space: nowrap;
33
+ word-wrap: normal;
34
+ direction: ltr;
35
+ -moz-font-feature-settings: 'liga';
36
+ -moz-osx-font-smoothing: grayscale;
37
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * CSS File of Material icons.
3
+ * CSS code based on:
4
+ * https://github.com/google/material-design-icons
5
+ */
6
+
7
+ //= depend_on_asset "material-icons-sharp.woff2"
8
+ //= depend_on_asset "material-icons-sharp.woff"
9
+
10
+ /* Use the font */
11
+ @font-face {
12
+ font-family: 'Material Icons Sharp';
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ src: local('Material Icons Sharp'),
16
+ local('MaterialIconsSharp-Regular '),
17
+ url('<%= font_path('material-icons-sharp.woff2') %>') format('woff2'),
18
+ url('<%= font_path('material-icons-sharp.woff') %>') format('woff');
19
+ }
20
+
21
+ /* Add round styles */
22
+ .material-icons.sharp,
23
+ .mi.sharp {
24
+ font-family: 'Material Icons Sharp';
25
+ font-weight: normal;
26
+ font-style: normal;
27
+ font-size: 24px;
28
+ line-height: 1;
29
+ letter-spacing: normal;
30
+ text-transform: none;
31
+ display: inline-block;
32
+ white-space: nowrap;
33
+ word-wrap: normal;
34
+ direction: ltr;
35
+ -moz-font-feature-settings: 'liga';
36
+ -moz-osx-font-smoothing: grayscale;
37
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * CSS File of Material icons.
3
+ * CSS code based on:
4
+ * https://github.com/google/material-design-icons
5
+ */
6
+
7
+ //= depend_on_asset "material-icons-twotone.woff2"
8
+ //= depend_on_asset "material-icons-twotone.woff"
9
+
10
+ /* Use the font */
11
+ @font-face {
12
+ font-family: 'Material Icons TwoTone';
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ src: local('Material Icons TwoTone'),
16
+ local('MaterialIconsTwoTone-Regular '),
17
+ url('<%= font_path('material-icons-twotone.woff2') %>') format('woff2'),
18
+ url('<%= font_path('material-icons-twotone.woff') %>') format('woff');
19
+ }
20
+
21
+ /* Add round styles */
22
+ .material-icons.twotone,
23
+ .mi.twotone {
24
+ font-family: 'Material Icons TwoTone';
25
+ font-weight: normal;
26
+ font-style: normal;
27
+ font-size: 24px;
28
+ line-height: 1;
29
+ letter-spacing: normal;
30
+ text-transform: none;
31
+ display: inline-block;
32
+ white-space: nowrap;
33
+ word-wrap: normal;
34
+ direction: ltr;
35
+ -moz-font-feature-settings: 'liga';
36
+ -moz-osx-font-smoothing: grayscale;
37
+ }