1
0

styles.scss 16 KB

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