Files
homelab/gateway/dashboard/styles.css
T
2024-10-09 15:18:37 +01:00

113 lines
2.1 KiB
CSS

@font-face {
font-family: 'Poppins';
src: URL('assets/fonts/Poppins-Regular.ttf') format('truetype');
}
/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Poppins;
background: center no-repeat url('./assets/wallpapers/blobs.jpg') fixed;
height: 100vh;
}
.container {
width: 90%;
max-width: 1200px;
height: 100%;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
}
.app-grid {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.app-item {
background: rgba(255, 255, 255, 0.3);
/* Use semi-transparent white for background */
border-radius: 4px 12px;
overflow: hidden;
width: 150px;
height: 150px;
text-align: center;
transition: transform 0.2s, box-shadow 0.2s;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.app-item a {
text-decoration: none;
color: #2a037c;
display: block;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 16px;
}
.app-icon-wrapper {
width: 100%;
height: 60%;
display: flex;
align-items: center;
justify-content: center;
}
.app-icon {
max-height: 100%;
max-width: 100%;
}
.app-name {
margin-top: 16px;
font-size: 16px;
font-weight: bold;
height: 20%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.app-item:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.app-item:active {
transform: scale(0.95);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Responsive design */
@media (max-width: 768px) {
.app-item {
width: 120px;
height: 120px;
/* Ensuring the item is square */
}
}
@media (max-width: 480px) {
.app-item {
width: 100px;
height: 100px;
/* Ensuring the item is square */
}
}