mirror of
https://github.com/geeknees/obsidian-ruby-wasm-plugin.git
synced 2026-07-22 10:10:24 +00:00
- Add Run button for rendered ruby fences and show stdout/stderr/result/error separately - Support running full ruby code block when no selection is made and insert formatted output - Implement version-aware ruby.wasm runtime loading with queued execution and output capture - Document new features in README and remove obsolete manifest/styles assets
70 lines
1.2 KiB
CSS
70 lines
1.2 KiB
CSS
/*
|
|
ABOUTME: Styles modal and inline REPL output for the Obsidian ruby.wasm plugin.
|
|
ABOUTME: Keeps runtime output, play buttons, and execution panels readable in preview.
|
|
|
|
This CSS file will be included with your plugin, and
|
|
available in the app when your plugin is enabled.
|
|
|
|
If your plugin does not need CSS, delete this file.
|
|
|
|
*/
|
|
button.modal-button {
|
|
float: right;
|
|
margin: 0.75em 0;
|
|
}
|
|
|
|
.ruby-output {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.ruby-repl-block {
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.ruby-repl-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.ruby-repl-run-button {
|
|
padding: 0.25rem 0.75rem;
|
|
}
|
|
|
|
.ruby-repl-runtime,
|
|
.ruby-execution-runtime {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-small);
|
|
}
|
|
|
|
.ruby-repl-panel.is-empty {
|
|
display: none;
|
|
}
|
|
|
|
.ruby-repl-panel.is-loading,
|
|
.ruby-execution {
|
|
display: block;
|
|
}
|
|
|
|
.ruby-execution-status,
|
|
.ruby-execution-label {
|
|
font-size: var(--font-ui-small);
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
.ruby-execution-section {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.ruby-execution-body {
|
|
white-space: pre-wrap;
|
|
margin: 0.25rem 0 0;
|
|
padding: 0.75rem;
|
|
border-radius: 0.5rem;
|
|
background-color: var(--background-secondary);
|
|
}
|
|
|
|
.ruby-execution-section.is-error .ruby-execution-body {
|
|
color: var(--text-error);
|
|
}
|