settings.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  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-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. right: 8px;
  161. top: -28px;
  162. pointer-events: none;
  163. float: right;
  164. }
  165. }
  166. }
  167. .verify {
  168. position: relative;
  169. left: 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. right: -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-left: 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-right: 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-right: 0;
  327. margin-top: 0 !important;
  328. right: 3px;
  329. }
  330. }
  331. #pass2 {
  332. width: 100%;
  333. }
  334. .password-state {
  335. display: inline-block;
  336. }
  337. .strengthify-wrapper {
  338. position: absolute;
  339. left: 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-left: 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. right: 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 1em 0 0;
  403. border-bottom: 1px solid var(--color-border);
  404. text-align: left;
  405. font-weight: normal;
  406. }
  407. td {
  408. border-bottom: 1px solid var(--color-border);
  409. padding: 0 1em 0 0;
  410. text-align: left;
  411. font-weight: normal;
  412. }
  413. }
  414. td, th {
  415. &.name {
  416. padding-left: .8em;
  417. min-width: 5em;
  418. max-width: 12em;
  419. text-overflow: ellipsis;
  420. overflow: hidden;
  421. }
  422. &.password {
  423. padding-left: .8em;
  424. > img {
  425. visibility: hidden;
  426. }
  427. }
  428. &.displayName > img {
  429. visibility: hidden;
  430. }
  431. &.password,
  432. &.mailAddress {
  433. min-width: 5em;
  434. max-width: 12em;
  435. cursor: pointer;
  436. span {
  437. width: 90%;
  438. display: inline-block;
  439. text-overflow: ellipsis;
  440. overflow: hidden;
  441. }
  442. }
  443. &.mailAddress {
  444. cursor: pointer;
  445. }
  446. &.password > span {
  447. margin-right: 1.2em;
  448. color: #C7C7C7;
  449. }
  450. }
  451. span.usersLastLoginTooltip {
  452. white-space: nowrap;
  453. }
  454. /* SETTINGS NAVIGATION */
  455. #app-navigation {
  456. /* Navigation icons */
  457. img {
  458. margin-bottom: -3px;
  459. margin-right: 6px;
  460. width: 16px;
  461. }
  462. li span.no-icon {
  463. padding-left: 32px;
  464. }
  465. ul li.active > span.utils {
  466. .delete, .rename {
  467. display: block;
  468. }
  469. }
  470. }
  471. /* SETTINGS SECTIONS */
  472. .section {
  473. margin-bottom: 0;
  474. /* section divider lines, none needed for last one */
  475. &:not(:last-child) {
  476. border-bottom: 1px solid var(--color-border);
  477. }
  478. /* correctly display help icons next to headings */
  479. h2 {
  480. margin-bottom: 22px;
  481. .icon-info {
  482. padding: 6px 20px;
  483. vertical-align: text-bottom;
  484. display: inline-block;
  485. }
  486. }
  487. }
  488. /* LOG */
  489. #log {
  490. white-space: normal;
  491. margin-bottom: 14px;
  492. }
  493. #lessLog {
  494. display: none;
  495. }
  496. table.grid td.date {
  497. white-space: nowrap;
  498. }
  499. #log-section p {
  500. margin-top: 20px;
  501. }
  502. #security-warning-state-ok,
  503. #security-warning-state-warning,
  504. #security-warning-state-failure,
  505. #security-warning-state-loading {
  506. span {
  507. vertical-align: middle;
  508. &.message {
  509. padding: 12px;
  510. }
  511. &.icon {
  512. width: 32px;
  513. height: 32px;
  514. background-position: center center;
  515. display: inline-block;
  516. border-radius: 50%;
  517. }
  518. &.icon-checkmark-white {
  519. background-color: var(--color-success);
  520. }
  521. &.icon-error-white {
  522. background-color: var(--color-warning);
  523. }
  524. &.icon-close-white {
  525. background-color: var(--color-error);
  526. }
  527. }
  528. }
  529. #shareAPI {
  530. &.loading > div {
  531. display: none;
  532. }
  533. p {
  534. padding-bottom: 0.8em;
  535. }
  536. .indent {
  537. padding-left: 28px;
  538. }
  539. .double-indent {
  540. padding-left: 56px;
  541. }
  542. .nocheckbox {
  543. padding-left: 20px;
  544. }
  545. #s2id_linksExcludedGroups {
  546. width: 200px !important;
  547. }
  548. }
  549. #shareApiDefaultPermissionsSection label {
  550. margin-right: 20px;
  551. }
  552. #fileSharingSettings h3 {
  553. display: inline-block;
  554. }
  555. #publicShareDisclaimerText {
  556. width: calc(100% - 23px);
  557. /* 20 px left margin, 3 px right margin */
  558. max-width: 600px;
  559. height: 150px;
  560. margin-left: 20px;
  561. box-sizing: border-box;
  562. }
  563. /* correctly display help icons next to headings */
  564. .icon-info {
  565. padding: 11px 20px;
  566. vertical-align: text-bottom;
  567. opacity: .5;
  568. }
  569. #two-factor-auth h2,
  570. #shareAPI h2,
  571. #mail_general_settings h2 {
  572. display: inline-block;
  573. }
  574. .mail_settings p {
  575. label:first-child {
  576. display: inline-block;
  577. width: 300px;
  578. text-align: right;
  579. }
  580. select:nth-child(2),
  581. input:not([type='button']) {
  582. width: 143px;
  583. }
  584. }
  585. @media (max-width: calc(variables.$breakpoint-mobile * 0.75)) {
  586. .mail_settings p label:first-child {
  587. width: unset;
  588. text-align: left;
  589. display: block;
  590. margin-top: calc(var(--default-grid-baseline) * 2);
  591. }
  592. }
  593. #mail_smtpport {
  594. width: 60px;
  595. }
  596. .cronlog {
  597. margin-left: 10px;
  598. }
  599. .status {
  600. display: inline-block;
  601. height: 16px;
  602. width: 16px;
  603. vertical-align: text-bottom;
  604. &.success {
  605. border-radius: 50%;
  606. }
  607. }
  608. #selectGroups select {
  609. box-sizing: border-box;
  610. display: inline-block;
  611. height: 36px;
  612. padding: 7px 10px;
  613. }
  614. #log .log-message {
  615. word-break: break-all;
  616. min-width: 180px;
  617. }
  618. span {
  619. &.success {
  620. background-color: var(--color-success);
  621. border-radius: var(--border-radius);
  622. }
  623. &.error {
  624. background-color: var(--color-error);
  625. }
  626. &.indeterminate {
  627. background-color: var(--color-warning);
  628. border-radius: 40% 0;
  629. }
  630. }
  631. /* OPERA hack for strengthify*/
  632. doesnotexist:-o-prefocus, .strengthify-wrapper {
  633. left: 185px;
  634. width: 129px;
  635. }
  636. .trusted-domain-warning {
  637. color: #fff;
  638. padding: 5px;
  639. background: #ce3702;
  640. border-radius: 5px;
  641. font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  642. }
  643. #postsetupchecks {
  644. ul {
  645. margin-left: 44px;
  646. list-style: disc;
  647. li {
  648. margin: 10px 0;
  649. }
  650. ul {
  651. list-style: circle;
  652. }
  653. }
  654. .loading {
  655. height: 50px;
  656. background-position: left center;
  657. }
  658. .errors, .errors a {
  659. color: var(--color-error);
  660. }
  661. .warnings, .warnings a {
  662. color: var(--color-warning);
  663. }
  664. .hint {
  665. margin: 20px 0;
  666. }
  667. }
  668. #security-warning {
  669. a {
  670. text-decoration: underline;
  671. }
  672. .extra-top-margin {
  673. margin-top: 12px;
  674. }
  675. }
  676. .security-warning__heading {
  677. display: flex;
  678. flex-wrap: wrap;
  679. margin-bottom: calc(var(--default-grid-baseline) * 8);
  680. > h2 {
  681. margin-bottom: 0px;
  682. }
  683. > a {
  684. width: 44px;
  685. }
  686. }
  687. #admin-tips li {
  688. list-style: initial;
  689. a {
  690. display: inline-block;
  691. padding: 3px 0;
  692. }
  693. }
  694. #warning {
  695. color: red;
  696. }
  697. .settings-hint {
  698. margin-top: -12px;
  699. margin-bottom: 12px;
  700. opacity: .7;
  701. }
  702. .animated {
  703. animation: blink-animation 1s steps(5, start) 4;
  704. }
  705. @keyframes blink-animation {
  706. to {
  707. opacity: 0.6;
  708. }
  709. }
  710. @-webkit-keyframes blink-animation {
  711. to {
  712. opacity: 1;
  713. }
  714. }