1
0

styles.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. /**
  2. * @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
  3. * @copyright Copyright (c) 2016, Lukas Reschke <lukas@statuscode.ch>
  4. * @copyright Copyright (c) 2016, Robin Appelman <robin@icewind.nl>
  5. * @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
  6. * @copyright Copyright (c) 2016, Joas Schilling <coding@schilljs.com>
  7. * @copyright Copyright (c) 2016, Morris Jobke <hey@morrisjobke.de>
  8. * @copyright Copyright (c) 2016, Christoph Wurst <christoph@winzerhof-wurst.at>
  9. * @copyright Copyright (c) 2016, Raghu Nayyar <hey@raghunayyar.com>
  10. * @copyright Copyright (c) 2011-2017, Jan-Christoph Borchardt <hey@jancborchardt.net>
  11. * @copyright Copyright (c) 2019-2020, Gary Kim <gary@garykim.dev>
  12. *
  13. * @license GNU AGPL version 3 or any later version
  14. *
  15. */
  16. @use 'sass:math';
  17. @use 'variables';
  18. 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, main {
  19. margin: 0;
  20. padding: 0;
  21. border: 0;
  22. font-weight: inherit;
  23. font-size: 100%;
  24. font-family: inherit;
  25. vertical-align: baseline;
  26. cursor: default;
  27. scrollbar-color: var(--color-border-dark) transparent;
  28. scrollbar-width: thin;
  29. }
  30. .js-focus-visible :focus:not(.focus-visible) {
  31. outline: none;
  32. }
  33. /** Let vue apps handle the focus themselves */
  34. .content:not(#content-vue) :focus-visible,
  35. .app-navigation:not(#app-navigation-vue) :focus-visible {
  36. box-shadow: inset 0 0 0 2px var(--color-primary-element);
  37. outline: none;
  38. }
  39. html, body {
  40. height: 100%;
  41. // disable pull-down-to-refresh on chromium mobile
  42. overscroll-behavior-y: contain;
  43. }
  44. article, aside, dialog, figure, footer, header, hgroup, nav, section {
  45. display: block;
  46. }
  47. body {
  48. line-height: 1.5;
  49. }
  50. table {
  51. border-collapse: separate;
  52. border-spacing: 0;
  53. white-space: nowrap;
  54. }
  55. caption, th, td {
  56. text-align: left;
  57. font-weight: normal;
  58. }
  59. table, td, th {
  60. vertical-align: middle;
  61. }
  62. a {
  63. border: 0;
  64. color: var(--color-main-text);
  65. text-decoration: none;
  66. cursor: pointer;
  67. * {
  68. cursor: pointer;
  69. }
  70. }
  71. a.external {
  72. margin: 0 3px;
  73. text-decoration: underline;
  74. }
  75. input {
  76. cursor: pointer;
  77. * {
  78. cursor: pointer;
  79. }
  80. }
  81. select, .button span, label {
  82. cursor: pointer;
  83. }
  84. ul {
  85. list-style: none;
  86. }
  87. body {
  88. font-weight: normal;
  89. /* bring the default font size up to 15px */
  90. font-size: var(--default-font-size);
  91. line-height: var(--default-line-height);
  92. font-family: var(--font-face);
  93. color: var(--color-main-text);
  94. }
  95. .two-factor-header {
  96. text-align: center;
  97. }
  98. .two-factor-provider {
  99. text-align: center;
  100. width: 100% !important;
  101. display: inline-block;
  102. margin-bottom: 0 !important;
  103. background-color: var(--color-background-darker) !important;
  104. border: none !important;
  105. }
  106. .two-factor-link {
  107. display: inline-block;
  108. padding: 12px;
  109. color: var(--color-text-lighter);
  110. }
  111. .float-spinner {
  112. height: 32px;
  113. display: none;
  114. }
  115. #nojavascript {
  116. position: fixed;
  117. top: 0;
  118. bottom: 0;
  119. left: 0;
  120. height: 100%;
  121. width: 100%;
  122. z-index: 9000;
  123. text-align: center;
  124. background-color: var(--color-background-darker);
  125. color: var(--color-primary-element-text);
  126. line-height: 125%;
  127. font-size: 24px;
  128. div {
  129. display: block;
  130. position: relative;
  131. width: 50%;
  132. top: 35%;
  133. margin: 0px auto;
  134. }
  135. a {
  136. color: var(--color-primary-element-text);
  137. border-bottom: 2px dotted var(--color-main-background);
  138. &:hover, &:focus {
  139. color: var(--color-primary-element-text-dark);
  140. }
  141. }
  142. }
  143. /* SCROLLING */
  144. ::-webkit-scrollbar {
  145. width: 12px;
  146. height: 12px
  147. }
  148. ::-webkit-scrollbar-corner {
  149. background-color: transparent;
  150. }
  151. ::-webkit-scrollbar-track-piece {
  152. background-color: transparent;
  153. }
  154. ::-webkit-scrollbar-thumb {
  155. background: var(--color-scrollbar);
  156. border-radius: var(--border-radius-large);
  157. border: 2px solid transparent;
  158. background-clip: content-box;
  159. }
  160. /* SELECTION */
  161. ::selection {
  162. background-color: var(--color-primary-element);
  163. color: var(--color-primary-element-text);
  164. }
  165. /* CONTENT ------------------------------------------------------------------ */
  166. #app-navigation * {
  167. box-sizing: border-box;
  168. }
  169. /* EMPTY CONTENT DISPLAY ------------------------------------------------------------ */
  170. #emptycontent,
  171. .emptycontent {
  172. color: var(--color-text-maxcontrast);
  173. text-align: center;
  174. margin-top: 30vh;
  175. width: 100%;
  176. #app-sidebar & {
  177. margin-top: 10vh;
  178. }
  179. .emptycontent-search {
  180. position: static;
  181. }
  182. h2 {
  183. margin-bottom: 10px;
  184. }
  185. [class^='icon-'],
  186. [class*='icon-'] {
  187. background-size: 64px;
  188. height: 64px;
  189. width: 64px;
  190. margin: 0 auto 15px;
  191. &:not([class^='icon-loading']),
  192. &:not([class*='icon-loading']) {
  193. opacity: .4;
  194. }
  195. }
  196. }
  197. /* LOG IN & INSTALLATION ------------------------------------------------------------ */
  198. #datadirContent label {
  199. width: 100%;
  200. }
  201. /* strengthify wrapper */
  202. /* General new input field look */
  203. /* Nicely grouping input field sets */
  204. .grouptop, .groupmiddle, .groupbottom {
  205. position: relative;
  206. -webkit-user-select: none;
  207. -moz-user-select: none;
  208. -ms-user-select: none;
  209. user-select: none;
  210. }
  211. /* Show password toggle */
  212. #show, #dbpassword {
  213. position: absolute;
  214. right: 1em;
  215. top: .8em;
  216. float: right;
  217. }
  218. #show + label, #dbpassword + label {
  219. right: 21px;
  220. top: 15px !important;
  221. margin: -14px !important;
  222. padding: 14px !important;
  223. }
  224. #show:checked + label, #dbpassword:checked + label, #personal-show:checked + label {
  225. opacity: .8;
  226. }
  227. #show:focus-visible + label, #dbpassword-toggle:focus-visible + label, #personal-show:focus-visible + label {
  228. box-shadow: var(--color-primary-element) 0 0 0 2px;
  229. opacity: 1;
  230. border-radius: 9999px;
  231. }
  232. #show + label, #dbpassword + label, #personal-show + label {
  233. position: absolute !important;
  234. height: 20px;
  235. width: 24px;
  236. background-image: var(--icon-toggle-dark);
  237. background-repeat: no-repeat;
  238. background-position: center;
  239. opacity: .3;
  240. }
  241. /* Feedback for keyboard focus and mouse hover */
  242. #show,
  243. #dbpassword,
  244. #personal-show {
  245. &:focus + label {
  246. opacity: 1;
  247. }
  248. + label:hover {
  249. opacity: 1;
  250. }
  251. }
  252. #show + label:before, #dbpassword + label:before, #personal-show + label:before {
  253. display: none;
  254. }
  255. #pass2, input[name='personal-password-clone'] {
  256. padding-right: 30px;
  257. }
  258. .personal-show-container {
  259. position: relative;
  260. display: inline-block;
  261. margin-right: 6px;
  262. }
  263. #personal-show + label {
  264. display: block;
  265. right: 0;
  266. margin-top: -43px;
  267. margin-right: -4px;
  268. padding: 22px;
  269. }
  270. /* Warnings and errors are the same */
  271. #body-user .warning, #body-settings .warning {
  272. margin-top: 8px;
  273. padding: 5px;
  274. border-radius: var(--border-radius);
  275. color: var(--color-main-text);
  276. background-color: rgba(var(--color-warning-rgb), 0.2);
  277. }
  278. .warning {
  279. legend, a {
  280. font-weight: bold !important;
  281. }
  282. }
  283. .error:not(.toastify) {
  284. a {
  285. color: white !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 Nextcloud instance */
  310. /* Sticky footer */
  311. /* round profile photos */
  312. .avatar, .avatardiv {
  313. border-radius: 50%;
  314. flex-shrink: 0;
  315. &> img {
  316. border-radius: 50%;
  317. flex-shrink: 0;
  318. }
  319. }
  320. td.avatar {
  321. border-radius: 0;
  322. }
  323. tr .action:not(.permanent), .selectedActions > a {
  324. opacity: 0;
  325. }
  326. tr {
  327. &:hover .action:not(.menuitem),
  328. &:focus .action:not(.menuitem),
  329. .action.permanent:not(.menuitem) {
  330. opacity: .5;
  331. }
  332. }
  333. .selectedActions > a {
  334. opacity: .5;
  335. position: relative;
  336. top: 2px;
  337. &:hover, &:focus {
  338. opacity: 1;
  339. }
  340. }
  341. tr .action {
  342. width: 16px;
  343. height: 16px;
  344. }
  345. .header-action {
  346. opacity: .8;
  347. }
  348. tr {
  349. &:hover .action:hover, &:focus .action:focus {
  350. opacity: 1;
  351. }
  352. }
  353. .selectedActions a {
  354. &:hover, &:focus {
  355. opacity: 1;
  356. }
  357. }
  358. .header-action {
  359. &:hover, &:focus {
  360. opacity: 1;
  361. }
  362. }
  363. tbody tr:not(.group-header) {
  364. &:hover, &:focus, &:active {
  365. background-color: var(--color-background-dark);
  366. }
  367. }
  368. code {
  369. font-family: 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', monospace;
  370. }
  371. .pager {
  372. list-style: none;
  373. float: right;
  374. display: inline;
  375. margin: .7em 13em 0 0;
  376. li {
  377. display: inline-block;
  378. }
  379. }
  380. .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
  381. overflow: hidden;
  382. text-overflow: ellipsis;
  383. }
  384. .ui-icon-circle-triangle-e {
  385. background-image: url('../img/actions/play-next.svg?v=1');
  386. }
  387. .ui-icon-circle-triangle-w {
  388. background-image: url('../img/actions/play-previous.svg?v=1');
  389. }
  390. /* ---- jQuery UI datepicker ---- */
  391. .ui-widget.ui-datepicker {
  392. margin-top: 10px;
  393. padding: 4px 8px;
  394. width: auto;
  395. border-radius: var(--border-radius);
  396. border: none;
  397. z-index: 1600 !important; // above sidebar
  398. .ui-state-default,
  399. .ui-widget-content .ui-state-default,
  400. .ui-widget-header .ui-state-default {
  401. border: 1px solid transparent;
  402. background: inherit;
  403. }
  404. .ui-widget-header {
  405. padding: 7px;
  406. font-size: 13px;
  407. border: none;
  408. background-color: var(--color-main-background);
  409. color: var(--color-main-text);
  410. .ui-datepicker-title {
  411. line-height: 1;
  412. font-weight: normal;
  413. }
  414. .ui-icon {
  415. opacity: .5;
  416. &.ui-icon-circle-triangle-e {
  417. background: url("../img/actions/arrow-right.svg") center center no-repeat;
  418. }
  419. &.ui-icon-circle-triangle-w {
  420. background: url("../img/actions/arrow-left.svg") center center no-repeat;
  421. }
  422. }
  423. .ui-state-hover .ui-icon {
  424. opacity: 1;
  425. }
  426. }
  427. .ui-datepicker-calendar {
  428. th {
  429. font-weight: normal;
  430. color: var(--color-text-lighter);
  431. opacity: .8;
  432. width: 26px;
  433. padding: 2px;
  434. }
  435. tr:hover {
  436. background-color: inherit;
  437. }
  438. td {
  439. &.ui-datepicker-today a:not(.ui-state-hover) {
  440. background-color: var(--color-background-darker);
  441. }
  442. &.ui-datepicker-current-day a.ui-state-active,
  443. .ui-state-hover,
  444. .ui-state-focus {
  445. background-color: var(--color-primary-element);
  446. color: var(--color-primary-element-text);
  447. font-weight: bold;
  448. }
  449. &.ui-datepicker-week-end:not(.ui-state-disabled) :not(.ui-state-hover),
  450. .ui-priority-secondary:not(.ui-state-hover) {
  451. color: var(--color-text-lighter);
  452. opacity: .8;
  453. }
  454. }
  455. }
  456. }
  457. .ui-datepicker-prev, .ui-datepicker-next {
  458. border: var(--color-border-dark);
  459. background: var(--color-main-background);
  460. }
  461. /* ---- jQuery UI timepicker ---- */
  462. .ui-widget.ui-timepicker {
  463. margin-top: 10px !important;
  464. width: auto !important;
  465. border-radius: var(--border-radius);
  466. z-index: 1600 !important;
  467. .ui-widget-content {
  468. border: none !important;
  469. }
  470. .ui-state-default,
  471. .ui-widget-content .ui-state-default,
  472. .ui-widget-header .ui-state-default {
  473. border: 1px solid transparent;
  474. background: inherit;
  475. }
  476. .ui-widget-header {
  477. padding: 7px;
  478. font-size: 13px;
  479. border: none;
  480. background-color: var(--color-main-background);
  481. color: var(--color-main-text);
  482. .ui-timepicker-title {
  483. line-height: 1;
  484. font-weight: normal;
  485. }
  486. }
  487. /* AM/PM fix */
  488. table.ui-timepicker tr .ui-timepicker-hour-cell:first-child {
  489. margin-left: 30px;
  490. }
  491. .ui-timepicker-table {
  492. th {
  493. font-weight: normal;
  494. color: var(--color-text-lighter);
  495. opacity: .8;
  496. &.periods {
  497. padding: 0;
  498. width: 30px;
  499. line-height: 30px;
  500. }
  501. }
  502. tr:hover {
  503. background-color: inherit;
  504. }
  505. td {
  506. &.ui-timepicker-hour-cell a.ui-state-active,
  507. &.ui-timepicker-minute-cell a.ui-state-active,
  508. .ui-state-hover,
  509. .ui-state-focus {
  510. background-color: var(--color-primary-element);
  511. color: var(--color-primary-element-text);
  512. font-weight: bold;
  513. }
  514. &.ui-timepicker-minutes:not(.ui-state-hover) {
  515. color: var(--color-text-lighter);
  516. }
  517. &.ui-timepicker-hours {
  518. border-right: 1px solid var(--color-border);
  519. }
  520. }
  521. }
  522. }
  523. /* ---- jQuery UI datepicker & timepicker global rules ---- */
  524. .ui-widget.ui-datepicker .ui-datepicker-calendar,
  525. .ui-widget.ui-timepicker table.ui-timepicker {
  526. tr {
  527. display: flex;
  528. flex-wrap: nowrap;
  529. justify-content: space-between;
  530. td {
  531. flex: 1 1 auto;
  532. margin: 0;
  533. padding: 2px;
  534. height: 26px;
  535. width: 26px;
  536. display: flex;
  537. align-items: center;
  538. justify-content: center;
  539. > * {
  540. border-radius: 50%;
  541. text-align: center;
  542. font-weight: normal;
  543. color: var(--color-main-text);
  544. display: block;
  545. line-height: 18px;
  546. width: 18px;
  547. height: 18px;
  548. padding: 3px;
  549. font-size: .9em;
  550. }
  551. }
  552. }
  553. }
  554. /* ---- DIALOGS ---- */
  555. .ui-dialog {
  556. position: fixed !important;
  557. }
  558. span.ui-icon {
  559. float: left;
  560. margin: 3px 7px 30px 0;
  561. }
  562. /* ---- TOOLTIPS ---- */
  563. .extra-data {
  564. padding-right: 5px !important;
  565. }
  566. /* ---- TAGS ---- */
  567. #tagsdialog {
  568. .content {
  569. width: 100%;
  570. height: 280px;
  571. }
  572. .scrollarea {
  573. overflow: auto;
  574. border: 1px solid var(--color-background-darker);
  575. width: 100%;
  576. height: 240px;
  577. }
  578. .bottombuttons {
  579. width: 100%;
  580. height: 30px;
  581. * {
  582. float: left;
  583. }
  584. }
  585. .taglist li {
  586. background: var(--color-background-dark);
  587. padding: .3em .8em;
  588. white-space: nowrap;
  589. overflow: hidden;
  590. text-overflow: ellipsis;
  591. -webkit-transition: background-color 500ms;
  592. transition: background-color 500ms;
  593. &:hover, &:active {
  594. background: var(--color-background-darker);
  595. }
  596. }
  597. .addinput {
  598. width: 90%;
  599. clear: both;
  600. }
  601. }
  602. /* ---- BREADCRUMB ---- */
  603. .breadcrumb {
  604. display: inline-flex;
  605. height: 50px;
  606. }
  607. li.crumb {
  608. display: inline-flex;
  609. background-image: url('../img/breadcrumb.svg?v=1');
  610. background-repeat: no-repeat;
  611. background-position: right center;
  612. height: 44px;
  613. background-size: auto 24px;
  614. flex: 0 0 auto;
  615. order: 1;
  616. padding-right: 7px;
  617. &.crumbmenu {
  618. order: 2;
  619. position: relative;
  620. a {
  621. opacity: 0.5
  622. }
  623. &.canDropChildren,
  624. &.canDrop {
  625. .popovermenu {
  626. display: block;
  627. }
  628. }
  629. // Fix because of the display flex
  630. .popovermenu {
  631. top: 100%;
  632. margin-right: 3px;
  633. ul {
  634. max-height: 345px;
  635. overflow-y: auto;
  636. overflow-x: hidden;
  637. padding-right: 5px;
  638. li.canDrop span:first-child {
  639. background-image: url('../img/filetypes/folder-drag-accept.svg?v=1') !important;
  640. }
  641. }
  642. .in-breadcrumb {
  643. display: none;
  644. }
  645. }
  646. }
  647. &.hidden {
  648. display: none;
  649. ~ .crumb {
  650. order: 3;
  651. }
  652. }
  653. > a,
  654. > span {
  655. position: relative;
  656. padding: 12px;
  657. opacity: 0.5;
  658. text-overflow: ellipsis;
  659. white-space: nowrap;
  660. overflow: hidden;
  661. flex: 0 0 auto;
  662. // Some sane max-width for each folder name
  663. max-width: 200px;
  664. &.icon-home,
  665. &.icon-delete {
  666. // Hide home text
  667. text-indent: -9999px;
  668. }
  669. }
  670. > a[class^='icon-'] {
  671. padding: 0;
  672. width: 44px;
  673. }
  674. &:not(:first-child) a {
  675. }
  676. &:last-child {
  677. font-weight: bold;
  678. margin-right: 10px;
  679. // Allow multiple span next to the main 'a'
  680. a ~ span {
  681. padding-left: 0;
  682. }
  683. }
  684. &:hover, &:focus, a:focus, &:active {
  685. opacity: 1;
  686. > a,
  687. > span {
  688. opacity: .7;
  689. }
  690. }
  691. }
  692. /* some feedback for hover/tap on breadcrumbs */
  693. .appear {
  694. opacity: 1;
  695. -webkit-transition: opacity 500ms ease 0s;
  696. -moz-transition: opacity 500ms ease 0s;
  697. -ms-transition: opacity 500ms ease 0s;
  698. -o-transition: opacity 500ms ease 0s;
  699. transition: opacity 500ms ease 0s;
  700. &.transparent {
  701. opacity: 0;
  702. }
  703. }
  704. /* LEGACY FIX only - do not use fieldsets for settings */
  705. fieldset {
  706. &.warning legend, &.update legend {
  707. top: 18px;
  708. position: relative;
  709. }
  710. &.warning legend + p, &.update legend + p {
  711. margin-top: 12px;
  712. }
  713. }
  714. /* for IE10 */
  715. @-ms-viewport {
  716. width: device-width;
  717. }
  718. /* hidden input type=file field */
  719. .hiddenuploadfield {
  720. display: none;
  721. width: 0;
  722. height: 0;
  723. opacity: 0;
  724. }