User:Layer-09/Sandbox/Command.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
.mw-command-block {
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 3px;
margin: 1em 0;
padding: 0.5em 0.8em;
padding-right: 5em;
position: relative;
font-family: monospace;
font-size: 0.95em;
line-height: 1.5;
overflow-x: auto;
}
.mw-command-prefix {
color: #555;
padding-right: 0.5em;
user-select: none;
display: inline-block;
vertical-align: top;
white-space: pre;
}
.mw-command-text {
margin: 0;
padding: 0;
background: none;
border: none;
font-family: inherit;
font-size: inherit;
color: #333;
display: inline-block;
vertical-align: top;
white-space: pre-wrap;
word-break: break-word;
}
.mw-copy-button {
position: absolute;
top: 5px;
right: 8px;
color: #007bff;
cursor: pointer;
font-size: 0.85em;
user-select: none;
background-color: transparent;
border: none;
padding: 0;
line-height: 1;
z-index: 1;
}
.mw-copy-button:hover {
text-decoration: underline;
}