ebook2audiobook / lib /header.css
Workmin
...
1696c5a
Raw History Blame Contribute Delete
33.2 kB
/* Global Scrollbar Customization */
/* The entire scrollbar */
::-webkit-scrollbar {
width: 6px !important;
height: 6px !important;
cursor: pointer !important;;
}
/* The scrollbar track (background) */
::-webkit-scrollbar-track {
background: none transparent !important;
border-radius: 6px !important;
}
/* The scrollbar thumb (scroll handle) */
::-webkit-scrollbar-thumb {
background: #c09340 !important;
border-radius: 6px !important;
}
/* The scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
background: #ff8c00 !important;
}
/* Firefox scrollbar styling */
html {
scrollbar-width: thin !important;
scrollbar-color: #c09340 transparent !important
}
button:disabled {
pointer-events: none;
}
button div.wrap span {
display: none !important;
}
/* gradio's "- or -" between "Drop File Here" and "Click to Upload": the rule above hid it with the icon span */
button div.wrap span.or {
display: inline !important;
color: var(--body-text-color-subdued) !important;
}
/* upload icon and text on one line: gradio stacks them in a column */
button div.wrap {
flex-direction: row !important;
flex-wrap: wrap !important;
align-content: center !important;
column-gap: 0.35em !important;
}
button div.wrap::after {
content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E90FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>") !important;
width: 24px !important;
height: 24px !important;
display: inline-block !important;
vertical-align: middle !important;
/* on the text line, before the text: the drop zones are one line high */
order: -1 !important;
margin: 0 0.25em 0 0 !important;
}
table.file-preview tr {
padding: 0 !important;
}
body:has(#gr_convert_btn:disabled) table.file-preview button.label-clear-button {
display: none !important;
}
span[data-testid="block-info"] {
font-size: 12px !important;
}
/* Classes */
.wrap-inner {
border: 1px solid #666666;
}
.no-wrap {
flex-wrap: nowrap !important;
}
.selected {
color: var(--secondary-500) !important;
text-shadow: 0.3px 0.3px 0.3px #303030;
}
.gr-glass-mask {
z-index: 9999 !important;
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100vw !important;
height: 100vh !important;
background: rgba(0,0,0,0.5) !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
font-size: 1.2rem !important;
color: #ffffff !important;
text-align: center !important;
border: none !important;
opacity: 1;
pointer-events: all !important;
}
.gr-glass-mask.hide {
animation: fadeOut 2s ease-out 2s forwards !important;
}
.small-btn-red, .small-btn-purple, .small-btn-green, .small-btn-orange, .small-btn-blue {
background: var(--block-background-fill) !important;
font-size: 18px !important;
width: 60px !important;
height: 60px !important;
margin: 0 !important;
padding: 0 !important;
}
.small-btn-green:hover {
background: var(--button-primary-background-fill-hover) !important;
}
.small-btn-red:hover {
background: #ff5050 !important;
}
.small-btn-purple:hover {
background: #752eb2 !important;
}
.small-btn-orange:hover {
background: #ff8c1a !important;
}
.small-btn-blue:hover {
background: #2e7bff !important;
}
/* icon color readable on each hover color (the emoji had their own colors) */
.small-btn-green:hover:not(:active) {
color: var(--button-primary-text-color) !important;
}
.small-btn-purple:hover:not(:active), .small-btn-blue:hover:not(:active) {
color: #ffffff !important;
}
.small-btn-orange:hover:not(:active), .gr-abs-search-btn:not(:active) {
color: #1f2937 !important;
}
.small-btn-green:active, .small-btn-red:active, .small-btn-purple:active, .small-btn-orange:active, .small-btn-blue:active {
background: var(--body-text-color) !important;
color: var(--body-background-fill) !important;
}
.micro-btn{
font-size: 16px !important;
background: var(--block-background-fill) !important;
width: 26px !important;
height: 26px !important;
margin: 0 !important;
padding: 0 !important;
border-radius: var(--radius-full) !important;
}
.micro-btn:hover {
background-color: #ff5050 !important;
}
.micro-btn:active {
background: var(--body-text-color) !important;
color: var(--body-background-fill) !important;
}
.file-preview-holder {
height: 116px !important;
overflow: auto !important;
}
.progress-bar.svelte-ls20lj {
background: var(--secondary-500) !important;
}
.progress-level {
flex-direction: column-reverse !important;
}
.progress-level-inner {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
height: 3lh;
overflow: hidden;
}
.wrap:has(> .progress-level) {
justify-content: flex-start !important;
padding-top: var(--size-2) !important;
}
.file-preview-holder {
height: auto !important;
min-height: 0 !important;
max-height: none !important;
}
.gr-tab {
padding: 0 3px 0 3px !important;
margin: 0 !important;
border: none !important;
}
.gr-col {
padding: 0 6px 0 6px !important;
margin: 0 !important;
border: none !important;
}
.gr-group-main > div {
background: none !important;
border-radius: var(--radius-md) !important;
}
.gr-group > div {
background: none !important;
padding: 0 !important;
margin: 0 !important;
border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md) !important;
}
.gr-group-no-col{
background: none !important;
padding-right: 15px !important;
margin: 0 var(--size-2) 0 var(--size-2)!important;;
border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md) !important;
}
.gr-group-convert-btn{
margin: var(--size-2) !important;;
padding-right: 15px !important;
border-radius: var(--radius-md) !important;
}
.gr-label textarea[data-testid="textbox"]{
padding: 0 0 0 3px !important;
margin: 0 !important;
text-align: left !important;
font-weight: normal !important;
height: auto !important;
font-size: 12px !important;
border: none !important;
overflow-y: hidden !important;
line-height: 12px !important;
}
.gr-markdown p {
margin-top: 8px !important;
width: 90px !important;
padding: 0 !important;
border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
background: var(--block-background-fill) !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
text-align: center !important;
}
.gr-markdown-span {
margin-top: 8px !important;
width: 90px !important;
padding: 0 !important;
border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
background: var(--block-background-fill) !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
text-align: center !important;
}
.gr-markdown-output-split-hours {
overflow: hidden !important;
background: var(--block-background-fill) !important;
border-radius: 0 !important;
font-size: 12px !important;
text-align: center !important;
vertical-align: middle !important;
padding-top: 4px !important;
padding-bottom: 4px !important;
white-space: nowrap !important;
}
/* TTS engine rating (lib/gradio.py _show_rating): on a narrow row the table goes on its own line above the
tab label instead of breaking each cell in two. wrap-reverse swaps the cross axis: flex-start is the bottom */
.gr-rating {
flex-wrap: wrap-reverse !important;
align-items: flex-start !important;
row-gap: 4px !important;
}
.gr-rating table {
margin-left: auto !important;
max-width: 100% !important;
}
/* cells as a wrapping row: narrower than the table, the next cell goes to the line below, each cell kept whole */
.gr-rating table, .gr-rating tbody, .gr-rating tr {
display: flex !important;
flex-wrap: wrap !important;
justify-content: flex-end !important;
align-items: flex-end !important;
}
/* gradio's prose margins/padding on tr and td, inert in a table layout, not in a flex one */
.gr-rating tr, .gr-rating td {
margin: 0 !important;
}
.gr-rating tr {
padding: 0 !important;
}
.gr-rating td {
white-space: nowrap !important;
}
.gr-voice-player {
margin: 0 !important;
padding: 0 !important;
width: 60px !important;
height: 60px !important;
background: var(--block-background-fill) !important;
}
#gr_row_language {
align-items: stretch !important;
}
#gr_row_language > * {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
#gr_translate_enabled {
display: flex !important;
align-items: center !important;
justify-content: center !important;
padding: 0 !important;
}
#gr_translate_enabled > *,
#gr_translate_enabled label,
#gr_translate_enabled .wrap {
margin: 0 !important;
padding: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 100% !important;
height: 100% !important;
}
.play-pause-button:hover svg {
fill: #ffab00 !important;
stroke: #ffab00 !important;
transform: scale(1.2) !important;
}
.gr-convert-btn {
font-size: 30px !important;
}
.gr-convert-btn:hover { background-color: #34d058 !important; }
.gr-convert-btn:active{
background: var(--body-text-color) !important;
color: var(--body-background-fill) !important;
}
.gr-abs-search-btn {
background-color: #D68215 !important;
font-size: 18px !important;
width: 60px !important;
height: 60px !important;
margin: 0 !important;
padding: 0 !important;
}
.gr-abs-search-btn:hover {
background-color: #FF950D !important;
}
.gr-abs-search-btn:active {
background: var(--body-text-color) !important;
color: var(--body-background-fill) !important;
}
.gr-abs-upload-btn {
font-size: 30px !important;
}
.gr-abs-upload-btn:hover { background-color: #34d058 !important; }
.gr-abs-upload-btn:active{
background: var(--body-text-color) !important;
color: var(--body-background-fill) !important;
}
[id^="block_"]:has(input[type="checkbox"]:checked) {
border-left: 3px solid #22c55e !important;
}
[id^="block_"]:has(input[type="checkbox"]:checked) > div {
background-color: rgba(34, 197, 94, 0.08) !important;
}
[id^="block_"]:has(input[type="checkbox"]:not(:checked)) {
border-left: 3px solid #ef4444 !important;
}
[id^="block_"]:has(input[type="checkbox"]:not(:checked)) > div {
background-color: rgba(239, 68, 68, 0.08) !important;
}
/* Html elements */
#gr_ebook_textarea {
height: auto !important;
min-height: 55px !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: center !important;
}
#gr_ebook_textarea label, #gr_custom_model_file label {
background: none !important;
border: none !important;
}
#gr_audiobook_player label, #gr_audiobook_player div.top-panel,
#gr_audiobook_edit_player label, #gr_audiobook_edit_player div.top-panel {
display: none !important;
}
#gr_ebook_src, #gr_custom_model_file, #gr_voice_file {
height: auto !important;
min-height: 56px !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: center !important;
border-style: none !important;
}
#gr_ebook_src button>div, #gr_ebook_textarea button>div, #gr_custom_model_file button>div, #gr_voice_file button>div {
font-size: 14px !important;
}
#gr_ebook_src .empty, #gr_ebook_textarea .empty, #gr_custom_model_file .empty, #gr_voice_file .empty,
#gr_ebook_src .wrap, #gr_ebook_textarea .wrap, #gr_custom_model_file .wrap, #gr_voice_file .wrap {
height: 100% !important;
min-height: 56px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
#gr_ebook_src button[aria-label="common.upload"], #gr_ebook_textarea button[aria-label="common.upload"], #gr_custom_model_file button[aria-label="common.upload"], #gr_voice_file button[aria-label="common.upload"] {
display: none !important;
}
#gr_ebook_src .file-preview-holder {
padding-top: 16px !important;
}
.gr-voice-highlight-css { display: none !important; }
#gr_ebook_src table.file-preview tbody > tr.file:hover {
background: var(--color-accent-soft) !important;
}
#gr_voice_selected_filename, #gr_custom_model_train_link {
display: flex !important;
align-items: center !important;
margin: auto !important;
padding-left: 6px !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
background: var(--block-background-fill) !important;
width: 100% !important;
height: 100% !important;
}
#gr_voice_selected_filename p, #gr_custom_model_train_link p {
margin: auto !important;
vertical-align: middle !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
background: var(--block-background-fill) !important;
width: 100% !important;
height: 100% !important;
}
#gr_voice_selected_filename a, #gr_custom_model_train_link a {
text-decoration: none !important;
}
/* the custom model upload label above its one line drop zone, not over it, at the left as before */
#gr_custom_model_file label[data-testid="block-label"] {
position: static !important;
align-self: flex-start !important;
}
#gr_custom_model_file [aria-label="Clear"], #gr_voice_file [aria-label="Clear"] {
display: none !important;
}
#gr_voice_list {
height: 60px !important;
}
#gr_row_output_split_hours {
border-radius: 0 !important;
}
#gr_audiobook_sentence textarea{
margin: auto !important;
text-align: center !important;
}
#gr_audiobook_sentence textarea.interlude-cue{
font-style: italic !important;
}
/* block and sentence of the cue playing (header.js show_cue_position): one line under the sentence. Its room is kept
even empty or not created yet, the section does not move when a cue shows or goes */
#gr_audiobook_sentence :has(> textarea){
position: relative !important;
padding-bottom: 18px !important;
}
#gr_audiobook_sentence .cue-position{
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 0 10px;
font-size: 11px;
line-height: 16px;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
opacity: 0.7;
}
#gr_audiobook_sentence .cue-position[hidden]{
display: none !important;
}
#gr_session textarea, #gr_progress textarea, #gr_audiobook_sentence textarea {
overflow: hidden !important;
overflow-y: auto !important;
scrollbar-width: none !important;
}
#gr_group_progress .progress-bar, #gr_group_progress [role="progressbar"] > div {
background-color: #ff007f !important;
background-image: none !important;
}
#gr_progress {
height: 100px !important;
min-height: 100px !important;
max-height: 100px !important;
resize: none;
}
#gr_session textarea::-webkit-scrollbar, #gr_progress textarea::-webkit-scrollbar {
display: none !important;
}
#gr_ebook_mode span[data-testid="block-info"],
#gr_language span[data-testid="block-info"],
#gr_voice_list span[data-testid="block-info"],
#gr_device span[data-testid="block-info"],
#gr_tts_engine_list span[data-testid="block-info"],
#gr_output_split_hours span[data-testid="block-info"],
#gr_session span[data-testid="block-info"],
#gr_custom_model_list span[data-testid="block-info"],
#gr_audiobook_sentence span[data-testid="block-info"],
#gr_audiobook_list span[data-testid="block-info"],
#gr_progress span[data-testid="block-info"],
#gr_abs_library span[data-testid="block-info"] {
display: none !important;
}
#gr_row_ebook_mode {
display: flex !important;
align-items: center !important;
}
#gr_interlude_enabled {
align-self: center !important;
overflow: visible !important;
padding: 20px 0 20px 30px !important;
}
#gr_blocks_preview {
align-self: center !important;
overflow: visible !important;
padding: 20px 0 20px 10px !important;
}
/* gradio gives them min-width 0: on a narrow row they clipped their label instead of wrapping to the next line.
min-content: at least their longest word, in any ui language (Kapitelvorschau, Zwischenspiel...) */
#gr_blocks_preview, #gr_interlude_enabled, #gr_translate_enabled {
min-width: min-content !important;
}
#gr_group_output_split {
border-radius: 0 !important;
}
/* split file as high as format and channel beside it (it left a gap under it) */
#gr_row_output_format {
align-items: stretch !important;
}
#gr_group_output_split > div, #gr_group_output_split .styler, #gr_group_output_split .styler > .form, #gr_output_split {
flex-grow: 1 !important;
}
#gr_output_split {
display: flex !important;
align-items: center !important;
align-self: stretch !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
}
#gr_tts_rating {
overflow: hidden !important;
}
#gr_row_voice_player, #gr_row_custom_model_list, #gr_row_session, #gr_row_audiobook_list, #gr_row_audiobook_edit {
height: 60px !important;
}
#gr_audiobook_player, #gr_audiobook_edit_player {
border-style: none !important;
}
#gr_row_audiobook_edit {
align-items: center !important;
}
#gr_audiobook_sentence textarea:not(:disabled) {
outline: 2px solid var(--button-primary-background-fill-hover) !important;
outline-offset: -2px !important;
caret-color: #ff007f !important;
}
#gr_audiobook_sentence textarea:not(:disabled),
#gr_audiobook_sentence:has(textarea:not(:disabled)),
#gr_audiobook_sentence:has(textarea:not(:disabled)) label,
#gr_row_audiobook_edit,
#gr_row_audiobook_edit :is(.small-btn-green, .small-btn-red):not(:hover):not(:active) {
background: color-mix(in srgb, var(--block-background-fill) 80%, #ff007f) !important;
}
#gr_audiobook_edit_player, #gr_audiobook_edit_player :is(.block, .container) {
background: transparent !important;
}
#gr_audiobook_player :is(.volume, .empty, .source-selection, .control-wrapper, .settings-wrapper, label),
#gr_audiobook_edit_player :is(.volume, .empty, .source-selection, .control-wrapper, .settings-wrapper, label),
#gr_audiobook_player button[aria-label="Download"],
#gr_audiobook_player button[aria-label="Share"],
#gr_audiobook_player .download-button,
#gr_audiobook_player .share-button,
#gr_audiobook_files {
border-style: none !important;
}
#gr_audiobook_files label[data-testid="block-label"] {
display: none !important;
}
#gr_audiobook_player audio, #gr_audiobook_edit_player audio {
width: 100% !important;
padding-top: 10px !important;
padding-bottom: 10px !important;
border-radius: 0px !important;
background-color: #ebedf0 !important;
color: #ffffff !important;
}
#gr_audiobook_player audio::-webkit-media-controls-panel, #gr_audiobook_edit_player audio::-webkit-media-controls-panel {
width: 100% !important;
padding-top: 10px !important;
padding-bottom: 10px !important;
border-radius: 0px !important;
background-color: #ebedf0 !important;
color: #ffffff !important;
}
/* Firefox only: :-moz-read-only is Firefox's alias of :read-only (always true on audio/div), Chrome/Safari drop these rules.
No @supports here: Gradio's prefix_css() silently discards @supports blocks from css_paths. */
#gr_audiobook_player audio:-moz-read-only,
#gr_audiobook_edit_player audio:-moz-read-only,
audio:-moz-read-only {
background-color: var(--block-background-fill, #1f2937) !important;
border: none !important;
outline: none !important;
box-shadow: none !important;
}
#gr_audiobook_player:-moz-read-only,
#gr_audiobook_edit_player:-moz-read-only,
#gr_audiobook_player .block:-moz-read-only,
#gr_audiobook_player .container:-moz-read-only,
#gr_audiobook_edit_player .block:-moz-read-only,
#gr_audiobook_edit_player .container:-moz-read-only,
#gr_voice_player_hidden:-moz-read-only {
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
}
#gr_voice_player_hidden {
z-index: -100 !important;
position: absolute !important;
overflow: hidden !important;
margin: 0 !important;
padding: 0 !important;
width: 60px !important;
height: 60px !important;
}
#gr_session_update, #gr_restore_session, #gr_save_session,
#gr_audiobook_vtt, #gr_playback_time, #gr_voice_player_hidden {
display: none !important;
}
#gr_blocks_nav {
overflow:hidden !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
#gr_blocks_nav p {
white-space:nowrap !important;
overflow:hidden !important;
font-size: 16px !important;
text-align: center !important;
}
#gr_row_buttons {
justify-content: center !important;
gap: 100px !important;
}
#gr_blocks_markdown {
background: var(--body-background-fill) !important;
width: 100% !important;
text-align: center !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
padding-bottom: 20px !important;
}
#gr_blocks_markdown p {
background: var(--body-background-fill) !important;
width: 100% !important;
font-size: 18px !important;
font-weight: bold !important;
}
/* Target the main container and all internal wrapper elements of the UI language and theme dropdowns */
#gr_ui_language,
#gr_ui_language .wrap,
#gr_ui_language .wrap-inner,
#gr_ui_language .secondary-wrap,
#gr_ui_language input,
#gr_ui_language select,
#gr_theme,
#gr_theme .wrap,
#gr_theme .wrap-inner,
#gr_theme .secondary-wrap,
#gr_theme input,
#gr_theme select {
margin: 0 !important;
padding: 0 !important;
min-height: 0 !important;
height: auto !important;
border: none !important;
box-shadow: none !important;
line-height: 1 !important;
}
/* Labels beside their dropdown, not above (theme, output format and channel): at the size of the value beside them,
the labels above a field (sliders...) stay small */
#gr_theme .container, #gr_output_format_list .container, #gr_output_channel_list .container {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
gap: 6px !important;
}
#gr_output_format_list .container, #gr_output_channel_list .container {
gap: 10px !important;
}
#gr_theme span[data-testid="block-info"], #gr_output_format_list span[data-testid="block-info"], #gr_output_channel_list span[data-testid="block-info"] {
flex: 0 0 auto !important;
margin: 0 !important;
font-size: var(--input-text-size) !important;
white-space: nowrap !important;
}
#gr_theme .wrap, #gr_output_format_list .container > .wrap, #gr_output_channel_list .container > .wrap {
flex: 1 1 auto !important;
min-width: 0 !important;
}
/* Remove any default gap spacing in its parent row if needed */
#gr_row_ui_language {
gap: 0 !important;
align-items: center !important;
}
#gr_row_ui_left, #gr_row_ui_right {
align-items: center !important;
}
#gr_row_ui_right {
justify-content: flex-end !important;
}
/* gradio renders min-width: 0 on a Markdown: on a narrow screen the sides squeezed the version out */
#gr_version_markdown {
min-width: 160px !important;
}
#gr_tooltips,
#gr_tooltips .wrap,
#gr_tooltips .wrap-inner,
#gr_tooltips .secondary-wrap {
margin: 0 !important;
padding: 0 !important;
min-height: 0 !important;
height: auto !important;
border: none !important;
box-shadow: none !important;
line-height: 1 !important;
}
/* Effects */
.fade-in {
animation: fadeIn 1s ease-in !important;
display: inline-block !important;
}
@keyframes fadeIn {
from {
opacity: 0;
visibility: visible !important;
}
to {
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
}
/* Modal */
#custom-gr-modal-container,
#custom-gr-modal-container .gr-modal {
position: fixed !important;
}
.hide-elem {
z-index: -1 !important;
position: absolute !important;
top: 0 !important;
left: 0 !important;
}
.gr-modal {
position: fixed !important;
top: 0 !important; left: 0 !important;
width: 100% !important; height: 100% !important;
background-color: rgba(0, 0, 0, 0.5) !important;
z-index: 9999 !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
}
.gr-modal-content {
background-color: #333 !important;
padding: 20px !important;
border-radius: 9px !important;
text-align: center !important;
max-width: 300px !important;
height: auto !important;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
border: 2px solid #FFA500 !important;
color: white !important;
position: relative !important;
}
.gr-modal-content p {
overflow-wrap: break-word;
word-break: break-word;
white-space: normal;
}
.confirm-buttons {
display: flex !important;
justify-content: space-evenly !important;
margin-top: 20px !important;
}
.confirm-buttons button {
padding: 10px 20px !important;
border: none !important;
border-radius: 6px !important;
font-size: 16px !important;
cursor: pointer !important;
}
.accordion-block-even > button, .accordion-block-odd > button {
padding: 10px 0 10px 0 !important;
}
.accordion-block-even, .accordion-block-even div label textarea, .accordion-block-even .wrap {
background: var(--table-even-background-fill) !important;
}
.accordion-block-odd, .accordion-block-odd div label textarea, .accordion-block-odd .wrap {
background: var(--table-odd-background-fill) !important;
}
.accordion-block-even:hover,
.accordion-block-odd:hover {
background: rgba(255, 200, 50, 0.3) !important;
}
.accordion-block-voice-list {
margin: auto !important;
padding: 0 16px 0 0 !important;
}
.gr-blocks-buttons {
display: flex !important;
justify-content: space-evenly !important;
margin-top: 12px !important;
margin-bottom: 12px !important;
}
.gr-blocks-buttons button {
padding: 12px !important;
border: none !important;
border-radius: 9px !important;
font-size: 16px !important;
cursor: pointer !important;
}
.gr-blocks-buttons:hover { background-color: #34d058 !important; }
.gr-blocks-buttons:active {
background: var(--body-text-color) !important;
color: var(--body-background-fill) !important;
}
.accordion-block-keep, .accordion-block-keep .wrap{
background: none !important;
}
.accordion-block-reset {
margin-left: 30px !important;
margin-right: 30px !important;
border-radius: 9px !important;
}
.spinner {
margin: 15px auto !important;
border: 4px solid rgba(255, 255, 255, 0.2) !important;
border-top: 4px solid #FFA500 !important;
border-radius: 50% !important;
width: 30px !important;
height: 30px !important;
animation: spin 1s linear infinite !important;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Icons: header.js gives a glyph button (▶ 🗑 🔒 ✔...) its data-icon and keeps it in step when the glyph changes.
The glyph stays the button text (screen readers) but is hidden, the icon is a mask in the button text color,
so it follows every theme. Last in the file: same specificity as the font sizes above, it comes after them */
button[data-icon], .confirm-buttons .btn[data-icon] {
font-size: 0 !important;
/* the glyph, zero wide, stays a flex item: space-evenly (.gr-blocks-buttons) or a gap moved the icon off center */
justify-content: center !important;
gap: 0 !important;
}
button[data-icon]::before, .confirm-buttons .btn[data-icon]::before {
content: "" !important;
display: inline-block !important;
flex: 0 0 auto !important;
width: 24px !important;
height: 24px !important;
background-color: currentColor !important;
-webkit-mask: var(--e2a-icon) center / contain no-repeat !important;
mask: var(--e2a-icon) center / contain no-repeat !important;
}
.micro-btn[data-icon]::before {
width: 15px !important;
height: 15px !important;
}
.accordion-block-reset[data-icon]::before {
width: 20px !important;
height: 20px !important;
}
#gr_blocks_nav button[data-icon]::before {
width: 28px !important;
height: 28px !important;
}
.gr-convert-btn[data-icon]::before, .gr-abs-upload-btn[data-icon]::before {
width: 34px !important;
height: 34px !important;
}
/* the e2a logo (tools/icons/appLogo.png) as a line icon: open book, text on a page, level bars on the other */
[data-icon="logo"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 6.5C10 5 7 4.4 2.5 4.8v13.6c4.5-.4 7.5.2 9.5 1.6 2-1.4 5-2 9.5-1.6V4.8C17 4.4 14 5 12 6.5zM12 6.5V20'/><path d='M5 9h4.5M5 12h4.5M5 15h3.5'/><path d='M14.5 16v-2.5M17 16v-4.5M19.5 16V9'/></svg>");
}
[data-icon="play"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 4.5v15l12-7.5z'/></svg>");
}
[data-icon="pause"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5v14M15 5v14'/></svg>");
}
[data-icon="trash"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M10 4h4M6 7l1 13h10l1-13M10 11v6M14 11v6'/></svg>");
}
[data-icon="lock"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
}
[data-icon="key"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='16' r='4'/><path d='M11 13l9-9M16 8l3 3M14 10l2 2'/></svg>");
}
[data-icon="preview"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M10 8.5v7l6-3.5z'/></svg>");
}
[data-icon="check"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
}
[data-icon="x"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 6l12 12M18 6L6 18'/></svg>");
}
[data-icon="download"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 10l5 5 5-5M5 20h14'/></svg>");
}
[data-icon="edit"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4L19 9l-4-4L4 16z'/><path d='M13 7l4 4'/></svg>");
}
[data-icon="rebuild"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 11a8 8 0 0 0-14.3-4.9L4 8M4 4v4h4M4 13a8 8 0 0 0 14.3 4.9L20 16M20 20v-4h-4'/></svg>");
}
[data-icon="reset"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12a8 8 0 1 0 2.3-5.7L4 8.6M4 4v4.6h4.6'/></svg>");
}
[data-icon="search"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6.5'/><path d='M16 16l4 4'/></svg>");
}
[data-icon="upload"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20V9M7 14l5-5 5 5M5 4h14'/></svg>");
}
[data-icon="arrow-left"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M19 12H5M11 6l-6 6 6 6'/></svg>");
}
[data-icon="arrow-right"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
}
[data-icon="chevron-left"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M15 6l-6 6 6 6'/></svg>");
}
[data-icon="chevron-right"] {
--e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>");
}