dlegr250_material_design 0.1.95 → 0.1.96

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
  SHA1:
3
- metadata.gz: 3bea5098fb85db9214357b303245343c3016533b
4
- data.tar.gz: 91cb58551985aae654552b7d498bdc3fd98ab03c
3
+ metadata.gz: 862464917c8e909500463077c95d371b5d39a8d7
4
+ data.tar.gz: ac65f94f9f352a7b1c912cca24449f557fe69a26
5
5
  SHA512:
6
- metadata.gz: bdd93d1031f41a4238a0aaba52e90597f4a6c72ee85e97458b8fb3ddc56da47fd0c2636f8957faea39fbfa6f950b673f29a0d5fcd539c8ea255194ebb15939c8
7
- data.tar.gz: 6c9207f807b3b1d2bd1ec93b07b100c13229fc741f1c507e1889a4cd467b156e076053ae02cd6b07dd344f54eb0b67f771d0155d82bd3ba6418545e261a38820
6
+ metadata.gz: 65b2ef369d51229cbd596334f28da081f1d54c46f7e30f181b9e5dfd1f4b2961f89b9f625e0a66558752f47dc6c562c27fa8c45b1a82326fd30333fb7c29914b
7
+ data.tar.gz: a8189e8bd38e627cc510b268426ca3c7c627bd52fc380613deabca56716046c7c050f87fbb0b55df3080bfcfbb74fe6eeb246200b2dfb536735fdc8f756d57e2
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.1.95"
2
+ VERSION = "0.1.96"
3
3
  end
@@ -216,6 +216,17 @@
216
216
  font-size: $font-size-xlarge !important;
217
217
  }
218
218
 
219
+ // Truncating text
220
+ //----------------------------------------------------------------------
221
+
222
+ .truncate-text {
223
+ @include truncate-text();
224
+ }
225
+
226
+ .force-text-wrap {
227
+ @include force-text-wrap();
228
+ }
229
+
219
230
  // Borders
220
231
  //----------------------------------------------------------------------
221
232
 
@@ -222,3 +222,18 @@ $default-rounded-corners-radius: 3px;
222
222
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
223
223
  -webkit-tap-highlight-color: transparent;
224
224
  }
225
+
226
+ // Truncating text
227
+ //----------------------------------------------------------------------
228
+
229
+ @mixin truncate-text() {
230
+ overflow: hidden;
231
+ text-overflow: ellipsis;
232
+ white-space: nowrap;
233
+ }
234
+
235
+ @mixin force-text-wrap() {
236
+ overflow: inherit;
237
+ text-overflow: inherit;
238
+ white-space: normal;
239
+ }
@@ -136,11 +136,9 @@ ol {
136
136
 
137
137
  .list-item-primary {
138
138
  flex: 1;
139
- overflow: hidden;
140
139
  padding-left: $spacing-normal;
141
140
  padding-right: $spacing-normal;
142
- text-overflow: ellipsis;
143
- white-space: nowrap;
141
+ @include truncate-text();
144
142
 
145
143
  .list-item-primary-subtext {
146
144
  color: color("helper");
@@ -151,9 +149,7 @@ ol {
151
149
 
152
150
  // Force list-item to wrap text
153
151
  .list.force-text-wrap .list-item-primary {
154
- overflow: inherit;
155
- text-overflow: inherit;
156
- white-space: normal;
152
+ @include force-text-wrap();
157
153
  }
158
154
 
159
155
  // Lists - list item secondary
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.95
4
+ version: 0.1.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-14 00:00:00.000000000 Z
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler