scss-toolkit-rails 0.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5655d3f0654a051d9c4491efa3117105173863cf
4
+ data.tar.gz: a0a020031389fdab42e384bb88a28cb487dea0ed
5
+ SHA512:
6
+ metadata.gz: 3e8e5f2e910049748700b30d9c5005683b8aabdc1d72b2ca6c0280c5fee2f0aa115e337dae5fc633cad3d7501f7eef278c7593615f7c2c0be5fcb4f479813655
7
+ data.tar.gz: acba5411a0d1cae5bd6477e49bc5e6638e0527626d6e63da2bab0c63d3279ec393e13f4ee7c3eb1924bc9c8cf31f11ec50a33073ebd409779557530290fade8f
data/MIT-LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 mahm
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # scss-toolkit-rails
2
+
3
+ Scss/compassを利用したMixinをまとめたGemです。
4
+
5
+ ## Installation
6
+
7
+ ### Railsユーザー向け
8
+
9
+ 1) 以下のコードを`Gemfile`に追加してください:
10
+
11
+ ```ruby
12
+ group :assets do
13
+ gem 'sass-rails'
14
+ gem 'compass-rails'
15
+ gem 'scss-toolkit-rails'
16
+ end
17
+ ```
18
+
19
+ 2) 以下のコードを`application.css.sass`のようなファイルに追加して下さい:
20
+
21
+ ```sass
22
+ @import compass/utilities
23
+ @import compass/css3
24
+ @import scss-toolkit
25
+ ```
26
+
27
+ 3) Enjoy!
28
+
29
+ ### Rails以外(Middlemanなど)でお使いの方向け
30
+
31
+ 1) 以下のコマンドを実行して、ローカルに`_scss-toolkit.sass`をダウンロードして下さい:
32
+
33
+ ```
34
+ curl https://raw.github.com/mahm/scss-toolkit-rails/master/vendor/assets/stylesheets/_scss-toolkit.sass > _scss-toolkit.sass
35
+ ```
36
+
37
+ 2) Compassの使える環境で`_scss-toolkit.sass`をインポートしてお使いください:
38
+
39
+ ```sass
40
+ @import compass/utilities
41
+ @import compass/css3
42
+ @import scss-toolkit
43
+ ```
44
+
45
+ 3) Enjoy!
46
+
47
+
48
+ ## 使用例
49
+
50
+ - under construction
@@ -0,0 +1,6 @@
1
+ require "scss-toolkit-rails/version"
2
+
3
+ module ScssToolkitRails
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
@@ -0,0 +1,3 @@
1
+ module ScssToolkitRails
2
+ VERSION = "0.0.0"
3
+ end
@@ -0,0 +1,70 @@
1
+ //compassとscssを使った便利なuiパーツの紹介
2
+
3
+ // 【1】css3を使ったボタン
4
+ // 引数に色名(cssで指定出来る形式ならなんでもOK)を入れると、その色をベースカラーとしたボタンが一瞬で作れます。
5
+
6
+ .btn-3d {
7
+ @include css3-button(blue);
8
+ }
9
+
10
+ @mixin css3-button($base-color) {
11
+ /* IE8以下対策でベースカラーを背景色に指定 */
12
+ background: $base-color;
13
+ /* 角丸を3px指定(compassのincludeでブラウザ間の差異を吸収) */
14
+ @include border-radius(3px);
15
+ /* box-shadowを指定(compassのincludeでブラウザ間の差異を吸収) */
16
+ @include box-shadow
17
+ (0px 1px 3px rgba(000,000,000,0.3),
18
+ inset 0px 0px 1px rgba(255,255,255,0.5));
19
+ /* text-shadowを指定(compassのincludeでブラウザ間の差異を吸収) */
20
+ @include text-shadow
21
+ (0px -1px 0px rgba(000,000,000,0.7),
22
+ 0px 1px 0px rgba(255,255,255,0.3));
23
+ /* 背景色を指定(compassのincludeでブラウザ間の差異を吸収) */
24
+ @include background-image(
25
+ linear-gradient(
26
+ /* グラデーション開始色・・・ベースカラーに白(#fff)を50%混合 */
27
+ mix($base-color, #fff, 50%),
28
+ /* 50%の位置まで徐々にベースカラーになる */
29
+ $base-color 50%,
30
+ /* 50%の位置でベースカラーに黒(#000)を60%混合したカラーでグラデーション開始 */
31
+ mix($base-color, #000, 60%) 50%,
32
+ /* ベースカラーと白(#fff)80%の割合で混合した色まで変化 */
33
+ mix($base-color, #fff, 80%)
34
+ )
35
+ );
36
+ /* ベースカラーに黒を8:2の割合で混合した色でborder(枠線)をつける */
37
+ border: 1px solid mix($base-color, #000, 80%);
38
+ color: white;
39
+ display: block;
40
+ padding: 6px 10px;
41
+ text-decoration: none;
42
+
43
+ &:hover {
44
+ /* box-shadowのinsetを明るく大きくし、rolloverを表現 */
45
+ @include box-shadow
46
+ (0px 1px 3px rgba(000,000,000,0.3),
47
+ inset 0px 0px 15px rgba(255,255,255,0.6));
48
+ /* ベースカラーでborder(枠線)をつける */
49
+ border: 1px solid $base-color;
50
+ }
51
+ }
52
+
53
+ //compassとscssを使った便利なuiパーツの紹介
54
+
55
+ // 【2】袋文字テキスト
56
+
57
+ .text-outline-character {
58
+ @include text-outline-character(blue, white);
59
+ }
60
+
61
+ @mixin text-outline-character($text-color, $outline-color) {
62
+ @include text-shadow(
63
+ $outline-color -1px -1px 0px,
64
+ $outline-color 1px -1px 0px,
65
+ $outline-color 1px 1px 0px,
66
+ $outline-color -1px 1px 0px,
67
+ rgba(0, 0, 0, 0.8) 1px 2px 3px);
68
+ color: $text-color;
69
+ }
70
+
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scss-toolkit-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - dentaq
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ description: Scss mixins by dentaq
28
+ email:
29
+ - katsu.home@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - MIT-LICENSE
35
+ - README.md
36
+ - lib/scss-toolkit-rails.rb
37
+ - lib/scss-toolkit-rails/version.rb
38
+ - vendor/assets/stylesheets/_scss-toolkit.scss
39
+ homepage: https://github.com/dentaq/scss-toolkit-rails
40
+ licenses: []
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubyforge_project:
58
+ rubygems_version: 2.2.1
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Scss mixins by dentaq
62
+ test_files: []