Spaces:
Runtime error
Runtime error
:root { | |
--color-accent: #e20819 ; | |
} | |
:root { | |
--duration-factor: 1; | |
--ease-in: cubic-bezier(0.51,0,0.9,0.43); | |
--ease-back-in: cubic-bezier(0.38,-0.37,0.83,0.23); | |
--ease-out: cubic-bezier(0.35,0.91,0.3,0.99); | |
--ease-back-out: cubic-bezier(0.21,0.12,0.35,1.43); | |
--ease-in-out: cubic-bezier(0.75,0,0.21,0.99); | |
--ease-in-out-quart: cubic-bezier(0.77,0,0.175,1); | |
--in-view-delay: 0s; | |
--in-view-stagger-delay: 0s; | |
--in-view-stagger-amount: 0.2s; | |
--color-black: #000; | |
--color-accent-black: #1e281e; | |
--color-white: #fff; | |
--color-beige: #fffdf2; | |
--color-yellow: #ffd200; | |
--color-blue: #004081; | |
--color-accent-blue: #0064c8; | |
--color-bright-blue: #81e8ff; | |
--color-accent-red: #e62d1e; | |
--color-accent-pink: #ff3d9e | |
} | |
:root { | |
--total-width: 1392px; | |
--number-of-columns: 12; | |
--gutter-width: 16px; | |
--row-width: calc(var(--total-width) + var(--gutter-width) * 2); | |
--base-space: 8px; | |
--card-width: 95%; | |
--voice-flex: 1; | |
} | |
@media screen and (min-width: 640px) { | |
:root { | |
--gutter-width:24px; | |
--card-width: 42%; | |
--voice-flex: 0.8; | |
} | |
} | |
:root { | |
--font-body: "museo-sans",sans-serif; | |
--font-heading: "Tilt Warp", sans-serif; | |
--font-weight-body-regular: 500; | |
--font-weight-body-bold: 700; | |
font-size: 100%; | |
-webkit-text-size-adjust: none; | |
-moz-text-size-adjust: none; | |
text-size-adjust: none | |
} | |
/* ------------ DEFINE END ------------ */ | |
gradio-app { | |
background: url("file=assets/hero-header-layer-1-large-up-2x.jpg") no-repeat ; | |
background-size: cover ; | |
background-attachment: fixed ; | |
background-position: center center ; | |
} | |
/* Character Area */ | |
#character_area { | |
width: var(--card-width) ; | |
align-self: center; | |
} | |
#character_area .pending { | |
opacity: 1 ; | |
} | |
#character_area div.wrap { | |
display: none; | |
} | |
.character { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: nowrap; | |
justify-content: flex-end; | |
align-items: flex-start; | |
} | |
.text-bubble-content { | |
--color: #fff; | |
background: var(--color) ; | |
border-radius: 1rem; | |
padding: 0.5rem 1rem ; | |
box-shadow: #00000078 0.1rem 0.1rem 0.75rem 0px; | |
text-align: center; | |
} | |
.text-bubble-content::after { | |
border: 0.75em solid transparent; | |
border-top: 1.5em solid #ffffff; | |
content: ""; | |
position: absolute; | |
left: calc(100% - 12.1em); | |
top: calc(100% - 9.75em); | |
transform: rotate(-45deg); | |
} | |
#talking_flower_pic { | |
display: flex; | |
align-self: center ; | |
object-fit: cover ; | |
object-position: center ; | |
justify-content: flex-end; | |
height: 10rem; | |
} | |
#talking_flower_pic img { | |
height: 10rem; | |
} | |
/* Tools Area */ | |
#tools_area { | |
width: var(--card-width) ; | |
align-self: center; | |
} | |
#tools_area .form { | |
--border-width: 3px; | |
--shadow-size: 1px; | |
--shadow-y: 1px; | |
--shadow-x: 1px; | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
align-items: center; | |
justify-content: center; | |
align-content: center; | |
align-items: center; | |
} | |
/* #api_key_input { | |
flex-grow: 1; | |
} | |
#voice_list { | |
flex-grow: var(--voice-flex); | |
} */ | |
#api_key_input input { | |
margin: 0 ; | |
padding: 6px 12px 6px 12px; | |
} | |
#api_key_input label > span { | |
font-family: var(--font-heading) ; | |
margin: 0; | |
width: 5rem; | |
} | |
#api_key_input label, | |
#voice_list label { | |
display: flex; | |
align-items: center; | |
flex-wrap: nowrap; | |
align-content: center; | |
justify-content: center; | |
flex-direction: row; | |
} | |
#voice_list label > span { | |
font-family: var(--font-heading) ; | |
margin: 0; | |
width: 7rem; | |
} | |
#voice_list input { | |
width: 4rem ; | |
margin: 0 ; | |
} | |
#voice_list .icon-wrap { | |
margin: 0 ; | |
} | |
/* Tabs */ | |
.tabs { | |
width: var(--card-width) ; | |
align-self: center; | |
} | |
.tabs .tab-nav { | |
font-family: var(--font-heading); | |
display: flex; | |
position: relative; | |
flex-wrap: wrap; | |
border-bottom: 0px ; | |
margin-bottom: -1.5rem; | |
z-index: 100; | |
} | |
.tabs .tab-nav button { | |
--border-color: var(--color-accent-black); | |
font-size: 1.1rem ; | |
background: #b787d2; | |
color: #fefdff; | |
backface-visibility: hidden ; | |
border: solid var(--border-width,3px) var(--border-color,var(--color-accent-black)) ; | |
border-radius: 1rem 0.1rem ; | |
/* box-shadow: var(--shadow-x,1px) var(--shadow-y,2px) 0 var(--shadow-size,1px) var(--border-color,var(--color-accent-black)) !important; */ | |
overflow: hidden ; | |
transition: transform calc(var(--duration-factor) * .1s) ease-in-out ; | |
transition-property: transform,box-shadow ; | |
margin-right: 0.75rem; | |
} | |
.tabs .tab-nav button:hover { | |
--shadow-y: 3px ; | |
--shadow-x: 2px ; | |
transform: translate(-1px,-1px) ; | |
} | |
.tabs .tabitem { | |
border: 0px ; | |
} | |
.tabs .selected { | |
--shadow-y: 3px ; | |
--shadow-x: 2px ; | |
box-shadow: var(--shadow-x,1px) var(--shadow-y,2px) 0 var(--shadow-size,1px) var(--border-color,var(--color-accent-black)) ; | |
transform: translate(-1px,-1px) ; | |
} | |
#tab-speak-button { | |
background: var(--color-yellow); | |
color: var(--color-accent-black); | |
} | |
#tab-chat-button { | |
background: #2263c6; | |
color: var(--color-white); | |
} | |
#tab-mimic-button { | |
background: #fc3e9d; | |
color: var(--color-white); | |
} | |
.wonder-card { | |
--border-radius: 15px; | |
--border-color: var(--color-accent-black); | |
backface-visibility: hidden ; | |
border: solid var(--border-width,4px) var(--border-color,var(--color-accent-black)) ; | |
border-radius: var(--border-radius) ; | |
box-shadow: var(--shadow-x,2px) var(--shadow-y,4px) 0 var(--shadow-size,2px) var(--border-color,var(--color-accent-black)) ; | |
overflow: hidden ; | |
transition: transform calc(var(--duration-factor) * .1s) ease-in-out ; | |
transition-property: transform,box-shadow ; | |
} | |
/* Input_text */ | |
.form { | |
--border-radius: 15px; | |
--border-color: var(--color-accent-black); | |
align-self: center ; | |
backface-visibility: hidden ; | |
border: solid var(--border-width,4px) var(--border-color,var(--color-accent-black)) ; | |
border-radius: var(--border-radius) ; | |
box-shadow: var(--shadow-x,2px) var(--shadow-y,4px) 0 var(--shadow-size,2px) var(--border-color,var(--color-accent-black)) ; | |
overflow: hidden ; | |
transition: transform calc(var(--duration-factor) * .1s) ease-in-out ; | |
transition-property: transform,box-shadow ; | |
} | |
.input_text label textarea { | |
width: 80% ; | |
} | |
.input_text div.wrap { | |
display: none ; | |
} | |
.input_text { | |
display: flex ; | |
background: #ffffff ; | |
height: 12rem ; | |
} | |
.input_text label { | |
margin-top: -2.25rem ; | |
display: flex ; | |
width: 100% ; | |
align-content: center ; | |
flex-direction: column ; | |
flex-wrap: wrap ; | |
justify-content: center ; | |
align-items: center ; | |
} | |
.input_text label span { | |
font-family: var(--font-heading) ; | |
font-size: 1.225rem ; | |
} | |
/* Main Button */ | |
.main-button { | |
font-size: 1.625rem ; | |
font-family: var(--font-heading) ; | |
font-style: normal ; | |
font-weight: 900 ; | |
margin-top: -36px ; | |
width: fit-content ; | |
height: fit-content ; | |
align-self: center ; | |
z-index: 10 ; | |
} | |
.main-button:hover { | |
--shadow-y: 6px ; | |
--shadow-x: 4px ; | |
transform: translate(-2px,-2px) ; | |
} | |
.main-button:disabled, | |
.main-button[disabled]{ | |
opacity: 100% ; | |
} | |
#speak_button { | |
background: var(--color-yellow) ; | |
color: var(--color-accent-black) ; | |
} | |
#speak_button:hover { | |
background: #f5a200 ; | |
} | |
#chat_button { | |
background: #2263c6 ; | |
color: var(--color-white) ; | |
} | |
#chat_button:hover { | |
background: #124080 ; | |
} | |
#mimic_button { | |
background: #fc3e9d ; | |
color: var(--color-white) ; | |
} | |
#mimic_button:hover { | |
background: #aa2567 ; | |
} | |
/* Examples */ | |
#examples { | |
align-self: center; | |
padding: 0.2rem; | |
} | |
#examples .label { | |
display: none ; | |
} | |
#examples .gallery { | |
display: flex; | |
flex-wrap: wrap; | |
gap: var(--spacing-lg); | |
justify-content: center; | |
align-items: center; | |
flex-direction: row; | |
align-content: center; | |
} | |
#examples button { | |
--border-radius: 12px; | |
--border-color: var(--color-accent-black); | |
background: #b787d2; | |
color: #fefdff; | |
backface-visibility: hidden ; | |
border: solid var(--border-width,2px) var(--border-color,var(--color-accent-black)) ; | |
border-radius: var(--border-radius) ; | |
box-shadow: var(--shadow-x,1px) var(--shadow-y,2px) 0 var(--shadow-size,1px) var(--border-color,var(--color-accent-black)) ; | |
overflow: hidden ; | |
transition: transform calc(var(--duration-factor) * .1s) ease-in-out ; | |
transition-property: transform,box-shadow ; | |
} | |
#examples button:hover { | |
--shadow-y: 3px ; | |
--shadow-x: 2px ; | |
transform: translate(-1px,-1px) ; | |
} | |
/* Audio_output */ | |
#audio_output { | |
align-self: center ; | |
width: var(--card-width) ; | |
/* background: #4fd644 !important; */ | |
} | |
#audio_output .icon-buttons { | |
--border-radius: 15px; | |
--border-color: var( | |
--color-accent-black); | |
backface-visibility: hidden ; | |
border: solid var(--border-width,3px) var(--border-color,var(--color-accent-black)) ; | |
border-radius: var(--border-radius) ; | |
box-shadow: var(--shadow-x,0.5px) var(--shadow-y,0.5px) 0 var(--shadow-size,0.5px) var(--border-color,var(--color-accent-black)) ; | |
overflow: hidden ; | |
transition: transform calc(var(--duration-factor) * .1s) ease-in-out ; | |
transition-property: transform,box-shadow ; | |
} | |
#audio_output .icon-buttons:hover { | |
--shadow-y: 1.5px ; | |
--shadow-x: 1px ; | |
transform: translate(-1px,-1px) ; | |
} | |
/* #audio_output .controls svg { | |
color: var(--color-white) | |
} */ | |
#watermark { | |
font-family: var(--font-heading) ; | |
} | |
footer { | |
display: none ; | |
} | |