settings.scss 12 KB

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