styles.scss 15 KB

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