active_frontend 17.5.1 → 17.6.0

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: 281e73b26d47f982cfd0ae6a56b5bf2007041373b2cf5477f81a4e1c915c67a9
4
- data.tar.gz: 7069afa31301e477a76472a6a5abb4c39931176d58ee2e71d60f67cbe03e3066
3
+ metadata.gz: 423a6be5cb7ade727f54031663744c2913bdd6641b5b836adf769d6bb5354854
4
+ data.tar.gz: 71cceda8ce3fa4db2c40e1c23765d548679b9e7366a0aedfc657950e573850d6
5
5
  SHA512:
6
- metadata.gz: d25622b175a7775d7df6759d5783de9b19b577867a0de3c8247eb09ab67ceb402227924a90149be17b4e44adf0e9b56d5f1240a6235808c3748ca0db9edc81cd
7
- data.tar.gz: 00b5e59b1c253a0de18d531d4abf8dbec9435e99493e7202ba92d357d6ec2b968a8710abb25f83b27f452377cc27d042994d8aae3d889f09eb5550818ae2c2d2
6
+ metadata.gz: dacec0d3a54fe582be36df641736db15560365d33bcf9c98b0fc5c609202fb488bd0019adf0db85c65a12da5fc7b7dd276e1f1d88df5f8303c885ac0dcaa43b4
7
+ data.tar.gz: 8d484bc74feabb9d20105ab7478c746d107d315853cde684cbd8d9f6fb499254e46514d5e6ec8449d77b13993a840f9bf3aad69f8a2450c4784ba5446fc9fff9
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveFrontend
4
- VERSION ||= '17.5.1'
4
+ VERSION ||= '17.6.0'
5
5
  end
@@ -1,7 +1,6 @@
1
1
  // Table of Contents
2
2
  // ==================================================
3
3
  // Card
4
- // Masonry
5
4
  // Media Queries
6
5
 
7
6
  // scss-lint:disable NestingDepth
@@ -145,34 +144,3 @@
145
144
  border-radius: 0;
146
145
  }
147
146
  }
148
-
149
- // Masonry
150
- // ==================================================
151
- .card-masonry {
152
- column-count: 3;
153
- column-gap: 20px;
154
- white-space: normal;
155
-
156
- > .card-brick {
157
- display: inline-block;
158
- margin-bottom: 20px;
159
- width: 100%;
160
-
161
- &:last-child { margin: 0; }
162
- }
163
- }
164
-
165
- // Media Queries
166
- // ==================================================
167
- @media only screen and (min-width: breakpoint-min-width(xl)) {
168
- .card-masonry { column-count: 4; }
169
- }
170
- @media only screen and (min-width: breakpoint-min-width(s)) and (max-width: breakpoint-max-width(b)) {
171
- .card-masonry { column-count: 2; }
172
- }
173
- @media only screen and (max-width: breakpoint-max-width(s)) {
174
- .card-masonry {
175
- column-count: 1;
176
- column-gap: 0;
177
- }
178
- }
@@ -4,6 +4,7 @@
4
4
  // Rows
5
5
  // Containers
6
6
  // Columns
7
+ // Bricks
7
8
  // Media Queries
8
9
 
9
10
  // Visibilities
@@ -57,6 +58,27 @@
57
58
  }
58
59
  }
59
60
 
61
+ .container-cols,
62
+ .container-grid {
63
+ box-sizing: border-box;
64
+ white-space: normal;
65
+ }
66
+ .container-cols {
67
+ column-count: 3;
68
+ column-gap: 20px;
69
+
70
+ > .brick {
71
+ margin-bottom: 20px;
72
+
73
+ &:last-child { margin: 0; }
74
+ }
75
+ }
76
+ .container-grid {
77
+ display: grid;
78
+ grid-gap: 20px;
79
+ grid-template-columns: repeat(auto-fill, minmax(33.33333%, 1fr));
80
+ }
81
+
60
82
  // Columns
61
83
  // ==================================================
62
84
  .cols {
@@ -80,8 +102,20 @@
80
102
  .offset-by-#{$name} { padding-left: $width; }
81
103
  }
82
104
 
105
+ // Bricks
106
+ // ==================================================
107
+ .brick {
108
+ box-sizing: border-box;
109
+ display: inline-block;
110
+ width: 100%;
111
+ }
112
+
83
113
  // Media Queries
84
114
  // ==================================================
115
+ @media only screen and (min-width: breakpoint-min-width(xl)) {
116
+ .container-cols { column-count: 4; }
117
+ .container-grid { grid-template-columns: repeat(auto-fill, minmax(25%, 1fr)); }
118
+ }
85
119
  @media only screen and (min-width: breakpoint-min-width(b)) and (max-width: breakpoint-max-width(l)) {
86
120
  @each $name, $widths in $grid-container-widths {
87
121
  $width: nth($widths, 2);
@@ -103,6 +137,8 @@
103
137
  }
104
138
  }
105
139
 
140
+ .container-cols { column-count: 2; }
141
+ .container-grid { grid-template-columns: repeat(auto-fill, minmax(50%, 1fr)); }
106
142
  .hidden-desktop { display: inherit; }
107
143
  .hidden-tablet { display: none; }
108
144
  }
@@ -139,6 +175,12 @@
139
175
  }
140
176
  .offset-by-#{$name} { padding-left: 0; }
141
177
  }
178
+
179
+ .container-cols {
180
+ column-count: 1;
181
+ column-gap: 0;
182
+ }
183
+ .container-grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
142
184
  .hidden-desktop { display: inherit; }
143
185
  .hidden-phone { display: none; }
144
186
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.5.1
4
+ version: 17.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez