aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Common/mixins.js
diff options
context:
space:
mode:
authorJacky Zhao <[email protected]>2021-03-06 17:57:24 -0800
committerGitHub <[email protected]>2021-03-06 17:57:24 -0800
commit5dd02b5c2acd7a4c408ce9ffa1d95e208d20bbc8 (patch)
tree5a09bea364331dd0f41510153924065b815b702e /frontend/src/components/Common/mixins.js
parentfix(typo): public api docs endpoint (diff)
parentfix password modal (diff)
downloadctrl-v-5dd02b5c2acd7a4c408ce9ffa1d95e208d20bbc8.tar.xz
ctrl-v-5dd02b5c2acd7a4c408ce9ffa1d95e208d20bbc8.zip
Merge pull request #70 from jackyzha0/visual-overhaul
Diffstat (limited to 'frontend/src/components/Common/mixins.js')
-rw-r--r--frontend/src/components/Common/mixins.js52
1 files changed, 52 insertions, 0 deletions
diff --git a/frontend/src/components/Common/mixins.js b/frontend/src/components/Common/mixins.js
new file mode 100644
index 0000000..ff2759f
--- /dev/null
+++ b/frontend/src/components/Common/mixins.js
@@ -0,0 +1,52 @@
+import {css} from 'styled-components';
+
+export const DropShadow = css`
+ box-shadow: 0 14px 28px rgba(27, 33, 48,0.06), 0 10px 10px rgba(27, 33, 48,0.02);
+`
+
+export const Hover = css`
+ opacity: 0.5;
+ transition: all 0.5s cubic-bezier(.25,.8,.25,1);
+
+ & ~ pre {
+ transition: all 0.5s cubic-bezier(.25,.8,.25,1);
+ opacity: 0.5;
+ }
+
+ &:focus, &:hover, &:focus span, &:focus ~ pre {
+ opacity: 1;
+ }
+`
+
+export const Rounded = css`
+ border-radius: 3px;
+`
+
+export const Border = css`
+ border: 1px solid ${p => p.theme.colors.border};
+`
+
+export const InputLike = css`
+ ${Hover}
+ font-family: 'JetBrains Mono', monospace;
+ width: 100%;
+ font-size: 0.8em;
+ padding: 0.6em;
+ outline: none;
+ margin: 1.7em 0;
+`
+
+export const CodeLike = css`
+ font-family: JetBrains Mono !important;
+ font-size: 13px !important;
+ line-height: 1.6em !important;
+ white-space: pre-wrap;
+`
+
+export const ButtonLike = css`
+ font-family: 'JetBrains Mono', serif;
+ font-weight: 700;
+ padding: 0.6em 1.5em;
+ margin: 2em 0;
+ outline: 0;
+` \ No newline at end of file