style.css 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667
  1. /* temporary fix to load default gradio font in frontend instead of backend */
  2. @import url('webui-assets/css/sourcesanspro.css');
  3. /* temporary fix to hide gradio crop tool until it's fixed https://github.com/gradio-app/gradio/issues/3810 */
  4. div.gradio-image button[aria-label="Edit"] {
  5. display: none;
  6. }
  7. /* general gradio fixes */
  8. :root, .dark{
  9. --checkbox-label-gap: 0.25em 0.1em;
  10. --section-header-text-size: 12pt;
  11. --block-background-fill: transparent;
  12. }
  13. .block.padded:not(.gradio-accordion) {
  14. padding: 0 !important;
  15. }
  16. div.gradio-container{
  17. max-width: unset !important;
  18. }
  19. .hidden{
  20. display: none !important;
  21. }
  22. .compact{
  23. background: transparent !important;
  24. padding: 0 !important;
  25. }
  26. div.form{
  27. border-width: 0;
  28. box-shadow: none;
  29. background: transparent;
  30. overflow: visible;
  31. gap: 0.5em;
  32. }
  33. .block.gradio-dropdown,
  34. .block.gradio-slider,
  35. .block.gradio-checkbox,
  36. .block.gradio-textbox,
  37. .block.gradio-radio,
  38. .block.gradio-checkboxgroup,
  39. .block.gradio-number,
  40. .block.gradio-colorpicker {
  41. border-width: 0 !important;
  42. box-shadow: none !important;
  43. }
  44. div.gradio-group, div.styler{
  45. border-width: 0 !important;
  46. background: none;
  47. }
  48. .gap.compact{
  49. padding: 0;
  50. gap: 0.2em 0;
  51. }
  52. div.compact{
  53. gap: 1em;
  54. }
  55. .gradio-dropdown label span:not(.has-info),
  56. .gradio-textbox label span:not(.has-info),
  57. .gradio-number label span:not(.has-info)
  58. {
  59. margin-bottom: 0;
  60. }
  61. .gradio-dropdown ul.options{
  62. z-index: 3000;
  63. min-width: fit-content;
  64. max-width: inherit;
  65. white-space: nowrap;
  66. }
  67. @media (pointer:fine) {
  68. .gradio-dropdown ul.options li.item {
  69. padding: 0.05em 0;
  70. }
  71. }
  72. .gradio-dropdown ul.options li.item.selected {
  73. background-color: var(--neutral-100);
  74. }
  75. .dark .gradio-dropdown ul.options li.item.selected {
  76. background-color: var(--neutral-900);
  77. }
  78. .gradio-dropdown div.wrap.wrap.wrap.wrap{
  79. box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  80. }
  81. .gradio-dropdown:not(.multiselect) .wrap-inner.wrap-inner.wrap-inner{
  82. flex-wrap: unset;
  83. }
  84. .gradio-dropdown .single-select{
  85. white-space: nowrap;
  86. overflow: hidden;
  87. }
  88. .gradio-dropdown .token-remove.remove-all.remove-all{
  89. display: none;
  90. }
  91. .gradio-dropdown.multiselect .token-remove.remove-all.remove-all{
  92. display: flex;
  93. }
  94. .gradio-slider input[type="number"]{
  95. width: 6em;
  96. }
  97. .block.gradio-checkbox {
  98. margin: 0.75em 1.5em 0 0;
  99. }
  100. .gradio-html div.wrap{
  101. height: 100%;
  102. }
  103. div.gradio-html.min{
  104. min-height: 0;
  105. }
  106. .block.gradio-gallery{
  107. background: var(--input-background-fill);
  108. }
  109. .gradio-container .prose a, .gradio-container .prose a:visited{
  110. color: unset;
  111. text-decoration: none;
  112. }
  113. a{
  114. font-weight: bold;
  115. cursor: pointer;
  116. }
  117. /* gradio 3.39 puts a lot of overflow: hidden all over the place for an unknown reason. */
  118. div.gradio-container, .block.gradio-textbox, div.gradio-group, div.gradio-dropdown{
  119. overflow: visible !important;
  120. }
  121. /* align-items isn't enough and elements may overflow in Safari. */
  122. .unequal-height {
  123. align-content: flex-start;
  124. }
  125. /* general styled components */
  126. .gradio-button.tool{
  127. max-width: 2.2em;
  128. min-width: 2.2em !important;
  129. height: 2.4em;
  130. align-self: end;
  131. line-height: 1em;
  132. border-radius: 0.5em;
  133. }
  134. .gradio-button.secondary-down{
  135. background: var(--button-secondary-background-fill);
  136. color: var(--button-secondary-text-color);
  137. }
  138. .gradio-button.secondary-down, .gradio-button.secondary-down:hover{
  139. box-shadow: 1px 1px 1px rgba(0,0,0,0.25) inset, 0px 0px 3px rgba(0,0,0,0.15) inset;
  140. }
  141. .gradio-button.secondary-down:hover{
  142. background: var(--button-secondary-background-fill-hover);
  143. color: var(--button-secondary-text-color-hover);
  144. }
  145. button.custom-button{
  146. border-radius: var(--button-large-radius);
  147. padding: var(--button-large-padding);
  148. font-weight: var(--button-large-text-weight);
  149. border: var(--button-border-width) solid var(--button-secondary-border-color);
  150. background: var(--button-secondary-background-fill);
  151. color: var(--button-secondary-text-color);
  152. font-size: var(--button-large-text-size);
  153. display: inline-flex;
  154. justify-content: center;
  155. align-items: center;
  156. transition: var(--button-transition);
  157. box-shadow: var(--button-shadow);
  158. text-align: center;
  159. }
  160. div.block.gradio-accordion {
  161. border: 1px solid var(--block-border-color) !important;
  162. border-radius: 8px !important;
  163. margin: 2px 0;
  164. padding: 8px 8px;
  165. }
  166. input[type="checkbox"].input-accordion-checkbox{
  167. vertical-align: sub;
  168. margin-right: 0.5em;
  169. }
  170. /* txt2img/img2img specific */
  171. .block.token-counter{
  172. position: absolute;
  173. display: inline-block;
  174. right: 1em;
  175. min-width: 0 !important;
  176. width: auto;
  177. z-index: 100;
  178. top: -0.75em;
  179. }
  180. .block.token-counter-visible{
  181. display: block !important;
  182. }
  183. .block.token-counter span{
  184. background: var(--input-background-fill) !important;
  185. box-shadow: 0 0 0.0 0.3em rgba(192,192,192,0.15), inset 0 0 0.6em rgba(192,192,192,0.075);
  186. border: 2px solid rgba(192,192,192,0.4) !important;
  187. border-radius: 0.4em;
  188. }
  189. .block.token-counter.error span{
  190. box-shadow: 0 0 0.0 0.3em rgba(255,0,0,0.15), inset 0 0 0.6em rgba(255,0,0,0.075);
  191. border: 2px solid rgba(255,0,0,0.4) !important;
  192. }
  193. .block.token-counter div{
  194. display: inline;
  195. }
  196. .block.token-counter span{
  197. padding: 0.1em 0.75em;
  198. }
  199. [id$=_subseed_show]{
  200. min-width: auto !important;
  201. flex-grow: 0 !important;
  202. display: flex;
  203. }
  204. [id$=_subseed_show] label{
  205. margin-bottom: 0.65em;
  206. align-self: end;
  207. }
  208. [id$=_seed_extras] > div{
  209. gap: 0.5em;
  210. }
  211. .html-log .comments{
  212. padding-top: 0.5em;
  213. }
  214. .html-log .comments:empty{
  215. padding-top: 0;
  216. }
  217. .html-log .performance {
  218. font-size: 0.85em;
  219. color: #444;
  220. display: flex;
  221. }
  222. .html-log .performance p{
  223. display: inline-block;
  224. }
  225. .html-log .performance p.time, .performance p.vram, .performance p.profile, .performance p.time abbr, .performance p.vram abbr {
  226. margin-bottom: 0;
  227. color: var(--block-title-text-color);
  228. }
  229. .html-log .performance p.time {
  230. }
  231. .html-log .performance p.vram {
  232. margin-left: auto;
  233. }
  234. .html-log .performance p.profile {
  235. margin-left: 0.5em;
  236. }
  237. .html-log .performance .measurement{
  238. color: var(--body-text-color);
  239. font-weight: bold;
  240. }
  241. #txt2img_generate, #img2img_generate {
  242. min-height: 4.5em;
  243. }
  244. #txt2img_generate, #img2img_generate {
  245. min-height: 4.5em;
  246. }
  247. .generate-box-compact #txt2img_generate, .generate-box-compact #img2img_generate {
  248. min-height: 3em;
  249. }
  250. @media screen and (min-width: 2500px) {
  251. #txt2img_gallery, #img2img_gallery {
  252. min-height: 768px;
  253. }
  254. }
  255. .gradio-gallery .thumbnails img {
  256. object-fit: scale-down !important;
  257. }
  258. #txt2img_actions_column, #img2img_actions_column {
  259. gap: 0.5em;
  260. }
  261. #txt2img_tools, #img2img_tools{
  262. gap: 0.4em;
  263. }
  264. .interrogate-col{
  265. min-width: 0 !important;
  266. max-width: fit-content;
  267. gap: 0.5em;
  268. }
  269. .interrogate-col > button{
  270. flex: 1;
  271. }
  272. .generate-box{
  273. position: relative;
  274. }
  275. .gradio-button.generate-box-skip, .gradio-button.generate-box-interrupt, .gradio-button.generate-box-interrupting{
  276. position: absolute;
  277. width: 50%;
  278. height: 100%;
  279. display: none;
  280. background: #b4c0cc;
  281. }
  282. .gradio-button.generate-box-skip:hover, .gradio-button.generate-box-interrupt:hover, .gradio-button.generate-box-interrupting:hover{
  283. background: #c2cfdb;
  284. }
  285. .gradio-button.generate-box-interrupt, .gradio-button.generate-box-interrupting{
  286. left: 0;
  287. border-radius: 0.5rem 0 0 0.5rem;
  288. }
  289. .gradio-button.generate-box-skip{
  290. right: 0;
  291. border-radius: 0 0.5rem 0.5rem 0;
  292. }
  293. #img2img_scale_resolution_preview.block{
  294. display: flex;
  295. align-items: end;
  296. }
  297. #txtimg_hr_finalres .resolution, #img2img_scale_resolution_preview .resolution{
  298. font-weight: bold;
  299. }
  300. #txtimg_hr_finalres div.pending, #img2img_scale_resolution_preview div.pending {
  301. opacity: 1;
  302. transition: opacity 0s;
  303. }
  304. .inactive{
  305. opacity: 0.5;
  306. }
  307. [id$=_column_batch]{
  308. min-width: min(13.5em, 100%) !important;
  309. }
  310. div.dimensions-tools{
  311. min-width: 1.6em !important;
  312. max-width: fit-content;
  313. flex-direction: column;
  314. place-content: center;
  315. }
  316. div#extras_scale_to_tab div.form{
  317. flex-direction: row;
  318. }
  319. #img2img_sketch, #img2maskimg, #inpaint_sketch {
  320. overflow: overlay !important;
  321. resize: auto;
  322. background: var(--panel-background-fill);
  323. z-index: 5;
  324. }
  325. .image-buttons > .form{
  326. justify-content: center;
  327. }
  328. .infotext {
  329. overflow-wrap: break-word;
  330. }
  331. #img2img_column_batch{
  332. align-self: end;
  333. margin-bottom: 0.9em;
  334. }
  335. #img2img_unused_scale_by_slider{
  336. visibility: hidden;
  337. width: 0.5em;
  338. max-width: 0.5em;
  339. min-width: 0.5em;
  340. }
  341. div.toprow-compact-stylerow{
  342. margin: 0.5em 0;
  343. }
  344. div.toprow-compact-tools{
  345. min-width: fit-content !important;
  346. max-width: fit-content;
  347. }
  348. /* settings */
  349. #quicksettings {
  350. align-items: end;
  351. }
  352. #quicksettings > div, #quicksettings > fieldset{
  353. max-width: 36em;
  354. width: fit-content;
  355. flex: 0 1 fit-content;
  356. padding: 0;
  357. border: none;
  358. box-shadow: none;
  359. background: none;
  360. }
  361. #quicksettings > div.gradio-dropdown{
  362. min-width: 24em !important;
  363. }
  364. #settings{
  365. display: block;
  366. }
  367. #settings > div{
  368. border: none;
  369. margin-left: 10em;
  370. padding: 0 var(--spacing-xl);
  371. }
  372. #settings > div.tab-nav{
  373. float: left;
  374. display: block;
  375. margin-left: 0;
  376. width: 10em;
  377. }
  378. #settings > div.tab-nav button{
  379. display: block;
  380. border: none;
  381. text-align: left;
  382. white-space: initial;
  383. padding: 4px;
  384. }
  385. #settings > div.tab-nav .settings-category{
  386. display: block;
  387. margin: 1em 0 0.25em 0;
  388. font-weight: bold;
  389. text-decoration: underline;
  390. cursor: default;
  391. user-select: none;
  392. }
  393. #settings_result{
  394. height: 1.4em;
  395. margin: 0 1.2em;
  396. }
  397. table.popup-table{
  398. background: var(--body-background-fill);
  399. color: var(--body-text-color);
  400. border-collapse: collapse;
  401. margin: 1em;
  402. border: 4px solid var(--body-background-fill);
  403. }
  404. table.popup-table td{
  405. padding: 0.4em;
  406. border: 1px solid rgba(128, 128, 128, 0.5);
  407. max-width: 36em;
  408. }
  409. table.popup-table .muted{
  410. color: #aaa;
  411. }
  412. table.popup-table .link{
  413. text-decoration: underline;
  414. cursor: pointer;
  415. font-weight: bold;
  416. }
  417. .ui-defaults-none{
  418. color: #aaa !important;
  419. }
  420. #settings span{
  421. color: var(--body-text-color);
  422. }
  423. #settings .gradio-textbox, #settings .gradio-slider, #settings .gradio-number, #settings .gradio-dropdown, #settings .gradio-checkboxgroup, #settings .gradio-radio{
  424. margin-top: 0.75em;
  425. }
  426. #settings span .settings-comment {
  427. display: inline
  428. }
  429. .settings-comment a{
  430. text-decoration: underline;
  431. }
  432. .settings-comment .info{
  433. opacity: 0.75;
  434. }
  435. .settings-comment .info ol{
  436. margin: 0.4em 0 0.8em 1em;
  437. }
  438. #sysinfo_download a.sysinfo_big_link{
  439. font-size: 24pt;
  440. }
  441. #sysinfo_download a{
  442. text-decoration: underline;
  443. }
  444. #sysinfo_validity{
  445. font-size: 18pt;
  446. }
  447. #settings .settings-info{
  448. max-width: 48em;
  449. border: 1px dotted #777;
  450. margin: 0;
  451. padding: 1em;
  452. }
  453. /* live preview */
  454. .progressDiv{
  455. position: absolute;
  456. height: 20px;
  457. background: #b4c0cc;
  458. border-radius: 3px !important;
  459. top: -14px;
  460. left: 0px;
  461. width: 100%;
  462. }
  463. .progress-container{
  464. position: relative;
  465. }
  466. [id$=_results].mobile{
  467. margin-top: 28px;
  468. }
  469. .dark .progressDiv{
  470. background: #424c5b;
  471. }
  472. .progressDiv .progress{
  473. width: 0%;
  474. height: 20px;
  475. background: #0060df;
  476. color: white;
  477. font-weight: bold;
  478. line-height: 20px;
  479. padding: 0 8px 0 0;
  480. text-align: right;
  481. border-radius: 3px;
  482. overflow: visible;
  483. white-space: nowrap;
  484. padding: 0 0.5em;
  485. }
  486. .livePreview{
  487. position: absolute;
  488. z-index: 300;
  489. background: var(--background-fill-primary);
  490. width: 100%;
  491. height: 100%;
  492. }
  493. .livePreview img{
  494. position: absolute;
  495. object-fit: contain;
  496. width: 100%;
  497. height: calc(100% - 60px); /* to match gradio's height */
  498. }
  499. /* fullscreen popup (ie in Lora's (i) button) */
  500. .popup-metadata{
  501. color: black;
  502. background: white;
  503. display: inline-block;
  504. padding: 1em;
  505. white-space: pre-wrap;
  506. }
  507. .global-popup{
  508. display: flex;
  509. position: fixed;
  510. z-index: 1001;
  511. left: 0;
  512. top: 0;
  513. width: 100%;
  514. height: 100%;
  515. overflow: auto;
  516. }
  517. .global-popup *{
  518. box-sizing: border-box;
  519. }
  520. .global-popup-close:before {
  521. content: "×";
  522. position: fixed;
  523. right: 0.25em;
  524. top: 0;
  525. cursor: pointer;
  526. color: white;
  527. font-size: 32pt;
  528. }
  529. .global-popup-close{
  530. position: fixed;
  531. left: 0;
  532. top: 0;
  533. width: 100%;
  534. height: 100%;
  535. background-color: rgba(20, 20, 20, 0.95);
  536. }
  537. .global-popup-inner{
  538. display: inline-block;
  539. margin: auto;
  540. padding: 2em;
  541. z-index: 1001;
  542. max-height: 90%;
  543. max-width: 90%;
  544. }
  545. /* fullpage image viewer */
  546. #lightboxModal{
  547. display: none;
  548. position: fixed;
  549. z-index: 1001;
  550. left: 0;
  551. top: 0;
  552. width: 100%;
  553. height: 100%;
  554. overflow: auto;
  555. background-color: rgba(20, 20, 20, 0.95);
  556. user-select: none;
  557. -webkit-user-select: none;
  558. flex-direction: column;
  559. }
  560. .modalControls {
  561. display: flex;
  562. position: absolute;
  563. right: 0px;
  564. left: 0px;
  565. gap: 1em;
  566. padding: 1em;
  567. background-color:rgba(0,0,0,0);
  568. z-index: 1;
  569. transition: 0.2s ease background-color;
  570. }
  571. .modalControls:hover {
  572. background-color:rgba(0,0,0, var(--sd-webui-modal-lightbox-toolbar-opacity));
  573. }
  574. .modalClose {
  575. margin-left: auto;
  576. }
  577. .modalControls span{
  578. color: white;
  579. text-shadow: 0px 0px 0.25em black;
  580. font-size: 35px;
  581. font-weight: bold;
  582. cursor: pointer;
  583. width: 1em;
  584. }
  585. .modalControls span:hover, .modalControls span:focus{
  586. color: #999;
  587. text-decoration: none;
  588. }
  589. #lightboxModal > img {
  590. display: block;
  591. margin: auto;
  592. width: auto;
  593. }
  594. #lightboxModal > img.modalImageFullscreen{
  595. object-fit: contain;
  596. height: 100%;
  597. width: 100%;
  598. min-height: 0;
  599. }
  600. .modalPrev,
  601. .modalNext {
  602. cursor: pointer;
  603. position: absolute;
  604. top: 50%;
  605. width: auto;
  606. padding: 16px;
  607. margin-top: -50px;
  608. color: white;
  609. font-weight: bold;
  610. font-size: 20px;
  611. transition: 0.6s ease;
  612. border-radius: 0 3px 3px 0;
  613. user-select: none;
  614. -webkit-user-select: none;
  615. }
  616. .modalNext {
  617. right: 0;
  618. border-radius: 3px 0 0 3px;
  619. }
  620. .modalPrev:hover,
  621. .modalNext:hover {
  622. background-color: rgba(0, 0, 0, 0.8);
  623. }
  624. #imageARPreview {
  625. position: absolute;
  626. top: 0px;
  627. left: 0px;
  628. border: 2px solid red;
  629. background: rgba(255, 0, 0, 0.3);
  630. z-index: 900;
  631. pointer-events: none;
  632. display: none;
  633. }
  634. @media (pointer: fine) {
  635. .modalPrev:hover,
  636. .modalNext:hover,
  637. .modalControls:hover ~ .modalPrev,
  638. .modalControls:hover ~ .modalNext,
  639. .modalControls:hover .cursor {
  640. opacity: 1;
  641. }
  642. .modalPrev,
  643. .modalNext,
  644. .modalControls .cursor {
  645. opacity: var(--sd-webui-modal-lightbox-icon-opacity);
  646. }
  647. }
  648. /* context menu (ie for the generate button) */
  649. #context-menu{
  650. z-index:9999;
  651. position:absolute;
  652. display:block;
  653. padding:0px 0;
  654. border:2px solid var(--primary-800);
  655. border-radius:8px;
  656. box-shadow:1px 1px 2px var(--primary-500);
  657. width: 200px;
  658. }
  659. .context-menu-items{
  660. list-style: none;
  661. margin: 0;
  662. padding: 0;
  663. }
  664. .context-menu-items a{
  665. display:block;
  666. padding:5px;
  667. cursor:pointer;
  668. }
  669. .context-menu-items a:hover{
  670. background: var(--primary-700);
  671. }
  672. /* extensions */
  673. #tab_extensions table{
  674. border-collapse: collapse;
  675. overflow-x: auto;
  676. display: block;
  677. }
  678. #tab_extensions table td, #tab_extensions table th{
  679. border: 1px solid #ccc;
  680. padding: 0.25em 0.5em;
  681. }
  682. #tab_extensions table input[type="checkbox"]{
  683. margin-right: 0.5em;
  684. appearance: checkbox;
  685. }
  686. #tab_extensions button{
  687. max-width: 16em;
  688. }
  689. #tab_extensions input[disabled="disabled"]{
  690. opacity: 0.5;
  691. }
  692. .extension-tag{
  693. font-weight: bold;
  694. font-size: 95%;
  695. }
  696. #available_extensions .info{
  697. margin: 0;
  698. }
  699. #available_extensions .info{
  700. margin: 0.5em 0;
  701. display: flex;
  702. margin-top: auto;
  703. opacity: 0.80;
  704. font-size: 90%;
  705. }
  706. #available_extensions .date_added{
  707. margin-right: auto;
  708. display: inline-block;
  709. }
  710. #available_extensions .star_count{
  711. margin-left: auto;
  712. display: inline-block;
  713. }
  714. .compact-checkbox-group div label {
  715. padding: 0.1em 0.3em !important;
  716. }
  717. /* extensions tab table row hover highlight */
  718. #extensions tr:hover td,
  719. #config_state_extensions tr:hover td,
  720. #available_extensions tr:hover td {
  721. background: rgba(0, 0, 0, 0.15);
  722. }
  723. .dark #extensions tr:hover td ,
  724. .dark #config_state_extensions tr:hover td ,
  725. .dark #available_extensions tr:hover td {
  726. background: rgba(255, 255, 255, 0.15);
  727. }
  728. /* replace original footer with ours */
  729. footer {
  730. display: none !important;
  731. }
  732. #footer{
  733. text-align: center;
  734. }
  735. #footer div{
  736. display: inline-block;
  737. }
  738. #footer .versions{
  739. font-size: 85%;
  740. opacity: 0.85;
  741. }
  742. /* extra networks UI */
  743. .extra-page > div.gap{
  744. gap: 0;
  745. }
  746. .extra-page-prompts{
  747. margin-bottom: 0;
  748. }
  749. .extra-page-prompts.extra-page-prompts-active{
  750. margin-bottom: 1em;
  751. }
  752. .extra-networks > div.tab-nav{
  753. min-height: 2.7rem;
  754. }
  755. .extra-networks-controls-div{
  756. align-self: center;
  757. margin-left: auto;
  758. }
  759. .extra-networks > div > [id *= '_extra_']{
  760. margin: 0.3em;
  761. }
  762. .extra-networks .tab-nav .search,
  763. .extra-networks .tab-nav .sort
  764. {
  765. margin: 0.3em;
  766. align-self: center;
  767. width: auto;
  768. }
  769. .extra-networks .tab-nav .search {
  770. width: 16em;
  771. max-width: 16em;
  772. }
  773. .extra-networks .tab-nav .sort {
  774. width: 12em;
  775. max-width: 12em;
  776. }
  777. #txt2img_extra_view, #img2img_extra_view {
  778. width: auto;
  779. }
  780. .extra-network-pane .nocards{
  781. margin: 1.25em 0.5em 0.5em 0.5em;
  782. }
  783. .extra-network-pane .nocards h1{
  784. font-size: 1.5em;
  785. margin-bottom: 1em;
  786. }
  787. .extra-network-pane .nocards li{
  788. margin-left: 0.5em;
  789. }
  790. .extra-network-pane .card .button-row{
  791. display: inline-flex;
  792. visibility: hidden;
  793. color: white;
  794. }
  795. .extra-network-pane .card .button-row {
  796. position: absolute;
  797. right: 0;
  798. z-index: 1;
  799. }
  800. .extra-network-pane .card:hover .button-row{
  801. visibility: visible;
  802. }
  803. .extra-network-pane .card-button{
  804. color: white;
  805. }
  806. .extra-network-pane .copy-path-button::before {
  807. content: "⎘";
  808. }
  809. .extra-network-pane .metadata-button::before{
  810. content: "🛈";
  811. }
  812. .extra-network-pane .edit-button::before{
  813. content: "🛠";
  814. }
  815. .extra-network-pane .card-button {
  816. width: 1.5em;
  817. text-shadow: 2px 2px 3px black;
  818. color: white;
  819. padding: 0.25em 0.1em;
  820. }
  821. .extra-network-pane .card-button:hover{
  822. color: red;
  823. }
  824. .extra-network-pane .card .card-button {
  825. font-size: 2rem;
  826. }
  827. .extra-network-pane .card-minimal .card-button {
  828. font-size: 1rem;
  829. }
  830. .standalone-card-preview.card .preview{
  831. position: absolute;
  832. object-fit: cover;
  833. width: 100%;
  834. height:100%;
  835. }
  836. .extra-network-pane .card, .standalone-card-preview.card{
  837. display: inline-block;
  838. margin: 0.5rem;
  839. width: 16rem;
  840. height: 24rem;
  841. box-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
  842. border-radius: 0.2rem;
  843. position: relative;
  844. background-size: auto 100%;
  845. background-position: center;
  846. overflow: hidden;
  847. cursor: pointer;
  848. background-image: url('./file=html/card-no-preview.png')
  849. }
  850. .extra-network-pane .card:hover{
  851. box-shadow: 0 0 2px 0.3em rgba(0, 128, 255, 0.35);
  852. }
  853. .extra-network-pane .card .actions .additional{
  854. display: none;
  855. }
  856. .extra-network-pane .card .actions{
  857. position: absolute;
  858. bottom: 0;
  859. left: 0;
  860. right: 0;
  861. padding: 0.5em;
  862. background: rgba(0,0,0,0.5);
  863. box-shadow: 0 0 0.25em 0.25em rgba(0,0,0,0.5);
  864. text-shadow: 0 0 0.2em black;
  865. }
  866. .extra-network-pane .card .actions *{
  867. color: white;
  868. }
  869. .extra-network-pane .card .actions .name{
  870. font-size: 1.7em;
  871. font-weight: bold;
  872. line-break: anywhere;
  873. }
  874. .extra-network-pane .card .actions .description {
  875. display: block;
  876. max-height: 3em;
  877. white-space: pre-wrap;
  878. line-height: 1.1;
  879. }
  880. .extra-network-pane .card .actions .description:hover {
  881. max-height: none;
  882. }
  883. .extra-network-pane .card .actions:hover .additional{
  884. display: block;
  885. }
  886. .extra-network-pane .card ul{
  887. margin: 0.25em 0 0.75em 0.25em;
  888. cursor: unset;
  889. }
  890. .extra-network-pane .card ul a{
  891. cursor: pointer;
  892. }
  893. .extra-network-pane .card ul a:hover{
  894. color: red;
  895. }
  896. .extra-network-pane .card .preview{
  897. position: absolute;
  898. object-fit: cover;
  899. width: 100%;
  900. height:100%;
  901. }
  902. div.block.gradio-box.edit-user-metadata {
  903. width: 56em;
  904. background: var(--body-background-fill);
  905. padding: 2em !important;
  906. }
  907. .edit-user-metadata .extra-network-name{
  908. font-size: 18pt;
  909. color: var(--body-text-color);
  910. }
  911. .edit-user-metadata .file-metadata{
  912. color: var(--body-text-color);
  913. }
  914. .edit-user-metadata .file-metadata th{
  915. text-align: left;
  916. }
  917. .edit-user-metadata .file-metadata th, .edit-user-metadata .file-metadata td{
  918. padding: 0.3em 1em;
  919. overflow-wrap: anywhere;
  920. word-break: break-word;
  921. }
  922. .edit-user-metadata .wrap.translucent{
  923. background: var(--body-background-fill);
  924. }
  925. .edit-user-metadata .gradio-highlightedtext span{
  926. word-break: break-word;
  927. }
  928. .edit-user-metadata-buttons{
  929. margin-top: 1.5em;
  930. }
  931. div.block.gradio-box.popup-dialog, .popup-dialog {
  932. width: 56em;
  933. background: var(--body-background-fill);
  934. padding: 2em !important;
  935. }
  936. div.block.gradio-box.popup-dialog > div:last-child, .popup-dialog > div:last-child{
  937. margin-top: 1em;
  938. }
  939. div.block.input-accordion{
  940. }
  941. .input-accordion-extra{
  942. flex: 0 0 auto !important;
  943. margin: 0 0.5em 0 auto;
  944. }
  945. div.accordions > div.input-accordion{
  946. min-width: fit-content !important;
  947. }
  948. div.accordions > div.gradio-accordion .label-wrap span{
  949. white-space: nowrap;
  950. margin-right: 0.25em;
  951. }
  952. div.accordions{
  953. gap: 0.5em;
  954. }
  955. div.accordions > div.input-accordion.input-accordion-open{
  956. flex: 1 auto;
  957. flex-flow: column;
  958. }
  959. /* sticky right hand columns */
  960. #img2img_results, #txt2img_results, #extras_results {
  961. position: sticky;
  962. top: 0.5em;
  963. }
  964. body.resizing {
  965. cursor: col-resize !important;
  966. }
  967. body.resizing * {
  968. pointer-events: none !important;
  969. }
  970. body.resizing .resize-handle {
  971. pointer-events: initial !important;
  972. }
  973. .resize-handle {
  974. position: relative;
  975. cursor: col-resize;
  976. grid-column: 2 / 3;
  977. min-width: 16px !important;
  978. max-width: 16px !important;
  979. height: 100%;
  980. }
  981. .resize-handle::after {
  982. content: '';
  983. position: absolute;
  984. top: 0;
  985. bottom: 0;
  986. left: 7.5px;
  987. border-left: 1px dashed var(--border-color-primary);
  988. }
  989. /* ========================= */
  990. .extra-network-pane {
  991. display: flex;
  992. height: calc(100vh - 24rem);
  993. resize: vertical;
  994. min-height: 52rem;
  995. flex-direction: column;
  996. overflow: hidden;
  997. }
  998. .extra-network-pane .extra-network-pane-content-dirs {
  999. display: flex;
  1000. flex: 1;
  1001. flex-direction: column;
  1002. overflow: hidden;
  1003. }
  1004. .extra-network-pane .extra-network-pane-content-tree {
  1005. display: flex;
  1006. flex: 1;
  1007. overflow: hidden;
  1008. }
  1009. .extra-network-dirs-hidden .extra-network-dirs{ display: none; }
  1010. .extra-network-dirs-hidden .extra-network-tree{ display: none; }
  1011. .extra-network-dirs-hidden .resize-handle { display: none; }
  1012. .extra-network-dirs-hidden .resize-handle-row { display: flex !important; }
  1013. .extra-network-pane .extra-network-tree {
  1014. flex: 1;
  1015. font-size: 1rem;
  1016. border: 1px solid var(--block-border-color);
  1017. overflow: clip auto !important;
  1018. }
  1019. .extra-network-pane .extra-network-cards {
  1020. flex: 3;
  1021. overflow: clip auto !important;
  1022. border: 1px solid var(--block-border-color);
  1023. }
  1024. .extra-network-pane .extra-network-tree .tree-list {
  1025. flex: 1;
  1026. display: flex;
  1027. flex-direction: column;
  1028. padding: 0;
  1029. width: 100%;
  1030. overflow: hidden;
  1031. }
  1032. .extra-network-pane .extra-network-cards::-webkit-scrollbar,
  1033. .extra-network-pane .extra-network-tree::-webkit-scrollbar {
  1034. background-color: transparent;
  1035. width: 16px;
  1036. }
  1037. .extra-network-pane .extra-network-cards::-webkit-scrollbar-track,
  1038. .extra-network-pane .extra-network-tree::-webkit-scrollbar-track {
  1039. background-color: transparent;
  1040. background-clip: content-box;
  1041. }
  1042. .extra-network-pane .extra-network-cards::-webkit-scrollbar-thumb,
  1043. .extra-network-pane .extra-network-tree::-webkit-scrollbar-thumb {
  1044. background-color: var(--border-color-primary);
  1045. border-radius: 16px;
  1046. border: 4px solid var(--background-fill-primary);
  1047. }
  1048. .extra-network-pane .extra-network-cards::-webkit-scrollbar-button,
  1049. .extra-network-pane .extra-network-tree::-webkit-scrollbar-button {
  1050. display: none;
  1051. }
  1052. .extra-network-control {
  1053. position: relative;
  1054. display: flex;
  1055. width: 100%;
  1056. padding: 0 !important;
  1057. margin-top: 0 !important;
  1058. margin-bottom: 0 !important;
  1059. font-size: 1rem;
  1060. text-align: left;
  1061. user-select: none;
  1062. background-color: transparent;
  1063. border: none;
  1064. transition: background 33.333ms linear;
  1065. grid-template-rows: min-content;
  1066. grid-template-columns: minmax(0, auto) repeat(4, min-content);
  1067. grid-gap: 0.1rem;
  1068. align-items: start;
  1069. }
  1070. .extra-network-control small{
  1071. color: var(--input-placeholder-color);
  1072. line-height: 2.2rem;
  1073. margin: 0 0.5rem 0 0.75rem;
  1074. }
  1075. .extra-network-tree .tree-list--tree {}
  1076. /* Remove auto indentation from tree. Will be overridden later. */
  1077. .extra-network-tree .tree-list--subgroup {
  1078. margin: 0 !important;
  1079. padding: 0 !important;
  1080. box-shadow: 0.5rem 0 0 var(--body-background-fill) inset,
  1081. 0.7rem 0 0 var(--neutral-800) inset;
  1082. }
  1083. /* Set indentation for each depth of tree. */
  1084. .extra-network-tree .tree-list--subgroup > .tree-list-item {
  1085. margin-left: 0.4rem !important;
  1086. padding-left: 0.4rem !important;
  1087. }
  1088. /* Styles for tree <li> elements. */
  1089. .extra-network-tree .tree-list-item {
  1090. list-style: none;
  1091. position: relative;
  1092. background-color: transparent;
  1093. }
  1094. /* Directory <ul> visibility based on data-expanded attribute. */
  1095. .extra-network-tree .tree-list-content+.tree-list--subgroup {
  1096. height: 0;
  1097. visibility: hidden;
  1098. opacity: 0;
  1099. }
  1100. .extra-network-tree .tree-list-content[data-expanded]+.tree-list--subgroup {
  1101. height: auto;
  1102. visibility: visible;
  1103. opacity: 1;
  1104. }
  1105. /* File <li> */
  1106. .extra-network-tree .tree-list-item--subitem {
  1107. padding-top: 0 !important;
  1108. padding-bottom: 0 !important;
  1109. margin-top: 0 !important;
  1110. margin-bottom: 0 !important;
  1111. }
  1112. /* <li> containing <ul> */
  1113. .extra-network-tree .tree-list-item--has-subitem {}
  1114. /* BUTTON ELEMENTS */
  1115. /* <button> */
  1116. .extra-network-tree .tree-list-content {
  1117. position: relative;
  1118. display: grid;
  1119. width: 100%;
  1120. padding: 0 !important;
  1121. margin-top: 0 !important;
  1122. margin-bottom: 0 !important;
  1123. font-size: 1rem;
  1124. text-align: left;
  1125. user-select: none;
  1126. background-color: transparent;
  1127. border: none;
  1128. transition: background 33.333ms linear;
  1129. grid-template-rows: min-content;
  1130. grid-template-areas: "leading-action leading-visual label trailing-visual trailing-action";
  1131. grid-template-columns: min-content min-content minmax(0, auto) min-content min-content;
  1132. grid-gap: 0.1rem;
  1133. align-items: start;
  1134. flex-grow: 1;
  1135. flex-basis: 100%;
  1136. }
  1137. /* Buttons for directories. */
  1138. .extra-network-tree .tree-list-content-dir {}
  1139. /* Buttons for files. */
  1140. .extra-network-tree .tree-list-item--has-subitem .tree-list--subgroup > li:first-child {
  1141. padding-top: 0.5rem !important;
  1142. }
  1143. .dark .extra-network-tree div.tree-list-content:hover {
  1144. -webkit-transition: all 0.05s ease-in-out;
  1145. transition: all 0.05s ease-in-out;
  1146. background-color: var(--neutral-800);
  1147. }
  1148. .dark .extra-network-tree div.tree-list-content[data-selected] {
  1149. background-color: var(--neutral-700);
  1150. }
  1151. .extra-network-tree div.tree-list-content[data-selected] {
  1152. background-color: var(--neutral-300);
  1153. }
  1154. .extra-network-tree div.tree-list-content:hover {
  1155. -webkit-transition: all 0.05s ease-in-out;
  1156. transition: all 0.05s ease-in-out;
  1157. background-color: var(--neutral-200);
  1158. }
  1159. /* ==== CHEVRON ICON ACTIONS ==== */
  1160. /* Define the animation for the arrow when it is clicked. */
  1161. .extra-network-tree .tree-list-content-dir .tree-list-item-action-chevron {
  1162. -ms-transform: rotate(135deg);
  1163. -webkit-transform: rotate(135deg);
  1164. transform: rotate(135deg);
  1165. transition: transform 0.2s;
  1166. }
  1167. .extra-network-tree .tree-list-content-dir[data-expanded] .tree-list-item-action-chevron {
  1168. -ms-transform: rotate(225deg);
  1169. -webkit-transform: rotate(225deg);
  1170. transform: rotate(225deg);
  1171. transition: transform 0.2s;
  1172. }
  1173. .tree-list-item-action-chevron {
  1174. display: inline-flex;
  1175. /* Uses box shadow to generate a pseudo chevron `>` icon. */
  1176. padding: 0.3rem;
  1177. box-shadow: 0.1rem 0.1rem 0 0 var(--neutral-200) inset;
  1178. transform: rotate(135deg);
  1179. }
  1180. /* ==== SEARCH INPUT ACTIONS ==== */
  1181. /* Add icon to left side of <input> */
  1182. .extra-network-control .extra-network-control--search::before {
  1183. content: "🔎︎";
  1184. position: absolute;
  1185. margin: 0.5rem;
  1186. font-size: 1rem;
  1187. color: var(--input-placeholder-color);
  1188. }
  1189. .extra-network-control .extra-network-control--search {
  1190. display: inline-flex;
  1191. position: relative;
  1192. }
  1193. .extra-network-control .extra-network-control--search .extra-network-control--search-text {
  1194. border: 1px solid var(--button-secondary-border-color);
  1195. border-radius: 0.5rem;
  1196. color: var(--button-secondary-text-color);
  1197. background-color: transparent;
  1198. width: 100%;
  1199. padding-left: 2rem;
  1200. line-height: 1rem;
  1201. }
  1202. .extra-network-control .extra-network-control--search .extra-network-control--search-text::placeholder {
  1203. color: var(--input-placeholder-color);
  1204. }
  1205. /* <input> clear button (x on right side) styling */
  1206. .extra-network-control .extra-network-control--search .extra-network-control--search-text::-webkit-search-cancel-button {
  1207. -webkit-appearance: none;
  1208. appearance: none;
  1209. cursor: pointer;
  1210. height: 1rem;
  1211. width: 1rem;
  1212. mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
  1213. mask-repeat: no-repeat;
  1214. mask-position: center center;
  1215. mask-size: 100%;
  1216. background-color: var(--input-placeholder-color);
  1217. }
  1218. /* ==== SORT ICON ACTIONS ==== */
  1219. .extra-network-control .extra-network-control--sort {
  1220. padding: 0.25rem;
  1221. display: inline-flex;
  1222. cursor: pointer;
  1223. justify-self: center;
  1224. align-self: center;
  1225. }
  1226. .extra-network-control .extra-network-control--sort .extra-network-control--sort-icon {
  1227. height: 1.5rem;
  1228. width: 1.5rem;
  1229. mask-repeat: no-repeat;
  1230. mask-position: center center;
  1231. mask-size: 100%;
  1232. background-color: var(--input-placeholder-color);
  1233. }
  1234. .extra-network-control .extra-network-control--sort[data-sortkey="default"] .extra-network-control--sort-icon {
  1235. mask-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 5C1 3.34315 2.34315 2 4 2H8.43845C9.81505 2 11.015 2.93689 11.3489 4.27239L11.7808 6H13.5H20C21.6569 6 23 7.34315 23 9V11C23 11.5523 22.5523 12 22 12C21.4477 12 21 11.5523 21 11V9C21 8.44772 20.5523 8 20 8H13.5H11.7808H4C3.44772 8 3 8.44772 3 9V10V19C3 19.5523 3.44772 20 4 20H9C9.55228 20 10 20.4477 10 21C10 21.5523 9.55228 22 9 22H4C2.34315 22 1 20.6569 1 19V10V9V5ZM3 6.17071C3.31278 6.06015 3.64936 6 4 6H9.71922L9.40859 4.75746C9.2973 4.3123 8.89732 4 8.43845 4H4C3.44772 4 3 4.44772 3 5V6.17071ZM20.1716 18.7574C20.6951 17.967 21 17.0191 21 16C21 13.2386 18.7614 11 16 11C13.2386 11 11 13.2386 11 16C11 18.7614 13.2386 21 16 21C17.0191 21 17.967 20.6951 18.7574 20.1716L21.2929 22.7071C21.6834 23.0976 22.3166 23.0976 22.7071 22.7071C23.0976 22.3166 23.0976 21.6834 22.7071 21.2929L20.1716 18.7574ZM13 16C13 14.3431 14.3431 13 16 13C17.6569 13 19 14.3431 19 16C19 17.6569 17.6569 19 16 19C14.3431 19 13 17.6569 13 16Z" fill="%23000000"></path></g></svg>');
  1236. }
  1237. .extra-network-control .extra-network-control--sort[data-sortkey="name"] .extra-network-control--sort-icon {
  1238. mask-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill-rule="evenodd" clip-rule="evenodd" d="M17.1841 6.69223C17.063 6.42309 16.7953 6.25 16.5002 6.25C16.2051 6.25 15.9374 6.42309 15.8162 6.69223L11.3162 16.6922C11.1463 17.07 11.3147 17.514 11.6924 17.6839C12.0701 17.8539 12.5141 17.6855 12.6841 17.3078L14.1215 14.1136H18.8789L20.3162 17.3078C20.4862 17.6855 20.9302 17.8539 21.308 17.6839C21.6857 17.514 21.8541 17.07 21.6841 16.6922L17.1841 6.69223ZM16.5002 8.82764L14.7965 12.6136H18.2039L16.5002 8.82764Z" fill="%231C274C"></path><path opacity="0.5" fill-rule="evenodd" clip-rule="evenodd" d="M2.25 7C2.25 6.58579 2.58579 6.25 3 6.25H13C13.4142 6.25 13.75 6.58579 13.75 7C13.75 7.41421 13.4142 7.75 13 7.75H3C2.58579 7.75 2.25 7.41421 2.25 7Z" fill="%231C274C"></path><path opacity="0.5" d="M2.25 12C2.25 11.5858 2.58579 11.25 3 11.25H10C10.4142 11.25 10.75 11.5858 10.75 12C10.75 12.4142 10.4142 12.75 10 12.75H3C2.58579 12.75 2.25 12.4142 2.25 12Z" fill="%231C274C"></path><path opacity="0.5" d="M2.25 17C2.25 16.5858 2.58579 16.25 3 16.25H8C8.41421 16.25 8.75 16.5858 8.75 17C8.75 17.4142 8.41421 17.75 8 17.75H3C2.58579 17.75 2.25 17.4142 2.25 17Z" fill="%231C274C"></path></g></svg>');
  1239. }
  1240. .extra-network-control .extra-network-control--sort[data-sortkey="date_created"] .extra-network-control--sort-icon {
  1241. mask-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M17 11C14.2386 11 12 13.2386 12 16C12 18.7614 14.2386 21 17 21C19.7614 21 22 18.7614 22 16C22 13.2386 19.7614 11 17 11ZM17 11V9M2 9V15.8C2 16.9201 2 17.4802 2.21799 17.908C2.40973 18.2843 2.71569 18.5903 3.09202 18.782C3.51984 19 4.0799 19 5.2 19H13M2 9V8.2C2 7.0799 2 6.51984 2.21799 6.09202C2.40973 5.71569 2.71569 5.40973 3.09202 5.21799C3.51984 5 4.0799 5 5.2 5H13.8C14.9201 5 15.4802 5 15.908 5.21799C16.2843 5.40973 16.5903 5.71569 16.782 6.09202C17 6.51984 17 7.0799 17 8.2V9M2 9H17M5 3V5M14 3V5M15 16H17M17 16H19M17 16V14M17 16V18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>');
  1242. }
  1243. .extra-network-control .extra-network-control--sort[data-sortkey="date_modified"] .extra-network-control--sort-icon {
  1244. mask-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M10 21H6.2C5.0799 21 4.51984 21 4.09202 20.782C3.71569 20.5903 3.40973 20.2843 3.21799 19.908C3 19.4802 3 18.9201 3 17.8V8.2C3 7.0799 3 6.51984 3.21799 6.09202C3.40973 5.71569 3.71569 5.40973 4.09202 5.21799C4.51984 5 5.0799 5 6.2 5H17.8C18.9201 5 19.4802 5 19.908 5.21799C20.2843 5.40973 20.5903 5.71569 20.782 6.09202C21 6.51984 21 7.0799 21 8.2V10M7 3V5M17 3V5M3 9H21M13.5 13.0001L7 13M10 17.0001L7 17M14 21L16.025 20.595C16.2015 20.5597 16.2898 20.542 16.3721 20.5097C16.4452 20.4811 16.5147 20.4439 16.579 20.399C16.6516 20.3484 16.7152 20.2848 16.8426 20.1574L21 16C21.5523 15.4477 21.5523 14.5523 21 14C20.4477 13.4477 19.5523 13.4477 19 14L14.8426 18.1574C14.7152 18.2848 14.6516 18.3484 14.601 18.421C14.5561 18.4853 14.5189 18.5548 14.4903 18.6279C14.458 18.7102 14.4403 18.7985 14.405 18.975L14 21Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>');
  1245. }
  1246. /* ==== SORT DIRECTION ICON ACTIONS ==== */
  1247. .extra-network-control .extra-network-control--sort-dir {
  1248. padding: 0.25rem;
  1249. display: inline-flex;
  1250. cursor: pointer;
  1251. justify-self: center;
  1252. align-self: center;
  1253. }
  1254. .extra-network-control .extra-network-control--sort-dir .extra-network-control--sort-dir-icon {
  1255. height: 1.5rem;
  1256. width: 1.5rem;
  1257. mask-repeat: no-repeat;
  1258. mask-position: center center;
  1259. mask-size: 100%;
  1260. background-color: var(--input-placeholder-color);
  1261. }
  1262. .extra-network-control .extra-network-control--sort-dir[data-sortdir="Ascending"] .extra-network-control--sort-dir-icon {
  1263. mask-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M13 12H21M13 8H21M13 16H21M6 7V17M6 7L3 10M6 7L9 10" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>');
  1264. }
  1265. .extra-network-control .extra-network-control--sort-dir[data-sortdir="Descending"] .extra-network-control--sort-dir-icon {
  1266. mask-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M13 12H21M13 8H21M13 16H21M6 7V17M6 17L3 14M6 17L9 14" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>');
  1267. }
  1268. /* ==== TREE VIEW ICON ACTIONS ==== */
  1269. .extra-network-control .extra-network-control--tree-view {
  1270. padding: 0.25rem;
  1271. display: inline-flex;
  1272. cursor: pointer;
  1273. justify-self: center;
  1274. align-self: center;
  1275. }
  1276. .extra-network-control .extra-network-control--tree-view .extra-network-control--tree-view-icon {
  1277. height: 1.5rem;
  1278. width: 1.5rem;
  1279. mask-image: url('data:image/svg+xml,<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="black"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill="black" d="M16 10v-4h-11v1h-2v-3h9v-4h-12v4h2v10h3v2h11v-4h-11v1h-2v-5h2v2z"></path></g></svg>');
  1280. mask-repeat: no-repeat;
  1281. mask-position: center center;
  1282. mask-size: 100%;
  1283. background-color: var(--input-placeholder-color);
  1284. }
  1285. .extra-network-control .extra-network-control--enabled {
  1286. background-color: rgba(0, 0, 0, 0.1);
  1287. border-radius: 0.25rem;
  1288. }
  1289. .dark .extra-network-control .extra-network-control--enabled {
  1290. background-color: rgba(255, 255, 255, 0.15);
  1291. }
  1292. .extra-network-control .extra-network-control--enabled .extra-network-control--icon{
  1293. background-color: var(--button-secondary-text-color);
  1294. }
  1295. /* ==== REFRESH ICON ACTIONS ==== */
  1296. .extra-network-control .extra-network-control--refresh {
  1297. padding: 0.25rem;
  1298. display: inline-flex;
  1299. cursor: pointer;
  1300. justify-self: center;
  1301. align-self: center;
  1302. }
  1303. .extra-network-control .extra-network-control--refresh .extra-network-control--refresh-icon {
  1304. height: 1.5rem;
  1305. width: 1.5rem;
  1306. mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="bevel"><path d="M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38"/></svg>');
  1307. mask-repeat: no-repeat;
  1308. mask-position: center center;
  1309. mask-size: 100%;
  1310. background-color: var(--input-placeholder-color);
  1311. }
  1312. .extra-network-control .extra-network-control--refresh-icon:active {
  1313. -ms-transform: rotate(180deg);
  1314. -webkit-transform: rotate(180deg);
  1315. transform: rotate(180deg);
  1316. transition: transform 0.2s;
  1317. }
  1318. /* ==== TREE GRID CONFIG ==== */
  1319. /* Text for button. */
  1320. .extra-network-tree .tree-list-item-label {
  1321. position: relative;
  1322. line-height: 1.25rem;
  1323. color: var(--button-secondary-text-color);
  1324. grid-area: label;
  1325. padding-left: 0.5rem;
  1326. }
  1327. /* Text for button truncated. */
  1328. .extra-network-tree .tree-list-item-label--truncate {
  1329. overflow: hidden;
  1330. text-overflow: ellipsis;
  1331. white-space: nowrap;
  1332. }
  1333. /* Icon for button. */
  1334. .extra-network-tree .tree-list-item-visual {
  1335. min-height: 1rem;
  1336. color: var(--button-secondary-text-color);
  1337. pointer-events: none;
  1338. align-items: right;
  1339. }
  1340. /* Icon for button when it is before label. */
  1341. .extra-network-tree .tree-list-item-visual--leading {
  1342. grid-area: leading-visual;
  1343. width: 1rem;
  1344. text-align: right;
  1345. }
  1346. /* Icon for button when it is after label. */
  1347. .extra-network-tree .tree-list-item-visual--trailing {
  1348. grid-area: trailing-visual;
  1349. width: 1rem;
  1350. text-align: right;
  1351. }
  1352. /* Dropdown arrow for button. */
  1353. .extra-network-tree .tree-list-item-action--leading {
  1354. margin-right: 0.5rem;
  1355. margin-left: 0.2rem;
  1356. }
  1357. .extra-network-tree .tree-list-content-file .tree-list-item-action--leading {
  1358. visibility: hidden;
  1359. }
  1360. .extra-network-tree .tree-list-item-action--leading {
  1361. grid-area: leading-action;
  1362. }
  1363. .extra-network-tree .tree-list-item-action--trailing {
  1364. grid-area: trailing-action;
  1365. display: inline-flex;
  1366. }
  1367. .extra-network-tree .tree-list-content .button-row {
  1368. display: inline-flex;
  1369. visibility: hidden;
  1370. color: var(--button-secondary-text-color);
  1371. width: 0;
  1372. }
  1373. .extra-network-tree .tree-list-content:hover .button-row {
  1374. visibility: visible;
  1375. width: auto;
  1376. }