Fix transparency number causing parent div to expand and move other elements around
This commit is contained in:
parent
b3f7137d85
commit
b42839a202
2 changed files with 9 additions and 4 deletions
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
<div class="grid-input">
|
||||
<h3 class="tool-labels">Grid Tools</h3>
|
||||
<label class="sub-labels" for="canvas-trans">Canvas Transparency: <span id="trans-label"></span></label>
|
||||
<label class="sub-labels trans" for="canvas-trans">Canvas Transparency: <span id="trans-label"></span></label>
|
||||
<input class="range-slider" name="canvas-trans" id="canvas-trans" type="range" min="0" max="1" step=".1" value="1">
|
||||
<div class="grid-tools">
|
||||
<div class="slider">
|
||||
|
|
|
|||
11
style.css
11
style.css
|
|
@ -92,6 +92,10 @@ button:active, .container:active, .color-input:active{
|
|||
font-size: 18px;
|
||||
color: #f0fbf8;
|
||||
}
|
||||
.trans.sub-labels {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.color-input {
|
||||
width: 120%;
|
||||
|
|
@ -111,10 +115,10 @@ button {
|
|||
height: 500px;
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
margin: 20px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
background: rgb(180, 254, 235);
|
||||
will-change: contents;
|
||||
}
|
||||
|
||||
.grid {
|
||||
|
|
@ -221,8 +225,6 @@ input[type="range"]::-webkit-slider-runnable-track {
|
|||
margin-top: 5px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
transform-style: preserve-3d;
|
||||
will-change: transform;
|
||||
}
|
||||
.knob:hover {
|
||||
box-shadow: 1px 2px 10px 1px #68ffd8;
|
||||
|
|
@ -276,6 +278,9 @@ input[type="range"]::-webkit-slider-runnable-track {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.trans.sub-labels {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 559px) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue