guest.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892
  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 'animations';
  7. /* Default and reset */
  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 { margin:0; padding:0; border:0; outline:0; font-weight:inherit; font-size:100%; font-family:inherit; vertical-align:baseline; cursor:default; }
  9. html { height:100%; }
  10. article, aside, dialog, figure, footer, header, hgroup, nav, section { display:block; }
  11. table { border-collapse:separate; border-spacing:0; white-space:nowrap; }
  12. caption, th, td { text-align:start; font-weight:normal; }
  13. table, td, th { vertical-align:middle; }
  14. a { border:0; color: var(--color-main-text); text-decoration:none;}
  15. a, a *, input, input *, select, .button span, label { cursor:pointer; }
  16. ul { list-style:none; }
  17. body {
  18. /* Guest content uses flexbox */
  19. display: flex;
  20. flex-direction: column;
  21. justify-content: center;
  22. align-items: center;
  23. /* bring the default font size up to 14px */
  24. font-size: .875em;
  25. font-weight: normal;
  26. line-height: 1.6em;
  27. font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Cantarell, Ubuntu, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  28. color: var(--color-background-plain-text, #ffffff);
  29. text-align: center;
  30. background-color: var(--color-background-plain, #0082c9);
  31. /*
  32. User background if logged in ('no' if removed, that way the variable is _defined_)
  33. Fallback to default gradient (should not happened, the background is always defined anyway) */
  34. background-image: var(--image-background, linear-gradient(40deg, #0082c9 0%, #30b6ff 100%));
  35. background-attachment: fixed;
  36. background-size: cover;
  37. background-position: center;
  38. min-height: 100%; /* fix sticky footer */
  39. height: auto;
  40. overflow: auto;
  41. position: static;
  42. }
  43. /* Various fonts settings */
  44. #body-login {
  45. a {
  46. font-weight: 600;
  47. }
  48. footer a {
  49. color: var(--color-text);
  50. }
  51. a:not(.button):hover,
  52. a:not(.button):focus {
  53. text-decoration: underline;
  54. text-decoration-skip-ink: auto;
  55. }
  56. }
  57. em {
  58. font-style: normal;
  59. opacity: .5;
  60. }
  61. /* heading styles */
  62. h2,
  63. h3,
  64. h4 {
  65. font-weight: bold;
  66. }
  67. h2 {
  68. font-size: 20px;
  69. margin-bottom: 12px;
  70. line-height: 140%;
  71. }
  72. h3 {
  73. font-size: 15px;
  74. margin: 12px 0;
  75. }
  76. /* Global content */
  77. #header {
  78. .logo {
  79. background-image: var(--image-logo, url('../../core/img/logo/logo.svg'));
  80. background-repeat: no-repeat;
  81. background-size: contain;
  82. background-position: center;
  83. width: 175px;
  84. height: 130px;
  85. margin: 0 auto;
  86. position: relative;
  87. inset-inline-start: unset;
  88. }
  89. }
  90. .wrapper {
  91. width: 100%;
  92. max-width: 700px;
  93. margin-block: 10vh auto;
  94. }
  95. /* Default FORM */
  96. form {
  97. position: relative;
  98. margin: auto;
  99. padding: 0;
  100. }
  101. form.install-form {
  102. max-width: 300px;
  103. }
  104. form.install-form fieldset,
  105. form.install-form fieldset input {
  106. width: 100%;
  107. }
  108. form.install-form .strengthify-wrapper {
  109. bottom: 17px;
  110. width: calc(100% - 8px);
  111. inset-inline-start: 4px;
  112. top: unset;
  113. }
  114. form.install-form #show {
  115. top: 18px;
  116. }
  117. form #sqliteInformation {
  118. margin-top: 0.5rem;
  119. margin-bottom: 20px;
  120. }
  121. form #adminaccount, form #use_other_db {
  122. margin-bottom: 15px;
  123. text-align: start;
  124. }
  125. form #adminaccount > legend,
  126. form #adminlogin {
  127. margin-bottom: 1rem;
  128. }
  129. form #advancedHeader {
  130. width: 100%;
  131. }
  132. form fieldset legend, #datadirContent label {
  133. width: 100%;
  134. }
  135. #datadirContent label {
  136. display: block;
  137. margin: 0;
  138. }
  139. form #datadirField legend {
  140. margin-bottom: 15px;
  141. }
  142. /* View more button */
  143. #showAdvanced {
  144. padding: 13px; /* increase clickable area of Advanced dropdown */
  145. }
  146. #showAdvanced img {
  147. vertical-align: middle; /* adjust position of Advanced dropdown arrow */
  148. }
  149. /* Buttons and input */
  150. @media only screen and (max-width: 1024px) {
  151. .wrapper {
  152. margin-top: 0;
  153. }
  154. }
  155. #submit-wrapper {
  156. margin: 0 auto;
  157. display: flex;
  158. align-items: center;
  159. justify-content: center;
  160. padding: 10px 5px;
  161. position: relative; /* Make the wrapper the containing block of its
  162. absolutely positioned descendant icons */
  163. .submit-icon {
  164. position: absolute;
  165. inset-inline-end: 24px;
  166. transition: inset-inline-end 100ms ease-in-out;
  167. pointer-events: none; /* The submit icon is positioned on the submit button.
  168. From the user point of view the icon is part of the
  169. button, so the clicks on the icon have to be
  170. applied to the button instead. */
  171. }
  172. input.login:hover ~ .submit-icon.icon-confirm-white,
  173. input.login:focus ~ .submit-icon.icon-confirm-white,
  174. input.login:active ~ .submit-icon.icon-confirm-white {
  175. inset-inline-end: 20px;
  176. }
  177. .icon-loading-small {
  178. position: absolute;
  179. top: 22px;
  180. inset-inline-end: 26px;
  181. }
  182. }
  183. input:not([type='radio']),
  184. input:not([type='range']) {
  185. border-width: 2px;
  186. }
  187. input:not([type='range']):focus-visible {
  188. box-shadow: none !important;
  189. }
  190. input[type='submit'],
  191. input[type='submit'].icon-confirm,
  192. input[type='button'],
  193. button,
  194. a.button,
  195. .button,
  196. select {
  197. display: inline-block;
  198. width: auto;
  199. min-width: 25px;
  200. padding: calc(2 * var(--default-grid-baseline));
  201. background-color: var(--color-main-background);
  202. font-weight: bold;
  203. color: var(--color-main-text);
  204. border: none;
  205. border-radius: var(--border-radius-element);
  206. cursor: pointer;
  207. }
  208. .icon-confirm.input-button-inline {
  209. position: absolute;
  210. inset-inline-end: 3px;
  211. top: 5px;
  212. }
  213. input[type='submit']:focus {
  214. box-shadow: 0 0 0 2px inset var(--color-main-text) !important;
  215. }
  216. input[type='text'],
  217. input[type='tel'],
  218. input[type='password'],
  219. input[type='email'] {
  220. width: 266px;
  221. padding: 5px 10px;
  222. color: var(--color-text-lighter);
  223. cursor: text;
  224. font-family: inherit;
  225. font-weight: normal;
  226. margin-inline: 0;
  227. }
  228. input[type='password'].password-with-toggle, input[type='text'].password-with-toggle {
  229. width: 238px;
  230. padding-inline-end: 40px !important;
  231. }
  232. input.login {
  233. width: 260px;
  234. height: 50px;
  235. background-position: right 16px center;
  236. }
  237. input[type='submit'],
  238. input[type='submit'].icon-confirm,
  239. input.updateButton,
  240. input.update-continue {
  241. padding: 10px 20px; /* larger log in and installation buttons */
  242. overflow: hidden;
  243. text-overflow: ellipsis;
  244. }
  245. /* Get rid of the inside dotted line in Firefox */
  246. button::-moz-focus-inner,
  247. input::-moz-focus-inner {
  248. border: 0;
  249. }
  250. input.primary {
  251. background-color: var(--color-primary-element);
  252. color: var(--color-primary-element-text);
  253. }
  254. input,
  255. button,
  256. a {
  257. &.primary:not(:disabled) {
  258. &:hover,
  259. &:focus {
  260. background-color: var(--color-primary-element-hover);
  261. color: var(--color-primary-element-text);
  262. }
  263. }
  264. }
  265. /* Checkboxes - white only for login */
  266. input[type='checkbox'].checkbox {
  267. position: absolute;
  268. inset-inline-start: -10000px;
  269. top: auto;
  270. width: 1px;
  271. height: 1px;
  272. overflow: hidden;
  273. }
  274. input[type='checkbox'].checkbox + label {
  275. user-select: none;
  276. }
  277. input[type='checkbox'].checkbox:disabled + label,
  278. input[type='checkbox'].checkbox:disabled + label:before {
  279. cursor: default;
  280. }
  281. input[type='checkbox'].checkbox + label:before {
  282. content: '';
  283. display: inline-block;
  284. vertical-align: middle;
  285. margin: 3px;
  286. margin-top: 1px;
  287. border: 1px solid #888;
  288. border-radius: 1px;
  289. height: 10px;
  290. width: 10px;
  291. background-position: center;
  292. }
  293. input[type='checkbox'].checkbox--white + label:before {
  294. border-color: #ddd;
  295. }
  296. input[type='checkbox'].checkbox--white:not(:disabled):not(:checked) + label:hover:before,
  297. input[type='checkbox'].checkbox--white:focus + label:before {
  298. border-color: #fff;
  299. }
  300. input[type='checkbox'].checkbox--white:disabled + label:before {
  301. background-color: #666 !important;
  302. border-color: #999 !important;
  303. }
  304. input[type='checkbox'].checkbox--white:checked:disabled + label:before {
  305. border-color: #666;
  306. background-color: #222;
  307. }
  308. input[type='checkbox'].checkbox--white:checked + label:before {
  309. background-color: transparent !important;
  310. border-color: #fff !important;
  311. background-image: url('../img/actions/checkbox-mark-white.svg');
  312. }
  313. /* Password strength meter */
  314. .strengthify-wrapper {
  315. display: inline-block;
  316. position: relative;
  317. top: -20px;
  318. width: 250px;
  319. border-start-start-radius: 0;
  320. border-start-end-radius: 0;
  321. border-end-end-radius: 3px;
  322. border-end-start-radius: 3px;
  323. overflow: hidden;
  324. height: 3px;
  325. }
  326. .tooltip-inner {
  327. font-weight: bold;
  328. padding: 3px 6px;
  329. text-align: center;
  330. }
  331. /* Show password toggle */
  332. #show, #dbpassword-toggle {
  333. position: absolute;
  334. inset-inline-end: 2px;
  335. top: -3px;
  336. display: flex;
  337. justify-content: center;
  338. width: 44px;
  339. align-content: center;
  340. padding: 13px;
  341. }
  342. #pass2, input[name='personal-password-clone'] {
  343. padding: .6em 2.5em .4em .4em;
  344. width: 8em;
  345. }
  346. #personal-show + label {
  347. height: 14px;
  348. margin-top: -25px;
  349. inset-inline-start: 295px;
  350. display: block;
  351. }
  352. #passwordbutton {
  353. margin-inline-start: .5em;
  354. }
  355. /* Dark subtle label text */
  356. p.info,
  357. form fieldset legend,
  358. #datadirContent label,
  359. form fieldset .warning-info,
  360. form input[type='checkbox']+label {
  361. text-align: center;
  362. }
  363. /* overrides another !important statement that sets this to unreadable black */
  364. form .warning input[type='checkbox']:hover+label,
  365. form .warning input[type='checkbox']:focus+label,
  366. form .warning input[type='checkbox']+label {
  367. color: var(--color-primary-element-text) !important;
  368. }
  369. .body-login-container.two-factor {
  370. // Same size as login box and dashboard panels
  371. width: 320px;
  372. box-sizing: border-box;
  373. }
  374. .two-factor-provider {
  375. display: flex;
  376. border-radius: 3px; /* --border-radius */
  377. margin: 12px 0;
  378. border: 1px solid transparent;
  379. text-align: start;
  380. align-items: center;
  381. text-decoration: none !important;
  382. &:hover,
  383. &:focus,
  384. &:active {
  385. border: 1px solid #fff;
  386. }
  387. img {
  388. width: 64px;
  389. height: 64px;
  390. padding: 0 12px;
  391. }
  392. div {
  393. margin: 12px 0;
  394. }
  395. h3 {
  396. margin: 0;
  397. }
  398. p {
  399. font-weight: normal;
  400. }
  401. }
  402. .two-factor-icon {
  403. width: 100px;
  404. display: block;
  405. margin: 0 auto;
  406. }
  407. .two-factor-submit {
  408. width: 100%;
  409. padding: 10px;
  410. margin: 0 0 5px 0;
  411. border-radius: 100px; /* --border-radius-pill */
  412. font-size: 20px;
  413. }
  414. .two-factor-primary {
  415. /* Fix for 'Use backup codes' button not taking correct styles */
  416. padding: 14px !important;
  417. width: 226px;
  418. }
  419. .two-factor-secondary {
  420. display: inline-block;
  421. padding: 12px;
  422. }
  423. /* Additional login options */
  424. #remember_login {
  425. margin-block: 18px 0 !important;
  426. margin-inline: 16px 5px !important;
  427. }
  428. /* fixes for update page TODO should be fixed some time in a proper way */
  429. /* this is just for an error while updating the ownCloud instance */
  430. .updateProgress .error {
  431. margin-top: 10px;
  432. margin-bottom: 10px;
  433. }
  434. /* Database selector on install page */
  435. form #selectDbType {
  436. text-align:center;
  437. white-space: nowrap;
  438. margin: 0;
  439. display: flex;
  440. .info {
  441. white-space: normal;
  442. }
  443. label {
  444. flex-grow: 1;
  445. margin: 0 -1px 5px;
  446. font-size: 12px;
  447. background: var(--color-background-hover);
  448. color: var(--color-main-text);
  449. cursor:pointer;
  450. border: 1px solid var(--color-border);
  451. padding: 10px 17px;
  452. }
  453. label.ui-state-hover,
  454. label.ui-state-active {
  455. font-weight: normal;
  456. background: var(--color-background-darker);
  457. color: var(--color-main-text);
  458. }
  459. label span {
  460. display: none;
  461. }
  462. }
  463. /* Nicely grouping input field sets */
  464. .grouptop,
  465. .groupmiddle,
  466. .groupbottom {
  467. position: relative;
  468. user-select: none;
  469. }
  470. .grouptop, .groupmiddle {
  471. margin-bottom: 8px !important;
  472. }
  473. .groupbottom {
  474. margin-bottom: 13px;
  475. }
  476. .groupbottom input[type=submit] {
  477. box-shadow: none !important;
  478. }
  479. .grouptop.groupbottom input {
  480. border-radius: 3px !important;
  481. margin: 5px 0 !important;
  482. }
  483. /* Errors */
  484. /* Warnings and errors are the same */
  485. .body-login-container {
  486. display: flex;
  487. flex-direction: column;
  488. text-align: start;
  489. word-wrap: break-word;
  490. border-radius: 10px; /* --border-radius-large */
  491. cursor: default;
  492. -moz-user-select: text;
  493. -webkit-user-select: text;
  494. -ms-user-select: text;
  495. user-select: text;
  496. /* TODO: Change all .warning/.update/.error to .body-login-container */
  497. .icon-big {
  498. background-size: 70px;
  499. height: 70px;
  500. }
  501. form {
  502. width: initial;
  503. }
  504. p:not(:last-child) {
  505. margin-bottom: 12px;
  506. }
  507. }
  508. /* Various paragraph styles */
  509. .infogroup {
  510. margin: 8px 0;
  511. }
  512. .infogroup:last-child {
  513. margin-bottom: 0;
  514. }
  515. p.info {
  516. margin: 20px auto;
  517. -webkit-user-select: none;
  518. -moz-user-select: none;
  519. -ms-user-select: none;
  520. user-select: none;
  521. }
  522. /* Update */
  523. .update {
  524. width: calc(100% - 32px);
  525. text-align: center;
  526. .appList {
  527. list-style: disc;
  528. text-align: start;
  529. margin-inline: 25px;
  530. }
  531. a.update-show-detailed {
  532. border-bottom: inherit;
  533. }
  534. }
  535. /* Cannot use inline-start and :dir to support Samsung Internet */
  536. body[dir='ltr'] .update img.float-spinner {
  537. float: left;
  538. }
  539. body[dir='rtl'] .update img.float-spinner {
  540. float: right;
  541. }
  542. #update-progress-detailed {
  543. text-align: start;
  544. margin-bottom: 12px;
  545. }
  546. .update-show-detailed {
  547. padding: 12px;
  548. display: block;
  549. opacity: .75;
  550. .icon-caret-white {
  551. display: inline-block;
  552. vertical-align: middle;
  553. }
  554. }
  555. #update-progress-icon {
  556. height: 32px;
  557. margin: 10px;
  558. background-size: 32px;
  559. }
  560. /* Icons */
  561. .icon-info-white {
  562. background-image: url('../img/actions/info-white.svg?v=2');
  563. }
  564. .icon-error-white {
  565. background-image: url('../img/actions/error-white.svg?v=1');
  566. }
  567. .icon-caret-white {
  568. background-image: url('../img/actions/caret-white.svg?v=1');
  569. }
  570. .icon-confirm {
  571. background-image: url('../img/actions/confirm.svg?v=2');
  572. }
  573. .icon-confirm-white {
  574. background-image: url('../img/actions/confirm-white.svg?v=2');
  575. }
  576. .icon-checkmark-white {
  577. background-image: url('../img/actions/checkmark-white.svg?v=1');
  578. }
  579. /* Loading */
  580. .float-spinner {
  581. margin-top: -32px;
  582. padding-top: 32px;
  583. height: 32px;
  584. display: none;
  585. }
  586. [class^='icon-'], [class*=' icon-'] {
  587. background-repeat: no-repeat;
  588. background-position: center;
  589. min-width: 16px;
  590. min-height: 16px;
  591. }
  592. .loading, .loading-small, .icon-loading, .icon-loading-dark, .icon-loading-small, .icon-loading-small-dark {
  593. position: relative;
  594. filter: var(--background-invert-if-dark)
  595. }
  596. .loading:after, .loading-small:after, .icon-loading:after, .icon-loading-dark:after, .icon-loading-small:after, .icon-loading-small-dark:after {
  597. border: 2px solid rgba(150, 150, 150, 0.5);
  598. border-radius: 100%;
  599. border-top-color: #646464;
  600. z-index: 2;
  601. content: '';
  602. height: 32px;
  603. width: 32px;
  604. margin: -17px 0 0 -17px;
  605. position: absolute;
  606. top: 50%;
  607. inset-inline-start: 50%;
  608. -webkit-animation: rotate .8s infinite linear;
  609. animation: rotate .8s infinite linear;
  610. -webkit-transform-origin: center;
  611. -ms-transform-origin: center;
  612. transform-origin: center;
  613. }
  614. .primary .loading,.primary+.loading,.primary .loading-small,.primary+.loading-small,.primary .icon-loading,.primary+.icon-loading,.primary .icon-loading-dark,.primary+.icon-loading-dark,.primary .icon-loading-small,.primary+.icon-loading-small,.primary .icon-loading-small-dark,.primary+.icon-loading-small-dark {
  615. filter: var(--primary-invert-if-bright)
  616. }
  617. .icon-loading-dark:after, .icon-loading-small-dark:after {
  618. border: 2px solid rgba(187, 187, 187, 0.5);
  619. border-top-color: #bbb;
  620. }
  621. .icon-loading-small:after, .icon-loading-small-dark:after {
  622. height: 16px;
  623. width: 16px;
  624. margin: -9px 0 0 -9px;
  625. }
  626. /* Css replaced elements don't have ::after nor ::before */
  627. img.icon-loading, object.icon-loading, video.icon-loading, button.icon-loading, textarea.icon-loading, input.icon-loading, select.icon-loading, div[contenteditable=true].icon-loading {
  628. background-image: url('../img/loading.gif');
  629. }
  630. img.icon-loading-dark, object.icon-loading-dark, video.icon-loading-dark, button.icon-loading-dark, textarea.icon-loading-dark, input.icon-loading-dark, select.icon-loading-dark, div[contenteditable=true].icon-loading-dark {
  631. background-image: url('../img/loading-dark.gif');
  632. }
  633. img.icon-loading-small, object.icon-loading-small, video.icon-loading-small, button.icon-loading-small, textarea.icon-loading-small, input.icon-loading-small, select.icon-loading-small, div[contenteditable=true].icon-loading-small {
  634. background-image: url('../img/loading-small.gif');
  635. }
  636. img.icon-loading-small-dark, object.icon-loading-small-dark, video.icon-loading-small-dark, button.icon-loading-small-dark, textarea.icon-loading-small-dark, input.icon-loading-small-dark, select.icon-loading-small-dark, div[contenteditable=true].icon-loading-small-dark {
  637. background-image: url('../img/loading-small-dark.gif');
  638. }
  639. @-webkit-keyframes rotate {
  640. from {
  641. -webkit-transform: rotate(0deg);
  642. transform: rotate(0deg);
  643. }
  644. to {
  645. -webkit-transform: rotate(360deg);
  646. transform: rotate(360deg);
  647. }
  648. }
  649. @keyframes rotate {
  650. from {
  651. -webkit-transform: rotate(0deg);
  652. transform: rotate(0deg);
  653. }
  654. to {
  655. -webkit-transform: rotate(360deg);
  656. transform: rotate(360deg);
  657. }
  658. }
  659. /* FOOTER */
  660. footer {
  661. .info .entity-name {
  662. font-weight: bold;
  663. }
  664. &.guest-box {
  665. padding: var(--default-grid-baseline) calc(3 * var(--default-grid-baseline));
  666. margin-bottom: 1rem;
  667. .info {
  668. margin: 0;
  669. }
  670. }
  671. }
  672. /* keep the labels for screen readers but hide them since we use placeholders */
  673. label.infield,
  674. .hidden-visually {
  675. position: absolute;
  676. inset-inline-start: -10000px;
  677. top: -10000px;
  678. width: 1px;
  679. height: 1px;
  680. overflow: hidden;
  681. }
  682. a.legal {
  683. font-size: smaller;
  684. }
  685. .notecard {
  686. color: var(--color-text-light);
  687. background-color: var(--note-background);
  688. border-inline-start: 4px solid var(--note-theme);
  689. border-radius: var(--border-radius);
  690. margin: 1rem 0;
  691. padding: 1rem;
  692. text-align: start;
  693. &.success {
  694. --note-background: rgba(var(--color-success-rgb), 0.1);
  695. --note-theme: var(--color-success);
  696. }
  697. &.error {
  698. --note-background: rgba(var(--color-error-rgb), 0.1);
  699. --note-theme: var(--color-error);
  700. }
  701. &.warning {
  702. --note-background: rgba(var(--color-warning-rgb), 0.1);
  703. --note-theme: var(--color-warning);
  704. }
  705. &:last-child {
  706. margin-bottom: 0;
  707. }
  708. pre {
  709. background-color: var(--color-background-dark);
  710. margin-top: 1rem;
  711. padding: 1em 1.3em;
  712. border-radius: var(--border-radius);
  713. }
  714. }
  715. .guest-box, .body-login-container {
  716. // Ensure the maxcontrast color is set for the background
  717. --color-text-maxcontrast: var(--color-text-maxcontrast-background-blur, var(--color-main-text));
  718. color: var(--color-main-text);
  719. background-color: var(--color-main-background-blur);
  720. padding: calc(3 * var(--default-grid-baseline));
  721. border-radius: var(--border-radius-container);
  722. box-shadow: 0 0 10px var(--color-box-shadow);
  723. display: inline-block;
  724. -webkit-backdrop-filter: var(--filter-background-blur);
  725. backdrop-filter: var(--filter-background-blur);
  726. }
  727. .guest-box {
  728. &.wide {
  729. display: block;
  730. text-align: start;
  731. border-radius: var(--border-radius-container-large);
  732. }
  733. fieldset {
  734. margin-top: 0;
  735. }
  736. .pre {
  737. overflow-x: scroll;
  738. }
  739. }
  740. button.toggle-password {
  741. background-color: transparent;
  742. border-width: 0;
  743. height: 44px;
  744. }
  745. /** Utilities */
  746. .margin-top {
  747. margin-top: 1rem !important;
  748. }
  749. .text-left {
  750. text-align: start !important;
  751. }
  752. .hidden {
  753. display: none;
  754. }