test / styles.css
TIMBOVILL's picture
Update styles.css
f7e25b8 verified
raw
history blame
No virus
1.67 kB
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #1e1e1e;
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
#app {
width: 100%;
max-width: 800px;
background: #1e1e1e;
display: flex;
flex-direction: column;
height: 100vh;
}
header {
background: #1e1e1e;
color: white;
padding: 1rem;
text-align: center;
border-bottom: 1px solid #333;
}
main {
flex: 1;
overflow-y: auto;
padding: 1rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
}
.grid-item {
padding: 1rem;
border-radius: 8px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
cursor: pointer;
background: linear-gradient(135deg, #ff6b6b, #f06595);
transition: transform 0.3s;
}
.grid-item:hover {
transform: scale(1.05);
}
.grid-item img {
width: 50px;
height: 50px;
margin-bottom: 1rem;
}
.grid-item h2 {
font-size: 1rem;
margin: 0;
}
.hidden {
display: none;
}
.detail-view {
padding: 1rem;
}
.detail-view img {
width: 100%;
margin-bottom: 1rem;
}
footer {
background: #1e1e1e;
padding: 1rem;
text-align: center;
border-top: 1px solid #333;
}
button {
background-color: #007aff;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #005bb5;
}