aboutsummaryrefslogtreecommitdiffstats
path: root/src/commonStyles.tsx
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-03-07 18:48:43 +0200
committerGravatar GitHub <[email protected]>2021-03-07 18:48:43 +0200
commit11151894702fab1a06e3dfe9eca43d4596b5290e (patch)
treec74483bd5327751ef54a486d7bdcf20eed418919 /src/commonStyles.tsx
parentAdd margin to bottom of captcha (diff)
parentRenables OAuth Button On Failure (diff)
Merge branch 'main' into hcaptcha
Diffstat (limited to 'src/commonStyles.tsx')
-rw-r--r--src/commonStyles.tsx32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/commonStyles.tsx b/src/commonStyles.tsx
index b2969f8..bfae17e 100644
--- a/src/commonStyles.tsx
+++ b/src/commonStyles.tsx
@@ -51,6 +51,37 @@ const textInputs = css`
border-radius: 8px;
`;
+const submitStyles = css`
+ text-align: right;
+ white-space: nowrap;
+
+ button:disabled {
+ background-color: ${colors.greyple};
+ cursor: default;
+ }
+
+ button {
+ cursor: pointer;
+
+ border: none;
+ border-radius: 8px;
+
+ color: white;
+ font: inherit;
+
+ background-color: ${colors.blurple};
+ transition: background-color 300ms;
+ }
+
+ button[type="submit"] {
+ padding: 0.55rem 4.25rem;
+ }
+
+ button:enabled:hover {
+ background-color: ${colors.darkerBlurple};
+ }
+`;
+
const invalidStyles = css`
.invalid-box {
-webkit-appearance: none;
@@ -66,5 +97,6 @@ export {
hiddenInput,
multiSelectInput,
textInputs,
+ submitStyles,
invalidStyles
};