@@ -29,13 +29,27 @@ body {
2929.widget-container {
3030 position : relative;
3131 width : 280px ;
32- height : 320 px ; /* Reduced from 380px */
32+ height : 295 px ; /* Match Weather height */
3333 display : flex;
3434 justify-content : center;
3535 align-items : center;
36+ border-radius : 20px ; /* Force rounded corners for entire widget */
37+ overflow : hidden; /* Clip everything to rounded shape */
3638}
3739
3840/* Abstract Background Shapes */
41+ .shape-container {
42+ position : absolute;
43+ top : 50% ;
44+ left : 50% ;
45+ transform : translate (-50% , -50% );
46+ width : 90% ; /* Match card width */
47+ height : 85% ; /* Match card height */
48+ border-radius : 14px ; /* Match card border-radius */
49+ overflow : hidden;
50+ z-index : 0 ;
51+ }
52+
3953.bg-shape {
4054 position : absolute;
4155 border-radius : 50% ;
@@ -45,40 +59,40 @@ body {
4559}
4660
4761.shape-1 {
48- width : 160 px ; /* Reduced from 200px */
49- height : 160 px ;
62+ width : 120 px ; /* Further reduced for compact size */
63+ height : 120 px ;
5064 background : # 764ba2 ;
51- top : -15 px ;
52- left : -15 px ;
65+ top : -10 px ;
66+ left : -10 px ;
5367 animation : float 10s infinite ease-in-out;
5468}
5569
5670.shape-2 {
57- width : 140 px ; /* Reduced from 180px */
58- height : 140 px ;
71+ width : 105 px ; /* Further reduced for compact size */
72+ height : 105 px ;
5973 background : # 4facfe ;
60- bottom : -15 px ;
61- right : -15 px ;
74+ bottom : -10 px ;
75+ right : -10 px ;
6276 animation : float 12s infinite ease-in-out reverse;
6377}
6478
6579@keyframes float {
6680 0% , 100% { transform : translate (0 , 0 ); }
67- 50% { transform : translate (15 px , 15 px ); } /* Reduced movement */
81+ 50% { transform : translate (10 px , 10 px ); } /* Further reduced movement */
6882}
6983
7084/* Glass Card */
7185.calendar-card {
7286 position : relative;
7387 z-index : 1 ;
7488 width : 90% ;
75- height : 90 % ;
89+ height : 85 % ; /* Reduced to match Weather and prevent clipping */
7690 background : var (--glass-bg );
7791 backdrop-filter : blur (20px );
7892 -webkit-backdrop-filter : blur (20px );
7993 border : 1px solid var (--glass-border );
80- border-radius : 18 px ; /* Reduced from 24px */
81- padding : 15 px ; /* Reduced from 20px */
94+ border-radius : 14 px ; /* Further reduced */
95+ padding : 10 px ; /* Further reduced */
8296 box-shadow : 0 8px 32px 0 rgba (0 , 0 , 0 , 0.37 );
8397 display : flex;
8498 flex-direction : column;
@@ -89,16 +103,16 @@ body {
89103 display : flex;
90104 justify-content : space-between;
91105 align-items : center;
92- margin-bottom : 12 px ; /* Reduced from 20px */
106+ margin-bottom : 8 px ; /* Further reduced */
93107 color : var (--text-primary );
94108}
95109
96110.month-year {
97- font-size : 0.95 rem ; /* Reduced from 1.2rem */
111+ font-size : 0.8 rem ; /* Further reduced */
98112 font-weight : 600 ;
99113 text-transform : capitalize;
100114 display : flex;
101- gap : 4 px ; /* Reduced from 5px */
115+ gap : 3 px ; /* Further reduced */
102116}
103117
104118# current-year {
@@ -110,9 +124,9 @@ body {
110124 background : transparent;
111125 border : none;
112126 color : var (--text-secondary );
113- font-size : 1 rem ; /* Reduced from 1.2rem */
127+ font-size : 0.85 rem ; /* Further reduced */
114128 cursor : pointer;
115- padding : 4 px ; /* Reduced from 5px */
129+ padding : 3 px ; /* Further reduced */
116130 border-radius : 50% ;
117131 transition : all 0.2s ease;
118132 display : flex;
@@ -136,11 +150,11 @@ body {
136150 display : grid;
137151 grid-template-columns : repeat (7 , 1fr );
138152 text-align : center;
139- margin-bottom : 6 px ; /* Reduced from 10px */
153+ margin-bottom : 4 px ; /* Further reduced */
140154}
141155
142156.weekdays span {
143- font-size : 0.7 rem ; /* Reduced from 0.85rem */
157+ font-size : 0.6 rem ; /* Further reduced */
144158 font-weight : 500 ;
145159 color : var (--text-secondary );
146160 text-transform : uppercase;
@@ -149,12 +163,12 @@ body {
149163.days {
150164 display : grid;
151165 grid-template-columns : repeat (7 , 1fr );
152- gap : 3 px ; /* Reduced from 5px */
166+ gap : 2 px ; /* Further reduced */
153167 text-align : center;
154168}
155169
156170.days div {
157- font-size : 0.8 rem ; /* Reduced from 0.95rem */
171+ font-size : 0.7 rem ; /* Further reduced */
158172 color : var (--text-primary );
159173 width : 100% ;
160174 aspect-ratio : 1 ; /* Make them square */
0 commit comments