@digital-ai/dot-illustrations 1.0.15 → 1.0.16

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.
package/demo/demo.css CHANGED
@@ -4,8 +4,10 @@
4
4
 
5
5
  body {
6
6
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
7
- margin: 0;
7
+ margin: 0 auto;
8
+ height: 100%;
8
9
  text-align: center;
10
+ overflow-y: hidden;
9
11
  }
10
12
 
11
13
  .search-wrapper {
@@ -17,6 +19,11 @@ body {
17
19
  gap: 4px;
18
20
  padding-left: 12px;
19
21
  padding-right: 12px;
22
+
23
+ /* new added code */
24
+ top: 0;
25
+ background-color: #fff;
26
+ z-index: 999;
20
27
  }
21
28
 
22
29
  input {
@@ -30,32 +37,63 @@ input {
30
37
  font-size: 2.5rem;
31
38
  justify-content: center;
32
39
  width: 100vw;
40
+ height: calc(100vh - 200px);
41
+ overflow-y: auto;
42
+ padding-bottom: 200px;
43
+ align-content: flex-start;
33
44
  }
34
45
 
35
46
  .demo-wrapper>div {
36
- align-items: center;
37
- background: #eee;
38
- display: flex;
39
- flex-direction: column;
40
- height: 15vw;
41
- justify-content: center;
42
- margin: 0.25vw;
43
- padding: 0 0.5vw;
44
- width: 24vw;
47
+ z-index: 1;
48
+ display: grid;
49
+ grid-template-rows: 1fr 1fr;
50
+ width: 220px;
51
+ height: 220px;
52
+ min-width: 220px;
53
+ max-width: 460px;
54
+ max-height: 460px;
55
+ min-height: 220px;
56
+ overflow: hidden;
57
+ background: #fff;
58
+ margin: 16px;
59
+ padding: 24px;
60
+ border: solid 1px #C1C6CD;
61
+ border-radius: 4px;
62
+ transition: opacity 0.3s ease;
63
+ /* DropShadow/dropshadow-normal */
64
+ box-shadow: 0px 8px 16px 0px rgba(59, 72, 92, 0.16);
65
+ position: relative;
66
+ }
67
+
68
+ .demo-wrapper>div:hover{
69
+ opacity: 0.7;
70
+ background: var(--Overlay-colors-default-overlay, #3B485C);
45
71
  }
46
72
 
73
+
47
74
  img {
48
75
  align-items: center;
76
+ height: 150px;
77
+ width: 150px;
78
+ max-width: 300px;
79
+ max-height: 300px;
80
+ min-width: 120px;
81
+ min-height: 120px;
49
82
  display: flex;
50
- height: 10vw;
83
+ margin: auto;
84
+ z-index: -1;
85
+ color: #39404a;
51
86
  }
52
87
 
88
+
89
+
53
90
  .container img {
54
91
  height: 100%;
55
92
  width: 100%;
56
93
  object-fit: cover;
57
94
  -webkit-mask-size: cover;
58
95
  mask-size: cover;
96
+ z-index: 0;
59
97
  }
60
98
 
61
99
  span {
@@ -65,5 +103,32 @@ span {
65
103
  font-size: 0.8rem;
66
104
  margin-top: 0.5rem;
67
105
  text-align: center;
106
+ z-index: 0;
107
+ }
108
+
109
+ .button {
110
+ opacity: 0;
111
+ transition: opacity 0.3s ease;
112
+ transform: translate(-50%, -50%);
113
+ border: solid 1px #667385;
114
+ border-radius: 4px;
115
+ background: #FFF;
116
+ color: rgb(43, 50, 55);
117
+ cursor: pointer;
118
+ font-size: 16px;
119
+ padding: 8px 16px;
120
+ z-index: 29;
121
+ position: absolute;
122
+ top: 50%;
123
+ left: 50%;
124
+ }
125
+
126
+ .demo-wrapper div:hover .button {
127
+ opacity: 1;
128
+ }
129
+
130
+
131
+ .demo-wrapper div:hover img{
132
+ opacity: 0.5;
68
133
  }
69
134