sass-mixin-collection-rails 0.0.1
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 +15 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +22 -0
- data/Rakefile +1 -0
- data/lib/sass-mixin-collection-rails.rb +6 -0
- data/lib/sass-mixin-collection-rails/version.rb +3 -0
- data/sass-mixin-collection-rails.gemspec +26 -0
- data/vendor/assets/stylesheets/mixins/_effect.scss +11 -0
- data/vendor/assets/stylesheets/mixins/_image.scss +30 -0
- data/vendor/assets/stylesheets/mixins/_layout.scss +78 -0
- data/vendor/assets/stylesheets/mixins/_main.scss +23 -0
- data/vendor/assets/stylesheets/mixins/_mixin.scss +7 -0
- data/vendor/assets/stylesheets/mixins/_table.scss +100 -0
- data/vendor/assets/stylesheets/mixins/_text.scss +55 -0
- data/vendor/assets/stylesheets/mixins/_tooltips.scss +128 -0
- data/vendor/assets/stylesheets/mixins/_transform.scss +0 -0
- data/vendor/assets/stylesheets/sass-mixin-collections.scss +8 -0
- metadata +118 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YzkyZGEwNjVjZjIyMmYyMGJiYzA0MDBjYjFhYTRkYjJlNmJkZDU1YQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MzllNWVjMmIzMTQ2MGY2Y2MzYTExM2M5Y2QzNmNlOTkwNzY5ZWFhZA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZmVhMzNjYmNkNWE3YjlhM2MzNTY5N2NiNDA0OTg4ZjdlNmRjMGY4MDM2NTI3
|
10
|
+
YTU5ZmE2YjFjYWMxMjZhYWQ0ODVhZGZhZDJkZDk5OWE1NzcxNDlmYzI2NTY5
|
11
|
+
NjhmYWU5ODM1M2VhZGIyOGYyMzFiYjk2Njk4ZmQyMGVmZDFjOWQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YmUyMDliZjc4MmI0ZTcxZjUxZDczYTk5M2E0MmYzZWFlZjMxY2Q1NDc1Y2Ew
|
14
|
+
MDhmNzFjY2UyMTY0NmRhODMzZDNjZTAwZGExY2Y3OTI1ODIyMjU3NjRhY2U5
|
15
|
+
ZDljMDkwNzc3NWEzZmFmNGU2NjA0YzllYWJkYWZjYWE0MmFjMWM=
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 hatano
|
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,22 @@
|
|
1
|
+
# sass-mixin-collection-rails
|
2
|
+
|
3
|
+
Sassの個人的なMixinを集めたライブラリ
|
4
|
+
Railsで使います
|
5
|
+
|
6
|
+
!!!!!!!! Compass使いたくないので !!!!!!!!
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Gemfileに追加
|
11
|
+
|
12
|
+
gem 'sass-mixin-collection-rails'
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle install
|
17
|
+
|
18
|
+
## 使い方
|
19
|
+
sassファイルで以下を追加。
|
20
|
+
`all.scss`など、すべての`*.scss`を@importするファイルの先頭に追加するのが一番いい
|
21
|
+
|
22
|
+
@import "sass-mixin-collection";
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require File.expand_path('../lib/sass-mixin-collection-rails/version', __FILE__)
|
3
|
+
# $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
# require 'sass-mixin-collection/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "sass-mixin-collection-rails"
|
8
|
+
spec.version = SassMixinCollectionRails::VERSION
|
9
|
+
spec.authors = ["nyanzou4649"]
|
10
|
+
spec.email = ["nyanzou4649@gmail.com"]
|
11
|
+
spec.description = %q{Sassの個人的なMixinを集めたライブラリ}
|
12
|
+
spec.summary = %q{Sassの個人的なMixinを集めたライブラリ}
|
13
|
+
spec.homepage = "https://github.com/nyanzou4649/sass-mixin-collection-rails"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_runtime_dependency 'sass', '~> 3.2'
|
24
|
+
spec.add_development_dependency 'sass-rails', '>= 3.2'
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
@mixin hover-effect(
|
4
|
+
$background_prop: linear-gradient(#FFF,#EEE),
|
5
|
+
$shadow_prop: inset 0 3px 1px 0px rgba(51,51,51,.15),
|
6
|
+
$border_prop: 1px solid #f6ada7
|
7
|
+
){
|
8
|
+
background-image: $background_prop;
|
9
|
+
box-shadow: $shadow_prop ;
|
10
|
+
border: $border_prop;
|
11
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// CSSスプライト簡易mixin
|
2
|
+
// 簡単にhoverとnormalで切り替えられるようにする
|
3
|
+
@mixin spriteImg($pos,$hover_pos){
|
4
|
+
background-position: $pos;
|
5
|
+
&:hover{
|
6
|
+
background-position: $hover_pos;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
|
11
|
+
//Retina対応でbackground-imageを1行で描けるMixin
|
12
|
+
@mixin bg-img($image) {
|
13
|
+
background-image: image-url($image);
|
14
|
+
-webkit-background-size: image-width($image) / 2 image-height($image) / 2;
|
15
|
+
background-size: image-width($image) / 2 image-height($image) / 2;
|
16
|
+
background-repeat: no-repeat;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
//ナビゲーションスプライト
|
21
|
+
@mixin navImagePosition($pos){
|
22
|
+
a{
|
23
|
+
background-position: -#{$pos} 0;
|
24
|
+
&:hover{background-position: -#{$pos} 50%;}
|
25
|
+
&:active{background-position: -#{$pos} 100%;}
|
26
|
+
}
|
27
|
+
&.current a{
|
28
|
+
background-position: -#{$pos} 100%;
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
//そのブロック要素を左右ネガティブマージンで余白なしにする
|
4
|
+
@mixin row($negative_margin){
|
5
|
+
margin: 0 -$negative_margin;
|
6
|
+
}
|
7
|
+
|
8
|
+
|
9
|
+
//入れ子フロートBOX作成
|
10
|
+
@mixin float_layout_box($wrap_width,$left_width,$left_margin:0,$left-class-name:"box-left",$right-class-name:"box-right"){
|
11
|
+
width: $wrap_width;
|
12
|
+
@include clearfix;
|
13
|
+
.#{$left-class-name}{
|
14
|
+
float: left;
|
15
|
+
width: $left_width;
|
16
|
+
margin-right: $left_margin;
|
17
|
+
box-sizing: border-box;
|
18
|
+
}
|
19
|
+
.#{$right-class-name}{
|
20
|
+
margin-left: $left_width + $left_margin;
|
21
|
+
box-sizing: border-box;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
//サムネ+タイトル+内容のブロックを作る
|
26
|
+
@mixin thumb_ttl_body(
|
27
|
+
$thumb_width : 50px,
|
28
|
+
$thumb_margin_body : 15px
|
29
|
+
){
|
30
|
+
$body_margin : $thumb_width + $thumb_margin_body;
|
31
|
+
.thumb{
|
32
|
+
width: 50px;
|
33
|
+
float: left;
|
34
|
+
}
|
35
|
+
.ttl{
|
36
|
+
margin-left: $body_margin;
|
37
|
+
}
|
38
|
+
.body{
|
39
|
+
margin-left: $body_margin;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
//高さ不明の要素に対して天地中央に配置(IE9にも対応)
|
44
|
+
@mixin vertical-middle-position{
|
45
|
+
position: relative;
|
46
|
+
top: 50%;
|
47
|
+
transform: translateY(-50%);
|
48
|
+
}
|
49
|
+
|
50
|
+
//グリッドカラムなレイアウトを作成
|
51
|
+
@mixin grid_layouts($grid-wrapper-width: 800px, $column: 5, $item-margin: 10px, $negative-margin-adjust: 0, $display_table:false ) {
|
52
|
+
//小数点切り上げ
|
53
|
+
$v1 : $grid-wrapper-width - $item-margin*($column+-1);
|
54
|
+
$grid-item-width: ceil( $v1 / $column);
|
55
|
+
box-sizing: border-box;
|
56
|
+
-moz-box-sizing: border-box;
|
57
|
+
width: $grid-wrapper-width;
|
58
|
+
padding: $item-margin $item-margin 0 $item-margin;
|
59
|
+
.col-group {
|
60
|
+
@if($display_table){
|
61
|
+
display: table;
|
62
|
+
}
|
63
|
+
margin-left: -($item-margin + $negative-margin-adjust);
|
64
|
+
.col {
|
65
|
+
@if($display_table){
|
66
|
+
display: table-cell;
|
67
|
+
}@else{
|
68
|
+
box-sizing: border-box;
|
69
|
+
-moz-box-sizing: border-box;
|
70
|
+
}
|
71
|
+
width: $grid-item-width;
|
72
|
+
background-color: #fff;
|
73
|
+
float: left;
|
74
|
+
margin-left: $item-margin;
|
75
|
+
margin-bottom: $item-margin;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
|
2
|
+
@mixin clearfix(){
|
3
|
+
&:after{
|
4
|
+
content: '';
|
5
|
+
clear: both;
|
6
|
+
display: table;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
|
11
|
+
@mixin hide-text {
|
12
|
+
$approximate_em_value: 12px / 1em;
|
13
|
+
$wider_than_any_screen: -9999em;
|
14
|
+
text-indent: $wider_than_any_screen * $approximate_em_value;
|
15
|
+
overflow: hidden;
|
16
|
+
text-align: left;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
@mixin ellipsis {
|
21
|
+
white-space: nowrap;
|
22
|
+
overflow: hidden;
|
23
|
+
}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
@mixin table-color(
|
5
|
+
$header-row-color,
|
6
|
+
$even-row-color,
|
7
|
+
$odd-row-color
|
8
|
+
){
|
9
|
+
th {
|
10
|
+
background-color: $header-row-color;
|
11
|
+
}
|
12
|
+
tr {
|
13
|
+
&.odd, &:nth-child(2n+1) {
|
14
|
+
background-color: $odd-row-color;
|
15
|
+
td {
|
16
|
+
background-color: $odd-row-color;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
&.even, &:nth-child(2n) {
|
20
|
+
background-color: $even-row-color;
|
21
|
+
td {
|
22
|
+
background-color: $even-row-color;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
//テーブル
|
30
|
+
@mixin table-scaffolding($cell-padding:5px,$cell-align:center) {
|
31
|
+
vertical-align: middle;
|
32
|
+
border-color: inherit;
|
33
|
+
border-collapse: collapse;
|
34
|
+
th {
|
35
|
+
font-weight: bold;
|
36
|
+
}
|
37
|
+
td,
|
38
|
+
th {
|
39
|
+
text-align: $cell-align;
|
40
|
+
padding: $cell-padding;
|
41
|
+
&.numeric {
|
42
|
+
text-align: right;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
@mixin outer-table-borders($width: 1px, $color: black) {
|
50
|
+
@if not $width == none {
|
51
|
+
border: $width solid $color;
|
52
|
+
thead {
|
53
|
+
th {
|
54
|
+
border-bottom: $width solid $color;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
tfoot {
|
58
|
+
th, td {
|
59
|
+
border-top: $width solid $color;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
th {
|
63
|
+
&:first-child {
|
64
|
+
border-right: $width solid $color;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
|
71
|
+
@mixin inner-table-borders($width: 1px, $color: black) {
|
72
|
+
th, td {
|
73
|
+
border: {
|
74
|
+
right: $width solid $color;
|
75
|
+
bottom: $width solid $color;
|
76
|
+
left-width: 0px;
|
77
|
+
top-width: 0px;
|
78
|
+
};
|
79
|
+
&:last-child,
|
80
|
+
&.last {
|
81
|
+
border-right-width: 0px;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
// IE8 ignores rules that are included on the same line as :last-child
|
85
|
+
// see http://www.richardscarrott.co.uk/posts/view/ie8-last-child-bug for details
|
86
|
+
tbody, tfoot {
|
87
|
+
tr:last-child {
|
88
|
+
th, td {
|
89
|
+
border-bottom-width: 0px;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
tr.last {
|
93
|
+
th, td {
|
94
|
+
border-bottom-width: 0px;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
//ネオン風テキスト
|
2
|
+
@mixin neon-text{
|
3
|
+
text-shadow:0 0 6px white, 0 0 11px #1791FF, 0 0 17px #346795, 0 0 23px #0086FF;
|
4
|
+
color: #FFF;
|
5
|
+
}
|
6
|
+
|
7
|
+
//ネオン風テキスト2
|
8
|
+
@mixin neon-text2( $color,$size ){
|
9
|
+
$c1 : $color;
|
10
|
+
$c2 : darken($color,5%);
|
11
|
+
$c3 : lighten($color,3%);
|
12
|
+
$size1 : #{$size}px;
|
13
|
+
$size2 : #{$size+5}px;
|
14
|
+
$size3 : #{$size+10}px;
|
15
|
+
$size4 : #{$size+15}px;
|
16
|
+
text-shadow: 0 0 $size1 rgba(255,255,255,0.2), 0 0 $size2 $c1, 0 0 $size3 $c2, 0 0 $size4 $c3;
|
17
|
+
color: #FFF;
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
//wordbreak
|
22
|
+
@mixin word-break{
|
23
|
+
-ms-word-break: break-all;
|
24
|
+
word-break: break-all;
|
25
|
+
word-break: break-word;
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
//hoverテキスト hover時にunderline
|
30
|
+
@mixin hoverText{
|
31
|
+
text-decoration: none;
|
32
|
+
&:hover{
|
33
|
+
text-decoration: underline;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
//袋文字
|
38
|
+
@mixin fukuromoji($color:#444){
|
39
|
+
color: #FFF;
|
40
|
+
text-shadow:
|
41
|
+
0px 1px 1px $color,
|
42
|
+
0px 1px 1px $color,
|
43
|
+
1px 1px 1px $color,
|
44
|
+
1px 0px 1px $color,
|
45
|
+
1px 0px 1px $color,
|
46
|
+
1px -1px 1px $color,
|
47
|
+
1px -1px 1px $color,
|
48
|
+
0px -1px 1px $color,
|
49
|
+
-1px -1px 1px $color,
|
50
|
+
-1px -1px 1px $color,
|
51
|
+
-1px -1px 1px $color,
|
52
|
+
-1px 0px 1px $color,
|
53
|
+
-1px 1px 1px $color,
|
54
|
+
-1px 1px 1px $color;
|
55
|
+
}
|
@@ -0,0 +1,128 @@
|
|
1
|
+
// example
|
2
|
+
// ------------------------
|
3
|
+
// .tooltip{
|
4
|
+
// width: 250px;
|
5
|
+
// margin: 30px 0;
|
6
|
+
// padding: 10px;
|
7
|
+
// color: #333;
|
8
|
+
// @include tooltip(19px,top,#FFF,true,9px);
|
9
|
+
// }
|
10
|
+
|
11
|
+
@mixin tooltip(
|
12
|
+
$size: 5px,
|
13
|
+
$pos: left, //top,left,right,bottom
|
14
|
+
$bgcolor: #000,
|
15
|
+
$outline: false,
|
16
|
+
$tt_border_width:0,
|
17
|
+
$tt_border_color:#333,
|
18
|
+
$tt_offset:50%//吹き出しの尻尾の位置をずらしたいとき
|
19
|
+
){
|
20
|
+
background: $bgcolor;
|
21
|
+
position: relative;
|
22
|
+
// outline == falseのとき
|
23
|
+
@if ($outline == false ){
|
24
|
+
&:before {
|
25
|
+
border-style: solid;
|
26
|
+
content: "";
|
27
|
+
display: block;
|
28
|
+
position: absolute;
|
29
|
+
@if (($pos == top) or ($pos == bottom)) {
|
30
|
+
border-color: $bgcolor transparent;
|
31
|
+
left: $tt_offset;
|
32
|
+
margin-left: -$size;
|
33
|
+
} @else {
|
34
|
+
border-color: transparent $bgcolor;
|
35
|
+
margin-top: -$size;
|
36
|
+
top: $tt_offset;
|
37
|
+
}
|
38
|
+
@if ($pos == top) {
|
39
|
+
border-width: 0 $size $size $size;
|
40
|
+
top: -$size;
|
41
|
+
}
|
42
|
+
@if ($pos == right) {
|
43
|
+
border-width: $size 0 $size $size;
|
44
|
+
right: -$size;
|
45
|
+
}
|
46
|
+
@if ($pos == bottom) {
|
47
|
+
border-width: $size $size 0 $size;
|
48
|
+
bottom: -$size;
|
49
|
+
}
|
50
|
+
@if ($pos == left) {
|
51
|
+
border-width: $size $size $size 0;
|
52
|
+
left: -$size;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
// outline == trueのとき
|
57
|
+
@if ($outline == true){
|
58
|
+
border: $tt_border_width solid $tt_border_color;
|
59
|
+
|
60
|
+
&:after,
|
61
|
+
&:before{
|
62
|
+
border-style: solid;
|
63
|
+
content: "";
|
64
|
+
display: block;
|
65
|
+
position: absolute;
|
66
|
+
}
|
67
|
+
|
68
|
+
&:after {
|
69
|
+
@if (($pos == top) or ($pos == bottom)) {
|
70
|
+
border-color: $bgcolor transparent;
|
71
|
+
left: $tt_offset;
|
72
|
+
margin-left: -$size;
|
73
|
+
} @else {
|
74
|
+
border-color: transparent $bgcolor;
|
75
|
+
margin-top: -$size;
|
76
|
+
top: $tt_offset;
|
77
|
+
}
|
78
|
+
@if ($pos == top) {
|
79
|
+
border-width: 0 $size $size $size;
|
80
|
+
top: -$size;
|
81
|
+
}
|
82
|
+
@if ($pos == right) {
|
83
|
+
border-width: $size 0 $size $size;
|
84
|
+
right: -$size;
|
85
|
+
}
|
86
|
+
@if ($pos == bottom) {
|
87
|
+
border-width: $size $size 0 $size;
|
88
|
+
bottom: -$size;
|
89
|
+
}
|
90
|
+
@if ($pos == left) {
|
91
|
+
border-width: $size $size $size 0;
|
92
|
+
left: -$size;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
&:before{
|
97
|
+
|
98
|
+
$calc_size : $size + $tt_border_width;
|
99
|
+
|
100
|
+
@if (($pos == top) or ($pos == bottom)) {
|
101
|
+
border-color: $tt_border_color transparent;
|
102
|
+
left: $tt_offset;
|
103
|
+
margin-left: -$calc_size;
|
104
|
+
} @else {
|
105
|
+
border-color: transparent $tt_border_color;
|
106
|
+
margin-top: -$calc_size;
|
107
|
+
top: $tt_offset;
|
108
|
+
}
|
109
|
+
@if ($pos == top) {
|
110
|
+
border-width: 0 $calc_size $calc_size $calc_size;
|
111
|
+
top: -$calc_size;
|
112
|
+
}
|
113
|
+
@if ($pos == right) {
|
114
|
+
border-width: $calc_size 0 $calc_size $calc_size;
|
115
|
+
right: -$calc_size;
|
116
|
+
}
|
117
|
+
@if ($pos == bottom) {
|
118
|
+
border-width: $calc_size $calc_size 0 $calc_size;
|
119
|
+
bottom: -$calc_size;
|
120
|
+
}
|
121
|
+
@if ($pos == left) {
|
122
|
+
border-width: $calc_size $calc_size $calc_size 0;
|
123
|
+
left: -$calc_size;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
}//@if-end
|
128
|
+
}//end
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sass-mixin-collection-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- nyanzou4649
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sass
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sass-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.2'
|
69
|
+
description: Sassの個人的なMixinを集めたライブラリ
|
70
|
+
email:
|
71
|
+
- nyanzou4649@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- .gitignore
|
77
|
+
- Gemfile
|
78
|
+
- LICENSE.txt
|
79
|
+
- README.md
|
80
|
+
- Rakefile
|
81
|
+
- lib/sass-mixin-collection-rails.rb
|
82
|
+
- lib/sass-mixin-collection-rails/version.rb
|
83
|
+
- sass-mixin-collection-rails.gemspec
|
84
|
+
- vendor/assets/stylesheets/mixins/_effect.scss
|
85
|
+
- vendor/assets/stylesheets/mixins/_image.scss
|
86
|
+
- vendor/assets/stylesheets/mixins/_layout.scss
|
87
|
+
- vendor/assets/stylesheets/mixins/_main.scss
|
88
|
+
- vendor/assets/stylesheets/mixins/_mixin.scss
|
89
|
+
- vendor/assets/stylesheets/mixins/_table.scss
|
90
|
+
- vendor/assets/stylesheets/mixins/_text.scss
|
91
|
+
- vendor/assets/stylesheets/mixins/_tooltips.scss
|
92
|
+
- vendor/assets/stylesheets/mixins/_transform.scss
|
93
|
+
- vendor/assets/stylesheets/sass-mixin-collections.scss
|
94
|
+
homepage: https://github.com/nyanzou4649/sass-mixin-collection-rails
|
95
|
+
licenses:
|
96
|
+
- MIT
|
97
|
+
metadata: {}
|
98
|
+
post_install_message:
|
99
|
+
rdoc_options: []
|
100
|
+
require_paths:
|
101
|
+
- lib
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ! '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ! '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
requirements: []
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 2.1.5
|
115
|
+
signing_key:
|
116
|
+
specification_version: 4
|
117
|
+
summary: Sassの個人的なMixinを集めたライブラリ
|
118
|
+
test_files: []
|