figstrap_rails 0.0.1 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32e73f21ec4da3cd6abd18bbb1fd6c0bc0d65f231eb6ceb41ea5102c488b6d3c
4
- data.tar.gz: 8c34acbd2066d490bc71c310600c37f6f2811c62108061d098c92b869b68b1c1
3
+ metadata.gz: 575fdcda764bde23979644c3f85bdb1ca7887c21cffcf44b1ee8da540aafd7ac
4
+ data.tar.gz: f3815322f5a585862995ef399bc9b03f1c321ca5d6a01d8012edde18b000ceba
5
5
  SHA512:
6
- metadata.gz: 4e346c198d6b098422768b3212d5523dc0b48b61af0bda2aff9d93223551350cfe7dc66b94664dba605610870922f553c35f88c1cef07c0cfd7cdd4802ba4ea6
7
- data.tar.gz: a1c8af4f2478469a871f6eabf3b9fd87b764d45c7c821a4ab7d7602734fa2fddac6bc394c985520cc3838737adc3db4cb40061a0436ef099c3c042251e166f8f
6
+ metadata.gz: b283e061c94c889b38de7b0176e786823a9b85967671849bf09c56763df4e262d5681bf150a719da8b2903be75815275ac9157842e2ddcabb9bf0d40b1be6f95
7
+ data.tar.gz: 6e815263552b96fd010295f8412f3905671176f0b9c519ca91bbf9e206d164947b6ccbf4797b14876be5109f2c80a97f1fe4574186a920e1a52d03de6f6ab755
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ *.gem
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Figstrap Rails
2
2
 
