styles.scss 20 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076
  1. /**
  2. * @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
  3. * @copyright Copyright (c) 2016, Lukas Reschke <lukas@statuscode.ch>
  4. * @copyright Copyright (c) 2016, Robin Appelman <robin@icewind.nl>
  5. * @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
  6. * @copyright Copyright (c) 2016, Joas Schilling <coding@schilljs.com>
  7. * @copyright Copyright (c) 2016, Morris Jobke <hey@morrisjobke.de>
  8. * @copyright Copyright (c) 2016, Christoph Wurst <christoph@winzerhof-wurst.at>
  9. * @copyright Copyright (c) 2016, Raghu Nayyar <hey@raghunayyar.com>
  10. * @copyright Copyright (c) 2011-2017, Jan-Christoph Borchardt <hey@jancborchardt.net>
  11. * @copyright Copyright (c) 2019-2020, Gary Kim <gary@garykim.dev>
  12. *
  13. * @license GNU AGPL version 3 or any later version
  14. *
  15. */
  16. @use 'sass:math';
  17. @use 'variables';
  18. html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section, main {
  19. margin: 0;
  20. padding: 0;
  21. border: 0;
  22. font-weight: inherit;
  23. font-size: 100%;
  24. font-family: inherit;
  25. vertical-align: baseline;
  26. cursor: default;
  27. scrollbar-color: var(--color-border-dark) transparent;
  28. scrollbar-width: thin;
  29. }
  30. .js-focus-visible :focus:not(.focus-visible) {
  31. outline: none;
  32. }
  33. /** Let vue apps handle the focus themselves */
  34. .content:not(#content-vue) :focus-visible,
  35. .app-navigation:not(#app-navigation-vue) :focus-visible {
  36. box-shadow: inset 0 0 0 2px var(--color-primary);
  37. outline: none;
  38. }
  39. html, body {
  40. height: 100%;
  41. }
  42. article, aside, dialog, figure, footer, header, hgroup, nav, section {
  43. display: block;
  44. }
  45. body {
  46. line-height: 1.5;
  47. }
  48. table {
  49. border-collapse: separate;
  50. border-spacing: 0;
  51. white-space: nowrap;
  52. }
  53. caption, th, td {
  54. text-align: left;
  55. font-weight: normal;
  56. }
  57. table, td, th {
  58. vertical-align: middle;
  59. }
  60. a {
  61. border: 0;
  62. color: var(--color-main-text);
  63. text-decoration: none;
  64. cursor: pointer;
  65. * {
  66. cursor: pointer;
  67. }
  68. }
  69. a.external {
  70. margin: 0 3px;
  71. text-decoration: underline;
  72. }
  73. input {
  74. cursor: pointer;
  75. * {
  76. cursor: pointer;
  77. }
  78. }
  79. select, .button span, label {
  80. cursor: pointer;
  81. }
  82. ul {
  83. list-style: none;
  84. }
  85. body {
  86. font-weight: normal;
  87. /* bring the default font size up to 15px */
  88. font-size: var(--default-font-size);
  89. line-height: var(--default-line-height);
  90. font-family: var(--font-face);
  91. color: var(--color-main-text);
  92. }
  93. .two-factor-header {
  94. text-align: center;
  95. }
  96. .two-factor-provider {
  97. text-align: center;
  98. width: 100% !important;
  99. display: inline-block;
  100. margin-bottom: 0 !important;
  101. background-color: var(--color-background-darker) !important;
  102. border: none !important;
  103. }
  104. .two-factor-link {
  105. display: inline-block;
  106. padding: 12px;
  107. color: var(--color-text-lighter);
  108. }
  109. .float-spinner {
  110. height: 32px;
  111. display: none;
  112. }
  113. #nojavascript {
  114. position: fixed;
  115. top: 0;
  116. bottom: 0;
  117. left: 0;
  118. height: 100%;
  119. width: 100%;
  120. z-index: 9000;
  121. text-align: center;
  122. background-color: var(--color-background-darker);
  123. color: var(--color-primary-text);
  124. line-height: 125%;
  125. font-size: 24px;
  126. div {
  127. display: block;
  128. position: relative;
  129. width: 50%;
  130. top: 35%;
  131. margin: 0px auto;
  132. }
  133. a {
  134. color: var(--color-primary-text);
  135. border-bottom: 2px dotted var(--color-main-background);
  136. &:hover, &:focus {
  137. color: var(--color-primary-text-dark);
  138. }
  139. }
  140. }
  141. /* SCROLLING */
  142. ::-webkit-scrollbar {
  143. width: 12px;
  144. height: 12px
  145. }
  146. ::-webkit-scrollbar-corner {
  147. background-color: transparent;
  148. }
  149. ::-webkit-scrollbar-track-piece {
  150. background-color: transparent;
  151. }
  152. ::-webkit-scrollbar-thumb {
  153. background: var(--color-scrollbar);
  154. border-radius: var(--border-radius-large);
  155. border: 2px solid transparent;
  156. background-clip: content-box;
  157. }
  158. /* SELECTION */
  159. ::selection {
  160. background-color: var(--color-primary-element);
  161. color: var(--color-primary-text);
  162. }
  163. /* CONTENT ------------------------------------------------------------------ */
  164. #app-navigation * {
  165. box-sizing: border-box;
  166. }
  167. /* EMPTY CONTENT DISPLAY ------------------------------------------------------------ */
  168. #emptycontent,
  169. .emptycontent {
  170. color: var(--color-text-maxcontrast);
  171. text-align: center;
  172. margin-top: 30vh;
  173. width: 100%;
  174. #app-sidebar & {
  175. margin-top: 10vh;
  176. }
  177. .emptycontent-search {
  178. position: static;
  179. }
  180. h2 {
  181. margin-bottom: 10px;
  182. }
  183. [class^='icon-'],
  184. [class*='icon-'] {
  185. background-size: 64px;
  186. height: 64px;
  187. width: 64px;
  188. margin: 0 auto 15px;
  189. &:not([class^='icon-loading']),
  190. &:not([class*='icon-loading']) {
  191. opacity: .4;
  192. }
  193. }
  194. }
  195. /* LOG IN & INSTALLATION ------------------------------------------------------------ */
  196. #datadirContent label {
  197. width: 100%;
  198. }
  199. /* strengthify wrapper */
  200. /* General new input field look */
  201. /* Nicely grouping input field sets */
  202. .grouptop, .groupmiddle, .groupbottom {
  203. position: relative;
  204. -webkit-user-select: none;
  205. -moz-user-select: none;
  206. -ms-user-select: none;
  207. user-select: none;
  208. }
  209. /* Show password toggle */
  210. #show, #dbpassword {
  211. position: absolute;
  212. right: 1em;
  213. top: .8em;
  214. float: right;
  215. }
  216. #show + label, #dbpassword + label {
  217. right: 21px;
  218. top: 15px !important;
  219. margin: -14px !important;
  220. padding: 14px !important;
  221. }
  222. #show:checked + label, #dbpassword:checked + label, #personal-show:checked + label {
  223. opacity: .8;
  224. }
  225. #show:focus-visible + label, #dbpassword-toggle:focus-visible + label, #personal-show:focus-visible + label {
  226. box-shadow: var(--color-primary) 0 0 0 2px;
  227. opacity: 1;
  228. border-radius: 9999px;
  229. }
  230. #show + label, #dbpassword + label, #personal-show + label {
  231. position: absolute !important;
  232. height: 20px;
  233. width: 24px;
  234. background-image: var(--icon-toggle-dark);
  235. background-repeat: no-repeat;
  236. background-position: center;
  237. opacity: .3;
  238. }
  239. /* Feedback for keyboard focus and mouse hover */
  240. #show,
  241. #dbpassword,
  242. #personal-show {
  243. &:focus + label {
  244. opacity: 1;
  245. }
  246. + label:hover {
  247. opacity: 1;
  248. }
  249. }
  250. #show + label:before, #dbpassword + label:before, #personal-show + label:before {
  251. display: none;
  252. }
  253. #pass2, input[name='personal-password-clone'] {
  254. padding-right: 30px;
  255. }
  256. .personal-show-container {
  257. position: relative;
  258. display: inline-block;
  259. margin-right: 6px;
  260. }
  261. #personal-show + label {
  262. display: block;
  263. right: 0;
  264. margin-top: -43px;
  265. margin-right: -4px;
  266. padding: 22px;
  267. }
  268. /* Warnings and errors are the same */
  269. #body-user .warning, #body-settings .warning {
  270. margin-top: 8px;
  271. padding: 5px;
  272. border-radius: var(--border-radius);
  273. color: var(--color-main-text);
  274. background-color: rgba(var(--color-warning-rgb), 0.2);
  275. }
  276. .warning {
  277. legend, a {
  278. font-weight: bold !important;
  279. }
  280. }
  281. .error:not(.toastify) {
  282. a {
  283. color: white !important;
  284. font-weight: bold !important;
  285. &.button {
  286. color: var(--color-text-lighter) !important;
  287. display: inline-block;
  288. text-align: center;
  289. }
  290. }
  291. pre {
  292. white-space: pre-wrap;
  293. text-align: left;
  294. }
  295. }
  296. .error-wide {
  297. width: 700px;
  298. margin-left: -200px !important;
  299. .button {
  300. color: black !important;
  301. }
  302. }
  303. .warning-input {
  304. border-color: var(--color-error) !important;
  305. }
  306. /* fixes for update page TODO should be fixed some time in a proper way */
  307. /* this is just for an error while updating the Nextcloud instance */
  308. /* Sticky footer */
  309. /* round profile photos */
  310. .avatar, .avatardiv {
  311. border-radius: 50%;
  312. flex-shrink: 0;
  313. &> img {
  314. border-radius: 50%;
  315. flex-shrink: 0;
  316. }
  317. }
  318. td.avatar {
  319. border-radius: 0;
  320. }
  321. tr .action:not(.permanent), .selectedActions > a {
  322. opacity: 0;
  323. }
  324. tr {
  325. &:hover .action:not(.menuitem),
  326. &:focus .action:not(.menuitem),
  327. .action.permanent:not(.menuitem) {
  328. opacity: .5;
  329. }
  330. }
  331. .selectedActions > a {
  332. opacity: .5;
  333. position: relative;
  334. top: 2px;
  335. &:hover, &:focus {
  336. opacity: 1;
  337. }
  338. }
  339. tr .action {
  340. width: 16px;
  341. height: 16px;
  342. }
  343. .header-action {
  344. opacity: .8;
  345. }
  346. tr {
  347. &:hover .action:hover, &:focus .action:focus {
  348. opacity: 1;
  349. }
  350. }
  351. .selectedActions a {
  352. &:hover, &:focus {
  353. opacity: 1;
  354. }
  355. }
  356. .header-action {
  357. &:hover, &:focus {
  358. opacity: 1;
  359. }
  360. }
  361. tbody tr {
  362. &:hover, &:focus, &:active {
  363. background-color: var(--color-background-dark);
  364. }
  365. }
  366. code {
  367. font-family: 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', monospace;
  368. }
  369. .pager {
  370. list-style: none;
  371. float: right;
  372. display: inline;
  373. margin: .7em 13em 0 0;
  374. li {
  375. display: inline-block;
  376. }
  377. }
  378. .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
  379. overflow: hidden;
  380. text-overflow: ellipsis;
  381. }
  382. .ui-icon-circle-triangle-e {
  383. background-image: url('../img/actions/play-next.svg?v=1');
  384. }
  385. .ui-icon-circle-triangle-w {
  386. background-image: url('../img/actions/play-previous.svg?v=1');
  387. }
  388. /* ---- jQuery UI datepicker ---- */
  389. .ui-widget.ui-datepicker {
  390. margin-top: 10px;
  391. padding: 4px 8px;
  392. width: auto;
  393. border-radius: var(--border-radius);
  394. border: none;
  395. z-index: 1600 !important; // above sidebar
  396. .ui-state-default,
  397. .ui-widget-content .ui-state-default,
  398. .ui-widget-header .ui-state-default {
  399. border: 1px solid transparent;
  400. background: inherit;
  401. }
  402. .ui-widget-header {
  403. padding: 7px;
  404. font-size: 13px;
  405. border: none;
  406. background-color: var(--color-main-background);
  407. color: var(--color-main-text);
  408. .ui-datepicker-title {
  409. line-height: 1;
  410. font-weight: normal;
  411. }
  412. .ui-icon {
  413. opacity: .5;
  414. &.ui-icon-circle-triangle-e {
  415. background: url("../img/actions/arrow-right.svg") center center no-repeat;
  416. }
  417. &.ui-icon-circle-triangle-w {
  418. background: url("../img/actions/arrow-left.svg") center center no-repeat;
  419. }
  420. }
  421. .ui-state-hover .ui-icon {
  422. opacity: 1;
  423. }
  424. }
  425. .ui-datepicker-calendar {
  426. th {
  427. font-weight: normal;
  428. color: var(--color-text-lighter);
  429. opacity: .8;
  430. width: 26px;
  431. padding: 2px;
  432. }
  433. tr:hover {
  434. background-color: inherit;
  435. }
  436. td {
  437. &.ui-datepicker-today a:not(.ui-state-hover) {
  438. background-color: var(--color-background-darker);
  439. }
  440. &.ui-datepicker-current-day a.ui-state-active,
  441. .ui-state-hover,
  442. .ui-state-focus {
  443. background-color: var(--color-primary);
  444. color: var(--color-primary-text);
  445. font-weight: bold;
  446. }
  447. &.ui-datepicker-week-end:not(.ui-state-disabled) :not(.ui-state-hover),
  448. .ui-priority-secondary:not(.ui-state-hover) {
  449. color: var(--color-text-lighter);
  450. opacity: .8;
  451. }
  452. }
  453. }
  454. }
  455. .ui-datepicker-prev, .ui-datepicker-next {
  456. border: var(--color-border-dark);
  457. background: var(--color-main-background);
  458. }
  459. /* ---- jQuery UI timepicker ---- */
  460. .ui-widget.ui-timepicker {
  461. margin-top: 10px !important;
  462. width: auto !important;
  463. border-radius: var(--border-radius);
  464. z-index: 1600 !important;
  465. .ui-widget-content {
  466. border: none !important;
  467. }
  468. .ui-state-default,
  469. .ui-widget-content .ui-state-default,
  470. .ui-widget-header .ui-state-default {
  471. border: 1px solid transparent;
  472. background: inherit;
  473. }
  474. .ui-widget-header {
  475. padding: 7px;
  476. font-size: 13px;
  477. border: none;
  478. background-color: var(--color-main-background);
  479. color: var(--color-main-text);
  480. .ui-timepicker-title {
  481. line-height: 1;
  482. font-weight: normal;
  483. }
  484. }
  485. /* AM/PM fix */
  486. table.ui-timepicker tr .ui-timepicker-hour-cell:first-child {
  487. margin-left: 30px;
  488. }
  489. .ui-timepicker-table {
  490. th {
  491. font-weight: normal;
  492. color: var(--color-text-lighter);
  493. opacity: .8;
  494. &.periods {
  495. padding: 0;
  496. width: 30px;
  497. line-height: 30px;
  498. }
  499. }
  500. tr:hover {
  501. background-color: inherit;
  502. }
  503. td {
  504. &.ui-timepicker-hour-cell a.ui-state-active,
  505. &.ui-timepicker-minute-cell a.ui-state-active,
  506. .ui-state-hover,
  507. .ui-state-focus {
  508. background-color: var(--color-primary);
  509. color: var(--color-primary-text);
  510. font-weight: bold;
  511. }
  512. &.ui-timepicker-minutes:not(.ui-state-hover) {
  513. color: var(--color-text-lighter);
  514. }
  515. &.ui-timepicker-hours {
  516. border-right: 1px solid var(--color-border);
  517. }
  518. }
  519. }
  520. }
  521. /* ---- jQuery UI datepicker & timepicker global rules ---- */
  522. .ui-widget.ui-datepicker .ui-datepicker-calendar,
  523. .ui-widget.ui-timepicker table.ui-timepicker {
  524. tr {
  525. display: flex;
  526. flex-wrap: nowrap;
  527. justify-content: space-between;
  528. td {
  529. flex: 1 1 auto;
  530. margin: 0;
  531. padding: 2px;
  532. height: 26px;
  533. width: 26px;
  534. display: flex;
  535. align-items: center;
  536. justify-content: center;
  537. > * {
  538. border-radius: 50%;
  539. text-align: center;
  540. font-weight: normal;
  541. color: var(--color-main-text);
  542. display: block;
  543. line-height: 18px;
  544. width: 18px;
  545. height: 18px;
  546. padding: 3px;
  547. font-size: .9em;
  548. }
  549. }
  550. }
  551. }
  552. /* ---- DIALOGS ---- */
  553. #oc-dialog-filepicker-content {
  554. position: relative;
  555. display: flex;
  556. flex-direction:column;
  557. .dirtree {
  558. flex-wrap: wrap;
  559. box-sizing: border-box;
  560. padding-right: 140px;
  561. div:first-child a {
  562. font-size: 0px;
  563. background-image: var(--icon-home-dark);
  564. background-repeat: no-repeat;
  565. background-position: left center;
  566. }
  567. span {
  568. &:not(:last-child) {
  569. cursor: pointer;
  570. }
  571. &:last-child {
  572. font-weight: bold;
  573. }
  574. &:not(:last-child)::after {
  575. content: '>';
  576. padding: 3px;
  577. }
  578. }
  579. }
  580. #picker-showgridview {
  581. position: absolute;
  582. background-color: transparent;
  583. border: none;
  584. margin: 0;
  585. padding: 22px;
  586. opacity: .5;
  587. right: 0;
  588. top: 0;
  589. &:hover,
  590. &:active,
  591. &:focus {
  592. box-shadow: 0 0 0 2px var(--color-primary);
  593. opacity: 1;
  594. }
  595. }
  596. .actions.creatable {
  597. flex-wrap: wrap;
  598. padding: 0px;
  599. box-sizing: border-box;
  600. display: inline-flex;
  601. float: none;
  602. max-height: 36px;
  603. max-width: 36px;
  604. background-color: var(--color-background-dark);
  605. border: 1px solid var(--color-border-dark);
  606. border-radius: var(--border-radius-pill);
  607. position: relative;
  608. left: 15px;
  609. top:3px;
  610. order:1;
  611. .icon.icon-add{
  612. background-image: var(--icon-add-dark);
  613. background-size: 16px 16px;
  614. width: 34px;
  615. height: 34px;
  616. margin: 0px;
  617. opacity: 0.5;
  618. }
  619. a {
  620. width: 36px;
  621. padding: 0px;
  622. position: static;
  623. }
  624. .menu {
  625. top: 100%;
  626. margin-top: 10px;
  627. form {
  628. display: flex;
  629. margin: 10px;
  630. }
  631. }
  632. }
  633. .filelist-container {
  634. box-sizing: border-box;
  635. display: inline-block;
  636. overflow-y: auto;
  637. flex: 1;
  638. /*height: 100%;*/
  639. /* overflow under the button row */
  640. width: 100%;
  641. overflow-x: hidden;
  642. }
  643. .emptycontent {
  644. color: var(--color-text-maxcontrast);
  645. text-align: center;
  646. margin-top: 80px;
  647. width: 100%;
  648. display: none;
  649. }
  650. .filelist {
  651. background-color: var(--color-main-background);
  652. width: 100%;
  653. }
  654. #picker-filestable.filelist {
  655. /* prevent the filepicker to overflow */
  656. min-width: initial;
  657. margin-bottom: 50px;
  658. thead {
  659. tr {
  660. border-bottom: 1px solid var(--color-border);
  661. background-color: var(--color-main-background);
  662. th {
  663. width: 80%;
  664. border: none;
  665. }
  666. }
  667. }
  668. th .columntitle {
  669. display: block;
  670. padding: 15px;
  671. height: 50px;
  672. box-sizing: border-box;
  673. -moz-box-sizing: border-box;
  674. vertical-align: middle;
  675. }
  676. th .columntitle.name {
  677. padding-left: 5px;
  678. margin-left: 50px;
  679. }
  680. th .sort-indicator {
  681. width: 10px;
  682. height: 8px;
  683. margin-left: 5px;
  684. display: inline-block;
  685. vertical-align: text-bottom;
  686. opacity: .3;
  687. }
  688. .sort-indicator.hidden,
  689. th:hover .sort-indicator.hidden,
  690. th:focus .sort-indicator.hidden {
  691. visibility: hidden;
  692. }
  693. th:hover .sort-indicator.hidden,
  694. th:focus .sort-indicator.hidden {
  695. visibility: visible;
  696. }
  697. td {
  698. padding: 14px;
  699. border-bottom: 1px solid var(--color-border);
  700. }
  701. tr:last-child td {
  702. border-bottom: none;
  703. }
  704. .filename {
  705. overflow: hidden;
  706. white-space: nowrap;
  707. text-overflow: ellipsis;
  708. background-size: 32px;
  709. background-repeat: no-repeat;
  710. padding-left: 51px;
  711. background-position: 7px 7px;
  712. cursor: pointer;
  713. // avoid taking full width
  714. max-width: 0;
  715. .filename-parts {
  716. display: flex;
  717. &__first {
  718. overflow: hidden;
  719. white-space: pre;
  720. text-overflow: ellipsis;
  721. }
  722. &__last {
  723. white-space: pre;
  724. }
  725. }
  726. }
  727. .filesize, .date {
  728. width: 80px;
  729. }
  730. .filesize {
  731. text-align: right;
  732. }
  733. &.view-grid {
  734. $grid-size: 120px;
  735. $grid-pad: 10px;
  736. $name-height: 30px;
  737. display: flex;
  738. flex-direction: column;
  739. tbody {
  740. display: grid;
  741. grid-template-columns: repeat(auto-fill, $grid-size);
  742. justify-content: space-around;
  743. row-gap: 15px;
  744. margin: 15px 0;
  745. tr {
  746. display: block;
  747. position: relative;
  748. border-radius: var(--border-radius);
  749. padding: $grid-pad;
  750. display: flex;
  751. flex-direction: column;
  752. width: $grid-size - 2 * $grid-pad;
  753. td {
  754. border: none;
  755. padding: 0;
  756. text-align: center;
  757. border-radius: var(--border-radius);
  758. &.filename {
  759. padding: #{$grid-size - 2 * $grid-pad} 0 0 0;
  760. background-position: center top;
  761. background-size: contain;
  762. line-height: $name-height;
  763. max-width: none;
  764. .filename-parts {
  765. justify-content: center;
  766. }
  767. }
  768. &.filesize {
  769. line-height: math.div($name-height, 3);
  770. width: 100%;
  771. }
  772. &.date {
  773. display: none;
  774. }
  775. }
  776. }
  777. }
  778. }
  779. }
  780. .filepicker_element_selected {
  781. background-color: var(--color-background-darker);
  782. }
  783. }
  784. .ui-dialog {
  785. position: fixed !important;
  786. }
  787. span.ui-icon {
  788. float: left;
  789. margin: 3px 7px 30px 0;
  790. }
  791. /* ---- TOOLTIPS ---- */
  792. .extra-data {
  793. padding-right: 5px !important;
  794. }
  795. /* ---- TAGS ---- */
  796. #tagsdialog {
  797. .content {
  798. width: 100%;
  799. height: 280px;
  800. }
  801. .scrollarea {
  802. overflow: auto;
  803. border: 1px solid var(--color-background-darker);
  804. width: 100%;
  805. height: 240px;
  806. }
  807. .bottombuttons {
  808. width: 100%;
  809. height: 30px;
  810. * {
  811. float: left;
  812. }
  813. }
  814. .taglist li {
  815. background: var(--color-background-dark);
  816. padding: .3em .8em;
  817. white-space: nowrap;
  818. overflow: hidden;
  819. text-overflow: ellipsis;
  820. -webkit-transition: background-color 500ms;
  821. transition: background-color 500ms;
  822. &:hover, &:active {
  823. background: var(--color-background-darker);
  824. }
  825. }
  826. .addinput {
  827. width: 90%;
  828. clear: both;
  829. }
  830. }
  831. /* ---- BREADCRUMB ---- */
  832. .breadcrumb {
  833. display: inline-flex;
  834. }
  835. div.crumb {
  836. display: inline-flex;
  837. background-image: url('../img/breadcrumb.svg?v=1');
  838. background-repeat: no-repeat;
  839. background-position: right center;
  840. height: 44px;
  841. background-size: auto 24px;
  842. flex: 0 0 auto;
  843. order: 1;
  844. padding-right: 7px;
  845. &.crumbmenu {
  846. order: 2;
  847. position: relative;
  848. a {
  849. opacity: 0.5
  850. }
  851. &.canDropChildren,
  852. &.canDrop {
  853. .popovermenu {
  854. display: block;
  855. }
  856. }
  857. // Fix because of the display flex
  858. .popovermenu {
  859. top: 100%;
  860. margin-right: 3px;
  861. ul {
  862. max-height: 345px;
  863. overflow-y: auto;
  864. overflow-x: hidden;
  865. padding-right: 5px;
  866. li.canDrop span:first-child {
  867. background-image: url('../img/filetypes/folder-drag-accept.svg?v=1') !important;
  868. }
  869. }
  870. .in-breadcrumb {
  871. display: none;
  872. }
  873. }
  874. }
  875. &.hidden {
  876. display: none;
  877. ~ .crumb {
  878. order: 3;
  879. }
  880. }
  881. > a,
  882. > span {
  883. position: relative;
  884. padding: 12px;
  885. opacity: 0.5;
  886. text-overflow: ellipsis;
  887. white-space: nowrap;
  888. overflow: hidden;
  889. flex: 0 0 auto;
  890. // Some sane max-width for each folder name
  891. max-width: 200px;
  892. &.icon-home,
  893. &.icon-delete {
  894. // Hide home text
  895. text-indent: -9999px;
  896. }
  897. }
  898. > a[class^='icon-'] {
  899. padding: 0;
  900. width: 44px;
  901. }
  902. &:not(:first-child) a {
  903. }
  904. &:last-child {
  905. font-weight: bold;
  906. margin-right: 10px;
  907. // Allow multiple span next to the main 'a'
  908. a ~ span {
  909. padding-left: 0;
  910. }
  911. }
  912. &:hover, &:focus, a:focus, &:active {
  913. opacity: 1;
  914. > a,
  915. > span {
  916. opacity: .7;
  917. }
  918. }
  919. }
  920. /* some feedback for hover/tap on breadcrumbs */
  921. .appear {
  922. opacity: 1;
  923. -webkit-transition: opacity 500ms ease 0s;
  924. -moz-transition: opacity 500ms ease 0s;
  925. -ms-transition: opacity 500ms ease 0s;
  926. -o-transition: opacity 500ms ease 0s;
  927. transition: opacity 500ms ease 0s;
  928. &.transparent {
  929. opacity: 0;
  930. }
  931. }
  932. /* LEGACY FIX only - do not use fieldsets for settings */
  933. fieldset {
  934. &.warning legend, &.update legend {
  935. top: 18px;
  936. position: relative;
  937. }
  938. &.warning legend + p, &.update legend + p {
  939. margin-top: 12px;
  940. }
  941. }
  942. /* for IE10 */
  943. @-ms-viewport {
  944. width: device-width;
  945. }
  946. /* hidden input type=file field */
  947. .hiddenuploadfield {
  948. display: none;
  949. width: 0;
  950. height: 0;
  951. opacity: 0;
  952. }