From 2641183a5b244a9640d8fb7e92ba95dc15dadc58 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 25 Nov 2017 12:31:24 +0900 Subject: keymaps form --- src/settings/components/form/keymaps-form.scss | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/settings/components/form/keymaps-form.scss (limited to 'src/settings/components/form/keymaps-form.scss') diff --git a/src/settings/components/form/keymaps-form.scss b/src/settings/components/form/keymaps-form.scss new file mode 100644 index 0000000..8b86c80 --- /dev/null +++ b/src/settings/components/form/keymaps-form.scss @@ -0,0 +1,9 @@ +.form-keymaps-form { + column-count: 2; + .keymap-fields-group { + margin-top: 24px; + } + .keymap-fields-group:first-of-type { + margin-top: 0; + } +} -- cgit v1.2.3 From 26777d9e309dbc328b59581adb92f160c18f812c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 26 Nov 2017 16:41:34 +0900 Subject: fix form css --- src/settings/components/form/blacklist-form.jsx | 3 ++- src/settings/components/form/keymaps-form.scss | 2 +- src/settings/components/form/search-form.jsx | 3 ++- src/settings/components/form/search-form.scss | 2 ++ src/settings/components/site.scss | 2 +- src/settings/components/ui/add-button.jsx | 2 +- src/settings/components/ui/add-button.scss | 12 +++++++++++- src/settings/components/ui/delete-button.scss | 1 + src/settings/components/ui/input.scss | 3 ++- 9 files changed, 23 insertions(+), 7 deletions(-) (limited to 'src/settings/components/form/keymaps-form.scss') diff --git a/src/settings/components/form/blacklist-form.jsx b/src/settings/components/form/blacklist-form.jsx index 4333929..7ae9652 100644 --- a/src/settings/components/form/blacklist-form.jsx +++ b/src/settings/components/form/blacklist-form.jsx @@ -23,7 +23,8 @@ class BlacklistForm extends Component { ; }) } - + ; } diff --git a/src/settings/components/form/keymaps-form.scss b/src/settings/components/form/keymaps-form.scss index 8b86c80..3a83910 100644 --- a/src/settings/components/form/keymaps-form.scss +++ b/src/settings/components/form/keymaps-form.scss @@ -1,5 +1,5 @@ .form-keymaps-form { - column-count: 2; + column-count: 3; .keymap-fields-group { margin-top: 24px; } diff --git a/src/settings/components/form/search-form.jsx b/src/settings/components/form/search-form.jsx index 98b0655..e85761f 100644 --- a/src/settings/components/form/search-form.jsx +++ b/src/settings/components/form/search-form.jsx @@ -40,7 +40,8 @@ class SearchForm extends Component { ; }) } - + ; } diff --git a/src/settings/components/form/search-form.scss b/src/settings/components/form/search-form.scss index 8814ef5..26b2f44 100644 --- a/src/settings/components/form/search-form.scss +++ b/src/settings/components/form/search-form.scss @@ -4,9 +4,11 @@ .column-name { flex: 1; + min-width: 0; } .column-url { flex: 5; + min-width: 0; } .column-option { text-align: right; diff --git a/src/settings/components/site.scss b/src/settings/components/site.scss index c8dd422..c0c4f9e 100644 --- a/src/settings/components/site.scss +++ b/src/settings/components/site.scss @@ -20,7 +20,7 @@ legend { font-size: 1.5rem; - line-height: 1.5rem; + padding: .5rem 0; font-weight: bold; } } diff --git a/src/settings/components/ui/add-button.jsx b/src/settings/components/ui/add-button.jsx index c8d8856..79292d8 100644 --- a/src/settings/components/ui/add-button.jsx +++ b/src/settings/components/ui/add-button.jsx @@ -4,7 +4,7 @@ import { h, Component } from 'preact'; class AddButton extends Component { render() { return ; } } diff --git a/src/settings/components/ui/add-button.scss b/src/settings/components/ui/add-button.scss index 1c893ae..beb5688 100644 --- a/src/settings/components/ui/add-button.scss +++ b/src/settings/components/ui/add-button.scss @@ -1,3 +1,13 @@ .ui-add-button { - font-size: 80% + border: none; + padding: 4; + display: inline; + background: none; + font-weight: bold; + color: green; + cursor: pointer; + + &:hover { + color: darkgreen; + } } diff --git a/src/settings/components/ui/delete-button.scss b/src/settings/components/ui/delete-button.scss index 7aa2f39..5932a72 100644 --- a/src/settings/components/ui/delete-button.scss +++ b/src/settings/components/ui/delete-button.scss @@ -5,6 +5,7 @@ display: inline; background: none; color: red; + cursor: pointer; &:hover { color: darkred; diff --git a/src/settings/components/ui/input.scss b/src/settings/components/ui/input.scss index 92df712..ad4daf8 100644 --- a/src/settings/components/ui/input.scss +++ b/src/settings/components/ui/input.scss @@ -11,8 +11,9 @@ display: inline-block; } - input { + input[type='text'] { padding: 4px; + width: 8rem; } input.input-crror, -- cgit v1.2.3 From 8c79b2c5e7e3b25ce5eb0fa94e856b5b9b1f77f1 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 26 Nov 2017 21:06:39 +0900 Subject: fix keymap field --- src/settings/components/form/keymaps-form.jsx | 4 ++-- src/settings/components/form/keymaps-form.scss | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/settings/components/form/keymaps-form.scss') diff --git a/src/settings/components/form/keymaps-form.jsx b/src/settings/components/form/keymaps-form.jsx index f64320c..8ec0456 100644 --- a/src/settings/components/form/keymaps-form.jsx +++ b/src/settings/components/form/keymaps-form.jsx @@ -62,10 +62,10 @@ class KeymapsForm extends Component { if (!values) { values = {}; } - return
+ return
{ KeyMapFields.map((group, index) => { - return
+ return
{ group.map((field) => { let name = field[0]; diff --git a/src/settings/components/form/keymaps-form.scss b/src/settings/components/form/keymaps-form.scss index 3a83910..1a4e5cd 100644 --- a/src/settings/components/form/keymaps-form.scss +++ b/src/settings/components/form/keymaps-form.scss @@ -1,9 +1,11 @@ .form-keymaps-form { column-count: 3; - .keymap-fields-group { + + &-field-group { margin-top: 24px; } - .keymap-fields-group:first-of-type { - margin-top: 0; + + &-field-group:first-of-type { + margin-top: 24px; } } -- cgit v1.2.3