3
- A small Gem wrapper for [FigStrap]((https://github.com/bitesite/figstrap)).
3
+ A small Gem wrapper for [FigStrap](https://github.com/bitesite/figstrap).
4
4
 
5
5
  ## Installation
6
6
 
@@ -34,6 +34,22 @@ After checking out the repo, run `bin/setup` to install dependencies. You can al
34
34
 
35
35
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
36
36
 
37
+ ## Publishing
38
+
39
+ 1. Update the version number
40
+
41
+ 2. Build the gem
42
+
43
+ ```
44
+ gem build figstrap_rails.gemspec
45
+ ```
46
+
47
+ 3. Push the gem
48
+
49
+ ```
50
+ gem push figstrap_rails-#.#.#.gem
51
+ ```
52
+
37
53
  ## Contributing
38
54
 
39
55
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/figstrap_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/figstrap_rails/blob/master/CODE_OF_CONDUCT.md).
@@ -13,8 +13,8 @@ Gem::Specification.new do |spec|
13
13
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
14
 
15
15
  spec.metadata["homepage_uri"] = spec.homepage
16
- spec.metadata["source_code_uri"] = "https://github.com/bitesite/figstrap"
17
- spec.metadata["changelog_uri"] = "https://github.com/bitesite/figstrap"
16
+ spec.metadata["source_code_uri"] = "https://github.com/bitesite/figstrap_rails"
17
+ spec.metadata["changelog_uri"] = "https://github.com/bitesite/figstrap_rails"
18
18
 
19
19
  # Specify which files should be added to the gem when it is released.
20
20
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -1,3 +1,3 @@
1
1
  module FigstrapRails
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,7 +1,18 @@
1
1
  /* FigStrap Auto Layout */
2
2
 
3
3
  .fgs-al {
4
+ display: flex;
4
5
 
6
+ /* FigStrap Auto Layout Vertical */
7
+ &.fgs-al-v {
8
+ flex-direction: column;
9
+ }
10
+
11
+ /* FigStrap Auto Layout Horizontal */
12
+ &.fgs-al-h {
13
+ flex-direction: row;
14
+ }
15
+
5
16
  /* FigStrap Auto layout padding */
6
17
  &.fgs-al-p-10 {
7
18
  padding: 10px;
@@ -15,110 +26,77 @@
15
26
  padding: 60px;
16
27
  }
17
28
 
18
- /* FigStrap Auto Layout Vertical */
19
- &.fgs-al-v {
20
- &.fgs-al-g-10 {
21
- > .fgs-ali {
22
- margin: 10px 0;
23
- }
24
- }
25
-
26
- /* FigStrap Auto layout Gap (margin) */
27
- &.fgs-al-g-16 {
28
- > .fgs-ali {
29
- margin: 16px 0;
30
- }
31
- }
32
-
33
- &.fgs-al-g-20 {
34
- > .fgs-ali {
35
- margin: 20px 0;
36
- }
37
- }
38
-
39
- &.fgs-al-g-30 {
40
- > .fgs-ali {
41
- margin: 40px 0;
42
- }
43
- }
44
-
45
- &.fgs-al-g-40 {
46
- > .fgs-ali {
47
- margin: 40px 0;
48
- }
49
- }
50
-
51
- &.fgs-al-g-60 {
52
- > .fgs-ali {
53
- margin: 60px 0;
54
- }
55
- }
56
-
57
- .fgs-ali:first-child {
58
- margin-top: 0 !important;
59
- }
60
-
61
- .fgs-ali:last-child {
62
- margin-bottom: 0 !important;
63
- }
29
+ /* FigStrap Auto layout gap */
30
+ &.fgs-al-g-6 {
31
+ gap: 6px;
64
32
  }
65
33
 
66
- /* FigStrap Auto Layout Horizontal */
67
- &.fgs-al-h {
68
- display: flex;
69
-
70
- &.fgs-al-justify-content-space-between {
71
- justify-content: space-between;
72
- }
73
-
74
- &.fgs-al-align-center {
75
- align-items: center;
76
- }
77
-
78
- /* FigStrap Auto layout Gap (margin) */
79
- &.fgs-al-g-10 {
80
- > .fgs-ali {
81
- margin: 0 10px;
82
- }
83
- }
84
-
85
- &.fgs-al-g-16 {
86
- > .fgs-ali {
87
- margin: 0px 16px;
88
- }
89
- }
90
-
91
- &.fgs-al-g-20 {
92
- > .fgs-ali {
93
- margin: 0 20px;
94
- }
95
- }
96
-
97
- &.fgs-al-g-30 {
98
- > .fgs-ali {
99
- margin: 0 30px;
100
- }
101
- }
102
-
103
- &.fgs-al-g-40 {
104
- > .fgs-ali {
105
- margin: 0 40px;
106
- }
107
- }
108
-
109
- &.fgs-al-g-60 {
110
- > .fgs-ali {
111
- margin: 0 40px;
112
- }
113
- }
114
-
115
- .fgs-ali:first-child {
116
- margin-left: 0 !important;
117
- }
118
-
119
- .fgs-ali:last-child {
120
- margin-right: 0 !important;
121
- }
34
+ &.fgs-al-g-10 {
35
+ gap: 10px;
36
+ }
37
+
38
+ &.fgs-al-g-16 {
39
+ gap: 16px;
40
+ }
122
41
 
42
+ &.fgs-al-g-20 {
43
+ gap: 20px;
44
+ }
45
+
46
+ &.fgs-al-g-30 {
47
+ gap: 30px;
48
+ }
49
+
50
+ &.fgs-al-g-40 {
51
+ gap: 40px;
52
+ }
53
+
54
+ &.fgs-al-g-60 {
55
+ gap: 60px;
56
+ }
57
+
58
+ /* FigStrap FlexBox Helpers */
59
+ &.fgs-al-justify-content-flex-start {
60
+ justify-content: flex-start;
61
+ }
62
+
63
+ &.fgs-al-justify-content-flex-end {
64
+ justify-content: flex-end;
65
+ }
66
+
67
+ &.fgs-al-justify-content-center {
68
+ justify-content: center;
69
+ }
70
+
71
+ &.fgs-al-justify-content-space-between {
72
+ justify-content: space-between;
73
+ }
74
+
75
+ &.fgs-al-justify-content-space-around {
76
+ justify-content: space-around;
77
+ }
78
+
79
+ &.fgs-al-justify-content-space-evenly {
80
+ justify-content: space-evenly
81
+ }
82
+
83
+ &.fgs-al-align-items-flex-start {
84
+ align-items: flex-start;
85
+ }
86
+
87
+ &.fgs-al-align-items-flex-end {
88
+ align-items: flex-end;
89
+ }
90
+
91
+ &.fgs-al-align-items-center {
92
+ align-items: center;
93
+ }
94
+
95
+ &.fgs-al-align-items-stretch {
96
+ align-items: stretch;
97
+ }
98
+
99
+ &.fgs-al-align-items-baseline {
100
+ align-items: baseline;
123
101
  }
124
102
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: figstrap_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Casey Li
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-17 00:00:00.000000000 Z
11
+ date: 2022-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -77,8 +77,8 @@ licenses:
77
77
  - MIT
78
78
  metadata:
79
79
  homepage_uri: https://github.com/bitesite/figstrap_rails
80
- source_code_uri: https://github.com/bitesite/figstrap
81
- changelog_uri: https://github.com/bitesite/figstrap
80
+ source_code_uri: https://github.com/bitesite/figstrap_rails
81
+ changelog_uri: https://github.com/bitesite/figstrap_rails
82
82
  post_install_message:
83
83
  rdoc_options: []
84
84
  require_paths: