Spaces:
Runtime error
Runtime error
html, body { | |
--def: #fff; | |
--inv: #1d1d1d; | |
min-height:100vh; | |
#max-height:100%; | |
height:100vh; | |
background:#fff; | |
} | |
*, *:before, *:after { | |
box-sizing: border-box; | |
} | |
* { | |
-webkit-transition: opacity .5s ease-in-out; | |
-moz-transition: opacity .5s ease-in-out; | |
-ms-transition: opacity .5s ease-in-out; | |
-o-transition: opacity .5s ease-in-out; | |
transition: opacity .5s ease-in-out; | |
} | |
iframe { | |
scrolling: yes; | |
} | |
.row * { | |
padding-left: 0; | |
padding-right: 0; | |
} | |
.page-title { | |
text-transform: uppercase; | |
} | |
.link-title { | |
cursor: pointer; | |
color: #1d1d1d; | |
transition: 250ms cubic-bezier(0.215,0.61,0.355,1); | |
transition-property: color, opacity; | |
} | |
.link-title:hover { | |
color: rgba(0, 0, 0, 0.75); | |
} | |
h1 { | |
font-size: 2.0vw; | |
font-family: "Manrope Extra Bold"; | |
} | |
h2, h3 { | |
font-size: 2.5vh; | |
font-family: "Manrope Bold"; | |
} | |
h4, p { | |
font-size: 1.5vmin; | |
font-family: "Manrope Light"; | |
margin: 0 | |
} | |
a { | |
text-decoration: none; | |
} | |
.spacer { | |
padding-top: 20px; | |
padding-bottom: 20px | |
} | |
.input-nlp-text, .output-nlp-text { | |
color: #1d1d1d ; | |
font-family: "Manrope Light"; | |
font-size: 2vmin; | |
height: 50vh; | |
width: 100%; | |
resize: none ; | |
} | |
.form-control:focus { | |
border: 1px solid rgba(40, 40, 40, 0.85); | |
} | |
.input-nlp-text { | |
padding-right: calc(var(--bs-gutter-x) * .5); | |
padding-left: calc(var(--bs-gutter-x) * .5); | |
} | |
.input-nlp-text[readonly] { | |
background-color: white ; | |
} | |
.output-nlp-text:disabled { | |
background-color: white ; | |
} | |
.progress-icon { | |
position: absolute; | |
margin-left: auto; | |
margin-right: auto; | |
left: 0; | |
right: 0; | |
text-align: center; | |
position: relative; | |
height: 3em; | |
width: 3em; | |
display: inline-block; | |
border: 2px solid rgba(255,255,255,0.2); | |
border-radius: 50%; | |
border-left-color: #1d1d1d; | |
animation: rotate 1.2s linear infinite; | |
} | |
@keyframes rotate { | |
50%{ | |
border-left-color: #1d1d1d; | |
} | |
75%{ | |
border-left-color: #1d1d1d; | |
} | |
100%{ | |
transform: rotate(360deg); | |
} | |
} | |
.progress-icon .check-icon{ | |
display: none; | |
} | |
.progress-icon .check-icon:after{ | |
position: absolute; | |
content: ""; | |
top: 50%; | |
left: 0.6em; | |
transform: scaleX(-1) rotate(135deg); | |
height: 1.5em; | |
width: 0.75em; | |
border-top: 4px solid #1d1d1d; | |
border-right: 4px solid #1d1d1d; | |
transform-origin: left top; | |
animation: check-icon 0.8s ease; | |
} | |
@keyframes check-icon { | |
0%{ | |
height: 0; | |
width: 0; | |
opacity: 1; | |
} | |
20%{ | |
height: 0; | |
width: 0.75em; | |
opacity: 1; | |
} | |
40%{ | |
height: 1.5em; | |
width: 0.75em; | |
opacity: 1; | |
} | |
100%{ | |
height: 1.5em; | |
width: 0.75em; | |
opacity: 1; | |
} | |
} | |
.toggle-load-icon { | |
display: none; | |
} | |
.toggle-load-icon:checked ~ .progress-icon .check-icon{ | |
display: block; | |
} | |
.toggle-load-icon:checked ~ .progress-icon { | |
animation: none; | |
border-color: #1d1d1d; | |
transition: border 0.5s ease-out; | |
} | |
.no-border { | |
border: 0; | |
padding: 0; | |
box-shadow: none; | |
} | |
.js .loading::before, | |
.js .loading::after { | |
content: ''; | |
#position: fixed; | |
z-index: 1000; | |
} | |
.js .loading::before { | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background: var(--color-bg); | |
} | |
.js .loading::after { | |
top: 50%; | |
left: 50%; | |
width: 60px; | |
height: 60px; | |
margin: -30px 0 0 -30px; | |
border-radius: 50%; | |
opacity: 0.4; | |
background: var(--color-link); | |
animation: loaderAnim 0.7s linear infinite alternate forwards; | |
} | |
@keyframes loaderAnim { | |
to { | |
opacity: 1; | |
transform: scale3d(0.5, 0.5, 1); | |
} | |
} | |
.nav-tabs { | |
width: 100vh; | |
position: absolute; | |
z-index: 1; | |
display: -webkit-inline-box; | |
display: -ms-inline-flexbox; | |
display: inline-flex; | |
border-width: 0px; | |
-ms-flex-flow: row-reverse nowrap; | |
flex-flow: row-reverse nowrap; | |
-webkit-box-pack: end; | |
-ms-flex-pack: end; | |
justify-content: center; | |
-webkit-transform: rotate(-90deg) translateX(-100%); | |
transform: rotate(-90deg) translateX(-100%); | |
-webkit-transform-origin: 0% 0%; | |
transform-origin: 0% 0%; | |
padding-left: 0; | |
} | |
.nav-tabs > li { | |
line-height: 5rem; | |
display: block; | |
padding: 9.6px 16px; | |
padding: 0.6rem 3rem; | |
list-style-type: none; | |
} | |
.nav-tabs > li > a { | |
font-family: "Manrope Regular"; | |
color: #1d1d1d; | |
font-size: 2vmin; | |
} | |
.nav-tabs-r { | |
width: 100vh; | |
display: -webkit-inline-box; | |
display: -ms-inline-flexbox; | |
display: inline-flex; | |
border-width: 0px; | |
-ms-flex-flow: row-reverse nowrap; | |
flex-flow: row-reverse nowrap; | |
-webkit-box-pack: end; | |
-ms-flex-pack: end; | |
justify-content: center; | |
-webkit-transform: rotate(-90deg) translateX(-100%); | |
transform: rotate(-90deg) translateX(-100%); | |
-webkit-transform-origin: 100% 0%; | |
transform-origin: 100% 0%; | |
padding-right: 0; | |
} | |
.nav-tabs-r > li { | |
line-height: 5rem; | |
display: block; | |
padding: 0.6rem 3rem; | |
list-style-type: none; | |
} | |
.nav-tabs-r > li > a { | |
font-family: "Manrope Light"; | |
color: #1d1d1d; | |
font-size: 2vmin; | |
} | |
li { | |
list-style:none | |
} | |
ul { | |
margin:0 | |
} | |
textarea::-webkit-scrollbar { | |
display: none; | |
} | |
/* Hide scrollbar for IE, Edge and Firefox */ | |
textarea { | |
-ms-overflow-style: none; /* IE and Edge */ | |
scrollbar-width: none; /* Firefox */ | |
} | |
.link { | |
cursor: pointer; | |
font-size: 2vmin; | |
position: relative; | |
white-space: nowrap; | |
color: var(--color-text); | |
} | |
.link::before, | |
.link::after { | |
position: absolute; | |
width: 100%; | |
height: 1px; | |
background: currentColor; | |
top: 100%; | |
left: 0; | |
pointer-events: none; | |
} | |
.link::before { | |
content: ''; | |
/* show by default */ | |
} | |
.link--io::before { | |
transform-origin: 100% 50%; | |
transform: scale3d(0, 1, 1); | |
transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1); | |
} | |
.link--io:hover::before { | |
transform-origin: 0% 50%; | |
transform: scale3d(1, 1, 1); | |
transition-timing-function: cubic-bezier(0.4, 1, 0.8, 1); | |
} | |
.link--io::after { | |
content: ''; | |
top: calc(100% + 4px); | |
transform-origin: 0% 50%; | |
transform: scale3d(0, 1, 1); | |
transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1); | |
} | |
.link--io:hover::after { | |
transform-origin: 100% 50%; | |
transform: scale3d(1, 1, 1); | |
transition-timing-function: cubic-bezier(0.4, 1, 0.8, 1); | |
} | |
#metadata { | |
font-family: monospace; | |
} | |
#metadata p { | |
margin-top: 1em; | |
margin-bottom: 1em; | |
} | |
.input-field, .output-field { | |
padding: 0rem 2rem 0rem 2rem; /*top right bottom left*/ | |
} | |
.button { | |
--offset: 10px; | |
--border-size: 1px; | |
display: block; | |
position: relative; | |
padding: 1.5em 3em; | |
margin: auto; | |
text-align:center; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
border: 0; | |
background: transparent; | |
color: #1d1d1d; | |
font-family: "Manrope Medium"; | |
font-size: 0.75vmax; | |
text-transform: uppercase; | |
letter-spacing: 0.25em; | |
outline: none; | |
cursor: pointer; | |
font-weight: bold; | |
border-radius: 0; | |
box-shadow: inset 0 0 0 var(--border-size) currentcolor; | |
transition: background 0.8s ease; | |
} | |
.button:hover { | |
background: rgba(100, 0, 0, 0.03); | |
} | |
.button__horizontal, .button__vertical { | |
position: absolute; | |
top: var(--horizontal-offset, 0); | |
right: var(--vertical-offset, 0); | |
bottom: var(--horizontal-offset, 0); | |
left: var(--vertical-offset, 0); | |
transition: transform 0.8s ease; | |
will-change: transform; | |
} | |
.button__horizontal::before, .button__vertical::before { | |
content: ""; | |
position: absolute; | |
border: inherit; | |
} | |
.button__horizontal { | |
--vertical-offset: calc(var(--offset) * -1); | |
border-top: var(--border-size) solid currentcolor; | |
border-bottom: var(--border-size) solid currentcolor; | |
} | |
.button__horizontal::before { | |
top: calc(var(--vertical-offset) - var(--border-size)); | |
bottom: calc(var(--vertical-offset) - var(--border-size)); | |
left: calc(var(--vertical-offset) * -1); | |
right: calc(var(--vertical-offset) * -1); | |
} | |
.button:hover .button__horizontal { | |
transform: scaleX(0); | |
} | |
.button__vertical { | |
--horizontal-offset: calc(var(--offset) * -1); | |
border-left: var(--border-size) solid currentcolor; | |
border-right: var(--border-size) solid currentcolor; | |
} | |
.button__vertical::before { | |
top: calc(var(--horizontal-offset) * -1); | |
bottom: calc(var(--horizontal-offset) * -1); | |
left: calc(var(--horizontal-offset) - var(--border-size)); | |
right: calc(var(--horizontal-offset) - var(--border-size)); | |
} | |
.button:hover .button__vertical { | |
transform: scaleY(0); | |
} | |
.toggle { | |
margin: 0 0 1.5rem; | |
box-sizing: border-box; | |
font-size: 0; | |
display: flex; | |
flex-flow: row nowrap; | |
justify-content: flex-end; | |
align-items: stretch; | |
} | |
.toggle input { | |
width: 0; | |
height: 0; | |
position: absolute; | |
left: -9999px; | |
} | |
.toggle input + label { | |
margin: 0; | |
padding: 0.5rem 1rem; | |
box-sizing: border-box; | |
position: relative; | |
display: inline-block; | |
border: solid 1px rgb(207, 207, 207); | |
background-color: #fff; | |
font-family: "Manrope Medium"; | |
font-size: 0.6rem; | |
line-height: 75%; | |
text-align: center; | |
/* box-shadow: 0 0 0 rgba(255, 255, 255, 0); */ | |
transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out; | |
/* ADD THESE PROPERTIES TO SWITCH FROM AUTO WIDTH TO FULL WIDTH */ | |
/*flex: 0 0 50%; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
*/ | |
/* ----- */ | |
} | |
.toggle input + label:first-of-type { | |
border-radius: 0px 0 0 0px; | |
border-right: none; | |
} | |
.toggle input + label:last-of-type { | |
border-radius: 0 0px 0px 0; | |
border-left: none; | |
} | |
.toggle input:hover + label { | |
border-color: #1d1d1d; | |
} | |
.toggle input:checked + label { | |
background-color: #1d1d1d; | |
color: #fff; | |
/* box-shadow: 0 0 10px rgba(102, 179, 251, .5); */ | |
border-color: #1d1d1d; | |
z-index: 1; | |
} | |
/* .toggle input:focus + label { | |
outline: dotted 1px #ccc; | |
outline-offset: 0.45rem; | |
} */ | |
.spacer { | |
display: none; | |
} | |
@media (max-width: 864px) { | |
.toggle input + label { | |
/* padding: 0.75rem 0.25rem; */ | |
flex: 0 0 10%; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
font-size: 0.4rem; | |
} | |
h1 { | |
font-size: 2.5vh; | |
font-family: "Manrope Extra Bold"; | |
letter-spacing: -2px; | |
} | |
h2, h3 { | |
font-size: 2.0vh; | |
font-family: "Manrope Bold"; | |
} | |
h4, p { | |
font-size: 1.5vmin; | |
} | |
.input-nlp-text, .output-nlp-text { | |
font-size: 1.5vh; | |
} | |
.row { | |
margin-bottom: 0 ; | |
} | |
#input_form { | |
margin-bottom: 1rem; | |
} | |
#input_text { | |
max-height: 20vh; | |
} | |
#output_text { | |
max-height: 15vh; | |
} | |
.nav-tabs { | |
display: none; | |
} | |
.flex-col { | |
flex-basis: 25%; | |
} | |
.flex-col-50 { | |
justify-content: space-between; | |
} | |
.flex-col-50 div { | |
flex-basis: 50%; | |
} | |
.spacer { | |
display: inline-block; | |
} | |
} | |
/*======================== FONT ===============================*/ | |
@font-face { | |
font-family: "Gilroy Regular"; | |
src: url("../fonts/gilroy-regular.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: "Gilroy Medium"; | |
src: url("../fonts/gilroy_medium.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: "Gilroy Bold"; | |
src: url("../fonts/gilroy-bold.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: "Manrope Bold"; | |
src: url("../fonts/Manrope-Bold.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: "Manrope Extra Bold"; | |
src: url("../fonts/Manrope-ExtraBold.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: "Manrope Extra Light"; | |
src: url("../fonts/Manrope-ExtraLight.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: "Manrope Light"; | |
src: url("../fonts/Manrope-Light.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: "Manrope Medium"; | |
src: url("../fonts/Manrope-Medium.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: "Manrope Regular"; | |
src: url("../fonts/Manrope-Regular.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: "Manrope Semi Bold"; | |
src: url("../fonts/Manrope-SemiBold.otf") format("opentype"); | |
} |