diff --git a/client/modules/IDE/components/KeyboardShortcutModal.jsx b/client/modules/IDE/components/KeyboardShortcutModal.jsx index 420a99c6..691bab70 100644 --- a/client/modules/IDE/components/KeyboardShortcutModal.jsx +++ b/client/modules/IDE/components/KeyboardShortcutModal.jsx @@ -3,90 +3,87 @@ import { metaKeyName, } from '../../../utils/metaKey'; function KeyboardShortcutModal() { return ( - +
+

Code Editing

+

+ Code editing keyboard shortcuts follow Sublime Text shortcuts. +

+ +

General

+ +
); } diff --git a/client/styles/base/_base.scss b/client/styles/base/_base.scss index 58b1030b..d824c646 100644 --- a/client/styles/base/_base.scss +++ b/client/styles/base/_base.scss @@ -74,6 +74,7 @@ h2 { h3 { font-weight: normal; + font-size: #{16 / $base-font-size}rem; } h4 { font-weight: normal; diff --git a/client/styles/components/_keyboard-shortcuts.scss b/client/styles/components/_keyboard-shortcuts.scss index 66963e91..ca6f81fd 100644 --- a/client/styles/components/_keyboard-shortcuts.scss +++ b/client/styles/components/_keyboard-shortcuts.scss @@ -4,6 +4,11 @@ width: #{450 / $base-font-size}rem; } +.keyboard-shortcuts-note { + text-align: center; + margin-bottom: 24px; +} + .keyboard-shortcut-item { display: flex; & + & { @@ -13,8 +18,31 @@ } .keyboard-shortcut__command { - width: 50%; font-weight: bold; text-align: right; - padding-right: #{10 / $base-font-size}rem; + margin-right: #{10 / $base-font-size}rem; + padding: #{3 / $base-font-size}rem; + @include themify { + border: 1px solid getThemifyVariable("button-border-color"); + border-radius: 3px; + } +} + +.keyboard-shortcuts__title { + padding-bottom: #{10 / $base-font-size}rem; +} + +.keyboard-shortcuts__description { + padding-bottom: #{10 / $base-font-size}rem; +} + +.keyboard-shortcuts__list:not(:last-of-type) { + padding-bottom: #{10 / $base-font-size}rem; +} + +.keyboard-shortcuts__title:not(:first-of-type) { + @include themify() { + border-top: 1px dashed getThemifyVariable("button-border-color"); + padding-top: #{10 / $base-font-size}rem; + } }