styles.scss 23 KB

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