forked from microsoft/pxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeymap.less
More file actions
94 lines (81 loc) · 1.59 KB
/
keymap.less
File metadata and controls
94 lines (81 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*******************************
Keymap
*******************************/
.keymap {
position: absolute;
display: flex;
left: 0;
margin: 0 3rem;
padding: 1rem;
width: calc(~'100% - 6rem');
background-color: @white;
border-radius: 0.25rem;
opacity: 0.95;
border: 1px solid @teal;
z-index: 1;
}
.keymap .close {
position: absolute;
right: 1rem;
margin: 0;
color: @white;
cursor: pointer;
}
.keymap > div {
margin-right: 1rem;
flex: 1;
}
.keymap > div:last-child {
margin-right: 0;
}
.keymap-title {
display: inline-block;
width: 100%;
margin: 0 0.25rem 0.25rem;
text-transform: capitalize;
font-weight: 600;
}
.keymap-key {
display: inline-block;
height: 2rem;
margin: 0.25rem;
padding: 0 0.75rem;
line-height: 2rem;
border: 1px solid darken(@teal, 10%);
border-radius: 0.25rem;
background-color: @teal;
color: @white;
text-transform: uppercase;
}
.keymap-name {
display: inline-block;
margin-left: 0.75rem;
text-transform: lowercase;
}
.keymap-name:first-letter {
text-transform: uppercase;
}
.keymap.above,
.fullscreensim .keymap {
top: 2rem;
.close {
color: @teal;
}
}
.fullscreensim .keymap {
left: 50%;
top: 50%;
width: 22rem;
margin: 0;
transform: translateX(-50%) translateY(-50%);
}
@media only screen and (max-width: @largestSmallMonitor) {
#root:not(.fullscreensim) {
.keymap-button {
display: none;
}
.mute-button {
border-radius: 0.2rem;
}
}
}