Jelajahi Sumber

Create global.css

Lee Morgan 3 minggu lalu
induk
melakukan
aafb569f65
3 mengubah file dengan 118 tambahan dan 1 penghapusan
  1. 0 0
      CLAUDE.md
  2. 118 0
      src/lib/global.css
  3. 0 1
      src/lib/index.js

+ 0 - 0
AGENT.md → CLAUDE.md


+ 118 - 0
src/lib/global.css

@@ -0,0 +1,118 @@
+* {
+    margin: 0;
+    padding: 0;
+    box-sizing: border-box;
+}
+
+.standardForm {
+    display: flex;
+    flex-direction: column;
+    gap: 1.25rem;
+    width: 100%;
+    max-width: 420px;
+    padding: 2.5rem;
+    background: #1a1a2e;
+    border: 1px solid #2e2e4a;
+    border-radius: 12px;
+}
+
+.standardForm h2 {
+    font-size: 1.5rem;
+    font-weight: 600;
+    color: #e8e8f0;
+}
+
+.standardForm p {
+    font-size: 0.875rem;
+    color: #888;
+    text-align: center;
+}
+
+.standardForm label {
+    display: flex;
+    flex-direction: column;
+    gap: 0.375rem;
+    font-size: 0.875rem;
+    font-weight: 500;
+    color: #b0b0c8;
+}
+
+.standardForm input,
+.standardForm textarea,
+.standardForm select {
+    width: 100%;
+    padding: 0.625rem 0.875rem;
+    background: #0f0f1e;
+    border: 1px solid #2e2e4a;
+    border-radius: 8px;
+    color: #e8e8f0;
+    font-size: 0.95rem;
+    font-weight: 400;
+    transition: border-color 0.15s, box-shadow 0.15s;
+    outline: none;
+}
+
+.standardForm input::placeholder,
+.standardForm textarea::placeholder {
+    color: #444466;
+}
+
+.standardForm input:focus,
+.standardForm textarea:focus,
+.standardForm select:focus {
+    border-color: #5a5aff;
+    box-shadow: 0 0 0 3px rgba(90, 90, 255, 0.15);
+}
+
+.standardForm small {
+    font-size: 0.8rem;
+    color: #e05555;
+}
+
+.standardForm output {
+    display: block;
+    padding: 0.625rem 0.875rem;
+    background: rgba(224, 85, 85, 0.1);
+    border: 1px solid rgba(224, 85, 85, 0.35);
+    border-radius: 8px;
+    font-size: 0.875rem;
+    color: #e05555;
+}
+
+.standardForm button[type="submit"] {
+    width: 100%;
+    padding: 0.7rem 1rem;
+    background: #5a5aff;
+    color: #fff;
+    font-size: 1rem;
+    font-weight: 600;
+    border: none;
+    border-radius: 8px;
+    cursor: pointer;
+    transition: background 0.15s, transform 0.1s;
+    margin-top: 0.25rem;
+}
+
+.standardForm button[type="submit"]:hover {
+    background: #4646e0;
+}
+
+.standardForm button[type="submit"]:active {
+    transform: scale(0.98);
+}
+
+.standardForm button[type="submit"]:disabled {
+    background: #3a3a66;
+    color: #666688;
+    cursor: not-allowed;
+    transform: none;
+}
+
+.standardForm a {
+    color: #7a7aff;
+    text-decoration: none;
+}
+
+.standardForm a:hover {
+    text-decoration: underline;
+}

+ 0 - 1
src/lib/index.js

@@ -1 +0,0 @@
-// place files you want to import through the `$lib` alias in this folder.