You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.scss 23KB

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