styles.scss 15 KB

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