Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,15 +1,16 @@
|
|
| 1 |
:root {
|
| 2 |
-
-
|
| 3 |
-
--primary
|
| 4 |
-
--
|
| 5 |
-
--surface
|
| 6 |
-
--
|
| 7 |
-
--on-surface
|
| 8 |
-
--
|
| 9 |
-
--
|
| 10 |
-
--
|
| 11 |
-
--elevation-
|
| 12 |
-
--elevation-
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
/* Reset some default styles */
|
|
@@ -21,7 +22,7 @@
|
|
| 21 |
|
| 22 |
body {
|
| 23 |
font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
| 24 |
-
background-color: var(--
|
| 25 |
color: var(--on-surface);
|
| 26 |
line-height: 1.6;
|
| 27 |
}
|
|
@@ -30,7 +31,7 @@ body {
|
|
| 30 |
position: fixed;
|
| 31 |
top: 0;
|
| 32 |
right: 0;
|
| 33 |
-
padding:
|
| 34 |
z-index: 1000;
|
| 35 |
}
|
| 36 |
|
|
@@ -38,54 +39,55 @@ body {
|
|
| 38 |
background: var(--surface-variant);
|
| 39 |
color: var(--on-surface);
|
| 40 |
border: none;
|
| 41 |
-
padding:
|
| 42 |
-
border-radius:
|
| 43 |
cursor: pointer;
|
| 44 |
font-weight: 500;
|
| 45 |
transition: all 0.3s ease;
|
| 46 |
appearance: none;
|
| 47 |
-webkit-appearance: none;
|
| 48 |
-moz-appearance: none;
|
|
|
|
| 49 |
}
|
| 50 |
|
| 51 |
#lang-toggle:hover {
|
| 52 |
-
background: var(--
|
| 53 |
transform: scale(1.05);
|
| 54 |
}
|
| 55 |
|
| 56 |
header {
|
| 57 |
-
padding:
|
| 58 |
text-align: center;
|
| 59 |
-
background: linear-gradient(135deg, var(--primary), var(--primary
|
| 60 |
color: white;
|
| 61 |
animation: fadeIn 0.8s ease-out;
|
| 62 |
}
|
| 63 |
|
| 64 |
.title {
|
| 65 |
-
font-size:
|
| 66 |
font-weight: 700;
|
| 67 |
letter-spacing: -0.5px;
|
| 68 |
-
margin-bottom:
|
| 69 |
}
|
| 70 |
|
| 71 |
.subtitle {
|
| 72 |
-
font-size:
|
| 73 |
opacity: 0.9;
|
| 74 |
}
|
| 75 |
|
| 76 |
main {
|
| 77 |
-
max-width:
|
| 78 |
-
margin:
|
| 79 |
padding: 0 1rem;
|
| 80 |
display: grid;
|
| 81 |
-
gap:
|
| 82 |
-
grid-template-columns: repeat(auto-fit, minmax(
|
| 83 |
}
|
| 84 |
|
| 85 |
.card {
|
| 86 |
-
background: var(--surface
|
| 87 |
-
border-radius:
|
| 88 |
-
padding:
|
| 89 |
box-shadow: var(--elevation-1);
|
| 90 |
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
| 91 |
animation: slideUp 0.5s ease-out;
|
|
@@ -98,9 +100,9 @@ main {
|
|
| 98 |
}
|
| 99 |
|
| 100 |
.card-title {
|
| 101 |
-
color: var(--accent1);
|
| 102 |
-
font-size: 1.
|
| 103 |
-
margin-bottom:
|
| 104 |
font-weight: 600;
|
| 105 |
}
|
| 106 |
|
|
@@ -109,102 +111,119 @@ main {
|
|
| 109 |
}
|
| 110 |
|
| 111 |
.card ul, .card ol {
|
| 112 |
-
padding-left: 1.
|
| 113 |
margin: 0.5rem 0;
|
| 114 |
}
|
| 115 |
|
| 116 |
.card li {
|
| 117 |
-
margin: 0.
|
|
|
|
| 118 |
}
|
| 119 |
|
| 120 |
code {
|
| 121 |
background: rgba(255, 255, 255, 0.1);
|
| 122 |
-
padding: 0.
|
| 123 |
border-radius: 4px;
|
| 124 |
-
font-size: 0.
|
| 125 |
font-family: 'Courier New', Courier, monospace;
|
| 126 |
}
|
| 127 |
|
| 128 |
a {
|
| 129 |
-
color: var(--accent2);
|
| 130 |
text-decoration: none;
|
| 131 |
transition: color 0.2s ease;
|
| 132 |
}
|
| 133 |
|
| 134 |
a:hover {
|
| 135 |
-
color: var(--accent1);
|
| 136 |
text-decoration: underline;
|
| 137 |
}
|
| 138 |
|
| 139 |
footer {
|
| 140 |
text-align: center;
|
| 141 |
-
padding:
|
| 142 |
color: var(--on-surface-variant);
|
| 143 |
-
background: var(--surface
|
| 144 |
-
margin-top:
|
| 145 |
}
|
| 146 |
|
| 147 |
/* Demo Section Styles */
|
| 148 |
.demo-container {
|
| 149 |
-
margin-bottom:
|
| 150 |
}
|
| 151 |
|
| 152 |
.demo-button {
|
| 153 |
-
background-color: var(--
|
| 154 |
color: white;
|
| 155 |
border: none;
|
| 156 |
-
padding:
|
| 157 |
-
border-radius:
|
| 158 |
cursor: pointer;
|
| 159 |
-
font-size:
|
| 160 |
font-weight: 500;
|
| 161 |
transition: background-color 0.3s ease;
|
| 162 |
-
width: 100%;
|
| 163 |
-
display: block;
|
| 164 |
-
margin-bottom: 0.
|
| 165 |
}
|
| 166 |
|
| 167 |
.demo-button:hover {
|
| 168 |
-
background-color: var(--
|
| 169 |
}
|
| 170 |
|
| 171 |
-
/* details/summary styles */
|
| 172 |
details {
|
| 173 |
-
background-color: var(--surface);
|
| 174 |
border-radius: 8px;
|
| 175 |
-
padding:
|
| 176 |
-
margin-top: 0.
|
| 177 |
}
|
| 178 |
|
| 179 |
details summary {
|
| 180 |
cursor: pointer;
|
| 181 |
font-weight: bold;
|
| 182 |
-
list-style: none;
|
| 183 |
-
outline: none;
|
|
|
|
| 184 |
}
|
| 185 |
|
| 186 |
-
/* Hide the default arrow (for most browsers) */
|
| 187 |
details summary::-webkit-details-marker {
|
| 188 |
display: none;
|
| 189 |
}
|
| 190 |
|
| 191 |
-
/* Custom dropdown arrow */
|
| 192 |
details summary::before {
|
| 193 |
-
content: '▶';
|
| 194 |
display: inline-block;
|
| 195 |
margin-right: 0.5em;
|
| 196 |
transition: transform 0.2s ease;
|
|
|
|
| 197 |
}
|
| 198 |
|
| 199 |
details[open] summary::before {
|
| 200 |
-
transform: rotate(90deg);
|
| 201 |
}
|
| 202 |
|
| 203 |
details p {
|
| 204 |
-
margin-top: 0.
|
| 205 |
-
padding-left:
|
|
|
|
| 206 |
}
|
| 207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
|
| 209 |
/* Animations */
|
| 210 |
@keyframes fadeIn {
|
|
@@ -231,14 +250,17 @@ details p {
|
|
| 231 |
}
|
| 232 |
|
| 233 |
.card {
|
| 234 |
-
border-radius:
|
| 235 |
}
|
| 236 |
|
| 237 |
.title {
|
| 238 |
-
font-size:
|
| 239 |
}
|
| 240 |
|
| 241 |
header {
|
| 242 |
-
padding:
|
|
|
|
|
|
|
|
|
|
| 243 |
}
|
| 244 |
}
|
|
|
|
| 1 |
:root {
|
| 2 |
+
/* Dark, GitHub-inspired theme */
|
| 3 |
+
--primary: #0d1117; /* Dark background */
|
| 4 |
+
--primary-dark: #010409; /* Even darker for header */
|
| 5 |
+
--surface: #161b22; /* Slightly lighter background for cards */
|
| 6 |
+
--surface-variant: #21262d; /* For buttons and interactive elements */
|
| 7 |
+
--on-surface: #c9d1d9; /* Light gray text */
|
| 8 |
+
--on-surface-variant: #8b949e; /* Slightly darker text for less important content */
|
| 9 |
+
--accent1: #58a6ff; /* Blue for links and highlights */
|
| 10 |
+
--accent2: #79c0ff; /* Lighter blue for hover effects */
|
| 11 |
+
--elevation-1: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.1);
|
| 12 |
+
--elevation-2: 0 3px 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
|
| 13 |
+
--elevation-3: 0 10px 20px rgba(0,0,0,0.4), 0 3px 6px rgba(0,0,0,0.3);
|
| 14 |
}
|
| 15 |
|
| 16 |
/* Reset some default styles */
|
|
|
|
| 22 |
|
| 23 |
body {
|
| 24 |
font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
| 25 |
+
background-color: var(--primary); /* Darker background */
|
| 26 |
color: var(--on-surface);
|
| 27 |
line-height: 1.6;
|
| 28 |
}
|
|
|
|
| 31 |
position: fixed;
|
| 32 |
top: 0;
|
| 33 |
right: 0;
|
| 34 |
+
padding: 0.5rem; /* Reduced padding */
|
| 35 |
z-index: 1000;
|
| 36 |
}
|
| 37 |
|
|
|
|
| 39 |
background: var(--surface-variant);
|
| 40 |
color: var(--on-surface);
|
| 41 |
border: none;
|
| 42 |
+
padding: 6px 12px; /* Smaller padding */
|
| 43 |
+
border-radius: 15px; /* Smaller radius */
|
| 44 |
cursor: pointer;
|
| 45 |
font-weight: 500;
|
| 46 |
transition: all 0.3s ease;
|
| 47 |
appearance: none;
|
| 48 |
-webkit-appearance: none;
|
| 49 |
-moz-appearance: none;
|
| 50 |
+
font-size: 0.9rem; /* Smaller font size */
|
| 51 |
}
|
| 52 |
|
| 53 |
#lang-toggle:hover {
|
| 54 |
+
background: var(--accent2); /* Use accent2 for hover */
|
| 55 |
transform: scale(1.05);
|
| 56 |
}
|
| 57 |
|
| 58 |
header {
|
| 59 |
+
padding: 4rem 1rem 2rem; /* Reduced padding */
|
| 60 |
text-align: center;
|
| 61 |
+
background: linear-gradient(135deg, var(--primary-dark), var(--primary));
|
| 62 |
color: white;
|
| 63 |
animation: fadeIn 0.8s ease-out;
|
| 64 |
}
|
| 65 |
|
| 66 |
.title {
|
| 67 |
+
font-size: 2rem; /* Smaller title */
|
| 68 |
font-weight: 700;
|
| 69 |
letter-spacing: -0.5px;
|
| 70 |
+
margin-bottom: 0.5rem; /* Reduced margin */
|
| 71 |
}
|
| 72 |
|
| 73 |
.subtitle {
|
| 74 |
+
font-size: 1rem; /* Smaller subtitle */
|
| 75 |
opacity: 0.9;
|
| 76 |
}
|
| 77 |
|
| 78 |
main {
|
| 79 |
+
max-width: 1000px; /* Slightly smaller max-width */
|
| 80 |
+
margin: 1.5rem auto; /* Reduced margin */
|
| 81 |
padding: 0 1rem;
|
| 82 |
display: grid;
|
| 83 |
+
gap: 1.5rem; /* Reduced gap */
|
| 84 |
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Smaller min size */
|
| 85 |
}
|
| 86 |
|
| 87 |
.card {
|
| 88 |
+
background: var(--surface);
|
| 89 |
+
border-radius: 16px; /* Smaller radius */
|
| 90 |
+
padding: 1rem; /* Reduced padding */
|
| 91 |
box-shadow: var(--elevation-1);
|
| 92 |
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
| 93 |
animation: slideUp 0.5s ease-out;
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
.card-title {
|
| 103 |
+
color: var(--accent1); /* Use accent1 for titles */
|
| 104 |
+
font-size: 1.25rem; /* Smaller title */
|
| 105 |
+
margin-bottom: 0.75rem; /* Reduced margin */
|
| 106 |
font-weight: 600;
|
| 107 |
}
|
| 108 |
|
|
|
|
| 111 |
}
|
| 112 |
|
| 113 |
.card ul, .card ol {
|
| 114 |
+
padding-left: 1.25rem; /* Reduced padding */
|
| 115 |
margin: 0.5rem 0;
|
| 116 |
}
|
| 117 |
|
| 118 |
.card li {
|
| 119 |
+
margin: 0.25rem 0; /* Reduced margin */
|
| 120 |
+
font-size: 0.9rem; /* Smaller font size */
|
| 121 |
}
|
| 122 |
|
| 123 |
code {
|
| 124 |
background: rgba(255, 255, 255, 0.1);
|
| 125 |
+
padding: 0.1rem 0.2rem; /* Smaller padding */
|
| 126 |
border-radius: 4px;
|
| 127 |
+
font-size: 0.85em; /* Smaller font size */
|
| 128 |
font-family: 'Courier New', Courier, monospace;
|
| 129 |
}
|
| 130 |
|
| 131 |
a {
|
| 132 |
+
color: var(--accent2); /* Lighter blue for links */
|
| 133 |
text-decoration: none;
|
| 134 |
transition: color 0.2s ease;
|
| 135 |
}
|
| 136 |
|
| 137 |
a:hover {
|
| 138 |
+
color: var(--accent1); /* Use accent1 for hover */
|
| 139 |
text-decoration: underline;
|
| 140 |
}
|
| 141 |
|
| 142 |
footer {
|
| 143 |
text-align: center;
|
| 144 |
+
padding: 1rem; /* Reduced padding */
|
| 145 |
color: var(--on-surface-variant);
|
| 146 |
+
background: var(--surface);
|
| 147 |
+
margin-top: 1rem; /* Reduced margin */
|
| 148 |
}
|
| 149 |
|
| 150 |
/* Demo Section Styles */
|
| 151 |
.demo-container {
|
| 152 |
+
margin-bottom: 0.75rem; /* Reduced margin */
|
| 153 |
}
|
| 154 |
|
| 155 |
.demo-button {
|
| 156 |
+
background-color: var(--accent1); /* Use accent1 for demo buttons */
|
| 157 |
color: white;
|
| 158 |
border: none;
|
| 159 |
+
padding: 8px 16px; /* Smaller padding */
|
| 160 |
+
border-radius: 15px; /* Smaller radius */
|
| 161 |
cursor: pointer;
|
| 162 |
+
font-size: 0.9rem; /* Smaller font size */
|
| 163 |
font-weight: 500;
|
| 164 |
transition: background-color 0.3s ease;
|
| 165 |
+
width: 100%;
|
| 166 |
+
display: block;
|
| 167 |
+
margin-bottom: 0.25rem; /* Reduced margin */
|
| 168 |
}
|
| 169 |
|
| 170 |
.demo-button:hover {
|
| 171 |
+
background-color: var(--accent2); /* Use accent2 for hover */
|
| 172 |
}
|
| 173 |
|
|
|
|
| 174 |
details {
|
| 175 |
+
background-color: var(--surface-variant);
|
| 176 |
border-radius: 8px;
|
| 177 |
+
padding: 8px; /* Smaller padding */
|
| 178 |
+
margin-top: 0.25rem; /* Reduced margin */
|
| 179 |
}
|
| 180 |
|
| 181 |
details summary {
|
| 182 |
cursor: pointer;
|
| 183 |
font-weight: bold;
|
| 184 |
+
list-style: none;
|
| 185 |
+
outline: none;
|
| 186 |
+
font-size: 0.9rem; /* Smaller font size */
|
| 187 |
}
|
| 188 |
|
|
|
|
| 189 |
details summary::-webkit-details-marker {
|
| 190 |
display: none;
|
| 191 |
}
|
| 192 |
|
|
|
|
| 193 |
details summary::before {
|
| 194 |
+
content: '▶';
|
| 195 |
display: inline-block;
|
| 196 |
margin-right: 0.5em;
|
| 197 |
transition: transform 0.2s ease;
|
| 198 |
+
font-size: 0.8rem; /* Smaller font size */
|
| 199 |
}
|
| 200 |
|
| 201 |
details[open] summary::before {
|
| 202 |
+
transform: rotate(90deg);
|
| 203 |
}
|
| 204 |
|
| 205 |
details p {
|
| 206 |
+
margin-top: 0.25rem; /* Reduced margin */
|
| 207 |
+
padding-left: 1rem; /* Reduced padding */
|
| 208 |
+
font-size: 0.85rem; /* Smaller font size */
|
| 209 |
}
|
| 210 |
|
| 211 |
+
/* Info Grid Styles (for grouped sections) */
|
| 212 |
+
.info-grid {
|
| 213 |
+
display: grid;
|
| 214 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
|
| 215 |
+
gap: 1rem;
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
.info-grid h3 {
|
| 219 |
+
font-size: 1rem; /* Smaller heading */
|
| 220 |
+
margin-bottom: 0.5rem;
|
| 221 |
+
color: var(--accent1);
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
.info-grid p, .info-grid ul {
|
| 225 |
+
font-size: 0.85rem;
|
| 226 |
+
}
|
| 227 |
|
| 228 |
/* Animations */
|
| 229 |
@keyframes fadeIn {
|
|
|
|
| 250 |
}
|
| 251 |
|
| 252 |
.card {
|
| 253 |
+
border-radius: 12px; /* Even smaller radius */
|
| 254 |
}
|
| 255 |
|
| 256 |
.title {
|
| 257 |
+
font-size: 1.8rem; /* Even smaller title */
|
| 258 |
}
|
| 259 |
|
| 260 |
header {
|
| 261 |
+
padding: 3rem 1rem 1.5rem; /* Even smaller padding */
|
| 262 |
+
}
|
| 263 |
+
.info-grid {
|
| 264 |
+
grid-template-columns: 1fr; /* Stack info sections on mobile */
|
| 265 |
}
|
| 266 |
}
|