settings.scss 13 KB

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