|
1 | 1 | .widget {
|
2 | 2 | position: fixed;
|
3 | 3 | bottom: 20px;
|
4 |
| - right: 20px; |
5 |
| - width: 300px; |
6 |
| - background-color: var(--modal-bg); |
| 4 | + left: 50%; |
| 5 | + transform: translateX(-50%); |
| 6 | + width: 400px; |
| 7 | + background-color: rgba(0, 0, 0, 0.4); |
| 8 | + backdrop-filter: blur(8px); |
| 9 | + -webkit-backdrop-filter: blur(8px); |
7 | 10 | border-radius: 8px;
|
8 |
| - padding: 8px 12px 12px; |
9 |
| - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); |
| 11 | + padding: 4px 16px 8px; |
| 12 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); |
| 13 | + border: 1px solid rgba(255, 255, 255, 0.1); |
10 | 14 | z-index: 100;
|
11 | 15 | transition: all 0.3s ease;
|
12 | 16 | }
|
13 | 17 |
|
| 18 | +:global(.light) .widget { |
| 19 | + background-color: rgba(255, 255, 255, 0.8); |
| 20 | + border-color: rgba(0, 0, 0, 0.1); |
| 21 | +} |
| 22 | + |
14 | 23 | .header {
|
15 | 24 | display: flex;
|
16 | 25 | justify-content: flex-end;
|
17 | 26 | align-items: center;
|
18 |
| - margin-bottom: 4px; |
| 27 | + margin-bottom: 2px; |
19 | 28 | }
|
20 | 29 |
|
21 | 30 | .quoteContainer {
|
22 | 31 | display: flex;
|
23 | 32 | align-items: center;
|
24 |
| - gap: 8px; |
| 33 | + gap: 12px; |
25 | 34 | }
|
26 | 35 |
|
27 | 36 | .quoteContent {
|
28 | 37 | flex: 1;
|
29 | 38 | min-width: 0;
|
30 |
| - padding: 0 4px; |
| 39 | + padding: 0 8px; |
31 | 40 | }
|
32 | 41 |
|
33 | 42 | .navButton {
|
|
79 | 88 | .quote {
|
80 | 89 | margin: 0;
|
81 | 90 | padding: 0;
|
82 |
| - font-size: 0.9rem; |
83 |
| - line-height: 1.5; |
| 91 | + font-size: 0.8rem; |
| 92 | + line-height: 1.3; |
84 | 93 | color: var(--text-color);
|
85 | 94 | font-style: italic;
|
86 | 95 | }
|
87 | 96 |
|
88 | 97 | .author {
|
89 |
| - margin-top: 8px; |
| 98 | + margin-top: 4px; |
90 | 99 | text-align: right;
|
91 |
| - font-size: 0.85rem; |
| 100 | + font-size: 0.7rem; |
92 | 101 | color: var(--text-color);
|
93 | 102 | opacity: 0.8;
|
94 | 103 | }
|
95 | 104 |
|
96 | 105 | .minimizedWidget {
|
97 | 106 | position: fixed;
|
98 |
| - bottom: 20px; |
99 |
| - right: 20px; |
| 107 | + bottom: 10px; |
| 108 | + left: 50%; |
| 109 | + transform: translateX(-50%); |
100 | 110 | width: 40px;
|
101 | 111 | height: 40px;
|
102 | 112 | border-radius: 20px;
|
103 |
| - background-color: var(--modal-bg); |
104 |
| - border: none; |
| 113 | + background-color: rgba(0, 0, 0, 0.4); |
| 114 | + backdrop-filter: blur(8px); |
| 115 | + -webkit-backdrop-filter: blur(8px); |
| 116 | + border: 1px solid rgba(255, 255, 255, 0.1); |
105 | 117 | cursor: pointer;
|
106 | 118 | display: flex;
|
107 | 119 | align-items: center;
|
108 | 120 | justify-content: center;
|
109 | 121 | color: var(--text-color);
|
110 |
| - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); |
| 122 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); |
111 | 123 | transition: all 0.2s;
|
112 | 124 | z-index: 100;
|
113 | 125 | }
|
114 | 126 |
|
| 127 | +:global(.light) .minimizedWidget { |
| 128 | + background-color: rgba(255, 255, 255, 0.8); |
| 129 | + border-color: rgba(0, 0, 0, 0.1); |
| 130 | +} |
| 131 | + |
115 | 132 | .minimizedWidget:hover {
|
116 |
| - transform: scale(1.05); |
117 |
| - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); |
| 133 | + transform: translateX(-50%) scale(1.05); |
| 134 | + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); |
118 | 135 | }
|
119 | 136 |
|
120 | 137 | :global(.dark) .widget,
|
121 | 138 | :global(.dark) .minimizedWidget {
|
122 |
| - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); |
| 139 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); |
123 | 140 | }
|
124 | 141 |
|
125 | 142 | :global(.dark) .minimizedWidget:hover {
|
126 |
| - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); |
| 143 | + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); |
127 | 144 | }
|
0 commit comments