styles.scss 21 KB

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