styles.scss 22 KB

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