justduh
Version:
A deceptively simple floating desktop button that sits quietly on your screen, always accessible with a single click.
95 lines (84 loc) • 2.05 kB
CSS
/* Control Panel Styles */
.control-panel {
display: none;
position: absolute;
top: 50px;
left: 10px;
background: linear-gradient(to bottom, #f8f9fc, #e8e8e8);
border: 1px solid #0c1b44;
border-radius: 5px;
box-shadow:
0 4px 8px rgba(0,0,0,0.3),
0 2px 4px rgba(0,0,0,0.4);
min-width: 200px;
opacity: 0;
transform: translateY(-10px);
transition: all 0.3s ease-in-out;
-webkit-app-region: no-drag;
z-index: 1000;
}
.control-panel.show {
opacity: 1;
transform: translateY(0);
}
.control-header {
background: linear-gradient(to bottom, #0c1b44, #1a2a5e);
color: white;
padding: 8px 12px;
border-radius: 4px 4px 0 0;
border-bottom: 1px solid #333;
}
.control-header h3 {
margin: 0;
font-family: Arial, sans-serif;
font-size: 12px;
font-weight: bold;
text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.control-content {
padding: 10px;
}
.control-item {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
font-family: Arial, sans-serif;
font-size: 11px;
}
.control-item:last-child {
margin-bottom: 0;
}
.control-item label {
font-weight: bold;
color: #333;
}
.control-item span {
color: #666;
font-weight: normal;
}
.control-item button {
background: linear-gradient(to bottom, #f8f9fc, #d8d8d8);
color: black;
border: 1px solid #0c1b44;
border-radius: 3px;
padding: 4px 8px;
cursor: pointer;
font-family: Arial, sans-serif;
font-size: 10px;
font-weight: bold;
transition: all 0.2s ease-in-out;
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.4),
0 1px 2px rgba(0,0,0,0.2);
}
.control-item button:hover {
background: linear-gradient(to bottom, #ffffff, #e8e8e8);
}
.control-item button:active {
background: linear-gradient(to bottom, #f8f9fc, #d8d8d8);
box-shadow:
inset 0 2px 4px rgba(0,0,0,0.3),
0 1px 1px rgba(255,255,255,0.1);
transform: translateY(1px);
}