style: refresh primary and danger buttons
This commit is contained in:
1 parent
51c8c82e1d
commit
15ac501843
1 file changed
+94
-50
+94
-50
@@ -117,15 +117,6 @@ body {
|
||||
margin-top: 4px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
color: #ffffff;
|
||||
background: #111827;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
|
||||
}
|
||||
|
||||
.auth-form button[type="submit"]:hover {
|
||||
background: #0f172a;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.auth-message {
|
||||
@@ -201,6 +192,73 @@ button:disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.primary-link,
|
||||
#adminSubmitBtn,
|
||||
.auth-form button[type="submit"],
|
||||
.login-form button,
|
||||
.admin-form button[type="submit"],
|
||||
.activation-code-form button[type="submit"],
|
||||
.practice-answer-row button {
|
||||
border-color: var(--primary-solid);
|
||||
color: #fffdf8;
|
||||
background: var(--primary-solid);
|
||||
box-shadow: var(--primary-soft-shadow);
|
||||
font-weight: 800;
|
||||
transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.primary-link:hover,
|
||||
#adminSubmitBtn:hover,
|
||||
.auth-form button[type="submit"]:hover,
|
||||
.login-form button:hover,
|
||||
.admin-form button[type="submit"]:hover,
|
||||
.activation-code-form button[type="submit"]:hover,
|
||||
.practice-answer-row button:hover {
|
||||
border-color: var(--primary-solid-hover);
|
||||
color: #fffdf8;
|
||||
background: var(--primary-solid-hover);
|
||||
box-shadow: 0 12px 26px rgba(47, 75, 69, 0.20);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.primary-link:active,
|
||||
#adminSubmitBtn:active,
|
||||
.auth-form button[type="submit"]:active,
|
||||
.login-form button:active,
|
||||
.admin-form button[type="submit"]:active,
|
||||
.activation-code-form button[type="submit"]:active,
|
||||
.practice-answer-row button:active {
|
||||
border-color: var(--primary-solid-active);
|
||||
background: var(--primary-solid-active);
|
||||
box-shadow: 0 6px 14px rgba(47, 75, 69, 0.14);
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.primary-link:focus-visible,
|
||||
#adminSubmitBtn:focus-visible,
|
||||
.auth-form button[type="submit"]:focus-visible,
|
||||
.login-form button:focus-visible,
|
||||
.admin-form button[type="submit"]:focus-visible,
|
||||
.activation-code-form button[type="submit"]:focus-visible,
|
||||
.practice-answer-row button:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--primary-soft-shadow), var(--focus-ring);
|
||||
}
|
||||
|
||||
.primary-link:disabled,
|
||||
#adminSubmitBtn:disabled,
|
||||
.auth-form button[type="submit"]:disabled,
|
||||
.login-form button:disabled,
|
||||
.admin-form button[type="submit"]:disabled,
|
||||
.activation-code-form button[type="submit"]:disabled,
|
||||
.practice-answer-row button:disabled {
|
||||
border-color: #d8d2c8;
|
||||
color: #9b9388;
|
||||
background: #e8e2d8;
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
@@ -336,13 +394,6 @@ textarea:focus {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.login-form button,
|
||||
.admin-form button[type="submit"] {
|
||||
color: #fff;
|
||||
background: var(--brand);
|
||||
border-color: var(--brand);
|
||||
}
|
||||
|
||||
.user-menu {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
@@ -653,21 +704,6 @@ video {
|
||||
min-width: 76px;
|
||||
min-height: 42px;
|
||||
align-self: start;
|
||||
color: #ffffff;
|
||||
border-color: var(--brand);
|
||||
background: var(--brand);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.practice-answer-row button:hover {
|
||||
border-color: #0d625c;
|
||||
background: #0d625c;
|
||||
}
|
||||
|
||||
.practice-answer-row button:disabled {
|
||||
color: #98a2b3;
|
||||
border-color: #d8e2ec;
|
||||
background: #e8eef5;
|
||||
}
|
||||
|
||||
.practice-feedback {
|
||||
@@ -1359,19 +1395,35 @@ video {
|
||||
}
|
||||
|
||||
.danger-action {
|
||||
border-color: #fecdd3;
|
||||
border-radius: 8px;
|
||||
color: #be123c;
|
||||
background: #fff1f2;
|
||||
white-space: nowrap;
|
||||
transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
|
||||
min-height: 34px;
|
||||
border: 1px solid rgba(159, 47, 53, 0.10);
|
||||
border-radius: 10px;
|
||||
padding: 0 12px;
|
||||
color: var(--danger-ink);
|
||||
background: var(--danger-soft);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.danger-action:hover {
|
||||
border-color: #fb7185;
|
||||
color: #9f1239;
|
||||
background: #ffe4e6;
|
||||
box-shadow: 0 8px 18px rgba(190, 18, 60, 0.1);
|
||||
border-color: rgba(159, 47, 53, 0.16);
|
||||
color: #84262c;
|
||||
background: var(--danger-soft-hover);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 18px rgba(159, 47, 53, 0.08);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.danger-action:active {
|
||||
background: #f4cccc;
|
||||
box-shadow: inset 0 1px 2px rgba(159, 47, 53, 0.14);
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.danger-action:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(159, 47, 53, 0.14);
|
||||
}
|
||||
|
||||
.secondary-action {
|
||||
@@ -1417,22 +1469,14 @@ video {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 36px;
|
||||
border: 1px solid var(--brand);
|
||||
border: 1px solid var(--primary-solid);
|
||||
border-radius: 8px;
|
||||
padding: 0 12px;
|
||||
color: #fff;
|
||||
background: var(--brand);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.primary-link:hover {
|
||||
color: #fff;
|
||||
background: #0d625c;
|
||||
border-color: #0d625c;
|
||||
}
|
||||
|
||||
.home-page {
|
||||
min-height: 100vh;
|
||||
background: #f8fafc;
|
||||
|
||||
Reference in new issue
Block a user