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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf3dcd314ac438baa2a2bcf49b799573dfedd2b3a6b87cf512bf232ef45c1ed9
4
- data.tar.gz: 4a6dff736ec740829bdb03de47db718c650c219e52580a5f9158a17fb295b4b2
3
+ metadata.gz: 24b87e149d3f5f2a2b06a55444ea9e426719c10cf2c86d34b9b22789128f8448
4
+ data.tar.gz: 0a7282ce9e986dce507ef877dee9122a51909eccf22c5798d81d2ebfbb1cc834
5
5
  SHA512:
6
- metadata.gz: 50c9320d7335dcf9637fe6c20c9d426b2fad5c3117e49494830e9c751f45e0c852cb636fbaaa231f6bfbf7022b54f2940666696a63db0631150a1ffa17a37d9b
7
- data.tar.gz: e6b2514256375b12171cb0a17bb93dc089756656f704c1d1f4564bde21d4160a8cb43d9301798be4c1e8e1ecaf5b748b55814181d8490731dc78b45b2a9fca17
6
+ metadata.gz: dbc241cfec02d3f28cecb6e470f8a7c5eb3b47e504a7b5b0ac7f800fd9951fb826bef066f649ca4bd85dcd352410ad39dfac5e35f3719d15e7fa6c33deb9760f
7
+ data.tar.gz: 7bd9c72fdbf0646652a72242cb61ef43e3c3374fdedcde410356641c1e278d916938fa9e68fac0d74b5d6d4128fdbe8256da8e23b1be3357953cae1077c4c043
data/.gitignore CHANGED
@@ -1 +1,17 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ # Environment variables
14
+ .env
15
+
16
+ # Apple file system
1
17
  .DS_Store
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ### v0.4.0.pre
2
+
3
+ * bug-fixes
4
+ * Fix transparent button bottom border
5
+ * Fix list styles
6
+
7
+ * features
8
+ * Add table styles
9
+ * Add comment styles
10
+ * Add margin styles
11
+ * Add input type file
12
+
1
13
  ### v0.3.0.pre
2
14
 
3
15
  * features
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- beyond_canvas (0.3.0.pre)
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.12.2)
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: 1px solid $background
21
+ border-color: $background
22
+ border-style: solid
20
23
  color: $background
21
24
 
22
25
  &:hover
@@ -0,0 +1,5 @@
1
+ .comment
2
+ padding: 20px
3
+ box-sizing: border-box
4
+ background: $comment-background
5
+ color: $comment-color
@@ -0,0 +1,7 @@
1
+ .margin
2
+
3
+ &--top
4
+ margin-top: 30px
5
+
6
+ &--bottom
7
+ margin-bottom: 30px
@@ -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
- list-style: none
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
- def email_field(attribute, args = {})
21
- field_wrapper(attribute, args) do
22
- super(attribute, args)
23
- end
24
- end
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
@@ -1,3 +1,3 @@
1
1
  module BeyondCanvas
2
- VERSION = "0.3.0.pre".freeze
2
+ VERSION = "0.4.0.pre".freeze
3
3
  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.3.0.pre
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-28 00:00:00.000000000 Z
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