styles.scss 22 KB

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