wtfai 1.6.6 → 1.6.7

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.
Files changed (2) hide show
  1. package/dist/ui/code.css +31 -11
  2. package/package.json +1 -1
package/dist/ui/code.css CHANGED
@@ -1,41 +1,61 @@
1
1
  .iframe-code {
2
2
  aspect-ratio: 16 / 9;
3
- border: none;
4
- min-width: 50vw;
3
+ background: #f9fafb;
4
+ border: 1px solid #e5e7eb;
5
+ border-radius: 12px;
6
+ width: 100%;
7
+ min-width: min(800px, 100%);
8
+ transition: all .2s;
5
9
  display: block;
10
+ box-shadow: 0 4px 6px -1px #0000001a;
11
+ }
12
+
13
+ .iframe-code:hover {
14
+ border-color: #d1d5db;
15
+ box-shadow: 0 10px 15px -3px #0000001a;
6
16
  }
7
17
 
8
18
  .html-preview-container {
9
19
  background: #fff;
10
20
  border: 1px solid #e5e7eb;
11
- border-radius: 8px;
12
- margin: 16px 0;
21
+ border-radius: 12px;
22
+ width: 100%;
23
+ min-width: min(900px, 100%);
24
+ margin: 20px 0;
25
+ transition: all .3s cubic-bezier(.4, 0, .2, 1);
13
26
  overflow: hidden;
14
- box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
27
+ box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
28
+ }
29
+
30
+ .html-preview-container:hover {
31
+ transform: translateY(-2px);
32
+ box-shadow: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
15
33
  }
16
34
 
17
35
  .html-preview-header {
18
- color: #4b5563;
19
- background: #f9fafb;
20
- border-bottom: 1px solid #e5e7eb;
36
+ color: #374151;
37
+ background: #fdfdfd;
38
+ border-bottom: 1px solid #f3f4f6;
21
39
  justify-content: space-between;
22
40
  align-items: center;
23
- padding: 8px 12px;
41
+ padding: 10px 16px;
24
42
  font-size: 13px;
25
- font-weight: 500;
43
+ font-weight: 600;
26
44
  display: flex;
27
45
  }
28
46
 
29
47
  .html-preview-header .preview-label {
48
+ color: #2563eb;
30
49
  align-items: center;
31
50
  gap: 8px;
32
51
  display: flex;
33
52
  }
34
53
 
35
54
  .html-preview-iframe {
55
+ background: #fff;
36
56
  border: none;
37
57
  width: 100%;
38
- min-height: 400px;
58
+ min-height: 500px;
39
59
  display: block;
40
60
  }
41
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtfai",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {