oulu 0.11.10 → 0.12.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: a0d2fb4192ca32b9501edccd0c271e22065525b5
4
- data.tar.gz: 9b64087a78c69b0ba96a8e9397d76d9d0783eaee
3
+ metadata.gz: 90eb882e9263adcab4a33ddef0a5b02d165fbbd7
4
+ data.tar.gz: f0bdd4ee2838c3351baf3451c403a0b52a5dc8e8
5
5
  SHA512:
6
- metadata.gz: 64ea0152872398b4d2da7320821d827c4829409b7d7d16e36040534eb461572a0b47f5f4d25e4039ae3be7d59bb04647d815ebcbc8ba4ce07db1ea63c50a8a8c
7
- data.tar.gz: bf2d6aae96e701235d848770f78f53f882ab3cb6c47a1f44ef3ad4b99209679908b247c00a8e47a8e3af3ce9055131aedd85a3829b09082128dac6027efac9e4
6
+ metadata.gz: 4df6a80bb99e91246bff963bba47e2b20e2cbea770cbe71f66b39f61e0565f9b6949a51596b67be468197f13459fd22f7a18cd62224e0c42a1cb42fcebe1cb2a
7
+ data.tar.gz: f752bf6b7d55dd1c893a057bec3ec2040dc0e8917570b10265a4a4ef0dba2584ad0f07a8b4aea6f52b0125ac544009bb06f56f9d6a596ac8e54828fc3ce73d3c
data/README.md CHANGED
@@ -13,8 +13,8 @@ oulu is a sass mixin libraly.
13
13
  @import oulu-functions-before-variables
14
14
 
15
15
  // oulu-variables and yours
16
- @import oulu-variables
17
16
  @import {your variables}
17
+ @import oulu-variables
18
18
 
19
19
  // oulu-functions-after-variables (functions need variables)
20
20
  @import oulu-functions-after-variables
@@ -4,3 +4,4 @@
4
4
 
5
5
  @import settings/functions/number
6
6
  @import settings/functions/color
7
+ @import settings/functions/assign-inputs
@@ -2,7 +2,6 @@
2
2
  // functions
3
3
  ///////////////////
4
4
 
5
- @import settings/functions/function-config
6
5
  @import settings/functions/math
7
6
  @import settings/functions/timing
8
7
  @import settings/functions/list
@@ -0,0 +1,37 @@
1
+ @charset "UTF-8"
2
+
3
+ // https://github.com/thoughtbot/bourbon/blob/master/core/bourbon/utilities/_assign-inputs.scss
4
+
5
+ /// Append pseudo-classes to a selector(s).
6
+ ///
7
+ /// @argument {list | string} $inputs
8
+ /// A selector, or list of selectors, to apply the pseudo-class to.
9
+ ///
10
+ /// @argument {pseudo-class} $pseudo [null]
11
+ /// The pseudo-class to be appended.
12
+ ///
13
+ /// @return {list}
14
+ ///
15
+ /// @access private
16
+
17
+ @function _assign-inputs($inputs, $pseudo: null)
18
+ $list: ()
19
+ @each $input in $inputs
20
+ $input: unquote($input)
21
+ $input: if($pseudo, $input + ":" + $pseudo, $input)
22
+ $list: append($list, $input, comma)
23
+ @return $list
24
+
25
+ /////////////////
26
+ // text-inputs
27
+ ////////////////
28
+
29
+ $text-inputs-list: 'input[type="color"]','input[type="date"]','input[type="datetime"]','input[type="datetime-local"]','input[type="email"]','input[type="month"]','input[type="number"]','input[type="password"]','input[type="search"]','input[type="tel"]','input[type="text"]','input[type="time"]','input[type="url"]','input[type="week"]','input:not([type])','textarea' !default
30
+
31
+ $all-text-inputs: assign-inputs($text-inputs-list)
32
+ $all-text-inputs-active: assign-inputs($text-inputs-list, active)
33
+ $all-text-inputs-focus: assign-inputs($text-inputs-list, focus)
34
+ $all-text-inputs-hover: assign-inputs($text-inputs-list, hover)
35
+
36
+ $inputs-en-list: 'input[type="email"]', 'input[type="number"]', 'input[type="search"]', 'input[type="tel"]', 'input[type="url"]', 'input[type="color"]', 'input[type="date"]', 'input[type="datetime"]', 'input[type="datetime-local"]', 'input[type="time"]'
37
+ $all-en-text-inputs: assign-inputs($inputs-en-list)
@@ -40,3 +40,6 @@ input[type="search"]
40
40
  ul,
41
41
  ol
42
42
  list-style: none
43
+
44
+ #{$text-inputs-list}
45
+ color: $text-input-color
@@ -13,6 +13,3 @@
13
13
  @content
14
14
  &.placeholder
15
15
  @content
16
-
17
- $inputs-en-list: 'input[type="email"]', 'input[type="number"]', 'input[type="search"]', 'input[type="tel"]', 'input[type="url"]', 'input[type="color"]', 'input[type="date"]', 'input[type="datetime"]', 'input[type="datetime-local"]', 'input[type="time"]'
18
- $all-en-text-inputs: assign-inputs($inputs-en-list)
@@ -51,10 +51,11 @@ $basic-fonts: $basic-sans-serif !default
51
51
  // text colors
52
52
  ////////////////
53
53
 
54
- $default-text: #434a54 !default
54
+ $default-text: #444444 !default
55
55
  $reversal-text: white !default
56
56
  $bright-text-color: $reversal-text !default
57
57
  $dark-text-color: $default-text !default
58
+ $text-input-color: $default-text !default
58
59
 
59
60
  /////////////////
60
61
  // luma contrast color
@@ -1,6 +1,6 @@
1
1
  $root-background-color: #FFFFFF !default
2
2
  $root-box-sizing: border-box !default
3
- $root-color: #000000 !default
3
+ $root-color: $default-text !default
4
4
  $root-cursor: default !default
5
5
  $root-font-family: sans-serif !default
6
6
  $root-font-size: if($base-px = 100px, 100%, $base-px) !default
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oulu",
3
- "version": "0.11.10",
3
+ "version": "0.12.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
data/lib/oulu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oulu
2
- VERSION = "0.11.10"
2
+ VERSION = "0.12.0"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oulu",
3
- "version": "0.11.10",
3
+ "version": "0.12.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oulu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.10
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - machida
@@ -106,6 +106,7 @@ files:
106
106
  - app/assets/stylesheets/modules/web-fonts/_varela-round.sass
107
107
  - app/assets/stylesheets/modules/web-fonts/_vt323.sass
108
108
  - app/assets/stylesheets/settings/functions/_animation.sass
109
+ - app/assets/stylesheets/settings/functions/_assign-inputs.sass
109
110
  - app/assets/stylesheets/settings/functions/_background.sass
110
111
  - app/assets/stylesheets/settings/functions/_bool.sass
111
112
  - app/assets/stylesheets/settings/functions/_border.sass