Skip to content

Commit

Permalink
simplify and fix interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlemec committed Nov 10, 2023
1 parent a9460f9 commit 081acc9
Show file tree
Hide file tree
Showing 13 changed files with 472 additions and 1,237 deletions.
157 changes: 25 additions & 132 deletions css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

/* IINTERACTIVE */

#interActiveControl {
#inter {
display: flex;
justify-content: center;
flex-direction: column;
Expand All @@ -99,171 +99,64 @@
flex-direction: column;
align-items: center;
justify-content: center;
width: 90%;
width: 65%;
margin: 20px;
background-color: var(--brace-col);
border-radius: 10px;
border-radius: 5px;
border: 1px solid #AAA;
}

.slider {
width: 90%;
margin-bottom: 15px;
margin-top: 20px;
position: relative;
display: flex;
align-items: center;
width: 100%;
margin-bottom: 10px;
margin-top: 10px;
}

.var_title {
position: relative;
font-family: monospace;
margin-bottom: 5px;
line-height: 20px;
background-color: rgba(0,0,0,.1);
background-color: #CCC;
width: 100%;
text-indent: 30px;
border-radius: 10px 10px 0 0;
text-indent: 5px;
border-radius: 2.5px 2.5px 0px 0px;
border-bottom: 1px solid #AAA;
}

input[type=range] {
position: relative;
-webkit-appearance: none; /* Hides the slider so that custom slider can be made */
width: 100%; /* Specific width is required for Firefox. */
background: transparent; /* Otherwise white in Chrome */
}

input[type=range]::-moz-range-track {
width: 100%;
height: 2px;
cursor: pointer;
visibility: hidden;
}

input[type=range]::-moz-range-thumb {
visibility: hidden;
height: 30px;
width: 30px;
border-radius: 50%;
cursor: pointer;
}

.phantom_track {
width: 100%;
height: 1.5px;
background-color: var(--faint-gray);
margin-bottom: -41px;
}

.min_lim, .max_lim {
text-align: center;
color: var(--faint-gray);
font-size: 10px;
box-sizing: border-box;
font-size: 12px;
font-family: monospace;
line-height: 24px;
width: 7.5%;
}

.min_lim {
position: absolute;
padding: 0px 5px 0 6px;
right: 90%;
margin: -10px 0 0 0;
text-align: right;
padding-right: 5px;
}

.max_lim {
position: absolute;
padding: 0px 5px 0 5px;
left: 90%;
margin: -10px 0px 0 0;
}

.slider_label {
position: relative;
transform-origin: center center;
display: block;
width: 30px;
height: 30px;
background: var(--faint-gray);
border-radius: 50%;
line-height: 25px;
text-align: center;
padding-top: 2px;
box-sizing: border-box;
border: 1px solid var(--font-col-int);
left: 50%;
top: 26px;
color: var(--font-col-int);
font-size: 15px;
}

.box-minmax {
margin-top: 30px;
width: 608px;
display: flex;
justify-content: space-between;
font-size: 20px;
color: #FFFFFF;
text-align: left;
padding-left: 5px;
}

/* check mark */

.toggle {
align-items: center;
display: flex;
}

.toggle__input {
display: none;
}

.toggle-track {
background: var(--brace-col);
border: 1px solid darkgray;
border-radius: 100px;
cursor: pointer;
display: flex;
height: 28px;
position: relative;
width: 56px;
margin-bottom: 10px;
}

.toggle-indicator {
align-items: center;
background: var(--faint-gray);
border-radius: 24px;
bottom: 2px;
display: flex;
height: 24px;
justify-content: center;
left: 2px;
position: absolute;
transition: 200ms;
width: 24px;
}

.toggle__input:checked + .toggle-track .toggle-indicator {
background: var(--faint-gray);
transform: translateX(25px);
}

.toggle__input:checked + .toggle-track {
border: 1px solid var(--font-col-int);
}

.toggle__input:checked + .toggle-track .checkMark {
opacity: 1;
transition: opacity 200ms ease-in-out;
}

.checkMark {
height: 20px;
width: 20px;
opacity: 0;
transition: opacity 200ms ease-in-out;
}

.checkMark svg {
fill: var(--font-col-int);
stroke: : var(--delimit-col);
justify-content: center;
margin: 10px 0px;
}

/* radio */
/* radio */666

.radio__input {
opacity: 0;
Expand Down
35 changes: 0 additions & 35 deletions css/fonts.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 100;
src: url('fonts/Montserrat-Thin.ttf') format('truetype');
}

@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 300;
src: url('fonts/Montserrat-Light.ttf') format('truetype');
}

@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
src: url('fonts/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 700;
src: url('fonts/Montserrat-Bold.ttf') format('truetype');
}

@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 900;
src: url('fonts/Montserrat-Black.ttf') format('truetype');
}

@font-face {
font-family: 'IBMPlexSans';
font-style: normal;
Expand Down
Loading

0 comments on commit 081acc9

Please sign in to comment.