settings.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. /*!
  2. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-FileCopyrightText: 2011 Jan-Christoph Borchardt, http://jancborchardt.net
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. @use 'variables';
  7. @use 'sass:math';
  8. @import 'functions';
  9. input {
  10. &#openid, &#webdav {
  11. width: 20em;
  12. }
  13. }
  14. /* PERSONAL */
  15. .clear {
  16. clear: both;
  17. }
  18. /* icons for sidebar */
  19. .nav-icon-personal-settings {
  20. @include icon-color('personal', 'settings', variables.$color-black);
  21. }
  22. .nav-icon-security {
  23. @include icon-color('toggle-filelist', 'settings', variables.$color-black);
  24. }
  25. .nav-icon-clientsbox {
  26. @include icon-color('change', 'settings', variables.$color-black);
  27. }
  28. .nav-icon-federated-cloud {
  29. @include icon-color('share', 'settings', variables.$color-black);
  30. }
  31. .nav-icon-second-factor-backup-codes, .nav-icon-ssl-root-certificate {
  32. @include icon-color('password', 'settings', variables.$color-black);
  33. }
  34. #personal-settings-avatar-container {
  35. display: inline-grid;
  36. grid-template-columns: 1fr;
  37. grid-template-rows: 2fr 1fr 2fr;
  38. vertical-align: top;
  39. }
  40. .profile-settings-container {
  41. display: inline-grid;
  42. grid-template-columns: 1fr 1fr 1fr;
  43. }
  44. .personal-show-container {
  45. width: 100%;
  46. }
  47. .personal-settings-setting-box {
  48. .section {
  49. padding: 10px 30px;
  50. .headerbar-label {
  51. margin-bottom: 0;
  52. }
  53. input {
  54. &[type='text'], &[type='email'], &[type='tel'], &[type='url'] {
  55. width: 100%;
  56. }
  57. }
  58. }
  59. &-profile {
  60. grid-row: 3/5;
  61. }
  62. &-detail {
  63. grid-row: 5;
  64. }
  65. &-detail--without-profile {
  66. grid-row: 3;
  67. }
  68. }
  69. select {
  70. &#timezone {
  71. width: 100%;
  72. }
  73. }
  74. #personal-settings {
  75. display: grid;
  76. padding: 20px;
  77. max-width: 1700px;
  78. grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  79. grid-column-gap: 10px;
  80. .section {
  81. padding: 10px 10px;
  82. border: 0;
  83. h2 {
  84. margin-bottom: 12px;
  85. }
  86. h3 {
  87. > label {
  88. font-weight: bold;
  89. }
  90. }
  91. }
  92. .personal-info {
  93. margin-inline-end: 10%;
  94. margin-bottom: 12px;
  95. margin-top: 12px;
  96. }
  97. .personal-info[class^='icon-'], .personal-info[class*=' icon-'] {
  98. background-position: 0px 2px;
  99. padding-inline-start: 30px;
  100. opacity: 0.7;
  101. }
  102. }
  103. // Button for 'Reasons to use Nextcloud in your organization'
  104. .development-notice {
  105. text-align: center;
  106. a:not(.link-button) {
  107. text-decoration: underline;
  108. }
  109. }
  110. .link-button {
  111. display: inline-block;
  112. margin: calc(2 * var(--default-grid-baseline));
  113. padding: calc(2 * var(--default-grid-baseline)) calc(4 * var(--default-grid-baseline));
  114. background-color: var(--color-primary-element);
  115. color: var(--color-primary-element-text);
  116. border-radius: var(--border-radius-element);
  117. border: 1px solid var(--color-primary-element);
  118. box-shadow: 0 2px 9px var(--color-box-shadow);
  119. &:hover,
  120. &:focus {
  121. background-color: var(--color-primary-element-hover);
  122. }
  123. &:active,
  124. &:focus-visible {
  125. box-shadow: 0 0 0 4px var(--color-main-background) !important;
  126. outline: 2px solid var(--color-main-text) !important;
  127. }
  128. &.icon-file {
  129. padding-inline-start: calc(var(--default-grid-baseline) + var(--default-clickable-area));
  130. background-position: calc(2 * var(--default-grid-baseline));
  131. }
  132. }
  133. body[dir='ltr'] .link-button.icon-file {
  134. background-position: left 24px center;
  135. }
  136. body[dir='rtl'] .link-button.icon-file {
  137. background-position: right 24px center;
  138. }
  139. .personal-settings-container {
  140. display: inline-grid;
  141. grid-template-columns: 1fr 1fr 1fr;
  142. &:after {
  143. clear: both;
  144. }
  145. > div {
  146. h3 {
  147. position: relative;
  148. display: inline-flex;
  149. flex-wrap: nowrap;
  150. justify-content: flex-start;
  151. width: 100%;
  152. align-items: center;
  153. gap: 8px;
  154. > label {
  155. white-space: nowrap;
  156. text-overflow: ellipsis;
  157. overflow: hidden;
  158. }
  159. }
  160. > form span {
  161. &[class^='icon-checkmark'], &[class^='icon-error'] {
  162. position: relative;
  163. inset-inline-end: 8px;
  164. top: -28px;
  165. pointer-events: none;
  166. float: right;
  167. }
  168. }
  169. }
  170. .verify {
  171. position: relative;
  172. inset-inline-start: 100%;
  173. top: 0;
  174. height: 0;
  175. img {
  176. padding: 12px 7px 6px;
  177. }
  178. }
  179. .verify-action {
  180. cursor: pointer;
  181. }
  182. input:disabled {
  183. background-color: white;
  184. color: black;
  185. border: none;
  186. opacity: 100;
  187. }
  188. }
  189. /* verify accounts */
  190. /* only show pointer cursor when popup will be there */
  191. .verification-dialog {
  192. display: none;
  193. inset-inline-end: -9px;
  194. top: 40px;
  195. width: 275px;
  196. p {
  197. padding: 10px;
  198. }
  199. .verificationCode {
  200. font-family: monospace;
  201. display: block;
  202. overflow-wrap: break-word;
  203. }
  204. }
  205. .federation-menu {
  206. position: relative;
  207. cursor: pointer;
  208. width: var(--default-clickable-area);
  209. height: var(--default-clickable-area);
  210. padding: calc(2 * var(--default-grid-baseline));
  211. margin: 0;
  212. background: none;
  213. border: none;
  214. &:hover,
  215. &:focus {
  216. background-color: var(--color-background-hover);
  217. border-radius: var(--border-radius-element);
  218. .icon-federation-menu {
  219. opacity: 0.8;
  220. }
  221. }
  222. .icon-federation-menu {
  223. padding-inline-start: 16px;
  224. background-size: 16px;
  225. background-position: left center;
  226. opacity: .3;
  227. cursor: inherit;
  228. .icon-triangle-s {
  229. display: inline-block;
  230. vertical-align: middle;
  231. cursor: inherit;
  232. }
  233. }
  234. .federationScopeMenu {
  235. top: var(--default-clickable-area);
  236. &.popovermenu {
  237. .menuitem {
  238. // override h3 heading font size
  239. font-size: 12.8px;
  240. line-height: 1.6em;
  241. .menuitem-text-detail {
  242. opacity: .75;
  243. }
  244. &.active {
  245. box-shadow: inset 2px 0 var(--color-primary-element);
  246. .menuitem-text {
  247. font-weight: bold;
  248. }
  249. }
  250. &.disabled {
  251. opacity: .5;
  252. cursor: default;
  253. * {
  254. cursor: default;
  255. }
  256. }
  257. }
  258. }
  259. }
  260. }
  261. .clientsbox img {
  262. height: 60px;
  263. }
  264. #sslCertificate {
  265. tr.expired {
  266. background-color: rgba(255, 0, 0, 0.5);
  267. }
  268. td {
  269. padding: 5px;
  270. }
  271. }
  272. #displaynameerror,
  273. #displaynamechanged {
  274. display: none;
  275. }
  276. input#identity {
  277. width: 20em;
  278. }
  279. #showWizard {
  280. display: inline-block;
  281. }
  282. .msg {
  283. &.success {
  284. color: #fff;
  285. background-color: #47a447;
  286. padding: 3px;
  287. }
  288. &.error {
  289. color: #fff;
  290. background-color: #d2322d;
  291. padding: 3px;
  292. }
  293. }
  294. table.nostyle {
  295. label {
  296. margin-inline-end: 2em;
  297. }
  298. td {
  299. padding: 0.2em 0;
  300. }
  301. }
  302. #security-password {
  303. #passwordform {
  304. display: flex;
  305. flex-wrap: wrap;
  306. flex-direction: column;
  307. gap: 1rem;
  308. .input-control {
  309. display: flex;
  310. flex-wrap: wrap;
  311. flex-direction: column;
  312. label {
  313. margin-bottom: 0.5rem;
  314. }
  315. }
  316. #pass1, .personal-show-container {
  317. flex-shrink: 1;
  318. width: 300px;
  319. min-width: 150px;
  320. }
  321. // Extremely fragile code, to be replaced by PasswordField component soon
  322. .personal-show-container {
  323. #pass2 {
  324. position: relative;
  325. top: 0.5rem;
  326. }
  327. .personal-show-label {
  328. top: 34px !important;
  329. margin-inline-end: 0;
  330. margin-top: 0 !important;
  331. inset-inline-end: 3px;
  332. }
  333. }
  334. #pass2 {
  335. width: 100%;
  336. }
  337. .password-state {
  338. display: inline-block;
  339. }
  340. .strengthify-wrapper {
  341. position: absolute;
  342. inset-inline-start: 0;
  343. width: 100%;
  344. border-radius: 0 0 2px 2px;
  345. margin-top: 5px;
  346. overflow: hidden;
  347. height: 3px;
  348. }
  349. }
  350. }
  351. /* Two-Factor Authentication (2FA) */
  352. #two-factor-auth {
  353. h3 {
  354. margin-top: 24px;
  355. }
  356. li > div {
  357. margin-inline-start: 20px;
  358. }
  359. .two-factor-provider-settings-icon {
  360. width: 16px;
  361. height: 16px;
  362. filter: var(--background-invert-if-dark);
  363. }
  364. }
  365. /* USERS */
  366. .isgroup {
  367. .groupname {
  368. width: 85%;
  369. display: block;
  370. overflow: hidden;
  371. text-overflow: ellipsis;
  372. }
  373. &.active .groupname {
  374. width: 65%;
  375. }
  376. }
  377. li.active {
  378. .delete,
  379. .rename {
  380. display: block;
  381. }
  382. }
  383. .app-navigation-entry-utils {
  384. .delete,
  385. .rename {
  386. display: none;
  387. }
  388. }
  389. #usersearchform {
  390. position: absolute;
  391. top: 2px;
  392. inset-inline-end: 0;
  393. input {
  394. width: 150px;
  395. }
  396. label {
  397. font-weight: bold;
  398. }
  399. }
  400. /* display table at full width */
  401. table.grid {
  402. width: 100%;
  403. th {
  404. height: 2em;
  405. padding: 0;
  406. padding-inline-end: 1em;
  407. border-bottom: 1px solid var(--color-border);
  408. text-align: start;
  409. font-weight: normal;
  410. }
  411. td {
  412. border-bottom: 1px solid var(--color-border);
  413. padding: 0;
  414. padding-inline-end: 1em;
  415. text-align: start;
  416. font-weight: normal;
  417. }
  418. }
  419. td, th {
  420. &.name {
  421. padding-inline-start: .8em;
  422. min-width: 5em;
  423. max-width: 12em;
  424. text-overflow: ellipsis;
  425. overflow: hidden;
  426. }
  427. &.password {
  428. padding-inline-start: .8em;
  429. > img {
  430. visibility: hidden;
  431. }
  432. }
  433. &.displayName > img {
  434. visibility: hidden;
  435. }
  436. &.password,
  437. &.mailAddress {
  438. min-width: 5em;
  439. max-width: 12em;
  440. cursor: pointer;
  441. span {
  442. width: 90%;
  443. display: inline-block;
  444. text-overflow: ellipsis;
  445. overflow: hidden;
  446. }
  447. }
  448. &.mailAddress {
  449. cursor: pointer;
  450. }
  451. &.password > span {
  452. margin-inline-end: 1.2em;
  453. color: #C7C7C7;
  454. }
  455. }
  456. span.usersLastLoginTooltip {
  457. white-space: nowrap;
  458. }
  459. /* SETTINGS NAVIGATION */
  460. #app-navigation {
  461. /* Navigation icons */
  462. img {
  463. margin-bottom: -3px;
  464. margin-inline-end: 6px;
  465. width: 16px;
  466. }
  467. li span.no-icon {
  468. padding-inline-start: 32px;
  469. }
  470. ul li.active > span.utils {
  471. .delete, .rename {
  472. display: block;
  473. }
  474. }
  475. }
  476. /* SETTINGS SECTIONS */
  477. .section {
  478. margin-bottom: 0;
  479. /* section divider lines, none needed for last one */
  480. &:not(:last-child) {
  481. border-bottom: 1px solid var(--color-border);
  482. }
  483. /* correctly display help icons next to headings */
  484. h2 {
  485. margin-bottom: 22px;
  486. .icon-info {
  487. padding: 6px 20px;
  488. vertical-align: text-bottom;
  489. display: inline-block;
  490. }
  491. }
  492. }
  493. /* LOG */
  494. #log {
  495. white-space: normal;
  496. margin-bottom: 14px;
  497. }
  498. #lessLog {
  499. display: none;
  500. }
  501. table.grid td.date {
  502. white-space: nowrap;
  503. }
  504. #log-section p {
  505. margin-top: 20px;
  506. }
  507. #security-warning-state-ok,
  508. #security-warning-state-warning,
  509. #security-warning-state-failure,
  510. #security-warning-state-loading {
  511. span {
  512. vertical-align: middle;
  513. &.message {
  514. padding: 12px;
  515. }
  516. &.icon {
  517. width: 32px;
  518. height: 32px;
  519. background-position: center center;
  520. display: inline-block;
  521. border-radius: 50%;
  522. }
  523. &.icon-checkmark-white {
  524. background-color: var(--color-success);
  525. }
  526. &.icon-error-white {
  527. background-color: var(--color-warning);
  528. }
  529. &.icon-close-white {
  530. background-color: var(--color-error);
  531. }
  532. }
  533. }
  534. #shareAPI {
  535. &.loading > div {
  536. display: none;
  537. }
  538. p {
  539. padding-bottom: 0.8em;
  540. }
  541. .indent {
  542. padding-inline-start: 28px;
  543. }
  544. .double-indent {
  545. padding-inline-start: 56px;
  546. }
  547. .nocheckbox {
  548. padding-inline-start: 20px;
  549. }
  550. #s2id_linksExcludedGroups {
  551. width: 200px !important;
  552. }
  553. }
  554. #shareApiDefaultPermissionsSection label {
  555. margin-inline-end: 20px;
  556. }
  557. #fileSharingSettings h3 {
  558. display: inline-block;
  559. }
  560. #publicShareDisclaimerText {
  561. width: calc(100% - 23px);
  562. /* 20 px left margin, 3 px right margin */
  563. max-width: 600px;
  564. height: 150px;
  565. margin-inline-start: 20px;
  566. box-sizing: border-box;
  567. }
  568. /* correctly display help icons next to headings */
  569. .icon-info {
  570. padding: 11px 20px;
  571. vertical-align: text-bottom;
  572. opacity: .5;
  573. }
  574. #two-factor-auth h2,
  575. #shareAPI h2,
  576. #mail_general_settings h2 {
  577. display: inline-block;
  578. }
  579. .mail_settings p {
  580. label:first-child {
  581. display: inline-block;
  582. width: 300px;
  583. text-align: end;
  584. }
  585. select:nth-child(2),
  586. input:not([type='button']) {
  587. width: 143px;
  588. }
  589. }
  590. @media (max-width: calc(variables.$breakpoint-mobile * 0.75)) {
  591. .mail_settings p label:first-child {
  592. width: unset;
  593. text-align: start;
  594. display: block;
  595. margin-top: calc(var(--default-grid-baseline) * 2);
  596. }
  597. }
  598. #mail_smtpport {
  599. width: 60px;
  600. }
  601. .cronlog {
  602. margin-inline-start: 10px;
  603. }
  604. .status {
  605. display: inline-block;
  606. height: 16px;
  607. width: 16px;
  608. vertical-align: text-bottom;
  609. &.success {
  610. border-radius: 50%;
  611. }
  612. }
  613. #selectGroups select {
  614. box-sizing: border-box;
  615. display: inline-block;
  616. height: 36px;
  617. padding: 7px 10px;
  618. }
  619. #log .log-message {
  620. word-break: break-all;
  621. min-width: 180px;
  622. }
  623. span {
  624. &.success {
  625. background-color: var(--color-success);
  626. border-radius: var(--border-radius);
  627. }
  628. &.error {
  629. background-color: var(--color-error);
  630. }
  631. &.indeterminate {
  632. background-color: var(--color-warning);
  633. border-radius: 40% 0;
  634. }
  635. }
  636. /* OPERA hack for strengthify*/
  637. doesnotexist:-o-prefocus, .strengthify-wrapper {
  638. inset-inline-start: 185px;
  639. width: 129px;
  640. }
  641. .trusted-domain-warning {
  642. color: #fff;
  643. padding: 5px;
  644. background: #ce3702;
  645. border-radius: 5px;
  646. font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  647. }
  648. #postsetupchecks {
  649. ul {
  650. margin-inline-start: 44px;
  651. list-style: disc;
  652. li {
  653. margin: 10px 0;
  654. }
  655. ul {
  656. list-style: circle;
  657. }
  658. }
  659. .loading {
  660. height: 50px;
  661. background-position: left center;
  662. }
  663. .errors, .errors a {
  664. color: var(--color-error);
  665. }
  666. .warnings, .warnings a {
  667. color: var(--color-warning);
  668. }
  669. .hint {
  670. margin: 20px 0;
  671. }
  672. }
  673. #security-warning {
  674. a {
  675. text-decoration: underline;
  676. }
  677. .extra-top-margin {
  678. margin-top: 12px;
  679. }
  680. }
  681. .security-warning__heading {
  682. display: flex;
  683. flex-wrap: wrap;
  684. margin-bottom: calc(var(--default-grid-baseline) * 8);
  685. > h2 {
  686. margin-bottom: 0px;
  687. }
  688. > a {
  689. width: 44px;
  690. }
  691. }
  692. #admin-tips li {
  693. list-style: initial;
  694. a {
  695. display: inline-block;
  696. padding: 3px 0;
  697. }
  698. }
  699. #warning {
  700. color: red;
  701. }
  702. .settings-hint {
  703. margin-top: -12px;
  704. margin-bottom: 12px;
  705. opacity: .7;
  706. }
  707. .animated {
  708. animation: blink-animation 1s steps(5, start) 4;
  709. }
  710. @keyframes blink-animation {
  711. to {
  712. opacity: 0.6;
  713. }
  714. }
  715. @-webkit-keyframes blink-animation {
  716. to {
  717. opacity: 1;
  718. }
  719. }