mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
add beta watermark
This commit is contained in:
committed by
laurensvalk
parent
44b200d1cc
commit
2fdcea091e
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -65,7 +65,7 @@ class Editor extends React.Component<EditorProps> {
|
||||
render(): JSX.Element {
|
||||
const { i18n, onSessionChanged } = this.props;
|
||||
return (
|
||||
<div className="h-100">
|
||||
<div className="h-100 watermark">
|
||||
<ResizeSensor onResize={(): void => this.editor?.resize()}>
|
||||
<AceEditor
|
||||
ref={this.editorRef}
|
||||
|
||||
@@ -97,3 +97,15 @@ body {
|
||||
.terminal-padding {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.watermark::after {
|
||||
content: "";
|
||||
background: url("/static/beta.png");
|
||||
opacity: 0.03;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
position: absolute;
|
||||
pointer-events: none
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user