oulu 0.12.7 → 0.12.8
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 +4 -4
- data/app/assets/stylesheets/settings/functions/_color.sass +16 -27
- data/app/assets/stylesheets/settings/variables/_default.sass +2 -10
- data/app/assets/stylesheets/settings/variables/_modules.sass +2 -0
- data/bower.json +1 -1
- data/lib/oulu/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e16e11583b21790a4e4a3b0583a45071b4b8d1f0
|
4
|
+
data.tar.gz: 32490a6ecc7cff24b958a22d652a59bb1f6d9761
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6772dacad21dd649fd8033f28fbd5f2d4afcf72828f4a97069195ff2f8bd7be9195952c1b80756350a9776bac6848233f9a0792f0061f4582bf627f37a665a83
|
7
|
+
data.tar.gz: 9da724b8f2ed46a2a760576eb1ec66f157cf4e6aac000bf058c89462373d1566e1b692d59740ebf7fba258bfa7acb9b72265bddb41ed2bbb8c84c237494101b6
|
@@ -33,23 +33,18 @@
|
|
33
33
|
|
34
34
|
// Adapted from: https://gist.github.com/voxpelli/6304812
|
35
35
|
@function luma($color)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
@function luma_contrast($color-1, $color-2: null)
|
46
|
-
@if $color-2
|
47
|
-
@if abs(luma($color-1) - luma($color-2)) > $luma-threshold
|
48
|
-
@return true
|
49
|
-
@else
|
50
|
-
@return null
|
36
|
+
@if color($color)
|
37
|
+
$rgba: red($color), green($color), blue($color)
|
38
|
+
$rgba2: ()
|
39
|
+
@for $i from 1 through 3
|
40
|
+
$rgb: nth($rgba, $i)
|
41
|
+
$rgb: $rgb / 255
|
42
|
+
$rgb: if($rgb < .03928, $rgb / 12.92, pow(($rgb + .055) / 1.055, 2.4))
|
43
|
+
$rgba2: append($rgba2, $rgb)
|
44
|
+
@return (.2126 * nth($rgba2, 1) + .7152 * nth($rgba2, 2) + .0722 * nth($rgba2, 3))*100
|
51
45
|
@else
|
52
|
-
@return
|
46
|
+
@return $color
|
47
|
+
|
53
48
|
|
54
49
|
@function luma_value($color-1, $color-2: null)
|
55
50
|
@if $color-2
|
@@ -72,17 +67,11 @@
|
|
72
67
|
@else
|
73
68
|
@return null
|
74
69
|
|
70
|
+
$luma-contrast-bright-color: $dark-text !default
|
71
|
+
$luma-contrast-dark-color: $bright-text !default
|
72
|
+
|
75
73
|
@function luma_contrast_color($color)
|
76
74
|
@if luma_bright($color)
|
77
|
-
@return $luma-contrast-bright-color
|
78
|
-
@else
|
79
|
-
@return $luma-contrast-dark-color
|
80
|
-
|
81
|
-
@function luma_add_contrast($background-color, $candidate-color)
|
82
|
-
@if luma_contrast($background-color, $candidate-color)
|
83
|
-
@return $candidate-color
|
75
|
+
@return if($luma-contrast-bright-color, $luma-contrast-bright-color, white)
|
84
76
|
@else
|
85
|
-
@if
|
86
|
-
@return tint($candidate-color, reverse(percentage(luma_value($background-color, $candidate-color)*0.01))/1.618)
|
87
|
-
@else
|
88
|
-
@return shade($candidate-color, reverse(percentage(luma_value($background-color, $candidate-color)*0.01))/1.618)
|
77
|
+
@return if($luma-contrast-dark-color, $luma-contrast-dark-color, black)
|
@@ -53,14 +53,6 @@ $basic-fonts: $basic-sans-serif !default
|
|
53
53
|
|
54
54
|
$default-text: #444444 !default
|
55
55
|
$reversal-text: white !default
|
56
|
-
$bright-text
|
57
|
-
$dark-text
|
56
|
+
$bright-text: $reversal-text !default
|
57
|
+
$dark-text: $default-text !default
|
58
58
|
$text-input-color: $default-text !default
|
59
|
-
|
60
|
-
/////////////////
|
61
|
-
// luma contrast color
|
62
|
-
////////////////
|
63
|
-
|
64
|
-
$luma-threshold: 13 !default
|
65
|
-
$luma-contrast-bright-color: $default-text !default
|
66
|
-
$luma-contrast-dark-color: $reversal-text !default
|
data/bower.json
CHANGED
data/lib/oulu/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oulu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- machida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|