Aggiunto codice
This commit is contained in:
109
htdocs/css/home.css
Normal file
109
htdocs/css/home.css
Normal file
@@ -0,0 +1,109 @@
|
||||
/* Base styles */
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
padding: 15px;
|
||||
background-color: #f0f2f5;
|
||||
color: #333;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h1, h2 {
|
||||
text-align: center;
|
||||
margin: 10px 0 20px 0;
|
||||
}
|
||||
|
||||
h1 { color: #2c3e50; font-size: 1.8em; }
|
||||
h2 { color: #34495e; font-size: 1.4em; }
|
||||
|
||||
/* Grid layout */
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||
gap: 15px;
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Card styles */
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 15px;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
ul:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 5px 10px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
li b {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-size: 1em;
|
||||
color: #1f618d;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #0066cc;
|
||||
padding: 5px 8px;
|
||||
border-radius: 5px;
|
||||
transition: background-color 0.2s, color 0.2s;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
background-color: #0066cc;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media screen and (max-width: 768px) {
|
||||
body {
|
||||
padding: 10px;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
h1 { font-size: 1.5em; }
|
||||
h2 { font-size: 1.2em; }
|
||||
|
||||
.grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
a {
|
||||
padding: 8px 10px;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
h1 { font-size: 1.3em; }
|
||||
h2 { font-size: 1em; }
|
||||
|
||||
.grid {
|
||||
grid-template-columns: 1fr; /* single column for small screens */
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user