settings.scss 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647
  1. /* Copyright (c) 2011, Jan-Christoph Borchardt, http://jancborchardt.net
  2. This file is licensed under the Affero General Public License version 3 or later.
  3. See the COPYING-README file. */
  4. @use 'variables';
  5. @import 'functions';
  6. input {
  7. &#openid, &#webdav {
  8. width: 20em;
  9. }
  10. }
  11. /* PERSONAL */
  12. .clear {
  13. clear: both;
  14. }
  15. /* icons for sidebar */
  16. .nav-icon-personal-settings {
  17. @include icon-color('personal', 'settings', variables.$color-black);
  18. }
  19. .nav-icon-security {
  20. @include icon-color('toggle-filelist', 'settings', variables.$color-black);
  21. }
  22. .nav-icon-clientsbox {
  23. @include icon-color('change', 'settings', variables.$color-black);
  24. }
  25. .nav-icon-federated-cloud {
  26. @include icon-color('share', 'settings', variables.$color-black);
  27. }
  28. .nav-icon-second-factor-backup-codes, .nav-icon-ssl-root-certificate {
  29. @include icon-color('password', 'settings', variables.$color-black);
  30. }
  31. #personal-settings-avatar-container {
  32. display: inline-grid;
  33. grid-template-columns: 1fr;
  34. grid-template-rows: 2fr 1fr 2fr;
  35. vertical-align: top;
  36. }
  37. .profile-settings-container {
  38. display: inline-grid;
  39. grid-template-columns: 1fr 1fr 1fr;
  40. }
  41. .personal-show-container {
  42. width: 100%;
  43. }
  44. .personal-settings-setting-box {
  45. .section {
  46. padding: 10px 30px;
  47. .headerbar-label {
  48. margin-bottom: 0;
  49. }
  50. input {
  51. &[type='text'], &[type='email'], &[type='tel'], &[type='url'] {
  52. width: 100%;
  53. }
  54. }
  55. }
  56. &-profile {
  57. grid-row: 3/5;
  58. }
  59. &-detail {
  60. grid-row: 5;
  61. }
  62. &-detail--without-profile {
  63. grid-row: 3;
  64. }
  65. }
  66. select {
  67. &#timezone {
  68. width: 100%;
  69. }
  70. }
  71. #personal-settings {
  72. display: grid;
  73. padding: 20px;
  74. max-width: 1700px;
  75. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  76. grid-column-gap: 10px;
  77. .section {
  78. padding: 10px 10px;
  79. border: 0;
  80. h2 {
  81. margin-bottom: 12px;
  82. }
  83. h3 {
  84. > label {
  85. font-weight: bold;
  86. }
  87. }
  88. }
  89. .personal-info {
  90. margin-right: 10%;
  91. margin-bottom: 12px;
  92. margin-top: 12px;
  93. }
  94. .personal-info[class^='icon-'], .personal-info[class*=' icon-'] {
  95. background-position: 0px 2px;
  96. padding-left: 30px;
  97. opacity: 0.7;
  98. }
  99. }
  100. // Button for 'Reasons to use Nextcloud in your organization'
  101. .development-notice {
  102. text-align: center;
  103. a:not(.link-button) {
  104. text-decoration: underline;
  105. &:hover {
  106. background-color: var(--color-primary-element-hover);
  107. }
  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: #fff;
  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. color: var(--color-primary-element);
  123. background-color: var(--color-primary-element-text);
  124. border-color: var(--color-primary-element) !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. color: #999;
  399. border-bottom: 1px solid var(--color-border);
  400. padding: 0 .5em;
  401. padding-left: .8em;
  402. text-align: left;
  403. font-weight: normal;
  404. }
  405. td {
  406. border-bottom: 1px solid var(--color-border);
  407. padding: 0 .5em;
  408. padding-left: .8em;
  409. text-align: left;
  410. font-weight: normal;
  411. }
  412. }
  413. td, th {
  414. &.name {
  415. padding-left: .8em;
  416. min-width: 5em;
  417. max-width: 12em;
  418. text-overflow: ellipsis;
  419. overflow: hidden;
  420. }
  421. &.password {
  422. padding-left: .8em;
  423. > img {
  424. visibility: hidden;
  425. }
  426. }
  427. &.displayName > img {
  428. visibility: hidden;
  429. }
  430. &.password,
  431. &.mailAddress {
  432. min-width: 5em;
  433. max-width: 12em;
  434. cursor: pointer;
  435. span {
  436. width: 90%;
  437. display: inline-block;
  438. text-overflow: ellipsis;
  439. overflow: hidden;
  440. }
  441. }
  442. &.mailAddress {
  443. cursor: pointer;
  444. }
  445. &.password > span {
  446. margin-right: 1.2em;
  447. color: #C7C7C7;
  448. }
  449. }
  450. span.usersLastLoginTooltip {
  451. white-space: nowrap;
  452. }
  453. /* APPS */
  454. #app-content > svg.app-filter {
  455. float: left;
  456. height: 0;
  457. width: 0;
  458. }
  459. #app-category-app-bundles {
  460. margin-bottom: 20px;
  461. }
  462. .appinfo {
  463. margin: 1em 40px;
  464. }
  465. #app-navigation {
  466. /* Navigation icons */
  467. img {
  468. margin-bottom: -3px;
  469. margin-right: 6px;
  470. width: 16px;
  471. }
  472. li span.no-icon {
  473. padding-left: 32px;
  474. }
  475. ul li.active > span.utils {
  476. .delete, .rename {
  477. display: block;
  478. }
  479. }
  480. .appwarning {
  481. background: #fcc;
  482. }
  483. &.appwarning:hover {
  484. background: #fbb;
  485. }
  486. .app-external {
  487. color: var(--color-text-maxcontrast);
  488. }
  489. }
  490. span.version {
  491. margin-left: 1em;
  492. margin-right: 1em;
  493. color: var(--color-text-maxcontrast);
  494. }
  495. .app-version {
  496. color: var(--color-text-maxcontrast);
  497. }
  498. .app-level {
  499. span {
  500. color: var(--color-text-maxcontrast);
  501. background-color: transparent;
  502. border: 1px solid var(--color-text-maxcontrast);
  503. border-radius: var(--border-radius);
  504. padding: 3px 6px;
  505. }
  506. a {
  507. padding: 10px;
  508. margin: -6px;
  509. white-space: nowrap;
  510. }
  511. .official {
  512. background-position: left center;
  513. background-position: 5px center;
  514. padding-left: 25px;
  515. }
  516. .supported {
  517. border-color: var(--color-success);
  518. background-position: left center;
  519. background-position: 5px center;
  520. padding-left: 25px;
  521. color: var(--color-success);
  522. }
  523. }
  524. .app-score {
  525. position: relative;
  526. top: 4px;
  527. opacity: .5;
  528. }
  529. .app-settings-content {
  530. #searchresults {
  531. display: none;
  532. }
  533. }
  534. #apps-list.store {
  535. .section {
  536. border: 0;
  537. }
  538. .app-name {
  539. display: block;
  540. margin: 5px 0;
  541. }
  542. .app-name, .app-image * {
  543. cursor: pointer;
  544. }
  545. .app-summary {
  546. opacity: .7;
  547. }
  548. .app-image-icon .icon-settings-dark {
  549. width: 100%;
  550. height: 150px;
  551. background-size: 45px;
  552. opacity: 0.5;
  553. }
  554. .app-score-image {
  555. height: 14px;
  556. }
  557. .actions {
  558. margin-top: 10px;
  559. }
  560. }
  561. #app-sidebar #app-details-view {
  562. h2 {
  563. .icon-settings-dark,
  564. svg {
  565. display: inline-block;
  566. width: 16px;
  567. height: 16px;
  568. margin-right: 10px;
  569. opacity: .7;
  570. }
  571. }
  572. .app-level {
  573. clear: right;
  574. width: 100%;
  575. .supported,
  576. .official {
  577. vertical-align: top;
  578. }
  579. .app-score-image {
  580. float: right;
  581. }
  582. }
  583. .app-author, .app-licence {
  584. color: var(--color-text-maxcontrast);
  585. }
  586. .app-dependencies {
  587. margin: 10px 0;
  588. }
  589. .app-description p {
  590. margin: 10px 0;
  591. }
  592. .close {
  593. position: absolute;
  594. top: 0;
  595. right: 0;
  596. padding: 14px;
  597. opacity: 0.5;
  598. z-index: 1;
  599. width: 44px;
  600. height: 44px;
  601. }
  602. .actions {
  603. display: flex;
  604. align-items: center;
  605. .app-groups {
  606. padding: 5px;
  607. }
  608. }
  609. .appslink {
  610. text-decoration: underline;
  611. margin-right: 5px;
  612. }
  613. .app-level,
  614. .actions,
  615. .documentation,
  616. .app-dependencies,
  617. .app-description {
  618. margin: 20px 0;
  619. }
  620. }
  621. @media only screen and (min-width: 1601px) {
  622. .store .section {
  623. width: 25%;
  624. }
  625. .with-app-sidebar .store .section {
  626. width: 33%;
  627. }
  628. }
  629. @media only screen and (max-width: 1600px) {
  630. .store .section {
  631. width: 25%;
  632. }
  633. .with-app-sidebar .store .section {
  634. width: 33%;
  635. }
  636. }
  637. @media only screen and (max-width: 1400px) {
  638. .store .section {
  639. width: 33%;
  640. }
  641. .with-app-sidebar .store .section {
  642. width: 50%;
  643. }
  644. }
  645. @media only screen and (max-width: 900px) {
  646. .store .section {
  647. width: 50%;
  648. }
  649. .with-app-sidebar .store .section {
  650. width: 100%;
  651. }
  652. }
  653. @media only screen and (max-width: variables.$breakpoint-mobile) {
  654. .store .section {
  655. width: 50%;
  656. }
  657. }
  658. @media only screen and (max-width: 480px) {
  659. .store .section {
  660. width: 100%;
  661. }
  662. }
  663. /* hide app version and level on narrower screens */
  664. @media only screen and (max-width: 900px) {
  665. .apps-list.installed {
  666. .app-version, .app-level {
  667. display: none !important;
  668. }
  669. }
  670. }
  671. @media only screen and (max-width: 500px) {
  672. .apps-list.installed .app-groups {
  673. display: none !important;
  674. }
  675. }
  676. .section {
  677. margin-bottom: 0;
  678. /* section divider lines, none needed for last one */
  679. &:not(:last-child) {
  680. border-bottom: 1px solid var(--color-border);
  681. }
  682. /* correctly display help icons next to headings */
  683. h2 {
  684. margin-bottom: 22px;
  685. .icon-info {
  686. padding: 6px 20px;
  687. vertical-align: text-bottom;
  688. display: inline-block;
  689. }
  690. }
  691. }
  692. .followupsection {
  693. display: block;
  694. padding: 0 30px 30px 30px;
  695. }
  696. .app-image {
  697. position: relative;
  698. height: 150px;
  699. opacity: 1;
  700. overflow: hidden;
  701. }
  702. .app-name, .app-version, .app-score, .app-level {
  703. display: inline-block;
  704. }
  705. .app-description-toggle-show, .app-description-toggle-hide {
  706. clear: both;
  707. padding: 7px 0;
  708. cursor: pointer;
  709. opacity: .5;
  710. }
  711. .app-description-container {
  712. clear: both;
  713. position: relative;
  714. top: 7px;
  715. }
  716. .app-description {
  717. clear: both;
  718. }
  719. #app-category-1 {
  720. margin-bottom: 18px;
  721. }
  722. /* capitalize 'Other' category */
  723. #app-category-925 {
  724. text-transform: capitalize;
  725. }
  726. .app-dependencies {
  727. color: #ce3702;
  728. }
  729. .missing-dependencies {
  730. list-style: initial;
  731. list-style-type: initial;
  732. list-style-position: inside;
  733. }
  734. .apps-list {
  735. $toolbar-padding: 8px;
  736. $toolbar-height: 44px + $toolbar-padding * 2;
  737. .section {
  738. cursor: pointer;
  739. }
  740. .app-list-move {
  741. transition: transform 1s;
  742. }
  743. #app-list-update-all {
  744. margin-left: 10px;
  745. }
  746. .toolbar {
  747. height: $toolbar-height;
  748. padding: $toolbar-padding;
  749. // Leave room for app-navigation-toggle
  750. padding-left: $toolbar-height;
  751. width: 100%;
  752. background-color: var(--color-main-background);
  753. position: sticky;
  754. top: 0;
  755. z-index: 1;
  756. display: flex;
  757. align-items: center;
  758. }
  759. &.installed {
  760. .apps-list-container {
  761. display: table;
  762. width: 100%;
  763. height: auto;
  764. margin-top: $toolbar-height;
  765. }
  766. margin-bottom: 100px;
  767. .section {
  768. display: table-row;
  769. padding: 0;
  770. margin: 0;
  771. > * {
  772. display: table-cell;
  773. height: initial;
  774. vertical-align: middle;
  775. float: none;
  776. border-bottom: 1px solid var(--color-border);
  777. padding: 6px;
  778. box-sizing: border-box;
  779. }
  780. &.selected {
  781. background-color: var(--color-background-dark);
  782. }
  783. }
  784. .groups-enable {
  785. margin-top: 0;
  786. label {
  787. margin-right: 3px;
  788. }
  789. }
  790. .app-image {
  791. width: 44px;
  792. height: auto;
  793. text-align: right;
  794. }
  795. .app-image-icon svg,
  796. .app-image-icon .icon-settings-dark {
  797. margin-top: 5px;
  798. width: 20px;
  799. height: 20px;
  800. opacity: .5;
  801. background-size: cover;
  802. display: inline-block;
  803. }
  804. .actions {
  805. text-align: right;
  806. .icon-loading-small {
  807. display: inline-block;
  808. top: 4px;
  809. margin-right: 10px;
  810. }
  811. }
  812. }
  813. &:not(.installed) .app-image-icon svg {
  814. position: absolute;
  815. bottom: 43px;
  816. /* position halfway vertically */
  817. width: 64px;
  818. height: 64px;
  819. opacity: .1;
  820. }
  821. display: flex;
  822. flex-wrap: wrap;
  823. align-content: flex-start;
  824. &.hidden {
  825. display: none;
  826. }
  827. .section {
  828. position: relative;
  829. flex: 0 0 auto;
  830. h2.app-name {
  831. display: block;
  832. margin: 8px 0;
  833. }
  834. &:hover {
  835. background-color: var(--color-background-dark);
  836. }
  837. }
  838. .app-description {
  839. p {
  840. margin: 10px 0;
  841. }
  842. ul {
  843. list-style: disc;
  844. }
  845. ol {
  846. list-style: decimal;
  847. ol, ul {
  848. padding-left: 15px;
  849. }
  850. }
  851. > {
  852. ul, ol {
  853. margin-left: 19px;
  854. }
  855. }
  856. ul {
  857. ol, ul {
  858. padding-left: 15px;
  859. }
  860. }
  861. }
  862. /* Bundle header */
  863. .apps-header {
  864. display: table-row;
  865. position: relative;
  866. div {
  867. display: table-cell;
  868. height: 70px;
  869. }
  870. h2 {
  871. display: table-cell;
  872. position: absolute;
  873. padding-left: 6px;
  874. padding-top: 15px;
  875. .enable {
  876. position: relative;
  877. top: -1px;
  878. margin-left: 12px;
  879. }
  880. + .section {
  881. margin-top: 50px;
  882. }
  883. }
  884. }
  885. }
  886. #apps-list-search {
  887. .section {
  888. h2 {
  889. margin-bottom: 0;
  890. }
  891. }
  892. }
  893. /* LOG */
  894. #log {
  895. white-space: normal;
  896. margin-bottom: 14px;
  897. }
  898. #lessLog {
  899. display: none;
  900. }
  901. table.grid td.date {
  902. white-space: nowrap;
  903. }
  904. #log-section p {
  905. margin-top: 20px;
  906. }
  907. #security-warning-state-ok,
  908. #security-warning-state-warning,
  909. #security-warning-state-failure,
  910. #security-warning-state-loading {
  911. span {
  912. vertical-align: middle;
  913. &.message {
  914. padding: 12px;
  915. }
  916. &.icon {
  917. width: 32px;
  918. height: 32px;
  919. background-position: center center;
  920. display: inline-block;
  921. border-radius: 50%;
  922. }
  923. &.icon-checkmark-white {
  924. background-color: var(--color-success);
  925. }
  926. &.icon-error-white {
  927. background-color: var(--color-warning);
  928. }
  929. &.icon-close-white {
  930. background-color: var(--color-error);
  931. }
  932. }
  933. }
  934. #shareAPI {
  935. &.loading > div {
  936. display: none;
  937. }
  938. p {
  939. padding-bottom: 0.8em;
  940. }
  941. .indent {
  942. padding-left: 28px;
  943. }
  944. .double-indent {
  945. padding-left: 56px;
  946. }
  947. .nocheckbox {
  948. padding-left: 20px;
  949. }
  950. }
  951. #shareApiDefaultPermissionsSection label {
  952. margin-right: 20px;
  953. }
  954. #fileSharingSettings h3 {
  955. display: inline-block;
  956. }
  957. #publicShareDisclaimerText {
  958. width: calc(100% - 23px);
  959. /* 20 px left margin, 3 px right margin */
  960. max-width: 600px;
  961. height: 150px;
  962. margin-left: 20px;
  963. box-sizing: border-box;
  964. }
  965. /* correctly display help icons next to headings */
  966. .icon-info {
  967. padding: 11px 20px;
  968. vertical-align: text-bottom;
  969. opacity: .5;
  970. }
  971. #two-factor-auth h2,
  972. #shareAPI h2,
  973. #mail_general_settings h2 {
  974. display: inline-block;
  975. }
  976. .mail_settings p {
  977. label:first-child {
  978. display: inline-block;
  979. width: 300px;
  980. text-align: right;
  981. }
  982. select:nth-child(2),
  983. input:not([type='button']) {
  984. width: 143px;
  985. }
  986. }
  987. #mail_smtpport {
  988. width: 60px;
  989. }
  990. .cronlog {
  991. margin-left: 10px;
  992. }
  993. .status {
  994. display: inline-block;
  995. height: 16px;
  996. width: 16px;
  997. vertical-align: text-bottom;
  998. &.success {
  999. border-radius: 50%;
  1000. }
  1001. }
  1002. #selectGroups select {
  1003. box-sizing: border-box;
  1004. display: inline-block;
  1005. height: 36px;
  1006. padding: 7px 10px;
  1007. }
  1008. #log .log-message {
  1009. word-break: break-all;
  1010. min-width: 180px;
  1011. }
  1012. span {
  1013. &.success {
  1014. background-color: var(--color-success);
  1015. border-radius: var(--border-radius);
  1016. }
  1017. &.error {
  1018. background-color: var(--color-error);
  1019. }
  1020. &.indeterminate {
  1021. background-color: var(--color-warning);
  1022. border-radius: 40% 0;
  1023. }
  1024. }
  1025. /* OPERA hack for strengthify*/
  1026. doesnotexist:-o-prefocus, .strengthify-wrapper {
  1027. left: 185px;
  1028. width: 129px;
  1029. }
  1030. .trusted-domain-warning {
  1031. color: #fff;
  1032. padding: 5px;
  1033. background: #ce3702;
  1034. border-radius: 5px;
  1035. font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  1036. }
  1037. #postsetupchecks {
  1038. ul {
  1039. margin-left: 44px;
  1040. list-style: disc;
  1041. li {
  1042. margin: 10px 0;
  1043. }
  1044. ul {
  1045. list-style: circle;
  1046. }
  1047. }
  1048. .loading {
  1049. height: 50px;
  1050. background-position: left center;
  1051. }
  1052. .errors, .errors a {
  1053. color: var(--color-error);
  1054. }
  1055. .warnings, .warnings a {
  1056. color: var(--color-warning);
  1057. }
  1058. .hint {
  1059. margin: 20px 0;
  1060. }
  1061. }
  1062. #security-warning {
  1063. a {
  1064. text-decoration: underline;
  1065. }
  1066. .extra-top-margin {
  1067. margin-top: 12px;
  1068. }
  1069. }
  1070. #admin-tips li {
  1071. list-style: initial;
  1072. a {
  1073. display: inline-block;
  1074. padding: 3px 0;
  1075. }
  1076. }
  1077. #warning {
  1078. color: red;
  1079. }
  1080. .settings-hint {
  1081. margin-top: -12px;
  1082. margin-bottom: 12px;
  1083. opacity: .7;
  1084. }
  1085. /* USERS LIST -------------------------------------------------------------- */
  1086. #body-settings {
  1087. $grid-row-height: 60px;
  1088. $grid-col-min-width: 160px;
  1089. #app-content.user-list-grid {
  1090. display: grid;
  1091. grid-column-gap: 20px;
  1092. grid-auto-rows: minmax(60px, max-content);
  1093. .row {
  1094. // TODO replace with css4 subgrid when available
  1095. // fallback for ie11 no grid
  1096. display: flex;
  1097. display: grid;
  1098. min-height: $grid-row-height;
  1099. grid-row-start: span 1;
  1100. grid-gap: 3px;
  1101. align-items: center;
  1102. /* let's define the column until storage path,
  1103. what follows will be manually defined */
  1104. grid-template-columns:
  1105. 44px
  1106. minmax($grid-col-min-width + 30px, 1fr) // username, displayname
  1107. minmax($grid-col-min-width, 1fr) // password
  1108. minmax($grid-col-min-width, 1fr) // email
  1109. minmax(1.5*$grid-col-min-width, 1fr) // groups
  1110. minmax(1.5*$grid-col-min-width, 1fr) // group admins
  1111. minmax($grid-col-min-width, 1fr) // quota
  1112. minmax(1.5*$grid-col-min-width, 1fr) // manager
  1113. repeat(auto-fit, minmax($grid-col-min-width, 1fr));
  1114. border-bottom: var(--color-border) 1px solid;
  1115. &.disabled {
  1116. opacity: .5;
  1117. }
  1118. /* grid col width */
  1119. .name,
  1120. .password,
  1121. .mailAddress,
  1122. .languages,
  1123. .storageLocation,
  1124. .userBackend,
  1125. .lastLogin {
  1126. min-width: $grid-col-min-width;
  1127. doesnotexist:-o-prefocus, .strengthify-wrapper {
  1128. color: var(--color-text-dark);
  1129. vertical-align: baseline;
  1130. text-overflow: ellipsis;
  1131. }
  1132. }
  1133. &:not(.row--editable) {
  1134. &.name,
  1135. &.password,
  1136. &.displayName,
  1137. &.mailAddress,
  1138. &.userBackend,
  1139. &.languages {
  1140. overflow: hidden;
  1141. }
  1142. }
  1143. // Scroll if too much groups
  1144. &:not(.row--editable) {
  1145. .groups,
  1146. .subadmins,
  1147. .subAdminsGroups {
  1148. overflow: auto;
  1149. max-height: 100%;
  1150. }
  1151. }
  1152. .managers,
  1153. .groups,
  1154. .subadmins,
  1155. .subAdminsGroups,
  1156. .quota {
  1157. min-width: $grid-col-min-width;
  1158. .select {
  1159. width: 100%;
  1160. color: var(--color-text-dark);
  1161. vertical-align: baseline;
  1162. }
  1163. progress {
  1164. max-width: 95%;
  1165. }
  1166. }
  1167. .obfuscated {
  1168. width: 400px;
  1169. opacity: .7;
  1170. }
  1171. .userActions {
  1172. display: flex;
  1173. justify-content: flex-end;
  1174. position: sticky;
  1175. right: 0px;
  1176. min-width: 88px;
  1177. background-color: var(--color-main-background);
  1178. }
  1179. &.row--editable .userActions {
  1180. z-index: 10;
  1181. }
  1182. .subtitle {
  1183. color: var(--color-text-maxcontrast);
  1184. vertical-align: baseline;
  1185. }
  1186. /* various */
  1187. &#grid-header {
  1188. position: sticky;
  1189. align-self: normal;
  1190. background-color: var(--color-main-background);
  1191. z-index: 100; /* above multiselect */
  1192. top: 0;
  1193. &.sticky {
  1194. box-shadow: 0 -2px 10px 1px var(--color-box-shadow);
  1195. }
  1196. }
  1197. &#grid-header {
  1198. color: var(--color-text-maxcontrast);
  1199. border-bottom-width: thin;
  1200. #headerDisplayName,
  1201. #headerPassword,
  1202. #headerAddress,
  1203. #headerGroups,
  1204. #headerSubAdmins,
  1205. #theHeaderUserBackend,
  1206. #theHeaderLastLogin,
  1207. #headerQuota,
  1208. #theHeaderStorageLocation,
  1209. #headerLanguages {
  1210. /* Line up header text with column content for when there’s inputs */
  1211. padding-left: 7px;
  1212. text-transform: none;
  1213. color: var(--color-text-maxcontrast);
  1214. vertical-align: baseline;
  1215. }
  1216. }
  1217. &:hover {
  1218. &:not(#grid-header) {
  1219. box-shadow: 5px 0 0 var(--color-primary-element) inset;
  1220. }
  1221. }
  1222. > form {
  1223. width: 100%;
  1224. }
  1225. > div,
  1226. > .displayName > form,
  1227. > form {
  1228. grid-row: 1;
  1229. display: inline-flex;
  1230. color: var(--color-text-lighter);
  1231. flex-grow: 1;
  1232. > input:not(:focus):not(:active) {
  1233. border-color: transparent;
  1234. cursor: pointer;
  1235. }
  1236. > input:focus, > input:active {
  1237. + .icon-confirm {
  1238. display: block !important;
  1239. }
  1240. }
  1241. /* inputs like mail, username, password */
  1242. &:not(.userActions) > input:not([type='submit']) {
  1243. width: 100%;
  1244. min-width: 0;
  1245. }
  1246. &.name {
  1247. word-break: break-all;
  1248. }
  1249. &.displayName,
  1250. &.mailAddress {
  1251. > input {
  1252. text-overflow: ellipsis;
  1253. flex-grow: 1;
  1254. }
  1255. }
  1256. &.name,
  1257. &.userBackend {
  1258. /* better multi-line visual */
  1259. line-height: 1.3em;
  1260. max-height: 100%;
  1261. overflow: hidden;
  1262. /* not supported by all browsers
  1263. so we keep the overflow hidden
  1264. as a fallback */
  1265. text-overflow: ellipsis;
  1266. display: -webkit-box;
  1267. -webkit-line-clamp: 2;
  1268. -webkit-box-orient: vertical;
  1269. }
  1270. &.name .subtitle {
  1271. color: var(--color-main-text);
  1272. }
  1273. &.quota {
  1274. display: flex;;
  1275. justify-content: left;
  1276. white-space: nowrap;
  1277. position: relative;
  1278. progress {
  1279. width: 150px;
  1280. margin-top: 35px;
  1281. height: 3px;
  1282. }
  1283. }
  1284. .icon-confirm {
  1285. flex: 0 0 auto;
  1286. cursor: pointer;
  1287. &:not(:active) {
  1288. display: none;
  1289. }
  1290. }
  1291. &.avatar {
  1292. height: 32px;
  1293. width: 32px;
  1294. margin: 6px;
  1295. img {
  1296. display: block;
  1297. }
  1298. }
  1299. &.userActions {
  1300. display: flex;
  1301. justify-content: flex-end;
  1302. #newsubmit {
  1303. width: 100%;
  1304. }
  1305. .toggleUserActions {
  1306. position: relative;
  1307. display: flex;
  1308. align-items: center;
  1309. background-color: var(--color-main-background);
  1310. .icon-more {
  1311. width: 44px;
  1312. height: 44px;
  1313. opacity: .5;
  1314. cursor: pointer;
  1315. &:focus,
  1316. &:hover,
  1317. &:active {
  1318. opacity: .7;
  1319. background-color: var(--color-background-dark)
  1320. }
  1321. }
  1322. }
  1323. .feedback {
  1324. display: flex;
  1325. align-items: center;
  1326. white-space: nowrap;
  1327. transition: opacity 200ms ease-in-out;
  1328. .icon-checkmark {
  1329. opacity: .5;
  1330. margin-right: 5px;
  1331. }
  1332. }
  1333. }
  1334. /* Fill the grid cell */
  1335. .v-select.select-vue {
  1336. min-width: 100%;
  1337. width: 100%;
  1338. }
  1339. }
  1340. }
  1341. .infinite-loading-container {
  1342. display: flex;
  1343. align-items: center;
  1344. justify-content: center;
  1345. grid-row-start: span 4;
  1346. }
  1347. .users-list-end {
  1348. opacity: .5;
  1349. user-select: none;
  1350. }
  1351. }
  1352. }
  1353. .animated {
  1354. animation: blink-animation 1s steps(5, start) 4;
  1355. }
  1356. @keyframes blink-animation {
  1357. to {
  1358. opacity: 0.6;
  1359. }
  1360. }
  1361. @-webkit-keyframes blink-animation {
  1362. to {
  1363. opacity: 1;
  1364. }
  1365. }