spuit 0.0.14.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.npmignore +10 -6
- data/Gemfile.lock +1 -1
- data/README.md +20 -1
- data/assets/html/index.ejs +328 -0
- data/assets/javascripts/scripts.js +3 -3
- data/assets/stylesheets/styles.scss +8 -3
- data/dist/favicon.ico +0 -0
- data/dist/index.html +1 -323
- data/dist/javascripts/scripts.js +1 -1
- data/dist/stylesheets/styles.css +2 -2
- data/lib/spuit/version.rb +1 -1
- data/package.json +19 -18
- data/scss/{components → _}/_body.sass +0 -0
- data/scss/{components → _}/_form.sass +0 -0
- data/scss/{components → _}/_gist.sass +0 -0
- data/scss/{components → _}/_grids.sass +0 -0
- data/scss/{components → _}/_markdown.sass +0 -0
- data/scss/components/_button.scss +140 -0
- data/scss/components/_messages.scss +23 -0
- data/scss/components/{_shoulder.sass → _shoulder.scss} +6 -5
- data/scss/components/_split.scss +45 -0
- data/scss/components/_triangle.scss +50 -0
- data/scss/components/_wordwrap-fadeout.scss +22 -0
- data/scss/components/_wrap.scss +27 -0
- data/scss/elements/_dl.scss +40 -0
- data/scss/elements/_fieldset.scss +63 -0
- data/scss/elements/_hr.scss +39 -0
- data/scss/elements/_input.scss +35 -0
- data/scss/elements/_table.scss +102 -0
- data/scss/{components → includes}/_icon.scss +0 -0
- data/scss/spuit.scss +1 -4
- data/scss/variables/_timing-functions.scss +37 -0
- data/spuit.scss +1 -46
- data/webpack/css.webpack.config.js +37 -5
- data/webpack/js.webpack.config.js +13 -8
- data/yarn.lock +3390 -4480
- metadata +23 -22
- data/.editorconfig +0 -11
- data/scss/components/_button.sass +0 -116
- data/scss/components/_messages.sass +0 -18
- data/scss/components/_split.sass +0 -32
- data/scss/components/_triangle.sass +0 -40
- data/scss/components/_wordwrap-fadeout.sass +0 -19
- data/scss/components/_wrap.sass +0 -22
- data/scss/elements/_dl.sass +0 -30
- data/scss/elements/_fieldset.sass +0 -46
- data/scss/elements/_hr.sass +0 -36
- data/scss/elements/_input.sass +0 -27
- data/scss/elements/_table.sass +0 -58
- data/scss/variables/_timing-functions.sass +0 -37
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spuit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- is8r
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|
@@ -116,13 +116,13 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
-
- ".editorconfig"
|
120
119
|
- ".gitignore"
|
121
120
|
- ".npmignore"
|
122
121
|
- Gemfile
|
123
122
|
- Gemfile.lock
|
124
123
|
- README.md
|
125
124
|
- Rakefile
|
125
|
+
- assets/html/index.ejs
|
126
126
|
- assets/javascripts/scripts.js
|
127
127
|
- assets/javascripts/spuit/Common.js
|
128
128
|
- assets/javascripts/spuit/extend.js
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- assets/stylesheets/styles/config/_variables.scss
|
132
132
|
- bin/spuit
|
133
133
|
- design/icons.sketch
|
134
|
+
- dist/favicon.ico
|
134
135
|
- dist/favicon.png
|
135
136
|
- dist/index.html
|
136
137
|
- dist/javascripts/scripts.js
|
@@ -142,30 +143,30 @@ files:
|
|
142
143
|
- lib/spuit/version.rb
|
143
144
|
- package-lock.json
|
144
145
|
- package.json
|
145
|
-
- scss/
|
146
|
-
- scss/
|
147
|
-
- scss/
|
148
|
-
- scss/
|
149
|
-
- scss/
|
150
|
-
- scss/components/
|
151
|
-
- scss/components/
|
152
|
-
- scss/components/
|
153
|
-
- scss/components/
|
154
|
-
- scss/components/_split.sass
|
146
|
+
- scss/_/_body.sass
|
147
|
+
- scss/_/_form.sass
|
148
|
+
- scss/_/_gist.sass
|
149
|
+
- scss/_/_grids.sass
|
150
|
+
- scss/_/_markdown.sass
|
151
|
+
- scss/components/_button.scss
|
152
|
+
- scss/components/_messages.scss
|
153
|
+
- scss/components/_shoulder.scss
|
154
|
+
- scss/components/_split.scss
|
155
155
|
- scss/components/_switch.scss
|
156
|
-
- scss/components/_triangle.
|
157
|
-
- scss/components/_wordwrap-fadeout.
|
158
|
-
- scss/components/_wrap.
|
156
|
+
- scss/components/_triangle.scss
|
157
|
+
- scss/components/_wordwrap-fadeout.scss
|
158
|
+
- scss/components/_wrap.scss
|
159
159
|
- scss/elements/_custom-checkbox.scss
|
160
|
-
- scss/elements/_dl.
|
161
|
-
- scss/elements/_fieldset.
|
162
|
-
- scss/elements/_hr.
|
163
|
-
- scss/elements/_input.
|
160
|
+
- scss/elements/_dl.scss
|
161
|
+
- scss/elements/_fieldset.scss
|
162
|
+
- scss/elements/_hr.scss
|
163
|
+
- scss/elements/_input.scss
|
164
164
|
- scss/elements/_select.scss
|
165
|
-
- scss/elements/_table.
|
165
|
+
- scss/elements/_table.scss
|
166
166
|
- scss/includes/_animations.scss
|
167
167
|
- scss/includes/_grid.scss
|
168
168
|
- scss/includes/_hiddens.scss
|
169
|
+
- scss/includes/_icon.scss
|
169
170
|
- scss/includes/_normalize.scss
|
170
171
|
- scss/includes/_spacers.scss
|
171
172
|
- scss/includes/_spuit-utils.scss
|
@@ -190,7 +191,7 @@ files:
|
|
190
191
|
- scss/variables/_fonts.scss
|
191
192
|
- scss/variables/_media-queries.scss
|
192
193
|
- scss/variables/_svgs.scss
|
193
|
-
- scss/variables/_timing-functions.
|
194
|
+
- scss/variables/_timing-functions.scss
|
194
195
|
- spuit.gemspec
|
195
196
|
- spuit.scss
|
196
197
|
- webpack/css.webpack.config.js
|
data/.editorconfig
DELETED
@@ -1,116 +0,0 @@
|
|
1
|
-
=button-base($c: transparent)
|
2
|
-
box-sizing: border-box
|
3
|
-
box-shadow: none
|
4
|
-
appearance: none
|
5
|
-
display: inline-block
|
6
|
-
border-radius: 0
|
7
|
-
background-color: $c
|
8
|
-
background-image: linear-gradient(to top, $c, $c)
|
9
|
-
position: relative
|
10
|
-
cursor: pointer
|
11
|
-
text-align: center
|
12
|
-
font-weight: normal
|
13
|
-
margin: 0
|
14
|
-
padding: 0
|
15
|
-
border: none
|
16
|
-
outline: none
|
17
|
-
&:link, &:visited, &:hover, &:active, &:active
|
18
|
-
text-decoration: none
|
19
|
-
&:focus
|
20
|
-
outline: none
|
21
|
-
&:disabled,
|
22
|
-
&.is-disabled
|
23
|
-
+button-disabled
|
24
|
-
opacity: 0.2
|
25
|
-
// &.is-loading
|
26
|
-
// +button-loading
|
27
|
-
|
28
|
-
=button-disabled
|
29
|
-
cursor: default
|
30
|
-
pointer-events: none
|
31
|
-
|
32
|
-
=button-loading
|
33
|
-
+button-disabled
|
34
|
-
+icon-loading
|
35
|
-
opacity: 0.6
|
36
|
-
|
37
|
-
// .button-normal
|
38
|
-
// +button-normal(10px 10px, #529ef6, #fff, 2px)
|
39
|
-
=button-normal($p: 10px 10px, $c: #529ef6, $c-text: #fff, $r: 2px)
|
40
|
-
+button-base
|
41
|
-
border-radius: $r
|
42
|
-
border: 1px solid $c
|
43
|
-
background-color: $c
|
44
|
-
color: $c-text
|
45
|
-
padding: $p
|
46
|
-
line-height: 1
|
47
|
-
&:focus
|
48
|
-
background-color: $c
|
49
|
-
&:hover,
|
50
|
-
&:active,
|
51
|
-
&.is-current
|
52
|
-
background-color: darken($c, 10%)
|
53
|
-
color: $c-text
|
54
|
-
border-color: $c
|
55
|
-
|
56
|
-
// .button-semiflat
|
57
|
-
// +button-semiflat(10px 10px, #529ef6, 10%, #fff, 2px)
|
58
|
-
=button-semiflat($p: 10px 10px, $c: #529ef6, $strangth: 5%, $c-text: #fff, $r: 4px)
|
59
|
-
+button-base
|
60
|
-
border-radius: $r
|
61
|
-
background-color: $c
|
62
|
-
background-image: linear-gradient(to top, $c, lighten($c, $strangth))
|
63
|
-
border: 1px solid lighten($c, $strangth)
|
64
|
-
color: $c-text
|
65
|
-
padding: $p
|
66
|
-
line-height: 1
|
67
|
-
&:focus
|
68
|
-
background-color: $c
|
69
|
-
background-image: linear-gradient(to top, $c, lighten($c, $strangth))
|
70
|
-
&:hover,
|
71
|
-
&:active,
|
72
|
-
&.is-current
|
73
|
-
background-color: darken($c, $strangth)
|
74
|
-
background-image: linear-gradient(to top, darken($c, $strangth), $c)
|
75
|
-
|
76
|
-
// .button-border
|
77
|
-
// +button-border(10px 10px, #529ef6, #fff)
|
78
|
-
=button-border($p: 10px 10px, $c: #529ef6, $c-text: #fff, $border: 1px, $r: 2px)
|
79
|
-
+button-base
|
80
|
-
border-radius: $r
|
81
|
-
background-color: transparent
|
82
|
-
padding: $p
|
83
|
-
border: $border solid $c
|
84
|
-
color: $c
|
85
|
-
line-height: 1
|
86
|
-
&:focus
|
87
|
-
background-color: transparent
|
88
|
-
border: $border solid $c
|
89
|
-
&:hover,
|
90
|
-
&:active,
|
91
|
-
&.is-current
|
92
|
-
background-color: $c
|
93
|
-
color: $c-text
|
94
|
-
border-color: transparet
|
95
|
-
|
96
|
-
// .button-emboss
|
97
|
-
// +button-emboss(10px 10px, #529ef6, #fff, 6px, 4px)
|
98
|
-
=button-emboss($p: 10px 10px, $c: #529ef6, $c-text: #fff, $thickness: 6px, $r: 4px)
|
99
|
-
+button-base
|
100
|
-
transition: all 0.05s ease-out
|
101
|
-
transform: translateY(-$thickness)
|
102
|
-
box-shadow: 0 $thickness 0 darken($c, 10%)
|
103
|
-
border-radius: $r
|
104
|
-
background-color: $c
|
105
|
-
color: $c-text
|
106
|
-
padding: $p
|
107
|
-
line-height: 1
|
108
|
-
&:focus
|
109
|
-
background-color: $c
|
110
|
-
box-shadow: 0 $thickness 0 darken($c, 10%)
|
111
|
-
&:hover,
|
112
|
-
&:active,
|
113
|
-
&.is-current
|
114
|
-
transform: translateY(0)
|
115
|
-
box-shadow: 0 0 0 $c
|
116
|
-
background-color: darken($c, 10%)
|
@@ -1,18 +0,0 @@
|
|
1
|
-
=message-element($name: info, $color: #3498DB)
|
2
|
-
box-sizing: border-box
|
3
|
-
padding: 12px
|
4
|
-
border-radius: 3px
|
5
|
-
display: block
|
6
|
-
|
7
|
-
&.is-#{$name}
|
8
|
-
color: $color
|
9
|
-
background: rgba($color, 0.1)
|
10
|
-
border: 1px solid rgba($color, 0.15)
|
11
|
-
|
12
|
-
=util-messages($color-info: #3498DB, $color-success: #1ABC9C, $color-warning: #F1C40F, $color-danger: #E74C3C)
|
13
|
-
@at-root
|
14
|
-
.message
|
15
|
-
+message-element(info, $color-info)
|
16
|
-
+message-element(success, $color-success)
|
17
|
-
+message-element(warning, $color-warning)
|
18
|
-
+message-element(danger, $color-danger)
|
data/scss/components/_split.sass
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
// Example:
|
2
|
-
|
3
|
-
// Simple Grid System - ie9-
|
4
|
-
@function split-width($column: 5, $gutter: 2)
|
5
|
-
$parcent: (1/$column) * 100
|
6
|
-
$margin: ($gutter * ($column - 1)) / $column
|
7
|
-
@return ($parcent - $margin)
|
8
|
-
|
9
|
-
=split($column: 5, $gutter: 2, $debug: false)
|
10
|
-
@at-root
|
11
|
-
#{&}
|
12
|
-
+clearfix
|
13
|
-
+reset-ul
|
14
|
-
position: relative
|
15
|
-
> *
|
16
|
-
@if $debug
|
17
|
-
+debug-block
|
18
|
-
display: inline-block
|
19
|
-
float: left
|
20
|
-
box-sizing: border-box
|
21
|
-
width: split-width($column, $gutter) * 1%
|
22
|
-
margin-left: $gutter * 1%
|
23
|
-
@for $i from 0 through 150
|
24
|
-
@if $i%$column == 1
|
25
|
-
&:nth-child(#{$i})
|
26
|
-
clear: both
|
27
|
-
margin-left: 0
|
28
|
-
@else
|
29
|
-
&:nth-child(#{$i})
|
30
|
-
clear: none
|
31
|
-
margin-left: $gutter * 1%
|
32
|
-
margin-bottom: 10px
|
@@ -1,40 +0,0 @@
|
|
1
|
-
// Example:
|
2
|
-
// +triangle(#222, 12px, $w/2, 0, 'left')
|
3
|
-
|
4
|
-
=triangle($c: #2dd, $w:20px, $l: 0, $t: 0, $direction: "right", $element: "after")
|
5
|
-
position: relative
|
6
|
-
&:#{$element}
|
7
|
-
content: ""
|
8
|
-
position: absolute
|
9
|
-
width: 0
|
10
|
-
height: 0
|
11
|
-
border: $w solid transparent
|
12
|
-
border-top-color: $c
|
13
|
-
@if $direction == "left"
|
14
|
-
&:#{$element}
|
15
|
-
transform: translateX(-$w*2) translateY(-$w) rotate(90deg)
|
16
|
-
left: $l
|
17
|
-
right: auto
|
18
|
-
top: $t
|
19
|
-
@if $direction == "right"
|
20
|
-
&:#{$element}
|
21
|
-
transform: translateX($w*2) translateY(-$w) rotate(-90deg)
|
22
|
-
left: auto
|
23
|
-
right: $l
|
24
|
-
top: $t
|
25
|
-
@if $direction == "top"
|
26
|
-
&:#{$element}
|
27
|
-
transform: translateX(-$w) translateY(-$w*2) rotate(180deg)
|
28
|
-
right: auto
|
29
|
-
left: $l
|
30
|
-
top: $t
|
31
|
-
@if $direction == "bottom"
|
32
|
-
&:#{$element}
|
33
|
-
transform: translateX(-$w) translateY($w*2) rotate(0)
|
34
|
-
right: auto
|
35
|
-
left: $l
|
36
|
-
bottom: $t
|
37
|
-
|
38
|
-
=tri($c: #2dd, $w:20px, $l: 0, $t: 0, $direction: "right", $element: "after")
|
39
|
-
+triangle($c, $w, $l, $t, $direction, $element)
|
40
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
=wordwrap-fadeout($h: 40px, $m: 10px, $c: #fff)
|
2
|
-
position: relative
|
3
|
-
overflow: hidden
|
4
|
-
&:before
|
5
|
-
content: ''
|
6
|
-
position: absolute
|
7
|
-
bottom: 0
|
8
|
-
left: 0
|
9
|
-
width: 100%
|
10
|
-
height: $m
|
11
|
-
background: $c
|
12
|
-
&:after
|
13
|
-
background-image: linear-gradient(to top, rgba($c,1), rgba($c,0))
|
14
|
-
content: ''
|
15
|
-
position: absolute
|
16
|
-
bottom: $m
|
17
|
-
left: 0
|
18
|
-
width: 100%
|
19
|
-
height: $h
|
data/scss/components/_wrap.sass
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
=wrap($n: 960px, $margin: 10px)
|
2
|
-
width: 100%
|
3
|
-
margin: 0
|
4
|
-
padding: 0
|
5
|
-
text-align: center
|
6
|
-
min-width: $n
|
7
|
-
+breakpoint-down(sm)
|
8
|
-
width: auto
|
9
|
-
min-width: 0
|
10
|
-
|
11
|
-
@at-root
|
12
|
-
#{&}__inner
|
13
|
-
box-sizing: border-box
|
14
|
-
position: relative
|
15
|
-
display: block
|
16
|
-
width: $n
|
17
|
-
margin: 0 auto
|
18
|
-
text-align: left
|
19
|
-
+breakpoint-down(sm)
|
20
|
-
width: 100%
|
21
|
-
padding-left: $margin
|
22
|
-
padding-right: $margin
|
data/scss/elements/_dl.sass
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
=dl-base
|
2
|
-
margin: 0
|
3
|
-
padding: 0
|
4
|
-
> *
|
5
|
-
+break-word
|
6
|
-
margin: 0
|
7
|
-
padding: 0
|
8
|
-
display: border-box
|
9
|
-
|
10
|
-
=dl-flex($left: 30%, $p: 0.5rem 1rem)
|
11
|
-
+dl-base
|
12
|
-
display: flex
|
13
|
-
flex-flow: row wrap
|
14
|
-
justify-content: space-between
|
15
|
-
align-items: flex-start
|
16
|
-
align-content: flex-start
|
17
|
-
> dt
|
18
|
-
width: $left
|
19
|
-
padding: $p
|
20
|
-
padding-left: 0
|
21
|
-
> dd
|
22
|
-
width: 100% - $left
|
23
|
-
padding: $p
|
24
|
-
padding-right: 0
|
25
|
-
|
26
|
-
=dl-border($border: 1px solid #ddd, $left: 30%, $p: 0.5rem 1rem)
|
27
|
-
+dl-flex($left, $p)
|
28
|
-
border-bottom: $border
|
29
|
-
> *
|
30
|
-
border-top: $border
|
@@ -1,46 +0,0 @@
|
|
1
|
-
=fieldset-base($legend-width: 100px, $gutter: 20px)
|
2
|
-
+clearfix
|
3
|
-
position: relative
|
4
|
-
padding-left: $legend-width + $gutter
|
5
|
-
padding-bottom: 0.5rem
|
6
|
-
+breakpoint-down(sm)
|
7
|
-
padding-left: 0
|
8
|
-
padding-bottom: 1rem
|
9
|
-
|
10
|
-
> legend
|
11
|
-
width: $legend-width
|
12
|
-
margin-left: -($legend-width + $gutter)
|
13
|
-
display: inline-block
|
14
|
-
vertical-align: middle
|
15
|
-
float: left
|
16
|
-
|
17
|
-
+breakpoint-down(sm)
|
18
|
-
display: block
|
19
|
-
float: none
|
20
|
-
width: auto
|
21
|
-
margin-left: 0
|
22
|
-
|
23
|
-
&.has-padding
|
24
|
-
> legend
|
25
|
-
padding-top: 0.5rem
|
26
|
-
+breakpoint-down(sm)
|
27
|
-
padding-top: 0
|
28
|
-
|
29
|
-
//not <fieldset/>
|
30
|
-
=fieldset-flex($legend-width: 30%, $gutter: 20px)
|
31
|
-
display: flex
|
32
|
-
justify-content: space-between
|
33
|
-
align-items: center
|
34
|
-
min-width: 0
|
35
|
-
padding: 0
|
36
|
-
margin: 0 0 10px
|
37
|
-
border: 0
|
38
|
-
&:last-child
|
39
|
-
margin-bottom: 0
|
40
|
-
label, legend
|
41
|
-
margin-bottom: 0
|
42
|
-
> legend
|
43
|
-
width: $legend-width
|
44
|
-
padding-right: $gutter
|
45
|
-
> *:not(legend)
|
46
|
-
flex: 1
|
data/scss/elements/_hr.sass
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
=hr-center-border($w: 100px, $c: #000)
|
2
|
-
border: none
|
3
|
-
border-top: 1px solid $c
|
4
|
-
width: $w
|
5
|
-
margin-top: 50px
|
6
|
-
margin-bottom: 50px
|
7
|
-
|
8
|
-
// Example:
|
9
|
-
// .dotted
|
10
|
-
// +hr-dotted
|
11
|
-
// .dotted--alt
|
12
|
-
// +hr-dotted(#000, 4, 1)
|
13
|
-
|
14
|
-
=hr-dotted($color:rgba(#000, 1.0), $stripe: 1, $spacing: 4, $height:1)
|
15
|
-
+background-image(linear-gradient(left, $color 0%, $color ($stripe/($stripe+$spacing))*100%, transparent ($stripe/($stripe+$spacing))*100%, transparent 100%))
|
16
|
-
background-size: ($stripe+$spacing)*1px ($stripe+$spacing)*1px
|
17
|
-
height: $height*1px
|
18
|
-
border: none
|
19
|
-
|
20
|
-
// Example:
|
21
|
-
// .shaded
|
22
|
-
// +hr-shaded
|
23
|
-
|
24
|
-
=hr-shaded($deg:135deg, $color:rgba(#000, 1.0), $stripe: 1, $spacing: 1, $height:10px)
|
25
|
-
$_stripe: $stripe
|
26
|
-
$_spacing: $spacing
|
27
|
-
$_diagonal: ceil(($_stripe+$_spacing)*1.414)
|
28
|
-
$_pattern: $deg, $color, $color ($_stripe)*1px, transparent ($_stripe)*1px, transparent ($_diagonal)*1px, $color ($_diagonal)*1px
|
29
|
-
background-image: -webkit-repeating-linear-gradient($_pattern)
|
30
|
-
background-image: -moz-repeating-linear-gradient($_pattern)
|
31
|
-
background-image: -o-repeating-linear-gradient($_pattern)
|
32
|
-
background-image: -ms-repeating-linear-grad§ient($_pattern)
|
33
|
-
background-image: repeating-linear-gradient($_pattern)
|
34
|
-
background-size: (($_stripe+$_spacing)*2)*1px (($_stripe+$_spacing)*2)*1px
|
35
|
-
height: $height
|
36
|
-
border: none
|