styles.css
css7 kB378 linesIn Tutorial.zip
Tutorial.zipstyles.css
/* Node.js Tutorial Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 50%, #3d6b4f 100%);
min-height: 100vh;
padding: 20px;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
background-color: white;
border-radius: 10px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
header {
background: linear-gradient(135deg, #68a063 0%, #3c873a 50%, #303030 100%);
color: white;
padding: 30px;
text-align: center;
}
header h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
header p {
font-size: 1.2em;
opacity: 0.9;
}
.content {
padding: 40px;
}
.content h2 {
color: #303030;
margin-top: 30px;
margin-bottom: 15px;
font-size: 2em;
border-bottom: 3px solid #68a063;
padding-bottom: 10px;
}
.content h3 {
color: #444;
margin-top: 25px;
margin-bottom: 12px;
font-size: 1.5em;
}
.content h4 {
color: #555;
margin-top: 20px;
margin-bottom: 10px;
font-size: 1.2em;
}
.content p {
margin-bottom: 15px;
color: #555;
font-size: 1.1em;
}
.content ul, .content ol {
margin-left: 30px;
margin-bottom: 20px;
}
.content li {
margin-bottom: 10px;
color: #555;
}
.content strong {
color: #303030;
}
/* Code Blocks */
pre {
background-color: #1e1e1e;
color: #d4d4d4;
padding: 20px;
border-radius: 8px;
overflow-x: auto;
margin: 20px 0;
border-left: 4px solid #68a063;
font-size: 14px;
line-height: 1.5;
}
code {
font-family: 'Consolas', 'Courier New', Courier, monospace;
font-size: 0.95em;
}
.inline-code {
background-color: #f4f4f4;
color: #3c873a;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Consolas', 'Courier New', Courier, monospace;
}
/* Navigation */
.navigation {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30px 40px;
background-color: #f8f9fa;
border-top: 3px solid #68a063;
}
.nav-button {
padding: 12px 30px;
background-color: #68a063;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: all 0.3s ease;
display: inline-block;
border: 2px solid #68a063;
}
.nav-button:hover {
background-color: #3c873a;
border-color: #3c873a;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.nav-button.disabled {
opacity: 0.3;
pointer-events: none;
}
.home-button {
padding: 10px 25px;
background-color: #303030;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: all 0.3s ease;
}
.home-button:hover {
background-color: #444;
transform: translateY(-2px);
}
/* Table of Contents */
.toc {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 30px;
}
.toc-item {
background: linear-gradient(135deg, #68a063 0%, #3c873a 100%);
color: white;
padding: 25px;
border-radius: 10px;
text-decoration: none;
display: block;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.toc-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
background: linear-gradient(135deg, #3c873a 0%, #2d5a3d 100%);
}
.toc-item h3 {
color: white;
margin-bottom: 10px;
font-size: 1.3em;
}
.toc-item p {
color: rgba(255, 255, 255, 0.9);
font-size: 0.95em;
margin: 0;
}
/* Info Boxes */
.info-box {
background-color: #e7f3ff;
border-left: 5px solid #2196F3;
padding: 15px 20px;
margin: 20px 0;
border-radius: 5px;
}
.warning-box {
background-color: #fff3cd;
border-left: 5px solid #ffc107;
padding: 15px 20px;
margin: 20px 0;
border-radius: 5px;
}
.success-box {
background-color: #d4edda;
border-left: 5px solid #28a745;
padding: 15px 20px;
margin: 20px 0;
border-radius: 5px;
}
.error-box {
background-color: #f8d7da;
border-left: 5px solid #dc3545;
padding: 15px 20px;
margin: 20px 0;
border-radius: 5px;
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
background-color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
overflow: hidden;
}
th {
background-color: #68a063;
color: white;
padding: 15px;
text-align: left;
font-weight: bold;
}
td {
padding: 12px 15px;
border-bottom: 1px solid #eee;
color: #555;
}
tr:hover {
background-color: #f5f5f5;
}
tr:last-child td {
border-bottom: none;
}
/* Diagram Box */
.diagram-box {
background-color: #f8f9fa;
border: 2px solid #68a063;
padding: 20px;
margin: 20px 0;
border-radius: 8px;
font-family: 'Consolas', 'Courier New', Courier, monospace;
white-space: pre;
overflow-x: auto;
text-align: center;
}
/* Responsive Design */
@media (max-width: 768px) {
.content {
padding: 20px;
}
header h1 {
font-size: 1.8em;
}
.navigation {
flex-direction: column;
gap: 15px;
}
.toc {
grid-template-columns: 1fr;
}
pre {
font-size: 12px;
padding: 15px;
}
}
/* Syntax Highlighting */
.keyword { color: #569cd6; }
.function { color: #dcdcaa; }
.string { color: #ce9178; }
.comment { color: #6a9955; font-style: italic; }
.number { color: #b5cea8; }
.variable { color: #9cdcfe; }
.property { color: #4fc1ff; }
/* File Tree */
.file-tree {
background-color: #1e1e1e;
color: #d4d4d4;
padding: 20px;
border-radius: 8px;
margin: 20px 0;
font-family: 'Consolas', 'Courier New', Courier, monospace;
}
.file-tree .folder {
color: #dcb67a;
}
.file-tree .file {
color: #9cdcfe;
}
/* Steps */
.step {
background-color: #f8f9fa;
border-left: 4px solid #68a063;
padding: 15px 20px;
margin: 15px 0;
border-radius: 0 8px 8px 0;
}
.step-number {
display: inline-block;
width: 30px;
height: 30px;
background-color: #68a063;
color: white;
border-radius: 50%;
text-align: center;
line-height: 30px;
font-weight: bold;
margin-right: 10px;
}
/* Badge */
.badge {
display: inline-block;
padding: 4px 10px;
border-radius: 12px;
font-size: 0.85em;
font-weight: bold;
margin-left: 5px;
}
.badge-green {
background-color: #68a063;
color: white;
}
.badge-blue {
background-color: #2196F3;
color: white;
}
.badge-orange {
background-color: #ff9800;
color: white;
}