style.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959
  1. /* temporary fix to load default gradio font in frontend instead of backend */
  2. @import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');
  3. /* general gradio fixes */
  4. :root, .dark{
  5. --checkbox-label-gap: 0.25em 0.1em;
  6. --section-header-text-size: 12pt;
  7. --block-background-fill: transparent;
  8. }
  9. .block.padded:not(.gradio-accordion) {
  10. padding: 0 !important;
  11. }
  12. div.gradio-container{
  13. max-width: unset !important;
  14. }
  15. .hidden{
  16. display: none;
  17. }
  18. .compact{
  19. background: transparent !important;
  20. padding: 0 !important;
  21. }
  22. div.form{
  23. border-width: 0;
  24. box-shadow: none;
  25. background: transparent;
  26. overflow: visible;
  27. gap: 0.5em;
  28. }
  29. .block.gradio-dropdown,
  30. .block.gradio-slider,
  31. .block.gradio-checkbox,
  32. .block.gradio-textbox,
  33. .block.gradio-radio,
  34. .block.gradio-checkboxgroup,
  35. .block.gradio-number,
  36. .block.gradio-colorpicker
  37. {
  38. border-width: 0 !important;
  39. box-shadow: none !important;
  40. }
  41. .gap.compact{
  42. padding: 0;
  43. gap: 0.2em 0;
  44. }
  45. div.compact{
  46. gap: 1em;
  47. }
  48. .gradio-dropdown label span:not(.has-info),
  49. .gradio-textbox label span:not(.has-info),
  50. .gradio-number label span:not(.has-info)
  51. {
  52. margin-bottom: 0;
  53. }
  54. .gradio-dropdown ul.options{
  55. z-index: 3000;
  56. min-width: fit-content;
  57. max-width: inherit;
  58. white-space: nowrap;
  59. }
  60. .gradio-dropdown ul.options li.item {
  61. padding: 0.05em 0;
  62. }
  63. .gradio-dropdown ul.options li.item.selected {
  64. background-color: var(--neutral-100);
  65. }
  66. .dark .gradio-dropdown ul.options li.item.selected {
  67. background-color: var(--neutral-900);
  68. }
  69. .gradio-dropdown div.wrap.wrap.wrap.wrap{
  70. box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  71. }
  72. .gradio-dropdown:not(.multiselect) .wrap-inner.wrap-inner.wrap-inner{
  73. flex-wrap: unset;
  74. }
  75. .gradio-dropdown .single-select{
  76. white-space: nowrap;
  77. overflow: hidden;
  78. }
  79. .gradio-dropdown .token-remove.remove-all.remove-all{
  80. display: none;
  81. }
  82. .gradio-dropdown.multiselect .token-remove.remove-all.remove-all{
  83. display: flex;
  84. }
  85. .gradio-slider input[type="number"]{
  86. width: 6em;
  87. }
  88. .block.gradio-checkbox {
  89. margin: 0.75em 1.5em 0 0;
  90. }
  91. .gradio-html div.wrap{
  92. height: 100%;
  93. }
  94. div.gradio-html.min{
  95. min-height: 0;
  96. }
  97. .block.gradio-gallery{
  98. background: var(--input-background-fill);
  99. }
  100. .gradio-container .prose a, .gradio-container .prose a:visited{
  101. color: unset;
  102. text-decoration: none;
  103. }
  104. a{
  105. font-weight: bold;
  106. cursor: pointer;
  107. }
  108. /* general styled components */
  109. .gradio-button.tool{
  110. max-width: 2.2em;
  111. min-width: 2.2em !important;
  112. height: 2.4em;
  113. align-self: end;
  114. line-height: 1em;
  115. border-radius: 0.5em;
  116. }
  117. .gradio-button.secondary-down{
  118. background: var(--button-secondary-background-fill);
  119. color: var(--button-secondary-text-color);
  120. }
  121. .gradio-button.secondary-down, .gradio-button.secondary-down:hover{
  122. box-shadow: 1px 1px 1px rgba(0,0,0,0.25) inset, 0px 0px 3px rgba(0,0,0,0.15) inset;
  123. }
  124. .gradio-button.secondary-down:hover{
  125. background: var(--button-secondary-background-fill-hover);
  126. color: var(--button-secondary-text-color-hover);
  127. }
  128. .checkboxes-row{
  129. margin-bottom: 0.5em;
  130. margin-left: 0em;
  131. }
  132. .checkboxes-row > div{
  133. flex: 0;
  134. white-space: nowrap;
  135. min-width: auto;
  136. }
  137. button.custom-button{
  138. border-radius: var(--button-large-radius);
  139. padding: var(--button-large-padding);
  140. font-weight: var(--button-large-text-weight);
  141. border: var(--button-border-width) solid var(--button-secondary-border-color);
  142. background: var(--button-secondary-background-fill);
  143. color: var(--button-secondary-text-color);
  144. font-size: var(--button-large-text-size);
  145. display: inline-flex;
  146. justify-content: center;
  147. align-items: center;
  148. transition: var(--button-transition);
  149. box-shadow: var(--button-shadow);
  150. text-align: center;
  151. }
  152. /* txt2img/img2img specific */
  153. .block.token-counter{
  154. position: absolute;
  155. display: inline-block;
  156. right: 1em;
  157. min-width: 0 !important;
  158. width: auto;
  159. z-index: 100;
  160. top: -0.75em;
  161. }
  162. .block.token-counter span{
  163. background: var(--input-background-fill) !important;
  164. 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);
  165. border: 2px solid rgba(192,192,192,0.4) !important;
  166. border-radius: 0.4em;
  167. }
  168. .block.token-counter.error span{
  169. 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);
  170. border: 2px solid rgba(255,0,0,0.4) !important;
  171. }
  172. .block.token-counter div{
  173. display: inline;
  174. }
  175. .block.token-counter span{
  176. padding: 0.1em 0.75em;
  177. }
  178. [id$=_subseed_show]{
  179. min-width: auto !important;
  180. flex-grow: 0 !important;
  181. display: flex;
  182. }
  183. [id$=_subseed_show] label{
  184. margin-bottom: 0.5em;
  185. align-self: end;
  186. }
  187. .performance {
  188. font-size: 0.85em;
  189. color: #444;
  190. }
  191. .performance p{
  192. display: inline-block;
  193. }
  194. .performance .time {
  195. margin-right: 0;
  196. }
  197. .performance .vram {
  198. }
  199. #txt2img_generate, #img2img_generate {
  200. min-height: 4.5em;
  201. }
  202. @media screen and (min-width: 2500px) {
  203. #txt2img_gallery, #img2img_gallery {
  204. min-height: 768px;
  205. }
  206. }
  207. #txt2img_gallery img, #img2img_gallery img, #extras_gallery img{
  208. object-fit: scale-down;
  209. }
  210. #txt2img_actions_column, #img2img_actions_column {
  211. gap: 0.5em;
  212. }
  213. #txt2img_tools, #img2img_tools{
  214. gap: 0.4em;
  215. }
  216. .interrogate-col{
  217. min-width: 0 !important;
  218. max-width: fit-content;
  219. gap: 0.5em;
  220. }
  221. .interrogate-col > button{
  222. flex: 1;
  223. }
  224. .generate-box{
  225. position: relative;
  226. }
  227. .gradio-button.generate-box-skip, .gradio-button.generate-box-interrupt{
  228. position: absolute;
  229. width: 50%;
  230. height: 100%;
  231. display: none;
  232. background: #b4c0cc;
  233. }
  234. .gradio-button.generate-box-skip:hover, .gradio-button.generate-box-interrupt:hover{
  235. background: #c2cfdb;
  236. }
  237. .gradio-button.generate-box-interrupt{
  238. left: 0;
  239. border-radius: 0.5rem 0 0 0.5rem;
  240. }
  241. .gradio-button.generate-box-skip{
  242. right: 0;
  243. border-radius: 0 0.5rem 0.5rem 0;
  244. }
  245. #txtimg_hr_finalres{
  246. min-height: 0 !important;
  247. padding: .625rem .75rem;
  248. margin-left: -0.75em
  249. }
  250. #img2img_scale_resolution_preview.block{
  251. display: flex;
  252. align-items: end;
  253. }
  254. #txtimg_hr_finalres .resolution, #img2img_scale_resolution_preview .resolution{
  255. font-weight: bold;
  256. }
  257. #txtimg_hr_finalres div.pending, #img2img_scale_resolution_preview div.pending {
  258. opacity: 1;
  259. transition: opacity 0s;
  260. }
  261. .inactive{
  262. opacity: 0.5;
  263. }
  264. [id$=_column_batch]{
  265. min-width: min(13.5em, 100%) !important;
  266. }
  267. div.dimensions-tools{
  268. min-width: 0 !important;
  269. max-width: fit-content;
  270. flex-direction: column;
  271. place-content: center;
  272. }
  273. div#extras_scale_to_tab div.form{
  274. flex-direction: row;
  275. }
  276. #img2img_sketch, #img2maskimg, #inpaint_sketch {
  277. overflow: overlay !important;
  278. resize: auto;
  279. background: var(--panel-background-fill);
  280. z-index: 5;
  281. }
  282. .image-buttons button{
  283. min-width: auto;
  284. }
  285. .infotext {
  286. overflow-wrap: break-word;
  287. }
  288. #img2img_column_batch{
  289. align-self: end;
  290. margin-bottom: 0.9em;
  291. }
  292. #img2img_unused_scale_by_slider{
  293. visibility: hidden;
  294. width: 0.5em;
  295. max-width: 0.5em;
  296. min-width: 0.5em;
  297. }
  298. /* settings */
  299. #quicksettings {
  300. width: fit-content;
  301. align-items: end;
  302. }
  303. #quicksettings > div, #quicksettings > fieldset{
  304. max-width: 24em;
  305. min-width: 24em;
  306. padding: 0;
  307. border: none;
  308. box-shadow: none;
  309. background: none;
  310. }
  311. #settings{
  312. display: block;
  313. }
  314. #settings > div{
  315. border: none;
  316. margin-left: 10em;
  317. }
  318. #settings > div.tab-nav{
  319. float: left;
  320. display: block;
  321. margin-left: 0;
  322. width: 10em;
  323. }
  324. #settings > div.tab-nav button{
  325. display: block;
  326. border: none;
  327. text-align: left;
  328. white-space: initial;
  329. }
  330. #settings_result{
  331. height: 1.4em;
  332. margin: 0 1.2em;
  333. }
  334. table.popup-table{
  335. background: white;
  336. border-collapse: collapse;
  337. margin: 1em;
  338. border: 4px solid white;
  339. }
  340. table.popup-table td{
  341. padding: 0.4em;
  342. border: 1px solid #ccc;
  343. max-width: 36em;
  344. }
  345. table.popup-table .muted{
  346. color: #aaa;
  347. }
  348. table.popup-table .link{
  349. text-decoration: underline;
  350. cursor: pointer;
  351. font-weight: bold;
  352. }
  353. .ui-defaults-none{
  354. color: #aaa !important;
  355. }
  356. #settings span{
  357. color: var(--body-text-color);
  358. }
  359. #settings .gradio-textbox, #settings .gradio-slider, #settings .gradio-number, #settings .gradio-dropdown, #settings .gradio-checkboxgroup, #settings .gradio-radio{
  360. margin-top: 0.75em;
  361. }
  362. #settings span .settings-comment {
  363. display: inline
  364. }
  365. .settings-comment a{
  366. text-decoration: underline;
  367. }
  368. .settings-comment .info{
  369. opacity: 0.75;
  370. }
  371. #sysinfo_download a.sysinfo_big_link{
  372. font-size: 24pt;
  373. }
  374. #sysinfo_download a{
  375. text-decoration: underline;
  376. }
  377. #sysinfo_validity{
  378. font-size: 18pt;
  379. }
  380. /* live preview */
  381. .progressDiv{
  382. position: relative;
  383. height: 20px;
  384. background: #b4c0cc;
  385. border-radius: 3px !important;
  386. margin-bottom: -3px;
  387. }
  388. .dark .progressDiv{
  389. background: #424c5b;
  390. }
  391. .progressDiv .progress{
  392. width: 0%;
  393. height: 20px;
  394. background: #0060df;
  395. color: white;
  396. font-weight: bold;
  397. line-height: 20px;
  398. padding: 0 8px 0 0;
  399. text-align: right;
  400. border-radius: 3px;
  401. overflow: visible;
  402. white-space: nowrap;
  403. padding: 0 0.5em;
  404. }
  405. .livePreview{
  406. position: absolute;
  407. z-index: 300;
  408. background-color: white;
  409. margin: -4px;
  410. }
  411. .dark .livePreview{
  412. background-color: rgb(17 24 39 / var(--tw-bg-opacity));
  413. }
  414. .livePreview img{
  415. position: absolute;
  416. object-fit: contain;
  417. width: 100%;
  418. height: 100%;
  419. }
  420. /* fullscreen popup (ie in Lora's (i) button) */
  421. .popup-metadata{
  422. color: black;
  423. background: white;
  424. display: inline-block;
  425. padding: 1em;
  426. white-space: pre-wrap;
  427. }
  428. .global-popup{
  429. display: flex;
  430. position: fixed;
  431. z-index: 1001;
  432. left: 0;
  433. top: 0;
  434. width: 100%;
  435. height: 100%;
  436. overflow: auto;
  437. background-color: rgba(20, 20, 20, 0.95);
  438. }
  439. .global-popup-close:before {
  440. content: "×";
  441. }
  442. .global-popup-close{
  443. position: fixed;
  444. right: 0.25em;
  445. top: 0;
  446. cursor: pointer;
  447. color: white;
  448. font-size: 32pt;
  449. }
  450. .global-popup-inner{
  451. display: inline-block;
  452. margin: auto;
  453. padding: 2em;
  454. }
  455. /* fullpage image viewer */
  456. #lightboxModal{
  457. display: none;
  458. position: fixed;
  459. z-index: 1001;
  460. left: 0;
  461. top: 0;
  462. width: 100%;
  463. height: 100%;
  464. overflow: auto;
  465. background-color: rgba(20, 20, 20, 0.95);
  466. user-select: none;
  467. -webkit-user-select: none;
  468. flex-direction: column;
  469. }
  470. .modalControls {
  471. display: flex;
  472. gap: 1em;
  473. padding: 1em;
  474. background-color: rgba(0,0,0,0.2);
  475. }
  476. .modalClose {
  477. margin-left: auto;
  478. }
  479. .modalControls span{
  480. color: white;
  481. font-size: 35px;
  482. font-weight: bold;
  483. cursor: pointer;
  484. width: 1em;
  485. }
  486. .modalControls span:hover, .modalControls span:focus{
  487. color: #999;
  488. text-decoration: none;
  489. }
  490. #lightboxModal > img {
  491. display: block;
  492. margin: auto;
  493. width: auto;
  494. }
  495. #lightboxModal > img.modalImageFullscreen{
  496. object-fit: contain;
  497. height: 100%;
  498. width: 100%;
  499. min-height: 0;
  500. }
  501. .modalPrev,
  502. .modalNext {
  503. cursor: pointer;
  504. position: absolute;
  505. top: 50%;
  506. width: auto;
  507. padding: 16px;
  508. margin-top: -50px;
  509. color: white;
  510. font-weight: bold;
  511. font-size: 20px;
  512. transition: 0.6s ease;
  513. border-radius: 0 3px 3px 0;
  514. user-select: none;
  515. -webkit-user-select: none;
  516. }
  517. .modalNext {
  518. right: 0;
  519. border-radius: 3px 0 0 3px;
  520. }
  521. .modalPrev:hover,
  522. .modalNext:hover {
  523. background-color: rgba(0, 0, 0, 0.8);
  524. }
  525. #imageARPreview {
  526. position: absolute;
  527. top: 0px;
  528. left: 0px;
  529. border: 2px solid red;
  530. background: rgba(255, 0, 0, 0.3);
  531. z-index: 900;
  532. pointer-events: none;
  533. display: none;
  534. }
  535. /* context menu (ie for the generate button) */
  536. #context-menu{
  537. z-index:9999;
  538. position:absolute;
  539. display:block;
  540. padding:0px 0;
  541. border:2px solid #a55000;
  542. border-radius:8px;
  543. box-shadow:1px 1px 2px #CE6400;
  544. width: 200px;
  545. }
  546. .context-menu-items{
  547. list-style: none;
  548. margin: 0;
  549. padding: 0;
  550. }
  551. .context-menu-items a{
  552. display:block;
  553. padding:5px;
  554. cursor:pointer;
  555. }
  556. .context-menu-items a:hover{
  557. background: #a55000;
  558. }
  559. /* extensions */
  560. #tab_extensions table{
  561. border-collapse: collapse;
  562. }
  563. #tab_extensions table td, #tab_extensions table th{
  564. border: 1px solid #ccc;
  565. padding: 0.25em 0.5em;
  566. }
  567. #tab_extensions table input[type="checkbox"]{
  568. margin-right: 0.5em;
  569. appearance: checkbox;
  570. }
  571. #tab_extensions button{
  572. max-width: 16em;
  573. }
  574. #tab_extensions input[disabled="disabled"]{
  575. opacity: 0.5;
  576. }
  577. .extension-tag{
  578. font-weight: bold;
  579. font-size: 95%;
  580. }
  581. #available_extensions .info{
  582. margin: 0;
  583. }
  584. #available_extensions .date_added{
  585. opacity: 0.85;
  586. font-size: 90%;
  587. }
  588. /* replace original footer with ours */
  589. footer {
  590. display: none !important;
  591. }
  592. #footer{
  593. text-align: center;
  594. }
  595. #footer div{
  596. display: inline-block;
  597. }
  598. #footer .versions{
  599. font-size: 85%;
  600. opacity: 0.85;
  601. }
  602. /* extra networks UI */
  603. .extra-network-cards{
  604. height: 725px;
  605. overflow: scroll;
  606. resize: vertical;
  607. }
  608. .extra-networks > div > [id *= '_extra_']{
  609. margin: 0.3em;
  610. }
  611. .extra-network-subdirs{
  612. padding: 0.2em 0.35em;
  613. }
  614. .extra-network-subdirs button{
  615. margin: 0 0.15em;
  616. }
  617. .extra-networks .tab-nav .search,
  618. .extra-networks .tab-nav .sort,
  619. .extra-networks .tab-nav .sortorder{
  620. display: inline-block;
  621. margin: 0.3em;
  622. align-self: center;
  623. }
  624. .extra-networks .tab-nav .search {
  625. width: 16em;
  626. max-width: 16em;
  627. }
  628. .extra-networks .tab-nav .sort {
  629. width: 12em;
  630. max-width: 12em;
  631. }
  632. #txt2img_extra_view, #img2img_extra_view {
  633. width: auto;
  634. }
  635. .extra-network-cards .nocards, .extra-network-thumbs .nocards{
  636. margin: 1.25em 0.5em 0.5em 0.5em;
  637. }
  638. .extra-network-cards .nocards h1, .extra-network-thumbs .nocards h1{
  639. font-size: 1.5em;
  640. margin-bottom: 1em;
  641. }
  642. .extra-network-cards .nocards li, .extra-network-thumbs .nocards li{
  643. margin-left: 0.5em;
  644. }
  645. .extra-network-cards .card .metadata-button:before, .extra-network-thumbs .card .metadata-button:before{
  646. content: "🛈";
  647. }
  648. .extra-network-cards .card .metadata-button, .extra-network-thumbs .card .metadata-button{
  649. display: none;
  650. position: absolute;
  651. color: white;
  652. right: 0;
  653. }
  654. .extra-network-cards .card .metadata-button {
  655. text-shadow: 2px 2px 3px black;
  656. padding: 0.25em;
  657. font-size: 22pt;
  658. width: 1.5em;
  659. }
  660. .extra-network-thumbs .card .metadata-button {
  661. text-shadow: 1px 1px 2px black;
  662. padding: 0;
  663. font-size: 16pt;
  664. width: 1em;
  665. top: -0.25em;
  666. }
  667. .extra-network-cards .card:hover .metadata-button, .extra-network-thumbs .card:hover .metadata-button{
  668. display: inline-block;
  669. }
  670. .extra-network-cards .card .metadata-button:hover, .extra-network-thumbs .card .metadata-button:hover{
  671. color: red;
  672. }
  673. .extra-network-thumbs {
  674. display: flex;
  675. flex-flow: row wrap;
  676. gap: 10px;
  677. }
  678. .extra-network-thumbs .card {
  679. height: 6em;
  680. width: 6em;
  681. cursor: pointer;
  682. background-image: url('./file=html/card-no-preview.png');
  683. background-size: cover;
  684. background-position: center center;
  685. position: relative;
  686. }
  687. .extra-network-thumbs .card .preview{
  688. position: absolute;
  689. object-fit: cover;
  690. width: 100%;
  691. height:100%;
  692. }
  693. .extra-network-thumbs .card:hover .additional a {
  694. display: inline-block;
  695. }
  696. .extra-network-thumbs .actions .additional a {
  697. background-image: url('./file=html/image-update.svg');
  698. background-repeat: no-repeat;
  699. background-size: cover;
  700. background-position: center center;
  701. position: absolute;
  702. top: 0;
  703. left: 0;
  704. width: 24px;
  705. height: 24px;
  706. display: none;
  707. font-size: 0;
  708. text-align: -9999;
  709. }
  710. .extra-network-thumbs .actions .name {
  711. position: absolute;
  712. bottom: 0;
  713. font-size: 10px;
  714. padding: 3px;
  715. width: 100%;
  716. overflow: hidden;
  717. white-space: nowrap;
  718. text-overflow: ellipsis;
  719. background: rgba(0,0,0,.5);
  720. color: white;
  721. }
  722. .extra-network-thumbs .card:hover .actions .name {
  723. white-space: normal;
  724. word-break: break-all;
  725. }
  726. .extra-network-cards .card{
  727. display: inline-block;
  728. margin: 0.5em;
  729. width: 16em;
  730. height: 24em;
  731. box-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
  732. border-radius: 0.2em;
  733. position: relative;
  734. background-size: auto 100%;
  735. background-position: center;
  736. overflow: hidden;
  737. cursor: pointer;
  738. background-image: url('./file=html/card-no-preview.png')
  739. }
  740. .extra-network-cards .card:hover{
  741. box-shadow: 0 0 2px 0.3em rgba(0, 128, 255, 0.35);
  742. }
  743. .extra-network-cards .card .actions .additional{
  744. display: none;
  745. }
  746. .extra-network-cards .card .actions{
  747. position: absolute;
  748. bottom: 0;
  749. left: 0;
  750. right: 0;
  751. padding: 0.5em;
  752. background: rgba(0,0,0,0.5);
  753. box-shadow: 0 0 0.25em 0.25em rgba(0,0,0,0.5);
  754. text-shadow: 0 0 0.2em black;
  755. }
  756. .extra-network-cards .card .actions *{
  757. color: white;
  758. }
  759. .extra-network-cards .card .actions:hover{
  760. box-shadow: 0 0 0.75em 0.75em rgba(0,0,0,0.5) !important;
  761. }
  762. .extra-network-cards .card .actions .name{
  763. font-size: 1.7em;
  764. font-weight: bold;
  765. line-break: anywhere;
  766. }
  767. .extra-network-cards .card .actions .description {
  768. display: block;
  769. max-height: 3em;
  770. white-space: pre-wrap;
  771. line-height: 1.1;
  772. }
  773. .extra-network-cards .card .actions .description:hover {
  774. max-height: none;
  775. }
  776. .extra-network-cards .card .actions:hover .additional{
  777. display: block;
  778. }
  779. .extra-network-cards .card ul{
  780. margin: 0.25em 0 0.75em 0.25em;
  781. cursor: unset;
  782. }
  783. .extra-network-cards .card ul a{
  784. cursor: pointer;
  785. }
  786. .extra-network-cards .card ul a:hover{
  787. color: red;
  788. }
  789. .extra-network-cards .card .preview{
  790. position: absolute;
  791. object-fit: cover;
  792. width: 100%;
  793. height:100%;
  794. }