1
0

styles.scss 15 KB

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