-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a58921
commit ba811e6
Showing
15 changed files
with
414 additions
and
347 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,7 @@ export const useStyles = createStyles( | |
} | ||
.additional { | ||
position: absolute; | ||
display: none; | ||
> ul { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,107 @@ | ||
import { Theme, css } from 'antd-style'; | ||
|
||
export default (token: Theme) => css` | ||
.block.gradio-html:has(div.prose) { | ||
display: block; | ||
export default (token: Theme) => { | ||
return css` | ||
.block.gradio-html:has(div.prose) { | ||
display: block; | ||
p { | ||
color: ${token.cyan8}; | ||
p { | ||
color: ${token.cyan8}; | ||
b { | ||
color: ${token.cyan9}; | ||
b { | ||
color: ${token.cyan9}; | ||
} | ||
} | ||
} | ||
} | ||
div[id$='img_settings'], | ||
.gradio-column.compact { | ||
display: flex !important; | ||
flex-direction: column !important; | ||
gap: 12px !important; | ||
.gradio-column:has(button) { | ||
min-width: min(36px, 100%) !important; | ||
div.gradio-box.block.padded:not(.gradio-accordion) { | ||
padding: 16px !important; | ||
} | ||
> div:not([id$='_script_container'], .gradio-tabs):has(div), | ||
> fieldset, | ||
> .gradio-row { | ||
flex-flow: row wrap; | ||
gap: 12px; | ||
div.block.padded.gradio-box:not(.hidden):has(div), | ||
div.block.padded.gradio-accordion:not(.hidden):has(div) { | ||
display: flex; | ||
flex-direction: column; | ||
margin: 0 !important; | ||
padding: 16px !important; | ||
background-color: ${token.colorBgContainer}!important; | ||
background-color: ${token.colorBgContainer} !important; | ||
border: 1px solid ${token.colorBorderSecondary} !important; | ||
border-radius: ${token.borderRadius}px !important; | ||
box-shadow: none; | ||
} | ||
.gradio-tabitem, | ||
.gradio-group { | ||
background: ${token.colorFillTertiary} !important; | ||
} | ||
div[id$='img_settings'], | ||
.gradio-column.compact { | ||
display: flex !important; | ||
flex-direction: column !important; | ||
gap: 12px !important; | ||
.gradio-accordion { | ||
box-shadow: none; | ||
} | ||
.gradio-column:has(button) { | ||
min-width: min(36px, 100%) !important; | ||
} | ||
div[id$='_script_container'] { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
> div:not([id$='_script_container'], .gradio-tabs):has(div), | ||
> fieldset, | ||
> .gradio-row { | ||
flex-flow: row wrap; | ||
gap: 12px; | ||
margin: 0 !important; | ||
padding: 16px !important; | ||
background-color: ${token.colorBgContainer}!important; | ||
border-radius: ${token.borderRadius}px !important; | ||
} | ||
.gradio-tabitem { | ||
background: ${token.colorFillTertiary} !important; | ||
} | ||
.gradio-group:not(.hidden):has(div), | ||
#script_list { | ||
div[id$='_script_container'] { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
margin: 0; | ||
padding: 16px; | ||
background-color: ${token.colorBgContainer}; | ||
border: 1px solid ${token.colorBorderSecondary} !important; | ||
border-radius: ${token.borderRadius}px !important; | ||
#script_list, | ||
.gradio-group:not(.hidden):has(div) { | ||
display: flex; | ||
flex-direction: column; | ||
> div { | ||
margin: 0; | ||
padding: 0; | ||
border: none !important; | ||
background-color: ${token.colorBgContainer}; | ||
border: 1px solid ${token.colorBorderSecondary} !important; | ||
border-radius: ${token.borderRadius}px !important; | ||
box-shadow: none; | ||
> div { | ||
padding: 0; | ||
border: none !important; | ||
} | ||
} | ||
} | ||
#script_list { | ||
padding: 8px 16px 12px !important; | ||
#script_list { | ||
padding: 8px 16px 12px !important; | ||
} | ||
} | ||
} | ||
} | ||
div.compact, | ||
.wrap { | ||
gap: 8px !important; | ||
} | ||
#tabs > div { | ||
padding: unset; | ||
border: none; | ||
} | ||
`; | ||
div.compact, | ||
.wrap { | ||
gap: 8px !important; | ||
} | ||
#tabs > div { | ||
padding: unset; | ||
border: none; | ||
} | ||
#system_info { | ||
align-items: flex-start; | ||
justify-content: flex-start; | ||
} | ||
`; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.