Skip to content

Commit

Permalink
style tweakz
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Sep 19, 2023
1 parent d10f789 commit 0e936c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/components/SafePreviewUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const SafePreviewUI = ({ process_waiting_for_permission, risky_file_sourc
export const SafePreviewOutput = () => {
return html`<pluto-output class="rich_output"
><div class="safe-preview-output">
<span class="info-icon pluto-icon"></span><span>${`Code not executed in `}<em>Safe preview</em></span>
<span class="offline-icon pluto-icon"></span><span>${`Code not executed in `}<em>Safe preview</em></span>
</div></pluto-output
>`
}
10 changes: 6 additions & 4 deletions frontend/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,7 @@ body.binder.loading #binder_spinners {
}

body.process_waiting_for_permission .outline-frame.safe-preview {
border: 12px solid var(--restart-recc-header-color);
border-top: none;
border-bottom: 12px solid var(--restart-recc-header-color);
}

body.recording_waiting_to_start .outline-frame.recording {
Expand Down Expand Up @@ -943,6 +942,9 @@ span.pluto-icon.microphone-icon::after {
span.pluto-icon.info-icon::after {
background-image: url("https://cdn.jsdelivr.net/gh/ionic-team/[email protected]/src/svg/information-circle-outline.svg");
}
span.pluto-icon.offline-icon::after {
background-image: url("https://cdn.jsdelivr.net/gh/ionic-team/[email protected]/src/svg/cloud-offline-outline.svg");
}
span.pluto-icon.mute-icon::after {
background-image: url("https://cdn.jsdelivr.net/gh/ionic-team/[email protected]/src/svg/mic-off-outline.svg");
}
Expand All @@ -961,10 +963,10 @@ div.recording-playback audio {
}

.safe-preview-info {
color: var(--helpbox-header-color);
color: var(--black);
font-family: var(--system-ui-font-stack);
font-weight: 700;
background: white;
background: var(--white);
border: 3px solid var(--restart-recc-accent-color);
padding: 0.3em 0.8em;
border-radius: 0.8em;
Expand Down

0 comments on commit 0e936c2

Please sign in to comment.