active_frontend 17.4.1 → 17.5.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: 7e370341fadb47f99bd1163404e24ed4900a94f90e72e224659c4f40f766ae09
4
- data.tar.gz: 2730c686caa09720a31ccfffe2153c7d045514ec26dec8173faa336912f32141
3
+ metadata.gz: 9b64fc3dba66723574e6216fa7608db7c649901dfb6e3098d7d7d85ddfb66892
4
+ data.tar.gz: 16a3fbb3d9dc0e1f025ebf20dc0e3c71227b0d88b088690a3af0c09fe7770106
5
5
  SHA512:
6
- metadata.gz: a5f5f1051defe191525a2cfff7d498c7de0a438ea01695c08b277d4aa47603b3e408262e4baab014cccec563cd8ba305337753a4d3eb94ac4f737a05c398a8c5
7
- data.tar.gz: 1fb43b89ac44fab5bfbe4127ee844cdb88bcde9d94c522b9913a37ba8c0de14ed718e794b30f637947c5f73a16a324061c65faf5f14e9c9d533a4d5c4266355b
6
+ metadata.gz: 873011f570ff8c39834d85bd1fa57ae5544246db74b5d2caf9e07bb60d6b615b26ccac4a4f31a134979d8359e57e0797b99b5b29b210c09e71b901ef3856ac69
7
+ data.tar.gz: b93fdf41724058c1ade6484708d9cabdfcb52dd129ae9623da8bcdcc519752528953428aa74e901b57242402d76f86e31d169c38633bea03529149ad5f8a3dfc
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveFrontend
4
- VERSION ||= '17.4.1'
4
+ VERSION ||= '17.5.0'
5
5
  end
@@ -6,6 +6,7 @@
6
6
  // Decorations
7
7
  // Colors
8
8
  // Alignments
9
+ // Detached
9
10
  // Media Queries
10
11
 
11
12
  // scss-lint:disable NestingDepth
@@ -222,6 +223,52 @@ thead {
222
223
  }
223
224
  }
224
225
 
226
+ // Detached
227
+ // ==================================================
228
+ .table-detached {
229
+ border-collapse: separate;
230
+ border-spacing: 0 10px;
231
+ border-width: 0;
232
+
233
+ tbody {
234
+ tr {
235
+ td {
236
+ &:first-child {
237
+ border-bottom-left-radius: border-radius(b);
238
+ border-top-left-radius: border-radius(b);
239
+ }
240
+ &:last-child {
241
+ border-bottom-right-radius: border-radius(b);
242
+ border-top-right-radius: border-radius(b);
243
+ }
244
+ }
245
+ }
246
+ }
247
+
248
+ &.table-line,
249
+ &.table-encase,
250
+ &.table-border {
251
+ border-width: 0;
252
+
253
+ td {
254
+ border-style: solid;
255
+ border-width: 1px;
256
+ border-left-width: 0;
257
+ border-right-width: 0;
258
+ }
259
+ tbody {
260
+ tr {
261
+ td {
262
+ border-top-width: 1px;
263
+
264
+ &:first-child { border-left-width: 1px; }
265
+ &:last-child { border-right-width: 1px; }
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+
225
272
  // Media Queries
226
273
  // ==================================================
227
274
  @media only screen and (max-width: breakpoint-max-width(b)) {
@@ -234,6 +281,13 @@ thead {
234
281
  overflow: scroll;
235
282
 
236
283
  &.dark { border-color: color(dark-slate); }
284
+ &.detached {
285
+ border: 0;
286
+ border-radius: 0;
287
+ max-height: none;
288
+ overflow: visible;
289
+ overflow-x: scroll;
290
+ }
237
291
 
238
292
  td,
239
293
  th { white-space: nowrap; }
@@ -25,15 +25,18 @@
25
25
  }
26
26
 
27
27
  &.absolute,
28
- &.fixed { z-index: 2060; }
28
+ &.floating,
29
+ &.fixed,
30
+ &.toaster { z-index: 2060; }
29
31
  &.absolute {
30
32
  position: absolute;
31
33
  width: inherit;
32
34
  }
33
35
  &.fixed,
34
- &.floating { position: fixed; }
36
+ &.floating,
37
+ &.toaster { position: fixed; }
35
38
  &.fixed {
36
- left: 0;
39
+ right: 0;
37
40
  top: 0;
38
41
 
39
42
  &.bottom {
@@ -42,12 +45,28 @@
42
45
  }
43
46
  }
44
47
  &.floating {
45
- left: 160px;
48
+ right: 160px;
46
49
  top: 50px;
47
50
  width: calc(100% - 320px);
48
51
 
49
52
  &.bottom { bottom: 50px; }
50
53
  }
54
+ &.toaster {
55
+ right: 15px;
56
+ top: 50px;
57
+ width: 270px;
58
+
59
+ &.bottom-left,
60
+ &.bottom-right {
61
+ bottom: 50px;
62
+ top: auto;
63
+ }
64
+ &.bottom-left,
65
+ &.top-left {
66
+ right: auto;
67
+ left: 15px;
68
+ }
69
+ }
51
70
  }
52
71
 
53
72
  // Colors
@@ -77,10 +96,22 @@
77
96
  // ==================================================
78
97
  @media only screen and (max-width: breakpoint-max-width(s)) {
79
98
  .alert {
80
- &.floating {
81
- left: 10px;
99
+ &.floating,
100
+ &.toaster {
101
+ right: 10px;
82
102
  top: 26px;
83
103
  width: calc(100% - 20px);
104
+
105
+ &.bottom {
106
+ bottom: 26px;
107
+ top: auto;
108
+ }
109
+ }
110
+ &.toaster {
111
+ &.bottom-left,
112
+ &.bottom-right { bottom: 26px; }
113
+ &.bottom-left,
114
+ &.top-left { left: 10px; }
84
115
  }
85
116
  }
86
117
  }
@@ -1,6 +1,8 @@
1
1
  // Table of Contents
2
2
  // ==================================================
3
3
  // Card
4
+ // Masonry
5
+ // Media Queries
4
6
 
5
7
  // scss-lint:disable NestingDepth
6
8
  // scss-lint:disable SelectorDepth
@@ -143,3 +145,34 @@
143
145
  border-radius: 0;
144
146
  }
145
147
  }
148
+
149
+ // Masonry
150
+ // ==================================================
151
+ .card-masonry {
152
+ column-count: 4;
153
+ column-gap: 20px;
154
+ white-space: normal;
155
+
156
+ > .card {
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(b)) and (max-width: breakpoint-max-width(m)) {
168
+ .card-masonry { column-count: 3; }
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
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.4.1
4
+ version: 17.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-03 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails