beyond_canvas 0.3.0.pre → 0.4.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +16 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +2 -2
- data/app/assets/stylesheets/_beyond_canvas.sass +3 -0
- data/app/assets/stylesheets/components/_buttons.sass +4 -1
- data/app/assets/stylesheets/components/_comments.sass +5 -0
- data/app/assets/stylesheets/components/_margins.sass +7 -0
- data/app/assets/stylesheets/components/_tables.sass +25 -0
- data/app/assets/stylesheets/settings/_reset_css.sass +3 -2
- data/app/assets/stylesheets/settings/_variables.sass +10 -0
- data/app/form_builders/beyond_form_builder.rb +5 -15
- data/lib/beyond_canvas/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b87e149d3f5f2a2b06a55444ea9e426719c10cf2c86d34b9b22789128f8448
|
4
|
+
data.tar.gz: 0a7282ce9e986dce507ef877dee9122a51909eccf22c5798d81d2ebfbb1cc834
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbc241cfec02d3f28cecb6e470f8a7c5eb3b47e504a7b5b0ac7f800fd9951fb826bef066f649ca4bd85dcd352410ad39dfac5e35f3719d15e7fa6c33deb9760f
|
7
|
+
data.tar.gz: 7bd9c72fdbf0646652a72242cb61ef43e3c3374fdedcde410356641c1e278d916938fa9e68fac0d74b5d6d4128fdbe8256da8e23b1be3357953cae1077c4c043
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
beyond_canvas (0.
|
4
|
+
beyond_canvas (0.4.0.pre)
|
5
5
|
bourbon (~> 5.1)
|
6
6
|
inline_svg (~> 1.5)
|
7
7
|
neat (~> 3.0)
|
@@ -47,7 +47,7 @@ GEM
|
|
47
47
|
nokogiri (>= 1.5.9)
|
48
48
|
method_source (0.9.2)
|
49
49
|
mini_portile2 (2.4.0)
|
50
|
-
minitest (5.
|
50
|
+
minitest (5.13.0)
|
51
51
|
neat (3.0.1)
|
52
52
|
sass (~> 3.4)
|
53
53
|
thor (~> 0.19)
|
@@ -10,9 +10,12 @@
|
|
10
10
|
|
11
11
|
@import 'components/buttons'
|
12
12
|
@import 'components/cards'
|
13
|
+
@import 'components/comments'
|
13
14
|
@import 'components/flash'
|
14
15
|
@import 'components/forms'
|
15
16
|
@import 'components/inputs'
|
16
17
|
@import 'components/links'
|
17
18
|
@import 'components/main'
|
19
|
+
@import 'components/margins'
|
18
20
|
@import 'components/relative'
|
21
|
+
@import 'components/tables'
|
@@ -3,6 +3,7 @@
|
|
3
3
|
border-radius: $button-border-radius
|
4
4
|
cursor: pointer
|
5
5
|
font-weight: $button-font-weight
|
6
|
+
outline: none
|
6
7
|
transition: $main-transition
|
7
8
|
|
8
9
|
@mixin button-solid($background, $color)
|
@@ -15,8 +16,10 @@
|
|
15
16
|
@mixin button-transparent($background)
|
16
17
|
@if $button-box-shadow != 0
|
17
18
|
box-shadow: $button-box-shadow darken($background, 10%)
|
19
|
+
+border-width(1px 1px 0)
|
18
20
|
background-color: transparent
|
19
|
-
border:
|
21
|
+
border-color: $background
|
22
|
+
border-style: solid
|
20
23
|
color: $background
|
21
24
|
|
22
25
|
&:hover
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.table
|
2
|
+
width: 100%
|
3
|
+
border-collapse: collapse
|
4
|
+
|
5
|
+
th, td
|
6
|
+
padding: 15px
|
7
|
+
text-align: left
|
8
|
+
|
9
|
+
thead
|
10
|
+
|
11
|
+
tr
|
12
|
+
font-weight: 700
|
13
|
+
|
14
|
+
&:first-child
|
15
|
+
background-color: $table-header-background
|
16
|
+
|
17
|
+
&:nth-child(2)
|
18
|
+
border-bottom: 2px solid $table-border-color
|
19
|
+
|
20
|
+
tbody
|
21
|
+
|
22
|
+
tr
|
23
|
+
|
24
|
+
&:not(:last-child)
|
25
|
+
border-bottom: 1px solid $table-border-color
|
@@ -6,7 +6,7 @@ a, abbr, acronym, address, big, cite, code,
|
|
6
6
|
del, dfn, em, img, ins, kbd, q, s, samp,
|
7
7
|
small, strike, strong, sub, sup, tt, var,
|
8
8
|
b, u, i, center,
|
9
|
-
dl, dt, dd, ol, ul, li,
|
9
|
+
dl, dt, dd, // ol, ul, li,
|
10
10
|
fieldset, form, label, legend,
|
11
11
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
12
12
|
article, aside, canvas, details, embed,
|
@@ -27,7 +27,8 @@ body
|
|
27
27
|
line-height: 1
|
28
28
|
|
29
29
|
ol, ul
|
30
|
-
|
30
|
+
margin: 0
|
31
|
+
// list-style: none
|
31
32
|
|
32
33
|
blockquote, q
|
33
34
|
quotes: none
|
@@ -85,3 +85,13 @@ $flash-error: rgb(218, 60, 60) !default
|
|
85
85
|
$flash-border-radius: 4px !default
|
86
86
|
$flash-box-shadow: 0 1px 2px 0 rgba($black, 0.2) !default
|
87
87
|
$flash-color: rgb(128, 128, 128) !default
|
88
|
+
|
89
|
+
// Tables
|
90
|
+
|
91
|
+
$table-header-background: rgb(243, 242, 236) !default
|
92
|
+
$table-border-color: rgb(233, 232, 220) !default
|
93
|
+
|
94
|
+
// Comments
|
95
|
+
|
96
|
+
$comment-background: rgb(246, 246, 243) !default
|
97
|
+
$comment-color: rgb(170, 169, 156) !default
|
@@ -17,21 +17,11 @@ class BeyondFormBuilder < ActionView::Helpers::FormBuilder
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
def text_field(attribute, args = {})
|
27
|
-
field_wrapper(attribute, args) do
|
28
|
-
super(attribute, args)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
def password_field(attribute, args = {})
|
33
|
-
field_wrapper(attribute, args) do
|
34
|
-
super(attribute, args)
|
20
|
+
[:email, :text, :password, :file].each do |method|
|
21
|
+
define_method :"#{method}_field" do |attribute, args = {}|
|
22
|
+
field_wrapper(attribute, args) do
|
23
|
+
super(attribute, args)
|
24
|
+
end
|
35
25
|
end
|
36
26
|
end
|
37
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beyond_canvas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Unai Abrisketa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bourbon
|
@@ -88,12 +88,15 @@ files:
|
|
88
88
|
- app/assets/stylesheets/_beyond_canvas.sass
|
89
89
|
- app/assets/stylesheets/components/_buttons.sass
|
90
90
|
- app/assets/stylesheets/components/_cards.sass
|
91
|
+
- app/assets/stylesheets/components/_comments.sass
|
91
92
|
- app/assets/stylesheets/components/_flash.sass
|
92
93
|
- app/assets/stylesheets/components/_forms.sass
|
93
94
|
- app/assets/stylesheets/components/_inputs.sass
|
94
95
|
- app/assets/stylesheets/components/_links.sass
|
95
96
|
- app/assets/stylesheets/components/_main.sass
|
97
|
+
- app/assets/stylesheets/components/_margins.sass
|
96
98
|
- app/assets/stylesheets/components/_relative.sass
|
99
|
+
- app/assets/stylesheets/components/_tables.sass
|
97
100
|
- app/assets/stylesheets/settings/_neat.sass
|
98
101
|
- app/assets/stylesheets/settings/_reset_css.sass
|
99
102
|
- app/assets/stylesheets/settings/_typography.sass
|