guest.scss 19 KB

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