styles.scss 23 KB

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