GIPainter-base 0.4.1 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09fd452007f2ff9dd270fa30ec9da7626681f0e9
4
- data.tar.gz: 9d27d9fbdc95aaa3c7dcbb3e55e29cbaf5c995d4
3
+ metadata.gz: 25cbd25b9b069a89df9ad316455c47064e233dc7
4
+ data.tar.gz: ddcd21e21c5b007a0d56854925b2c2b7da442d42
5
5
  SHA512:
6
- metadata.gz: f83849c8c11e08ab1494ea129ea5e1b19d59710b4eef78fa0fd30737d2987f8ff4f416a9cb09185d4b196343db026133b6d95e38349f497c0ed73d3ee846ff75
7
- data.tar.gz: a9b0807a5f98c4dce68a80836603b5de965d6b383c9ce4d82931997f239d7b901458d955ee9992b70334de9cfc0994a31be02af8b69a4b1113d44ee77b48d70e
6
+ metadata.gz: 4e49857548dd4cf0c6855d184bb15e88138cb8d8375e695f4fe191f16b018c576fe39d518d73d7910d94fe7c8740d1cb46fef09f88d20ee30f9ba4c6c27c42c1
7
+ data.tar.gz: 7c8093be05d241a09e67b5e4d07c47c9a50e15fa755ca5f772953391c2d340e12057395994850244ba786f7c5284b29d6dd2ad2e28be3d31299876d242fdde1e
@@ -215,8 +215,7 @@
215
215
  /// text-overflow: ellipsis;
216
216
  /// }
217
217
 
218
- @mixin truncate($truncation-boundary) {
219
- max-width: $truncation-boundary;
218
+ @mixin truncate {
220
219
  white-space: nowrap;
221
220
  overflow: hidden;
222
221
  text-overflow: ellipsis;
@@ -310,4 +309,63 @@
310
309
  background: url($file) 50% 50% no-repeat;
311
310
  background-size: contain;
312
311
  @include hide-text($overflow: $overflow);
312
+ }
313
+
314
+ /// Mixin helper to color text
315
+ /// @param {Color} $color - color of your text
316
+ /// @example scss - Usage
317
+ /// .foo {
318
+ /// @include text-emphasis-variant(#c51c1c)
319
+ /// }
320
+ /// @example css - Result
321
+ /// .foo{
322
+ /// color: #c51c1c;
323
+ /// }
324
+ ///
325
+ /// .foo a{
326
+ /// text-decoration: none;
327
+ /// border-bottom-width: 1px;
328
+ /// border-bottom-style: dotted;
329
+ /// border-bottom-color: red;
330
+ /// }
331
+ ///
332
+ /// .foo a:hover{
333
+ /// color: #941515;
334
+ /// }
335
+
336
+ @mixin text-emphasis-variant($color) {
337
+ color: $color;
338
+
339
+ a{
340
+ @include link-replace-underline;
341
+
342
+ &:hover {
343
+ color: darken($color, 20%);
344
+ }
345
+ }
346
+ }
347
+
348
+ /// Mixin helper to replace text with image
349
+ /// @param {Length} $w - width of element
350
+ /// @param {Length} $h - height of element
351
+ /// @param {String} $file - file path
352
+ /// @param {String} $overflow [hidden] - overflow of element
353
+ /// @example scss - Usage
354
+ /// .foo {
355
+ /// @include hide-text;
356
+ /// }
357
+ /// @example css - Result
358
+ /// .foo{
359
+ /// text-indent: $indent;
360
+ /// text-align: $align;
361
+ /// font-size: 0;
362
+ /// white-space: nowrap;
363
+ /// overflow: $overflow;
364
+ /// }
365
+
366
+ @mixin lead($font-size) {
367
+ margin-bottom: $line-height-computed;
368
+ @include font-size($font-size);
369
+ @include line-height($font-size);
370
+ font-weight: 300;
313
371
  }
@@ -1,3 +1,3 @@
1
1
  module GIPainter_base
2
- VERSION = '0.4.1'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: GIPainter-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genious Interactive