@digital-ai/dot-illustrations 1.0.15 → 1.0.17

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,40 +37,100 @@ 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 {
100
+ margin: 0 auto;
62
101
  display: flex;
63
- flex-wrap: nowrap;
64
- font-family: 'Courier New', Courier, monospace;
65
- font-size: 0.8rem;
102
+ flex-wrap: wrap;
103
+ font-family: 'Lato', sans-serif;
104
+ font-size: 14px;
66
105
  margin-top: 0.5rem;
67
106
  text-align: center;
107
+ color: #667385;
108
+ z-index: 0;
109
+ }
110
+
111
+ .button {
112
+ opacity: 0;
113
+ transition: opacity 0.3s ease;
114
+ transform: translate(-50%, -50%);
115
+ border: solid 1px #667385;
116
+ border-radius: 4px;
117
+ background: #FFF;
118
+ color: rgb(43, 50, 55);
119
+ cursor: pointer;
120
+ font-size: 16px;
121
+ padding: 8px 16px;
122
+ z-index: 29;
123
+ position: absolute;
124
+ top: 50%;
125
+ left: 50%;
126
+ }
127
+
128
+ .demo-wrapper div:hover .button {
129
+ opacity: 1;
130
+ }
131
+
132
+
133
+ .demo-wrapper div:hover img{
134
+ opacity: 0.5;
68
135
  }
69
136