styles.scss 22 KB

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