aboutsummaryrefslogtreecommitdiff
path: root/src/components/checkbox/checkbox.scss
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-03-19 04:53:11 -0400
committertaehoon <th.dev91@gmail.com>2019-05-03 11:40:05 -0400
commit2cda9010df6192b008515b2138a2e071473bc40b (patch)
treeb753369b2c9803fa5c0cae0e70895f5d0dfae0cc /src/components/checkbox/checkbox.scss
parent0438031da44a70816716de40625541d569a49c85 (diff)
add user reporting modal
Diffstat (limited to 'src/components/checkbox/checkbox.scss')
-rw-r--r--src/components/checkbox/checkbox.scss48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/components/checkbox/checkbox.scss b/src/components/checkbox/checkbox.scss
new file mode 100644
index 00000000..07b3f39e
--- /dev/null
+++ b/src/components/checkbox/checkbox.scss
@@ -0,0 +1,48 @@
+@import '../../_variables.scss';
+
+.checkbox {
+ position: relative;
+ display: inline-block;
+ padding-left: 1.2em;
+
+ input[type=checkbox] {
+ display: none;
+
+ & + i::before {
+ position: absolute;
+ left: 0;
+ top: 0;
+ display: block;
+ content: '✔';
+ transition: color 200ms;
+ width: 1.1em;
+ height: 1.1em;
+ border-radius: $fallback--checkboxRadius;
+ border-radius: var(--checkboxRadius, $fallback--checkboxRadius);
+ box-shadow: 0px 0px 2px black inset;
+ box-shadow: var(--inputShadow);
+ background-color: $fallback--fg;
+ background-color: var(--input, $fallback--fg);
+ vertical-align: top;
+ text-align: center;
+ line-height: 1.1em;
+ font-size: 1.1em;
+ color: transparent;
+ overflow: hidden;
+ box-sizing: border-box;
+ }
+
+ &:checked + i::before {
+ color: $fallback--text;
+ color: var(--text, $fallback--text);
+ }
+
+ &:disabled + i::before {
+ opacity: .5;
+ }
+ }
+
+ & > span {
+ margin-left: .5em;
+ }
+} \ No newline at end of file