styles.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  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: left;
  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. left: 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, #dbpassword {
  205. position: absolute;
  206. right: 1em;
  207. top: .8em;
  208. float: right;
  209. }
  210. #show + label, #dbpassword + label {
  211. right: 21px;
  212. top: 15px !important;
  213. margin: -14px !important;
  214. padding: 14px !important;
  215. }
  216. #show:checked + label, #dbpassword:checked + label, #personal-show:checked + label {
  217. opacity: .8;
  218. }
  219. #show:focus-visible + label, #dbpassword-toggle:focus-visible + label, #personal-show:focus-visible + label {
  220. box-shadow: var(--color-primary-element) 0 0 0 2px;
  221. opacity: 1;
  222. border-radius: 9999px;
  223. }
  224. #show + label, #dbpassword + label, #personal-show + label {
  225. position: absolute !important;
  226. height: 20px;
  227. width: 24px;
  228. background-image: var(--icon-toggle-dark);
  229. background-repeat: no-repeat;
  230. background-position: center;
  231. opacity: .3;
  232. }
  233. /* Feedback for keyboard focus and mouse hover */
  234. #show,
  235. #dbpassword,
  236. #personal-show {
  237. &:focus + label {
  238. opacity: 1;
  239. }
  240. + label:hover {
  241. opacity: 1;
  242. }
  243. }
  244. #show + label:before, #dbpassword + label:before, #personal-show + label:before {
  245. display: none;
  246. }
  247. #pass2, input[name='personal-password-clone'] {
  248. padding-right: 30px;
  249. }
  250. .personal-show-container {
  251. position: relative;
  252. display: inline-block;
  253. margin-right: 6px;
  254. }
  255. #personal-show + label {
  256. display: block;
  257. right: 0;
  258. margin-top: -43px;
  259. margin-right: -4px;
  260. padding: 22px;
  261. }
  262. /* Warnings and errors are the same */
  263. #body-user .warning, #body-settings .warning {
  264. margin-top: 8px;
  265. padding: 5px;
  266. border-radius: var(--border-radius);
  267. color: var(--color-main-text);
  268. background-color: rgba(var(--color-warning-rgb), 0.2);
  269. }
  270. .warning {
  271. legend, a {
  272. font-weight: bold !important;
  273. }
  274. }
  275. .error:not(.toastify) {
  276. a {
  277. color: white !important;
  278. font-weight: bold !important;
  279. &.button {
  280. color: var(--color-text-lighter) !important;
  281. display: inline-block;
  282. text-align: center;
  283. }
  284. }
  285. pre {
  286. white-space: pre-wrap;
  287. text-align: left;
  288. }
  289. }
  290. .error-wide {
  291. width: 700px;
  292. margin-left: -200px !important;
  293. .button {
  294. color: black !important;
  295. }
  296. }
  297. .warning-input {
  298. border-color: var(--color-error) !important;
  299. }
  300. /* fixes for update page TODO should be fixed some time in a proper way */
  301. /* this is just for an error while updating the Nextcloud instance */
  302. /* Sticky footer */
  303. /* round profile photos */
  304. .avatar, .avatardiv {
  305. border-radius: 50%;
  306. flex-shrink: 0;
  307. &> img {
  308. border-radius: 50%;
  309. flex-shrink: 0;
  310. }
  311. }
  312. td.avatar {
  313. border-radius: 0;
  314. }
  315. tr .action:not(.permanent), .selectedActions > a {
  316. opacity: 0;
  317. }
  318. tr {
  319. &:hover .action:not(.menuitem),
  320. &:focus .action:not(.menuitem),
  321. .action.permanent:not(.menuitem) {
  322. opacity: .5;
  323. }
  324. }
  325. .selectedActions > a {
  326. opacity: .5;
  327. position: relative;
  328. top: 2px;
  329. &:hover, &:focus {
  330. opacity: 1;
  331. }
  332. }
  333. tr .action {
  334. width: 16px;
  335. height: 16px;
  336. }
  337. .header-action {
  338. opacity: .8;
  339. }
  340. tr {
  341. &:hover .action:hover, &:focus .action:focus {
  342. opacity: 1;
  343. }
  344. }
  345. .selectedActions a {
  346. &:hover, &:focus {
  347. opacity: 1;
  348. }
  349. }
  350. .header-action {
  351. &:hover, &:focus {
  352. opacity: 1;
  353. }
  354. }
  355. tbody tr:not(.group-header) {
  356. &:hover, &:focus, &:active {
  357. background-color: var(--color-background-dark);
  358. }
  359. }
  360. code {
  361. font-family: 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', monospace;
  362. }
  363. .pager {
  364. list-style: none;
  365. float: right;
  366. display: inline;
  367. margin: .7em 13em 0 0;
  368. li {
  369. display: inline-block;
  370. }
  371. }
  372. .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
  373. overflow: hidden;
  374. text-overflow: ellipsis;
  375. }
  376. .ui-icon-circle-triangle-e {
  377. background-image: url('../img/actions/play-next.svg?v=1');
  378. }
  379. .ui-icon-circle-triangle-w {
  380. background-image: url('../img/actions/play-previous.svg?v=1');
  381. }
  382. /* ---- jQuery UI datepicker ---- */
  383. .ui-widget.ui-datepicker {
  384. margin-top: 10px;
  385. padding: 4px 8px;
  386. width: auto;
  387. border-radius: var(--border-radius);
  388. border: none;
  389. z-index: 1600 !important; // above sidebar
  390. .ui-state-default,
  391. .ui-widget-content .ui-state-default,
  392. .ui-widget-header .ui-state-default {
  393. border: 1px solid transparent;
  394. background: inherit;
  395. }
  396. .ui-widget-header {
  397. padding: 7px;
  398. font-size: 13px;
  399. border: none;
  400. background-color: var(--color-main-background);
  401. color: var(--color-main-text);
  402. .ui-datepicker-title {
  403. line-height: 1;
  404. font-weight: normal;
  405. }
  406. .ui-icon {
  407. opacity: .5;
  408. &.ui-icon-circle-triangle-e {
  409. background: url("../img/actions/arrow-right.svg") center center no-repeat;
  410. }
  411. &.ui-icon-circle-triangle-w {
  412. background: url("../img/actions/arrow-left.svg") center center 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. .ui-datepicker-prev, .ui-datepicker-next {
  450. border: var(--color-border-dark);
  451. background: var(--color-main-background);
  452. }
  453. /* ---- jQuery UI timepicker ---- */
  454. .ui-widget.ui-timepicker {
  455. margin-top: 10px !important;
  456. width: auto !important;
  457. border-radius: var(--border-radius);
  458. z-index: 1600 !important;
  459. .ui-widget-content {
  460. border: none !important;
  461. }
  462. .ui-state-default,
  463. .ui-widget-content .ui-state-default,
  464. .ui-widget-header .ui-state-default {
  465. border: 1px solid transparent;
  466. background: inherit;
  467. }
  468. .ui-widget-header {
  469. padding: 7px;
  470. font-size: 13px;
  471. border: none;
  472. background-color: var(--color-main-background);
  473. color: var(--color-main-text);
  474. .ui-timepicker-title {
  475. line-height: 1;
  476. font-weight: normal;
  477. }
  478. }
  479. /* AM/PM fix */
  480. table.ui-timepicker tr .ui-timepicker-hour-cell:first-child {
  481. margin-left: 30px;
  482. }
  483. .ui-timepicker-table {
  484. th {
  485. font-weight: normal;
  486. color: var(--color-text-lighter);
  487. opacity: .8;
  488. &.periods {
  489. padding: 0;
  490. width: 30px;
  491. line-height: 30px;
  492. }
  493. }
  494. tr:hover {
  495. background-color: inherit;
  496. }
  497. td {
  498. &.ui-timepicker-hour-cell a.ui-state-active,
  499. &.ui-timepicker-minute-cell a.ui-state-active,
  500. .ui-state-hover,
  501. .ui-state-focus {
  502. background-color: var(--color-primary-element);
  503. color: var(--color-primary-element-text);
  504. font-weight: bold;
  505. }
  506. &.ui-timepicker-minutes:not(.ui-state-hover) {
  507. color: var(--color-text-lighter);
  508. }
  509. &.ui-timepicker-hours {
  510. border-right: 1px solid var(--color-border);
  511. }
  512. }
  513. }
  514. }
  515. /* ---- jQuery UI datepicker & timepicker global rules ---- */
  516. .ui-widget.ui-datepicker .ui-datepicker-calendar,
  517. .ui-widget.ui-timepicker table.ui-timepicker {
  518. tr {
  519. display: flex;
  520. flex-wrap: nowrap;
  521. justify-content: space-between;
  522. td {
  523. flex: 1 1 auto;
  524. margin: 0;
  525. padding: 2px;
  526. height: 26px;
  527. width: 26px;
  528. display: flex;
  529. align-items: center;
  530. justify-content: center;
  531. > * {
  532. border-radius: 50%;
  533. text-align: center;
  534. font-weight: normal;
  535. color: var(--color-main-text);
  536. display: block;
  537. line-height: 18px;
  538. width: 18px;
  539. height: 18px;
  540. padding: 3px;
  541. font-size: .9em;
  542. }
  543. }
  544. }
  545. }
  546. /* ---- DIALOGS ---- */
  547. .ui-dialog {
  548. position: fixed !important;
  549. }
  550. span.ui-icon {
  551. float: left;
  552. margin: 3px 7px 30px 0;
  553. }
  554. /* ---- TOOLTIPS ---- */
  555. .extra-data {
  556. padding-right: 5px !important;
  557. }
  558. /* ---- TAGS ---- */
  559. #tagsdialog {
  560. .content {
  561. width: 100%;
  562. height: 280px;
  563. }
  564. .scrollarea {
  565. overflow: auto;
  566. border: 1px solid var(--color-background-darker);
  567. width: 100%;
  568. height: 240px;
  569. }
  570. .bottombuttons {
  571. width: 100%;
  572. height: 30px;
  573. * {
  574. float: left;
  575. }
  576. }
  577. .taglist li {
  578. background: var(--color-background-dark);
  579. padding: .3em .8em;
  580. white-space: nowrap;
  581. overflow: hidden;
  582. text-overflow: ellipsis;
  583. -webkit-transition: background-color 500ms;
  584. transition: background-color 500ms;
  585. &:hover, &:active {
  586. background: var(--color-background-darker);
  587. }
  588. }
  589. .addinput {
  590. width: 90%;
  591. clear: both;
  592. }
  593. }
  594. /* ---- BREADCRUMB ---- */
  595. .breadcrumb {
  596. display: inline-flex;
  597. height: 50px;
  598. }
  599. li.crumb {
  600. display: inline-flex;
  601. background-image: url('../img/breadcrumb.svg?v=1');
  602. background-repeat: no-repeat;
  603. background-position: right center;
  604. height: 44px;
  605. background-size: auto 24px;
  606. flex: 0 0 auto;
  607. order: 1;
  608. padding-right: 7px;
  609. &.crumbmenu {
  610. order: 2;
  611. position: relative;
  612. a {
  613. opacity: 0.5
  614. }
  615. &.canDropChildren,
  616. &.canDrop {
  617. .popovermenu {
  618. display: block;
  619. }
  620. }
  621. // Fix because of the display flex
  622. .popovermenu {
  623. top: 100%;
  624. margin-right: 3px;
  625. ul {
  626. max-height: 345px;
  627. overflow-y: auto;
  628. overflow-x: hidden;
  629. padding-right: 5px;
  630. li.canDrop span:first-child {
  631. background-image: url('../img/filetypes/folder-drag-accept.svg?v=1') !important;
  632. }
  633. }
  634. .in-breadcrumb {
  635. display: none;
  636. }
  637. }
  638. }
  639. &.hidden {
  640. display: none;
  641. ~ .crumb {
  642. order: 3;
  643. }
  644. }
  645. > a,
  646. > span {
  647. position: relative;
  648. padding: 12px;
  649. opacity: 0.5;
  650. text-overflow: ellipsis;
  651. white-space: nowrap;
  652. overflow: hidden;
  653. flex: 0 0 auto;
  654. // Some sane max-width for each folder name
  655. max-width: 200px;
  656. &.icon-home,
  657. &.icon-delete {
  658. // Hide home text
  659. text-indent: -9999px;
  660. }
  661. }
  662. > a[class^='icon-'] {
  663. padding: 0;
  664. width: 44px;
  665. }
  666. &:not(:first-child) a {
  667. }
  668. &:last-child {
  669. font-weight: bold;
  670. margin-right: 10px;
  671. // Allow multiple span next to the main 'a'
  672. a ~ span {
  673. padding-left: 0;
  674. }
  675. }
  676. &:hover, &:focus, a:focus, &:active {
  677. opacity: 1;
  678. > a,
  679. > span {
  680. opacity: .7;
  681. }
  682. }
  683. }
  684. /* some feedback for hover/tap on breadcrumbs */
  685. .appear {
  686. opacity: 1;
  687. -webkit-transition: opacity 500ms ease 0s;
  688. -moz-transition: opacity 500ms ease 0s;
  689. -ms-transition: opacity 500ms ease 0s;
  690. -o-transition: opacity 500ms ease 0s;
  691. transition: opacity 500ms ease 0s;
  692. &.transparent {
  693. opacity: 0;
  694. }
  695. }
  696. /* LEGACY FIX only - do not use fieldsets for settings */
  697. fieldset {
  698. &.warning legend, &.update legend {
  699. top: 18px;
  700. position: relative;
  701. }
  702. &.warning legend + p, &.update legend + p {
  703. margin-top: 12px;
  704. }
  705. }
  706. /* for IE10 */
  707. @-ms-viewport {
  708. width: device-width;
  709. }
  710. /* hidden input type=file field */
  711. .hiddenuploadfield {
  712. display: none;
  713. width: 0;
  714. height: 0;
  715. opacity: 0;
  716. }