styles.scss 21 KB

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