settings.scss 12 KB

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