diff options
author | 2021-01-17 16:19:18 +0000 | |
---|---|---|
committer | 2021-01-17 16:19:18 +0000 | |
commit | c1bee9cb0efba823740095380cfcca9bf47eb196 (patch) | |
tree | 18ed06bca3d17341e9eeabc5364023b9f3ee250b /src/commonStyles.tsx | |
parent | Merge pull request #82 from python-discord/renovate/typescript-eslint-monorepo (diff) | |
parent | Centers Title With No Description (diff) |
Merge pull request #74 from python-discord/form-rendering
Diffstat (limited to 'src/commonStyles.tsx')
-rw-r--r-- | src/commonStyles.tsx | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/commonStyles.tsx b/src/commonStyles.tsx new file mode 100644 index 0000000..89a2746 --- /dev/null +++ b/src/commonStyles.tsx @@ -0,0 +1,60 @@ +import { css } from "@emotion/react"; + +const selectable = css` + -moz-user-select: text; + -webkit-user-select: text; + -ms-user-select: text; + user-select: text; +`; + +const unselectable = css` + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +`; + +const hiddenInput = css` + position: absolute; + opacity: 0; + height: 0; + width: 0; +`; + +const multiSelectInput = css` + display: inline-block; + position: relative; + + margin: 1rem 0.5rem 0 0; + border: whitesmoke 0.2rem solid; + + background-color: whitesmoke; + transition: background-color 200ms; +`; + +const textInputs = css` + display: inline-block; + width: min(20rem, 90%); + height: 100%; + min-height: 2rem; + + background: whitesmoke; + + color: black; + padding: 0.15rem 1rem 0 1rem; + font: inherit; + + margin-bottom: 0; + + border: 0.1rem solid black; + border-radius: 8px; +`; + + +export { + selectable, + unselectable, + hiddenInput, + multiSelectInput, + textInputs, +}; |