Add a modal for controls
This commit is contained in:
@@ -43,7 +43,7 @@ input {
|
||||
background-color: transparent;
|
||||
transition: border-color 0.25s;
|
||||
}
|
||||
button {
|
||||
button, .button {
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
@@ -53,8 +53,10 @@ button {
|
||||
background-color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.25s;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
button:hover {
|
||||
button:hover, .button:hover {
|
||||
border-color: #646cff;
|
||||
}
|
||||
button:focus,
|
||||
@@ -184,12 +186,47 @@ graph-editor {
|
||||
float: right;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
th, td {
|
||||
border-bottom: thin solid hsla(0, 0%, 100%, .12);
|
||||
height: 48px;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.modal[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.modal {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, .8);
|
||||
animation: fadeIn .3s both
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
overflow: auto;
|
||||
width: 600px;
|
||||
max-width: calc(100vw - 20px);
|
||||
max-height: calc(100vh - 20px);
|
||||
padding: 20px;
|
||||
background-color: #1a1a1a;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
button {
|
||||
button, .btn {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
.context-menu {
|
||||
|
Reference in New Issue
Block a user