mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-30 23:10:33 +01:00
Finished shortcuts modal styling
This commit is contained in:
parent
ab9c39b862
commit
480d54c2d8
2 changed files with 24 additions and 4 deletions
|
@ -19,7 +19,7 @@ class ShortcutsModal extends React.Component {
|
|||
const help = [
|
||||
{
|
||||
key: "?",
|
||||
text: "Show shortcuts menu"
|
||||
text: "Shortcuts menu"
|
||||
},
|
||||
{
|
||||
key: "o",
|
||||
|
@ -35,11 +35,11 @@ class ShortcutsModal extends React.Component {
|
|||
},
|
||||
{
|
||||
key: "p",
|
||||
text: "Source settings modal"
|
||||
text: "Style settings modal"
|
||||
},
|
||||
{
|
||||
key: "i",
|
||||
text: "Toggle map"
|
||||
text: "Toggle inspect"
|
||||
},
|
||||
{
|
||||
key: "m",
|
||||
|
@ -54,7 +54,10 @@ class ShortcutsModal extends React.Component {
|
|||
onOpenToggle={this.props.onOpenToggle}
|
||||
title={'Shortcuts'}
|
||||
>
|
||||
<div className="maputnik-modal-section">
|
||||
<div className="maputnik-modal-section maputnik-modal-shortcuts">
|
||||
<p>
|
||||
Press <code>ESC</code> to lose focus of any active elements, then press one of:
|
||||
</p>
|
||||
<ul>
|
||||
{help.map((item) => {
|
||||
return <li>
|
||||
|
|
|
@ -222,3 +222,20 @@
|
|||
text-decoration: none;
|
||||
color: #ef5350;
|
||||
}
|
||||
|
||||
.maputnik-modal-shortcuts {
|
||||
code {
|
||||
color: white;
|
||||
background: #3c3c3c;
|
||||
padding: 2px 6px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
border-radius: 2px;
|
||||
margin-right: 4px;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue