styles.scss 22 KB

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