This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +38
-19
lines changed
src/components/views/settings Expand file tree Collapse file tree 4 files changed +38
-19
lines changed Original file line number Diff line number Diff line change 275
275
@import " ./views/settings/_ImageSizePanel.scss" ;
276
276
@import " ./views/settings/_IntegrationManager.scss" ;
277
277
@import " ./views/settings/_JoinRuleSettings.scss" ;
278
+ @import " ./views/settings/_KeyboardShortcut.scss" ;
278
279
@import " ./views/settings/_LayoutSwitcher.scss" ;
279
280
@import " ./views/settings/_Notifications.scss" ;
280
281
@import " ./views/settings/_PhoneNumbers.scss" ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2020 The Matrix.org Foundation C.I.C.
3
+ Copyright 2021 Šimon Brandner <simon.bra.ag@gmail.com>
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
17
+
18
+ .mx_KeyboardShortcut {
19
+ kbd {
20
+ padding : 5px ;
21
+ border-radius : 4px ;
22
+ background-color : $header-panel-bg-color ;
23
+ margin-right : 5px ;
24
+ min-width : 20px ;
25
+ text-align : center ;
26
+ display : inline-block ;
27
+ border : 1px solid $kbd-border-color ;
28
+ box-shadow : 0 2px $kbd-border-color ;
29
+ margin-bottom : 4px ;
30
+ text-transform : capitalize ;
31
+
32
+ & + kbd {
33
+ margin-left : 5px ;
34
+ }
35
+ }
36
+ }
Original file line number Diff line number Diff line change @@ -30,22 +30,4 @@ limitations under the License.
30
30
31
31
margin : 4px 0 ;
32
32
}
33
-
34
- kbd {
35
- padding : 5px ;
36
- border-radius : 4px ;
37
- background-color : $header-panel-bg-color ;
38
- margin-right : 5px ;
39
- min-width : 20px ;
40
- text-align : center ;
41
- display : inline-block ;
42
- border : 1px solid $kbd-border-color ;
43
- box-shadow : 0 2px $kbd-border-color ;
44
- margin-bottom : 4px ;
45
- text-transform : capitalize ;
46
-
47
- & + kbd {
48
- margin-left : 5px ;
49
- }
50
- }
51
33
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export const KeyboardShortcut: React.FC<IKeyboardShortcutProps> = ({ value }) =>
58
58
modifiersElement . push ( < KeyboardKey key = "shiftKey" name = { Key . SHIFT } /> ) ;
59
59
}
60
60
61
- return < div >
61
+ return < div className = "mx_KeyboardShortcut" >
62
62
{ modifiersElement }
63
63
< KeyboardKey name = { value . key } last />
64
64
</ div > ;
You can’t perform that action at this time.
0 commit comments