Update style.css
Browse files
style.css
CHANGED
|
@@ -1,152 +1,118 @@
|
|
| 1 |
-
/*
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
*::after {
|
| 5 |
-
box-sizing: border-box;
|
| 6 |
-
margin: 0;
|
| 7 |
-
padding: 0;
|
| 8 |
}
|
| 9 |
|
| 10 |
-
/* Variables for consistent theming */
|
| 11 |
-
:root {
|
| 12 |
-
--font-primary: -apple-system, BlinkMacSystemFont, 'Arial', system-ui, sans-serif;
|
| 13 |
-
--color-text-primary: #1a1a1a;
|
| 14 |
-
--color-text-secondary: rgb(107, 114, 128);
|
| 15 |
-
--color-border: #e5e7eb;
|
| 16 |
-
--spacing-base: 1rem;
|
| 17 |
-
--card-max-width: 38.75rem;
|
| 18 |
-
--card-radius: 1rem;
|
| 19 |
-
--transition-speed: 0.2s;
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
/* Body styles */
|
| 23 |
body {
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
background-color: #f9fafb;
|
| 29 |
-
-webkit-font-smoothing: antialiased;
|
| 30 |
-
-moz-osx-font-smoothing: grayscale;
|
| 31 |
-
}
|
| 32 |
-
|
| 33 |
-
/* Typography */
|
| 34 |
-
h1 {
|
| 35 |
-
font-size: 1rem;
|
| 36 |
-
font-weight: 600;
|
| 37 |
-
margin-top: 0;
|
| 38 |
-
margin-bottom: var(--spacing-base);
|
| 39 |
-
line-height: 1.4;
|
| 40 |
-
}
|
| 41 |
-
|
| 42 |
-
p {
|
| 43 |
-
color: var(--color-text-secondary);
|
| 44 |
-
font-size: 0.9375rem;
|
| 45 |
-
margin-top: 0.3125rem;
|
| 46 |
-
margin-bottom: 0.625rem;
|
| 47 |
-
line-height: 1.6;
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
/* Card component */
|
| 51 |
-
.card {
|
| 52 |
-
max-width: var(--card-max-width);
|
| 53 |
-
margin: 0 auto;
|
| 54 |
-
padding: var(--spacing-base);
|
| 55 |
-
background-color: white;
|
| 56 |
-
border: 1px solid var(--color-border);
|
| 57 |
-
border-radius: var(--card-radius);
|
| 58 |
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
| 59 |
-
transition: transform var(--transition-speed) ease-in-out,
|
| 60 |
-
box-shadow var(--transition-speed) ease-in-out;
|
| 61 |
-
}
|
| 62 |
-
|
| 63 |
-
/* Card hover effects */
|
| 64 |
-
.card:hover {
|
| 65 |
-
transform: translateY(-2px);
|
| 66 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 67 |
-
}
|
| 68 |
-
|
| 69 |
-
/* Remove margin from last paragraph in card */
|
| 70 |
-
.card p:last-child {
|
| 71 |
-
margin-bottom: 0;
|
| 72 |
}
|
| 73 |
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
body {
|
| 83 |
-
background-color: #111827;
|
| 84 |
-
}
|
| 85 |
-
|
| 86 |
-
.card {
|
| 87 |
-
background-color: #1f2937;
|
| 88 |
-
}
|
| 89 |
}
|
| 90 |
|
| 91 |
-
/*
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
padding: 0.875rem;
|
| 99 |
-
}
|
| 100 |
-
|
| 101 |
-
h1 {
|
| 102 |
-
font-size: 0.9375rem;
|
| 103 |
-
}
|
| 104 |
-
|
| 105 |
-
p {
|
| 106 |
-
font-size: 0.875rem;
|
| 107 |
-
}
|
| 108 |
}
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
padding: 0;
|
| 114 |
-
background: none;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
.card {
|
| 118 |
-
box-shadow: none;
|
| 119 |
-
border: 1px solid #000;
|
| 120 |
-
}
|
| 121 |
}
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
h1 {
|
| 130 |
-
font-size: 16px;
|
| 131 |
-
margin-top: 0;
|
| 132 |
-
}
|
| 133 |
-
|
| 134 |
-
p {
|
| 135 |
-
color: rgb(107, 114, 128);
|
| 136 |
-
font-size: 15px;
|
| 137 |
-
margin-bottom: 10px;
|
| 138 |
-
margin-top: 5px;
|
| 139 |
}
|
| 140 |
|
| 141 |
.card {
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
border-radius: 16px;
|
| 147 |
}
|
| 148 |
|
| 149 |
-
.card
|
| 150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
}
|
| 152 |
-
*/
|
|
|
|
| 1 |
+
/* Global Styles */
|
| 2 |
+
* {
|
| 3 |
+
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
body {
|
| 7 |
+
font-family: 'Arial', sans-serif;
|
| 8 |
+
line-height: 1.6;
|
| 9 |
+
color: #333;
|
| 10 |
+
background-color: #f4f4f4;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
|
| 13 |
+
.container {
|
| 14 |
+
max-width: 800px;
|
| 15 |
+
margin: auto;
|
| 16 |
+
padding: 20px;
|
| 17 |
+
background-color: #fff;
|
| 18 |
+
border-radius: 5px;
|
| 19 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
+
/* Header Styles */
|
| 23 |
+
header {
|
| 24 |
+
background-color: #3498db;
|
| 25 |
+
color: white;
|
| 26 |
+
text-align: center;
|
| 27 |
+
padding: 20px 0;
|
| 28 |
+
border-radius: 5px 5px 0 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
}
|
| 30 |
|
| 31 |
+
header h1 {
|
| 32 |
+
font-size: 2em;
|
| 33 |
+
margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
+
/* Main Content Styles */
|
| 37 |
+
main {
|
| 38 |
+
display: flex;
|
| 39 |
+
flex-direction: column;
|
| 40 |
+
gap: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
|
| 43 |
.card {
|
| 44 |
+
background-color: #fff;
|
| 45 |
+
border-radius: 5px;
|
| 46 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
| 47 |
+
transition: transform 0.3s ease-in-out;
|
|
|
|
| 48 |
}
|
| 49 |
|
| 50 |
+
.card:hover {
|
| 51 |
+
transform: translateY(-5px);
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.card h2 {
|
| 55 |
+
color: #333;
|
| 56 |
+
margin-top: 0;
|
| 57 |
+
padding: 15px 20px;
|
| 58 |
+
background-color: #f8f9fa;
|
| 59 |
+
border-bottom: 1px solid #e9ecef;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
/* Code Editor Styles */
|
| 63 |
+
#codeEditor {
|
| 64 |
+
font-size: 14px;
|
| 65 |
+
padding: 10px;
|
| 66 |
+
width: 100%;
|
| 67 |
+
height: 300px;
|
| 68 |
+
resize: vertical;
|
| 69 |
+
background-color: #f8f8f8;
|
| 70 |
+
border-radius: 5px;
|
| 71 |
+
overflow-x: auto;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
/* Console Output Styles */
|
| 75 |
+
#consoleOutput {
|
| 76 |
+
font-family: 'Courier New', Courier, monospace;
|
| 77 |
+
font-size: 13px;
|
| 78 |
+
padding: 15px;
|
| 79 |
+
background-color: #f0f0f0;
|
| 80 |
+
border-radius: 5px;
|
| 81 |
+
overflow-x: auto;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
/* Button Styles */
|
| 85 |
+
button {
|
| 86 |
+
background-color: #3498db;
|
| 87 |
+
color: white;
|
| 88 |
+
border: none;
|
| 89 |
+
padding: 10px 20px;
|
| 90 |
+
font-size: 16px;
|
| 91 |
+
cursor: pointer;
|
| 92 |
+
border-radius: 5px;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
button:hover {
|
| 96 |
+
background-color: #2980b9;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
/* Footer Styles */
|
| 100 |
+
footer {
|
| 101 |
+
background-color: #3498db;
|
| 102 |
+
color: white;
|
| 103 |
+
text-align: center;
|
| 104 |
+
padding: 15px 0;
|
| 105 |
+
margin-top: auto;
|
| 106 |
+
border-radius: 0 0 5px 5px;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
/* Responsive Design */
|
| 110 |
+
@media screen and (max-width: 600px) {
|
| 111 |
+
.container {
|
| 112 |
+
padding: 10px;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
#codeEditor {
|
| 116 |
+
height: 200px;
|
| 117 |
+
}
|
| 118 |
}
|
|
|