Clean up some style properties in react elements
This commit is contained in:
parent
ad8d09745e
commit
599880f035
|
@ -127,17 +127,8 @@ function Visualizer() {
|
||||||
ref={visualizer}
|
ref={visualizer}
|
||||||
className="is-flex-grow-1 is-clipped is-relative"
|
className="is-flex-grow-1 is-clipped is-relative"
|
||||||
>
|
>
|
||||||
<canvas
|
<canvas className="is-block is-absolute is-border-box"></canvas>
|
||||||
style={{
|
<span className="is-bottom-left"></span>
|
||||||
display: "block",
|
|
||||||
position: "absolute",
|
|
||||||
boxSizing: "border-box",
|
|
||||||
}}
|
|
||||||
></canvas>
|
|
||||||
<span
|
|
||||||
className="is-bottom-left"
|
|
||||||
style={{ display: "relative" }}
|
|
||||||
></span>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -3,8 +3,12 @@ $fa-font-path: "npm:@fortawesome/fontawesome-free/webfonts";
|
||||||
@import "~/node_modules/@fortawesome/fontawesome-free/scss/fontawesome";
|
@import "~/node_modules/@fortawesome/fontawesome-free/scss/fontawesome";
|
||||||
@import "~/node_modules/@fortawesome/fontawesome-free/scss/solid";
|
@import "~/node_modules/@fortawesome/fontawesome-free/scss/solid";
|
||||||
|
|
||||||
.is-relative {
|
.is-border-box {
|
||||||
position: relative !important;
|
box-sizing: border-box !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.is-absolute {
|
||||||
|
position: absolute !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-bottom-left {
|
.is-bottom-left {
|
||||||
|
|
Reference in a new issue