justduh
Version:
A deceptively simple floating desktop button that sits quietly on your screen, always accessible with a single click.
42 lines (39 loc) • 1.03 kB
CSS
body {
margin: 0;
padding: 0;
background: transparent;
-webkit-app-region: drag;
}
#duh-button {
min-width: 80px;
height: 30px;
margin: 10px;
background: linear-gradient(to bottom, #f8f9fc, #d8d8d8);
color: black;
border: 1px solid #0c1b44;
border-radius: 5px;
cursor: pointer;
-webkit-app-region: no-drag;
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.4),
0 2px 4px rgba(0,0,0,0.3),
0 1px 2px rgba(0,0,0,0.4);
text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
font-family: Arial, sans-serif;
font-weight: bold;
position: relative;
overflow: hidden;
transition: all 0.3s ease-in-out;
padding: 0 10px;
white-space: nowrap;
}
#duh-button:hover {
background: linear-gradient(to bottom, #ffffff, #e8e8e8);
}
#duh-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);
}