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 22KB

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