the-glorious-startpage/css/dock-buttons.css

69 lines
1.1 KiB
CSS
Raw Normal View History

2020-06-04 02:35:05 +02:00
/*Dock buttons*/
.dockButton {
2020-06-04 02:14:24 +02:00
width: 36px;
height: 36px;
position: relative;
background: var(--base-container);
border-radius: var(--rounded-radius);
margin: 2px;
padding: 5px;
border: none;
cursor: pointer;
transition: transform .2s;
}
2020-06-04 02:35:05 +02:00
.dockButton div {
2020-06-04 02:14:24 +02:00
background-size: cover;
width: 36px;
height: 36px;
border: none;
2020-06-04 02:35:05 +02:00
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
2020-06-04 02:14:24 +02:00
2020-06-04 02:35:05 +02:00
max-width: 100%;
max-height: 100%;
overflow: auto;
2020-06-04 02:14:24 +02:00
}
2020-06-04 02:35:05 +02:00
.dockButton:hover {
2020-06-04 02:14:24 +02:00
background: var(--base-hover-bg);
-ms-transform: scale(1.25);
-webkit-transform: scale(1.25);
transform: scale(1.25);
}
2020-06-04 02:35:05 +02:00
.dockButton:active {
2020-06-04 02:14:24 +02:00
background: var(--base-active-bg);
-ms-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
2020-06-04 02:35:05 +02:00
.dockButtonImage {
background-size: 'cover';
}
/*The a href container/main dock button container*/
.dockLink {
/*Act as div*/
display: block;
/*Remove outlines*/
text-decoration: none;
outline: 0;
border: none;
-moz-outline-style: none;
/*Disable dragging*/
user-select: none;
user-drag: none;
-webkit-user-drag: none;
}