Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,63 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
font-family: sans-serif;
|
| 3 |
margin: 0;
|
| 4 |
padding: 0;
|
| 5 |
-
background-color:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
}
|
| 7 |
|
| 8 |
header {
|
| 9 |
-
background-color:
|
| 10 |
-
color:
|
| 11 |
text-align: center;
|
| 12 |
-
padding: 20px;
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
-
|
| 16 |
-
font-size:
|
| 17 |
margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
margin-bottom: 20px;
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
}
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
|
|
|
| 30 |
padding-bottom: 10px;
|
| 31 |
margin-bottom: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
}
|
| 33 |
|
| 34 |
-
ul, ol {
|
| 35 |
margin-bottom: 20px;
|
| 36 |
}
|
| 37 |
|
| 38 |
-
a {
|
| 39 |
-
color:
|
| 40 |
text-decoration: none;
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
|
| 43 |
-
a:hover {
|
|
|
|
| 44 |
text-decoration: underline;
|
| 45 |
}
|
| 46 |
|
| 47 |
-
code {
|
| 48 |
-
background-color: #
|
| 49 |
padding: 2px 5px;
|
| 50 |
border-radius: 3px;
|
| 51 |
-
font-family: monospace;
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
footer {
|
| 55 |
text-align: center;
|
| 56 |
-
padding:
|
| 57 |
-
background-color:
|
| 58 |
font-size: 0.8em;
|
| 59 |
}
|
| 60 |
|
| 61 |
.katex {
|
| 62 |
font-size: 1.2em;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
}
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
--md-background-color: #212121;
|
| 3 |
+
--md-surface-color: #303030;
|
| 4 |
+
--md-on-background-color: #e0e0e0;
|
| 5 |
+
--md-on-surface-color: #e0e0e0;
|
| 6 |
+
--md-primary-color: #b388ff;
|
| 7 |
+
--md-on-primary-color: #000000;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
body {
|
| 11 |
+
font-family: 'Roboto', sans-serif;
|
| 12 |
margin: 0;
|
| 13 |
padding: 0;
|
| 14 |
+
background-color: var(--md-background-color);
|
| 15 |
+
color: var(--md-on-background-color);
|
| 16 |
+
transition: background-color 0.3s ease;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.top-bar {
|
| 20 |
+
background-color: var(--md-surface-color);
|
| 21 |
+
padding: 10px;
|
| 22 |
+
text-align: right;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
#lang-toggle {
|
| 26 |
+
background-color: var(--md-primary-color);
|
| 27 |
+
color: var(--md-on-primary-color);
|
| 28 |
+
border: none;
|
| 29 |
+
padding: 8px 16px;
|
| 30 |
+
border-radius: 20px;
|
| 31 |
+
cursor: pointer;
|
| 32 |
+
font-weight: 500;
|
| 33 |
+
transition: background-color 0.3s ease, transform 0.2s ease;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
#lang-toggle:hover {
|
| 37 |
+
background-color: #9c27b0;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
#lang-toggle:active {
|
| 41 |
+
transform: scale(0.95);
|
| 42 |
}
|
| 43 |
|
| 44 |
header {
|
| 45 |
+
background-color: var(--md-surface-color);
|
| 46 |
+
color: var(--md-on-surface-color);
|
| 47 |
text-align: center;
|
| 48 |
+
padding: 30px 20px;
|
| 49 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
| 50 |
}
|
| 51 |
|
| 52 |
+
.title {
|
| 53 |
+
font-size: 3em;
|
| 54 |
margin-bottom: 10px;
|
| 55 |
+
font-weight: 450;
|
| 56 |
+
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
| 57 |
+
opacity: 0;
|
| 58 |
+
animation: fadeInDown 1s ease forwards;
|
| 59 |
}
|
| 60 |
|
| 61 |
+
.subtitle {
|
| 62 |
+
font-size: 1.2em;
|
| 63 |
+
font-weight: 300;
|
| 64 |
+
opacity: 0;
|
| 65 |
+
animation: fadeInUp 1s ease 0.5s forwards;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
main {
|
| 69 |
+
padding: 20px;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.card {
|
| 73 |
+
background-color: var(--md-surface-color);
|
| 74 |
+
border-radius: 12px;
|
| 75 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
|
| 76 |
margin-bottom: 20px;
|
| 77 |
+
padding: 20px;
|
| 78 |
+
transition: box-shadow 0.3s ease, transform 0.2s ease;
|
| 79 |
+
opacity: 0;
|
| 80 |
+
animation: fadeInUp 1s ease forwards;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.card:hover {
|
| 84 |
+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
|
| 85 |
+
transform: translateY(-4px);
|
| 86 |
}
|
| 87 |
|
| 88 |
+
.card-title {
|
| 89 |
+
color: var(--md-primary-color);
|
| 90 |
+
border-bottom: 2px solid var(--md-primary-color);
|
| 91 |
padding-bottom: 10px;
|
| 92 |
margin-bottom: 20px;
|
| 93 |
+
font-weight: 500;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.card-content {
|
| 97 |
+
line-height: 1.6;
|
| 98 |
}
|
| 99 |
|
| 100 |
+
.card ul, .card ol {
|
| 101 |
margin-bottom: 20px;
|
| 102 |
}
|
| 103 |
|
| 104 |
+
.card a {
|
| 105 |
+
color: var(--md-primary-color);
|
| 106 |
text-decoration: none;
|
| 107 |
+
transition: color 0.3s ease;
|
| 108 |
+
font-weight: 500;
|
| 109 |
}
|
| 110 |
|
| 111 |
+
.card a:hover {
|
| 112 |
+
color: #9c27b0;
|
| 113 |
text-decoration: underline;
|
| 114 |
}
|
| 115 |
|
| 116 |
+
.card code {
|
| 117 |
+
background-color: #424242;
|
| 118 |
padding: 2px 5px;
|
| 119 |
border-radius: 3px;
|
| 120 |
+
font-family: 'Courier New', Courier, monospace;
|
| 121 |
+
color: #f0f0f0;
|
| 122 |
}
|
| 123 |
|
| 124 |
footer {
|
| 125 |
text-align: center;
|
| 126 |
+
padding: 20px;
|
| 127 |
+
background-color: var(--md-background-color);
|
| 128 |
font-size: 0.8em;
|
| 129 |
}
|
| 130 |
|
| 131 |
.katex {
|
| 132 |
font-size: 1.2em;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
@keyframes fadeInUp {
|
| 136 |
+
from {
|
| 137 |
+
opacity: 0;
|
| 138 |
+
transform: translateY(40px);
|
| 139 |
+
}
|
| 140 |
+
to {
|
| 141 |
+
opacity: 1;
|
| 142 |
+
transform: translateY(0);
|
| 143 |
+
}
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
@keyframes fadeInDown {
|
| 147 |
+
from {
|
| 148 |
+
opacity: 0;
|
| 149 |
+
transform: translateY(-40px);
|
| 150 |
+
}
|
| 151 |
+
to {
|
| 152 |
+
opacity: 1;
|
| 153 |
+
transform: translateY(0);
|
| 154 |
+
}
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
@media (max-width: 600px) {
|
| 158 |
+
.title {
|
| 159 |
+
font-size: 2.5em;
|
| 160 |
+
}
|
| 161 |
+
.card {
|
| 162 |
+
border-radius: 0;
|
| 163 |
+
}
|
| 164 |
}
|