263 lines
4.4 KiB
CSS
263 lines
4.4 KiB
CSS
/* Define the IBM Plex Mono font */
|
|
@font-face {
|
|
font-family: 'IBM Plex Mono';
|
|
src: url('/fonts/IBMPlexMono-Regular.ttf') format('truetype');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
}
|
|
|
|
body {
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
/* Base styles for widget containers */
|
|
.container {
|
|
position: absolute;
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
z-index: 0;
|
|
container-type: size;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(255, 255, 255, 0);
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.aero {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Styles for the close button */
|
|
.close-button {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: #ccc;
|
|
color: #fff;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Styles for the settings button */
|
|
.settings-button {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 25px;
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: #ccc;
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.settings-button:hover {
|
|
background: #666;
|
|
}
|
|
|
|
.settings-button:active {
|
|
background: #333;
|
|
}
|
|
|
|
/* Styles for ClockWidget time display */
|
|
.clock-time {
|
|
color: #ffffff;
|
|
font-size: 48px;
|
|
font-family: 'IBM Plex Mono', monospace;
|
|
text-align: center;
|
|
font-size: 50cqmin;
|
|
}
|
|
|
|
.timezone-display{
|
|
font-size: small;
|
|
text-align: center;
|
|
color: #ffffff;
|
|
font-size: 15cqmin;
|
|
}
|
|
|
|
/* SearchWidget form */
|
|
.container form {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.container form input[type="text"] {
|
|
width: 100%;
|
|
padding: 5px;
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
border-radius: 4px;
|
|
background: rgba(255, 255, 255, 1);
|
|
color: #000;
|
|
}
|
|
|
|
.accept-button {
|
|
margin-top: 10px;
|
|
padding: 5px 10px;
|
|
background: #007bff;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.accept-button:hover {
|
|
background: #0056b3;
|
|
}
|
|
|
|
.widget-modal-content .seconds-toggle,
|
|
.widget-modal-content .hours-toggle {
|
|
text-align: left;
|
|
color: #333;
|
|
}
|
|
|
|
.widget-modal-content input[type="checkbox"] {
|
|
margin-right: 5px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Settings toggle (cogwheel for main settings) */
|
|
.settings-toggle {
|
|
position: fixed;
|
|
top: 10px;
|
|
left: 10px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 40px;
|
|
height: 40px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.settings-toggle:hover {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
/* Main settings modal */
|
|
.settings-modal {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-content {
|
|
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: 400px;
|
|
width: 90%;
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-content h2 {
|
|
margin-top: 0;
|
|
color: #333;
|
|
}
|
|
|
|
.modal-content label {
|
|
display: block;
|
|
margin: 15px 0;
|
|
color: #333;
|
|
}
|
|
|
|
.modal-content input[type="text"] {
|
|
width: 100%;
|
|
padding: 5px;
|
|
margin-top: 5px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.modal-content .slider {
|
|
display: block;
|
|
margin: 10px auto;
|
|
}
|
|
|
|
.modal-content input[type="checkbox"] {
|
|
margin-left: 10px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.widget-buttons {
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.widget-buttons button {
|
|
margin: 5px;
|
|
padding: 5px 10px;
|
|
background: #007bff;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.widget-buttons button:hover {
|
|
background: #0056b3;
|
|
}
|
|
|
|
.close-modal {
|
|
padding: 5px 10px;
|
|
background: #ccc;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.close-modal:hover {
|
|
background: #999;
|
|
}
|
|
|
|
/* Grid overlay */
|
|
.grid-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 500;
|
|
}
|
|
|
|
.grid-line {
|
|
position: absolute;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.grid-line.vertical {
|
|
width: 1px;
|
|
height: 100%;
|
|
}
|
|
|
|
.grid-line.horizontal {
|
|
width: 100%;
|
|
height: 1px;
|
|
}
|