wco_models 3.1.0.69 → 3.1.0.70

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: ccaac0453a8e3bc7547214646136c37c0a9704ed39c21e1d548e5c45d5b568f0
4
- data.tar.gz: c1ee1eb79c03a19d908275c495f9ff79cc6dd3e0709293873910e78bbcd066b8
3
+ metadata.gz: ea84f3f0608bb71c99678e1ffd5f37dd626462958602c5acc908f13ebe4e2fed
4
+ data.tar.gz: 2f6cf3351e15a32df468b665ac0430f6b7d47d92380e9b3b95ca4c404f9f391e
5
5
  SHA512:
6
- metadata.gz: 8fa9faf6600eecb6164d617f769d3658de0501c5b0648b83ea6c660236345277701cdca020e6ff14b3cbf773a91c895993cd72a6b06c237c96547a19db740c9f
7
- data.tar.gz: 0460b8b7ea57ddcef05a57b72f6978587b4ae8850a5718ff3ff571639a413b54d5770a5fddb0a77ca44666f160b3e6e6a76b27f8a1bf20457ed4e95a837bd774
6
+ metadata.gz: 2eef8aff06c8aea4b00686a2a24255f05b8b31b1f5e0d2014577a65da48e82757e7452a41a811c06f51699141ceff2156f3015bd2fa5d54a2ae811f4c79fd4fd
7
+ data.tar.gz: b4eaf23331ed7186071185c4b80cd425b9e2e1d0dca2459c55bdc41327cd2de658004e2e15376f55e17db5f7e747be8b17c03eb6d0d6170326731afebcdb7e5a
@@ -0,0 +1,68 @@
1
+
2
+ html {
3
+ // --wco-color-1: red;
4
+ --wco-color-2: #ddd;
5
+ }
6
+
7
+ .chip,
8
+ .Chip {
9
+ display: inline;
10
+
11
+ border: 1px solid var(--wco-color-1);
12
+ border-radius: 0.5em;
13
+ padding: 0.1em .3em;
14
+ margin-bottom: 0.1em;
15
+ background: var(--wco-color-2);
16
+
17
+ }
18
+ .chip,
19
+ .Chip {
20
+ // border: 1px solid black;
21
+ border-radius: 1em 0 0 1em;
22
+
23
+ margin-right: 32px;
24
+
25
+ padding: 0.2em 0.2em 0.2em 0.6em;
26
+
27
+ height: 32px;
28
+
29
+ background: var(--wco-color-2);
30
+
31
+ position: relative;
32
+
33
+ &::before {
34
+ // border: 1px solid red;
35
+ // background: yellow;
36
+
37
+ content: "";
38
+ display: block;
39
+
40
+ position: absolute;
41
+ right: -16px;
42
+ top: 0;
43
+
44
+ width: 16px;
45
+ height: 32px;
46
+
47
+ // border-left: 12px solid white;
48
+ border-top: 17px solid var(--wco-color-2);
49
+ border-right: 12px solid transparent;
50
+ // border-bottom: 12px solid transparent;
51
+ }
52
+ &::after {
53
+ // border: 1px solid red;
54
+
55
+ content: "";
56
+ display: block;
57
+
58
+ position: absolute;
59
+ right: -16px;
60
+ bottom: 0;
61
+
62
+ width: 16px;
63
+ height: 32px;
64
+
65
+ border-bottom: 17px solid var(--wco-color-2);
66
+ border-right: 12px solid transparent;
67
+ }
68
+ }
@@ -31,8 +31,10 @@ class Wco::Tag
31
31
  find_or_create_by({ slug: TRASH })
32
32
  end
33
33
 
34
+ def to_s
35
+ slug
36
+ end
34
37
  def self.list
35
38
  [[nil,nil]] + all.map { |p| [ p.slug, p.id ] }
36
39
  end
37
-
38
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.69
4
+ version: 3.1.0.70
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
@@ -363,6 +363,7 @@ files:
363
363
  - app/assets/stylesheets/vendor/bootstrap-4.6.2.min.css
364
364
  - app/assets/stylesheets/wco/alerts_notices.scss
365
365
  - app/assets/stylesheets/wco/application.css
366
+ - app/assets/stylesheets/wco/chip.scss
366
367
  - app/assets/stylesheets/wco/galleries.scss
367
368
  - app/assets/stylesheets/wco/pagination.scss
368
369
  - app/assets/stylesheets/wco/photos.scss