Functional but settings modals position and size badly

This commit is contained in:
Your Name
2025-03-16 18:46:30 -04:00
parent ab5380a399
commit 3e4105aca3
14 changed files with 220 additions and 201 deletions
+12 -52
View File
@@ -25,7 +25,8 @@ body {
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
z-index: 0;
}
/* Styles for the close button */
@@ -82,18 +83,12 @@ body {
background: #333;
}
/* Ensure container contents don't overlap the buttons */
.container > *:not(.close-button):not(.settings-button) {
margin-top: 20px;
}
/* Styles for ClockWidget time display */
.clock-time {
color: #ffffff;
font-size: 48px;
font-family: 'IBM Plex Mono', monospace;
text-align: center;
margin-bottom: 10px;
}
/* SearchWidget form */
@@ -107,51 +102,11 @@ body {
padding: 5px;
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 4px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
background: rgba(255, 255, 255, 1);
color: #000;
}
/* Widget settings modal */
.widget-settings-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.widget-modal-content {
position: relative;
background: rgba(255, 255, 255, 0.9);
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
max-width: 300px;
width: 90%;
text-align: center;
}
.widget-modal-content label {
display: block;
margin: 10px 0;
color: #333;
}
.widget-modal-content select,
.widget-modal-content input[type="number"] {
width: 100%;
padding: 5px;
margin-top: 5px;
border: 1px solid #ccc;
border-radius: 4px;
}
.widget-modal-content button {
.accept-button {
margin-top: 10px;
padding: 5px 10px;
background: #007bff;
@@ -161,7 +116,7 @@ body {
cursor: pointer;
}
.widget-modal-content button:hover {
.accept-button:hover {
background: #0056b3;
}
@@ -204,7 +159,6 @@ body {
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
@@ -304,4 +258,10 @@ body {
.grid-line.horizontal {
width: 100%;
height: 1px;
}
.timezone-display{
font-size: small;
text-align: center;
color: #ffffff;
}