Files
esercizi-web/JS_Esercizi 11 - API/tutorial/styles.css
2026-02-05 11:57:28 +01:00

209 lines
3.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 40px 20px;
}
.container {
max-width: 900px;
margin: 0 auto;
background: white;
border-radius: 15px;
padding: 40px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
h1 {
color: #333;
margin-bottom: 10px;
text-align: center;
font-size: 2.5rem;
}
.subtitle {
text-align: center;
color: #666;
margin-bottom: 40px;
font-size: 1.1rem;
}
h2 {
color: #667eea;
margin-top: 40px;
margin-bottom: 20px;
border-bottom: 3px solid #667eea;
padding-bottom: 10px;
font-size: 1.8rem;
}
h3 {
color: #555;
margin-top: 25px;
margin-bottom: 15px;
font-size: 1.3rem;
}
p {
color: #666;
line-height: 1.8;
margin-bottom: 15px;
font-size: 1rem;
}
code {
background: #f5f5f5;
padding: 2px 6px;
border-radius: 4px;
font-family: 'Courier New', monospace;
color: #d63384;
}
.code-block {
background: #f5f5f5;
border-left: 4px solid #667eea;
padding: 15px;
margin: 20px 0;
border-radius: 5px;
overflow-x: auto;
}
.code-block code {
background: none;
padding: 0;
color: #333;
display: block;
font-size: 0.9rem;
}
.example-section {
background: #e3f2fd;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
border-left: 5px solid #2196F3;
}
.example-section h4 {
color: #1565c0;
margin-bottom: 10px;
}
.endpoint-list {
background: #f9f9f9;
padding: 20px;
border-radius: 8px;
margin: 15px 0;
}
.endpoint-item {
margin: 15px 0;
padding: 15px;
background: white;
border-left: 4px solid #667eea;
border-radius: 4px;
}
.endpoint-item strong {
color: #667eea;
font-family: monospace;
}
ul, ol {
margin-left: 20px;
color: #666;
line-height: 1.8;
}
li {
margin: 10px 0;
}
.back-button {
display: inline-block;
margin-top: 30px;
padding: 12px 30px;
background: #667eea;
color: white;
text-decoration: none;
border-radius: 8px;
transition: all 0.3s;
font-weight: 600;
}
.back-button:hover {
background: #764ba2;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.note {
background: #fff3cd;
border-left: 4px solid #ffc107;
padding: 15px;
border-radius: 4px;
margin: 15px 0;
}
.note strong {
color: #856404;
}
.success {
background: #d4edda;
border-left: 4px solid #28a745;
padding: 15px;
border-radius: 4px;
margin: 15px 0;
}
.success strong {
color: #155724;
}
.interactive-demo {
background: #f5f5f5;
padding: 20px;
border-radius: 8px;
margin: 20px 0;
}
.interactive-demo input,
.interactive-demo button {
padding: 10px;
margin: 5px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 0.9rem;
}
.interactive-demo button {
background: #667eea;
color: white;
cursor: pointer;
border: none;
font-weight: 600;
}
.interactive-demo button:hover {
background: #764ba2;
}
.result {
background: white;
padding: 15px;
margin-top: 10px;
border-radius: 4px;
border: 1px solid #ddd;
max-height: 200px;
overflow-y: auto;
font-size: 0.85rem;
font-family: monospace;
}