styles.scss 20 KB

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