codefabrik-styleguide 0.1.10 → 0.1.12

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: 801c6b4d84b3ae22b9ba7ed88b4862c42ec0a0582bb9780474096c9ca1895f7f
4
- data.tar.gz: 1d403dac78cf540f92a2e872b2f46cb4d667e7aeec692d2ddc597d922939a938
3
+ metadata.gz: 527abcbd1a0f7088fc06d9a7f40476cfe2c17101d32c03f359086f168d1d5b77
4
+ data.tar.gz: fc39c46366415b96d4d16057bb3c710c0bdb807510e9b272e1be097014bb5fc5
5
5
  SHA512:
6
- metadata.gz: b8ec75ad5e3d9fc000f1e01d48fc1b26ea5accab8fae84618a15a69eca6475594ef622f399a6e0cd249d3cb15a5d4258e7dffc3c8f69447444bee42711d0369f
7
- data.tar.gz: 2329759c33083069df01b8e4b113919ef602c22b3f8770a49e29931a8c284ba10e9d52d41ac47bd4e8783425dce9433f76742c52045a727d338cb28c4b995745
6
+ metadata.gz: 3d17c3653859725c8d061336bc9bd1b2a9f0844f3803fb8d15507e74f19081fde7b008a2bce0ee7e6b3b44d50b14c272cfc8c86c3f8003d2cca215516f2fc945
7
+ data.tar.gz: 15ef64c77a682ae069e398d2aec5ef66e0a250655636a0abba2d35ade8c62633c97a02b04652d1503273390ee27bec12c7b8e2abc3f253e32408c434bda6c362
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codefabrik-styleguide (0.1.10)
4
+ codefabrik-styleguide (0.1.12)
5
5
  dartsass-rails (>= 0.4.0)
6
6
  rails (>= 6.0)
7
7
  sassc (>= 2.4.0)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Codefabrik
4
4
  module Styleguide
5
- VERSION = "0.1.10"
5
+ VERSION = "0.1.12"
6
6
  end
7
7
  end
@@ -43,7 +43,7 @@ header, footer {
43
43
  }
44
44
  }
45
45
 
46
- main {
46
+ .wrapper {
47
47
  width: calc(100% - 2 * $default_distance);
48
48
  margin: 0 $default_distance;
49
49
  margin-top: $default_distance;
@@ -1,5 +1,7 @@
1
- form .input, form input[type=submit] {
2
- margin-top: $default_distance;
1
+ form .input {
2
+ &:not(:first-child) {
3
+ margin-top: $default_distance;
4
+ }
3
5
  margin-bottom: $default_distance;
4
6
 
5
7
  &.hidden {
@@ -55,6 +57,15 @@ form .input, form input[type=submit] {
55
57
  }
56
58
  }
57
59
 
60
+ form input[type=submit] {
61
+ margin-top: 0;
62
+
63
+ // bottom margin except for last child
64
+ &:not(:last-child) {
65
+ margin-bottom: $default_distance;
66
+ }
67
+ }
68
+
58
69
  form {
59
70
  .links {
60
71
  margin-top: 0.5 * $default_distance;
@@ -101,10 +112,6 @@ form {
101
112
  content: '\1f6c8';
102
113
  }
103
114
  }
104
-
105
- input[type=submit] {
106
- margin-top: 0;
107
- }
108
115
  }
109
116
 
110
117
  p + .btn, p + form.button_to, form + form.button_to {
data/views/index.erb CHANGED
@@ -11,7 +11,7 @@
11
11
  <h1>Codefabrik Styleguide</h1>
12
12
  </header>
13
13
 
14
- <main>
14
+ <main class="wrapper">
15
15
  <div class="breadcrumbs mb-1">
16
16
  <a href="javascript:void(0)">Prüfungen</a><span class="separator">&#9654;</span>
17
17
  <a href="javascript:void(0)">Englisch L2</a><span class="separator">&#9654;</span>
@@ -30,7 +30,7 @@
30
30
  </div>
31
31
 
32
32
 
33
- <form>
33
+ <form class="mt-1 mb-1">
34
34
  <div class="input string required">
35
35
  <label class="string required" for="input1">String input</label>
36
36
  <input
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codefabrik-styleguide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas_Skywalker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-12 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dartsass-rails