settings.scss 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737
  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. input {
  5. &#openid, &#webdav {
  6. width: 20em;
  7. }
  8. }
  9. /* PERSONAL */
  10. .clear {
  11. clear: both;
  12. }
  13. /* icons for sidebar */
  14. .nav-icon-personal-settings {
  15. @include icon-color('personal', 'settings', $color-black);
  16. }
  17. .nav-icon-security {
  18. @include icon-color('toggle-filelist', 'settings', $color-black);
  19. }
  20. .nav-icon-clientsbox {
  21. @include icon-color('change', 'settings', $color-black);
  22. }
  23. .nav-icon-federated-cloud {
  24. @include icon-color('share', 'settings', $color-black);
  25. }
  26. .nav-icon-second-factor-backup-codes, .nav-icon-ssl-root-certificate {
  27. @include icon-color('password', 'settings', $color-black);
  28. }
  29. #avatarform {
  30. .avatardiv {
  31. margin: 10px auto;
  32. }
  33. .warning {
  34. width: 100%;
  35. }
  36. .jcrop-keymgr {
  37. display: none !important;
  38. }
  39. }
  40. #displayavatar {
  41. text-align: center;
  42. }
  43. #uploadavatarbutton, #selectavatar, #removeavatar {
  44. padding: 21px;
  45. }
  46. .jcrop-holder {
  47. z-index: 500;
  48. }
  49. #cropper {
  50. float: left;
  51. z-index: 500;
  52. /* float cropper above settings page to prevent unexpected flowing from dynamically sized element */
  53. position: fixed;
  54. background-color: rgba(0, 0, 0, 0.2);
  55. box-sizing: border-box;
  56. top: 45px;
  57. left: 0;
  58. width: 100%;
  59. height: calc(100% - 45px);
  60. .inner-container {
  61. z-index: 2001;
  62. /* above the top bar if needed */
  63. position: absolute;
  64. top: 50%;
  65. left: 50%;
  66. transform: translate(-50%, -50%);
  67. background: #fff;
  68. color: #333;
  69. border-radius: var(--border-radius-large);
  70. box-shadow: 0 0 10px var(--color-box-shadow);
  71. padding: 15px;
  72. .jcrop-holder,
  73. .jcrop-holder img,
  74. img.jcrop-preview {
  75. border-radius: var(--border-radius);
  76. }
  77. .button {
  78. margin-top: 15px;
  79. }
  80. .primary {
  81. float: right;
  82. }
  83. }
  84. }
  85. #personal-settings-avatar-container {
  86. display: inline-grid;
  87. grid-template-columns: 1fr;
  88. grid-template-rows: 2fr 1fr;
  89. vertical-align: top;
  90. }
  91. .profile-settings-container {
  92. display: inline-grid;
  93. grid-template-columns: 1fr;
  94. grid-template-rows: 1fr 2fr 1fr;
  95. }
  96. .personal-show-container {
  97. width: 100%;
  98. }
  99. .personal-settings-setting-box input {
  100. &[type='text'], &[type='email'], &[type='tel'], &[type='url'] {
  101. width: 100%;
  102. }
  103. }
  104. select {
  105. &#timezone,
  106. &#languageinput,
  107. &#localeinput {
  108. width: 100%;
  109. }
  110. }
  111. #personal-settings {
  112. display: grid;
  113. padding: 20px;
  114. max-width: 1500px;
  115. grid-template-columns: 1fr 2fr 1fr;
  116. .section {
  117. padding: 10px 10px;
  118. border: 0;
  119. h2 {
  120. margin-bottom: 12px;
  121. }
  122. }
  123. .personal-info {
  124. margin-right: 10%;
  125. margin-bottom: 12px;
  126. margin-top: 12px;
  127. }
  128. .personal-info[class^='icon-'], .personal-info[class*=' icon-'] {
  129. background-position: 0px 2px;
  130. padding-left: 30px;
  131. opacity: 0.7;
  132. }
  133. }
  134. // Button for 'Reasons to use Nextcloud in your organization'
  135. .development-notice {
  136. text-align: center;
  137. }
  138. .link-button {
  139. display: inline-block;
  140. margin: 16px;
  141. padding: 14px 20px;
  142. background-color: var(--color-primary);
  143. color: #fff;
  144. border-radius: var(--border-radius-pill);
  145. border: 1px solid var(--color-primary);
  146. box-shadow: 0 2px 9px var(--color-box-shadow);
  147. &:active,
  148. &:hover,
  149. &:focus {
  150. color: var(--color-primary);
  151. background-color: var(--color-primary-text);
  152. border-color: var(--color-primary) !important;
  153. }
  154. &.icon-file {
  155. padding-left: 48px;
  156. background-position: 24px;
  157. }
  158. }
  159. @media (min-width: 1200px) and (max-width: 1400px) {
  160. #personal-settings {
  161. display: grid;
  162. grid-template-columns: 1fr 2fr;
  163. #personal-settings-avatar-container {
  164. grid-template-columns: 1fr;
  165. grid-template-rows: 1fr;
  166. }
  167. .personal-settings-container {
  168. grid-template-columns: 1fr 1fr;
  169. grid-template-rows: 1fr 1fr 1fr;
  170. }
  171. .profile-settings-container {
  172. grid-template-columns: 1fr 1fr;
  173. grid-template-rows: 1fr;
  174. grid-column: 2;
  175. }
  176. }
  177. }
  178. @media (max-width: 1200px) {
  179. #personal-settings {
  180. display: grid;
  181. grid-template-columns: 1fr;
  182. #personal-settings-avatar-container {
  183. grid-template-rows: 1fr;
  184. }
  185. .personal-settings-container {
  186. grid-template-columns: 1fr 1fr;
  187. grid-template-rows: 1fr 1fr 1fr;
  188. }
  189. .profile-settings-container {
  190. grid-template-columns: 1fr 1fr;
  191. grid-template-rows: 1fr;
  192. }
  193. }
  194. }
  195. @media (max-width: 560px) {
  196. #personal-settings {
  197. display: grid;
  198. grid-template-columns: 1fr;
  199. #personal-settings-avatar-container {
  200. grid-template-rows: 1fr;
  201. }
  202. .personal-settings-container {
  203. grid-template-columns: 1fr;
  204. grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
  205. }
  206. .profile-settings-container {
  207. grid-template-columns: 1fr;
  208. grid-template-rows: 1fr 1fr;
  209. }
  210. }
  211. }
  212. .personal-settings-container {
  213. display: inline-grid;
  214. grid-template-columns: 1fr 1fr;
  215. grid-template-rows: 1fr 1fr 2fr;
  216. &:after {
  217. clear: both;
  218. }
  219. > div {
  220. h3 {
  221. position: relative;
  222. display: inline-flex;
  223. flex-wrap: nowrap;
  224. justify-content: flex-start;
  225. width: 100%;
  226. > label {
  227. white-space: nowrap;
  228. text-overflow: ellipsis;
  229. overflow: hidden;
  230. }
  231. }
  232. > form span {
  233. &[class^='icon-checkmark'], &[class^='icon-error'] {
  234. position: relative;
  235. right: 8px;
  236. top: -28px;
  237. pointer-events: none;
  238. float: right;
  239. }
  240. }
  241. }
  242. .verify {
  243. position: relative;
  244. left: 100%;
  245. top: 0;
  246. height: 0;
  247. img {
  248. padding: 12px 7px 6px;
  249. }
  250. }
  251. .verify-action {
  252. cursor: pointer;
  253. }
  254. input:disabled {
  255. background-color: white;
  256. color: black;
  257. border: none;
  258. opacity: 100;
  259. }
  260. }
  261. #body-settings #quota {
  262. cursor: default;
  263. position: relative;
  264. progress {
  265. height: 6px;
  266. &::-moz-progress-bar {
  267. border-radius: 3px 0 0 3px;
  268. }
  269. &::-webkit-progress-value {
  270. border-radius: 3px 0 0 3px;
  271. }
  272. }
  273. div {
  274. font-weight: normal;
  275. white-space: nowrap;
  276. }
  277. }
  278. /* verify accounts */
  279. /* only show pointer cursor when popup will be there */
  280. .verification-dialog {
  281. display: none;
  282. right: -9px;
  283. top: 40px;
  284. width: 275px;
  285. p {
  286. padding: 10px;
  287. }
  288. .verificationCode {
  289. font-family: monospace;
  290. display: block;
  291. overflow-wrap: break-word;
  292. }
  293. }
  294. .federation-menu {
  295. position: relative;
  296. cursor: pointer;
  297. margin-left: 10px;
  298. &:focus {
  299. .icon-federation-menu {
  300. opacity: 0.7;
  301. }
  302. }
  303. .icon-federation-menu {
  304. padding-left: 16px;
  305. background-size: 16px;
  306. background-position: left center;
  307. opacity: .3;
  308. cursor: inherit;
  309. .icon-triangle-s {
  310. display: inline-block;
  311. vertical-align: middle;
  312. cursor: inherit;
  313. }
  314. }
  315. .federationScopeMenu {
  316. top: 44px;
  317. &.popovermenu {
  318. .menuitem {
  319. // override h3 heading font size
  320. font-size: 12.8px;
  321. line-height: 1.6em;
  322. .menuitem-text-detail {
  323. opacity: .75;
  324. }
  325. &.active {
  326. box-shadow: inset 2px 0 var(--color-primary);
  327. .menuitem-text {
  328. font-weight: bold;
  329. }
  330. }
  331. }
  332. }
  333. }
  334. }
  335. #groups-groups {
  336. padding-top: 5px;
  337. }
  338. .clientsbox img {
  339. height: 60px;
  340. }
  341. #sslCertificate {
  342. tr.expired {
  343. background-color: rgba(255, 0, 0, 0.5);
  344. }
  345. td {
  346. padding: 5px;
  347. }
  348. }
  349. #displaynameerror,
  350. #displaynamechanged {
  351. display: none;
  352. }
  353. input#identity {
  354. width: 20em;
  355. }
  356. #showWizard {
  357. display: inline-block;
  358. }
  359. .msg {
  360. &.success {
  361. color: #fff;
  362. background-color: #47a447;
  363. padding: 3px;
  364. }
  365. &.error {
  366. color: #fff;
  367. background-color: #d2322d;
  368. padding: 3px;
  369. }
  370. }
  371. table.nostyle {
  372. label {
  373. margin-right: 2em;
  374. }
  375. td {
  376. padding: 0.2em 0;
  377. }
  378. }
  379. #security-password {
  380. #passwordform {
  381. display: flex;
  382. flex-wrap: wrap;
  383. #pass1, .personal-show-container, #passwordbutton {
  384. flex-shrink: 1;
  385. width: 200px;
  386. min-width: 150px;
  387. }
  388. #pass2 {
  389. width: 100%;
  390. }
  391. .password-state {
  392. display: inline-block;
  393. }
  394. .strengthify-wrapper {
  395. position: absolute;
  396. left: 0;
  397. width: 100%;
  398. border-radius: 0 0 2px 2px;
  399. margin-top: -6px;
  400. overflow: hidden;
  401. height: 3px;
  402. }
  403. }
  404. }
  405. /* Two-Factor Authentication (2FA) */
  406. #two-factor-auth {
  407. h3 {
  408. margin-top: 24px;
  409. }
  410. li > div {
  411. margin-left: 20px;
  412. }
  413. .two-factor-provider-settings-icon {
  414. width: 16px;
  415. height: 16px;
  416. vertical-align: sub;
  417. }
  418. }
  419. .social-button {
  420. padding-left: 0 !important;
  421. margin-left: -10px;
  422. img {
  423. padding: 10px;
  424. }
  425. }
  426. /* USERS */
  427. .isgroup {
  428. .groupname {
  429. width: 85%;
  430. display: block;
  431. overflow: hidden;
  432. text-overflow: ellipsis;
  433. }
  434. &.active .groupname {
  435. width: 65%;
  436. }
  437. }
  438. li.active {
  439. .delete,
  440. .rename {
  441. display: block;
  442. }
  443. }
  444. .app-navigation-entry-utils {
  445. .delete,
  446. .rename {
  447. display: none;
  448. }
  449. }
  450. #usersearchform {
  451. position: absolute;
  452. top: 2px;
  453. right: 0;
  454. input {
  455. width: 150px;
  456. }
  457. label {
  458. font-weight: bold;
  459. }
  460. }
  461. /* display table at full width */
  462. table.grid {
  463. width: 100%;
  464. th {
  465. height: 2em;
  466. color: #999;
  467. border-bottom: 1px solid var(--color-border);
  468. padding: 0 .5em;
  469. padding-left: .8em;
  470. text-align: left;
  471. font-weight: normal;
  472. }
  473. td {
  474. border-bottom: 1px solid var(--color-border);
  475. padding: 0 .5em;
  476. padding-left: .8em;
  477. text-align: left;
  478. font-weight: normal;
  479. }
  480. }
  481. td, th {
  482. &.name {
  483. padding-left: .8em;
  484. min-width: 5em;
  485. max-width: 12em;
  486. text-overflow: ellipsis;
  487. overflow: hidden;
  488. }
  489. &.password {
  490. padding-left: .8em;
  491. > img {
  492. visibility: hidden;
  493. }
  494. }
  495. &.displayName > img {
  496. visibility: hidden;
  497. }
  498. &.password,
  499. &.mailAddress {
  500. min-width: 5em;
  501. max-width: 12em;
  502. cursor: pointer;
  503. span {
  504. width: 90%;
  505. display: inline-block;
  506. text-overflow: ellipsis;
  507. overflow: hidden;
  508. }
  509. }
  510. &.mailAddress {
  511. cursor: pointer;
  512. }
  513. &.password > span {
  514. margin-right: 1.2em;
  515. color: #C7C7C7;
  516. }
  517. }
  518. span.usersLastLoginTooltip {
  519. white-space: nowrap;
  520. }
  521. /* APPS */
  522. #app-content > svg.app-filter {
  523. float: left;
  524. height: 0;
  525. width: 0;
  526. }
  527. #app-category-app-bundles {
  528. margin-bottom: 20px;
  529. }
  530. .appinfo {
  531. margin: 1em 40px;
  532. }
  533. #app-navigation {
  534. /* Navigation icons */
  535. img {
  536. margin-bottom: -3px;
  537. margin-right: 6px;
  538. width: 16px;
  539. }
  540. li span.no-icon {
  541. padding-left: 32px;
  542. }
  543. ul li.active > span.utils {
  544. .delete, .rename {
  545. display: block;
  546. }
  547. }
  548. .appwarning {
  549. background: #fcc;
  550. }
  551. &.appwarning:hover {
  552. background: #fbb;
  553. }
  554. .app-external {
  555. color: var(--color-text-maxcontrast);
  556. }
  557. }
  558. span.version {
  559. margin-left: 1em;
  560. margin-right: 1em;
  561. color: var(--color-text-maxcontrast);
  562. }
  563. .app-version {
  564. color: var(--color-text-maxcontrast);
  565. }
  566. .app-level {
  567. span {
  568. color: var(--color-text-maxcontrast);
  569. background-color: transparent;
  570. border: 1px solid var(--color-text-maxcontrast);
  571. border-radius: var(--border-radius);
  572. padding: 3px 6px;
  573. }
  574. a {
  575. padding: 10px;
  576. margin: -6px;
  577. white-space: nowrap;
  578. }
  579. .official {
  580. background-position: left center;
  581. background-position: 5px center;
  582. padding-left: 25px;
  583. }
  584. .supported {
  585. border-color: var(--color-success);
  586. background-position: left center;
  587. background-position: 5px center;
  588. padding-left: 25px;
  589. color: var(--color-success);
  590. }
  591. }
  592. .app-score {
  593. position: relative;
  594. top: 4px;
  595. opacity: .5;
  596. }
  597. .app-settings-content {
  598. #searchresults {
  599. display: none;
  600. }
  601. }
  602. #apps-list.store {
  603. .section {
  604. border: 0;
  605. }
  606. .app-name {
  607. display: block;
  608. margin: 5px 0;
  609. }
  610. .app-name, .app-image * {
  611. cursor: pointer;
  612. }
  613. .app-summary {
  614. opacity: .7;
  615. }
  616. .app-image-icon .icon-settings-dark {
  617. width: 100%;
  618. height: 150px;
  619. background-size: 45px;
  620. opacity: 0.5;
  621. }
  622. .app-score-image {
  623. height: 14px;
  624. }
  625. .actions {
  626. margin-top: 10px;
  627. }
  628. }
  629. #app-sidebar #app-details-view {
  630. h2 {
  631. .icon-settings-dark,
  632. svg {
  633. display: inline-block;
  634. width: 16px;
  635. height: 16px;
  636. margin-right: 10px;
  637. opacity: .7;
  638. }
  639. }
  640. .app-level {
  641. clear: right;
  642. width: 100%;
  643. .supported,
  644. .official {
  645. vertical-align: top;
  646. }
  647. .app-score-image {
  648. float: right;
  649. }
  650. }
  651. .app-author, .app-licence {
  652. color: var(--color-text-maxcontrast);
  653. }
  654. .app-dependencies {
  655. margin: 10px 0;
  656. }
  657. .app-description p {
  658. margin: 10px 0;
  659. }
  660. .close {
  661. position: absolute;
  662. top: 0;
  663. right: 0;
  664. padding: 14px;
  665. opacity: 0.5;
  666. z-index: 1;
  667. width: 44px;
  668. height: 44px;
  669. }
  670. .actions {
  671. display: flex;
  672. align-items: center;
  673. .app-groups {
  674. padding: 5px;
  675. }
  676. }
  677. .appslink {
  678. text-decoration: underline;
  679. margin-right: 5px;
  680. }
  681. .app-level,
  682. .actions,
  683. .documentation,
  684. .app-dependencies,
  685. .app-description {
  686. margin: 20px 0;
  687. }
  688. }
  689. @media only screen and (min-width: 1601px) {
  690. .store .section {
  691. width: 25%;
  692. }
  693. .with-app-sidebar .store .section {
  694. width: 33%;
  695. }
  696. }
  697. @media only screen and (max-width: 1600px) {
  698. .store .section {
  699. width: 25%;
  700. }
  701. .with-app-sidebar .store .section {
  702. width: 33%;
  703. }
  704. }
  705. @media only screen and (max-width: 1400px) {
  706. .store .section {
  707. width: 33%;
  708. }
  709. .with-app-sidebar .store .section {
  710. width: 50%;
  711. }
  712. }
  713. @media only screen and (max-width: 900px) {
  714. .store .section {
  715. width: 50%;
  716. }
  717. .with-app-sidebar .store .section {
  718. width: 100%;
  719. }
  720. }
  721. @media only screen and (max-width: $breakpoint-mobile) {
  722. .store .section {
  723. width: 50%;
  724. }
  725. }
  726. @media only screen and (max-width: 480px) {
  727. .store .section {
  728. width: 100%;
  729. }
  730. }
  731. /* hide app version and level on narrower screens */
  732. @media only screen and (max-width: 900px) {
  733. .apps-list.installed {
  734. .app-version, .app-level {
  735. display: none !important;
  736. }
  737. }
  738. }
  739. @media only screen and (max-width: 500px) {
  740. .apps-list.installed .app-groups {
  741. display: none !important;
  742. }
  743. }
  744. #version.section {
  745. border-bottom: none;
  746. }
  747. .section {
  748. margin-bottom: 0;
  749. /* section divider lines, none needed for last one */
  750. &:not(:last-child) {
  751. border-bottom: 1px solid var(--color-border);
  752. }
  753. /* correctly display help icons next to headings */
  754. h2 {
  755. margin-bottom: 22px;
  756. .icon-info {
  757. padding: 6px 20px;
  758. vertical-align: text-bottom;
  759. display: inline-block;
  760. }
  761. }
  762. }
  763. .personal-settings-setting-box .section {
  764. padding: 10px 30px;
  765. }
  766. .followupsection {
  767. display: block;
  768. padding: 0 30px 30px 30px;
  769. color: #555;
  770. }
  771. .app-image {
  772. position: relative;
  773. height: 150px;
  774. opacity: 1;
  775. overflow: hidden;
  776. }
  777. .app-name, .app-version, .app-score, .app-level {
  778. display: inline-block;
  779. }
  780. .app-description-toggle-show, .app-description-toggle-hide {
  781. clear: both;
  782. padding: 7px 0;
  783. cursor: pointer;
  784. opacity: .5;
  785. }
  786. .app-description-container {
  787. clear: both;
  788. position: relative;
  789. top: 7px;
  790. }
  791. .app-description {
  792. clear: both;
  793. }
  794. #app-category-1 {
  795. margin-bottom: 18px;
  796. }
  797. /* capitalize 'Other' category */
  798. #app-category-925 {
  799. text-transform: capitalize;
  800. }
  801. .app-dependencies {
  802. color: #ce3702;
  803. }
  804. .missing-dependencies {
  805. list-style: initial;
  806. list-style-type: initial;
  807. list-style-position: inside;
  808. }
  809. .apps-list {
  810. .section {
  811. cursor: pointer;
  812. }
  813. .app-list-move {
  814. transition: transform 1s;
  815. }
  816. #app-list-update-all {
  817. margin-left: 10px;
  818. }
  819. .counter {
  820. padding-left: $header-height - 10px;
  821. margin: 10px;
  822. }
  823. &.installed {
  824. .apps-list-container {
  825. display: table;
  826. width: 100%;
  827. height: auto;
  828. }
  829. margin-bottom: 100px;
  830. .section {
  831. display: table-row;
  832. padding: 0;
  833. margin: 0;
  834. > * {
  835. display: table-cell;
  836. height: initial;
  837. vertical-align: middle;
  838. float: none;
  839. border-bottom: 1px solid var(--color-border);
  840. padding: 6px;
  841. box-sizing: border-box;
  842. }
  843. &.selected {
  844. background-color: var(--color-background-dark);
  845. }
  846. }
  847. .groups-enable {
  848. margin-top: 0;
  849. label {
  850. margin-right: 3px;
  851. }
  852. }
  853. .app-image {
  854. width: 44px;
  855. height: auto;
  856. text-align: right;
  857. }
  858. .app-image-icon svg,
  859. .app-image-icon .icon-settings-dark {
  860. margin-top: 5px;
  861. width: 20px;
  862. height: 20px;
  863. opacity: .5;
  864. background-size: cover;
  865. display: inline-block;
  866. }
  867. .actions {
  868. text-align: right;
  869. .icon-loading-small {
  870. display: inline-block;
  871. top: 4px;
  872. margin-right: 10px;
  873. }
  874. }
  875. }
  876. &:not(.installed) .app-image-icon svg {
  877. position: absolute;
  878. bottom: 43px;
  879. /* position halfway vertically */
  880. width: 64px;
  881. height: 64px;
  882. opacity: .1;
  883. }
  884. display: flex;
  885. flex-wrap: wrap;
  886. align-content: flex-start;
  887. &.hidden {
  888. display: none;
  889. }
  890. .section {
  891. position: relative;
  892. flex: 0 0 auto;
  893. h2.app-name {
  894. display: block;
  895. margin: 8px 0;
  896. }
  897. &:hover {
  898. background-color: var(--color-background-dark);
  899. }
  900. }
  901. .app-description {
  902. p {
  903. margin: 10px 0;
  904. }
  905. ul {
  906. list-style: disc;
  907. }
  908. ol {
  909. list-style: decimal;
  910. ol, ul {
  911. padding-left: 15px;
  912. }
  913. }
  914. > {
  915. ul, ol {
  916. margin-left: 19px;
  917. }
  918. }
  919. ul {
  920. ol, ul {
  921. padding-left: 15px;
  922. }
  923. }
  924. }
  925. /* Bundle header */
  926. .apps-header {
  927. display: table-row;
  928. position: relative;
  929. div {
  930. display: table-cell;
  931. height: 70px;
  932. }
  933. h2 {
  934. display: table-cell;
  935. position: absolute;
  936. padding-left: 6px;
  937. padding-top: 15px;
  938. .enable {
  939. position: relative;
  940. top: -1px;
  941. margin-left: 12px;
  942. }
  943. + .section {
  944. margin-top: 50px;
  945. }
  946. }
  947. }
  948. }
  949. #apps-list-search {
  950. .section {
  951. h2 {
  952. margin-bottom: 0;
  953. }
  954. }
  955. }
  956. /* LOG */
  957. #log {
  958. white-space: normal;
  959. margin-bottom: 14px;
  960. }
  961. #lessLog {
  962. display: none;
  963. }
  964. table.grid td.date {
  965. white-space: nowrap;
  966. }
  967. #log-section p {
  968. margin-top: 20px;
  969. }
  970. #security-warning-state-ok,
  971. #security-warning-state-warning,
  972. #security-warning-state-failure,
  973. #security-warning-state-loading {
  974. span {
  975. vertical-align: middle;
  976. &.message {
  977. padding: 12px;
  978. }
  979. &.icon {
  980. width: 32px;
  981. height: 32px;
  982. background-position: center center;
  983. display: inline-block;
  984. border-radius: 50%;
  985. }
  986. &.icon-checkmark-white {
  987. background-color: var(--color-success);
  988. }
  989. &.icon-error-white {
  990. background-color: var(--color-warning);
  991. }
  992. &.icon-close-white {
  993. background-color: var(--color-error);
  994. }
  995. }
  996. }
  997. #shareAPI {
  998. p {
  999. padding-bottom: 0.8em;
  1000. }
  1001. input#shareapiExpireAfterNDays {
  1002. width: 40px;
  1003. }
  1004. .indent {
  1005. padding-left: 28px;
  1006. }
  1007. .double-indent {
  1008. padding-left: 56px;
  1009. }
  1010. .nocheckbox {
  1011. padding-left: 20px;
  1012. }
  1013. }
  1014. #shareApiDefaultPermissionsSection label {
  1015. margin-right: 20px;
  1016. }
  1017. #fileSharingSettings h3 {
  1018. display: inline-block;
  1019. }
  1020. #publicShareDisclaimerText {
  1021. width: calc(100% - 23px);
  1022. /* 20 px left margin, 3 px right margin */
  1023. max-width: 600px;
  1024. height: 150px;
  1025. margin-left: 20px;
  1026. box-sizing: border-box;
  1027. }
  1028. /* correctly display help icons next to headings */
  1029. .icon-info {
  1030. padding: 11px 20px;
  1031. vertical-align: text-bottom;
  1032. opacity: .5;
  1033. }
  1034. #two-factor-auth h2,
  1035. #shareAPI h2,
  1036. #encryptionAPI h2,
  1037. #mail_general_settings h2 {
  1038. display: inline-block;
  1039. }
  1040. #encryptionAPI li {
  1041. list-style-type: initial;
  1042. margin-left: 20px;
  1043. padding: 5px 0;
  1044. }
  1045. .mail_settings p {
  1046. label:first-child {
  1047. display: inline-block;
  1048. width: 300px;
  1049. text-align: right;
  1050. }
  1051. select:nth-child(2),
  1052. input:not([type='button']) {
  1053. width: 143px;
  1054. }
  1055. }
  1056. #mail_smtpport {
  1057. width: 40px;
  1058. }
  1059. .cronlog {
  1060. margin-left: 10px;
  1061. }
  1062. .status {
  1063. display: inline-block;
  1064. height: 16px;
  1065. width: 16px;
  1066. vertical-align: text-bottom;
  1067. &.success {
  1068. border-radius: 50%;
  1069. }
  1070. }
  1071. #selectGroups select {
  1072. box-sizing: border-box;
  1073. display: inline-block;
  1074. height: 36px;
  1075. padding: 7px 10px;
  1076. }
  1077. #log .log-message {
  1078. word-break: break-all;
  1079. min-width: 180px;
  1080. }
  1081. span {
  1082. &.success {
  1083. background-color: var(--color-success);
  1084. border-radius: var(--border-radius);
  1085. }
  1086. &.error {
  1087. background-color: var(--color-error);
  1088. }
  1089. &.indeterminate {
  1090. background-color: var(--color-warning);
  1091. border-radius: 40% 0;
  1092. }
  1093. }
  1094. /* OPERA hack for strengthify*/
  1095. doesnotexist:-o-prefocus, .strengthify-wrapper {
  1096. left: 185px;
  1097. width: 129px;
  1098. }
  1099. .trusted-domain-warning {
  1100. color: #fff;
  1101. padding: 5px;
  1102. background: #ce3702;
  1103. border-radius: 5px;
  1104. font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  1105. }
  1106. #postsetupchecks {
  1107. ul {
  1108. margin-left: 44px;
  1109. list-style: disc;
  1110. li {
  1111. margin: 10px 0;
  1112. }
  1113. ul {
  1114. list-style: circle;
  1115. }
  1116. }
  1117. .loading {
  1118. height: 50px;
  1119. background-position: left center;
  1120. }
  1121. .errors, .errors a {
  1122. color: var(--color-error);
  1123. }
  1124. .warnings, .warnings a {
  1125. color: var(--color-warning);
  1126. }
  1127. .hint {
  1128. margin: 20px 0;
  1129. }
  1130. }
  1131. #security-warning {
  1132. a {
  1133. text-decoration: underline;
  1134. }
  1135. .extra-top-margin {
  1136. margin-top: 12px;
  1137. }
  1138. }
  1139. #admin-tips li {
  1140. list-style: initial;
  1141. a {
  1142. display: inline-block;
  1143. padding: 3px 0;
  1144. }
  1145. }
  1146. #selectEncryptionModules {
  1147. margin-left: 30px;
  1148. padding: 10px;
  1149. }
  1150. #encryptionModules {
  1151. padding: 10px;
  1152. }
  1153. #warning {
  1154. color: red;
  1155. }
  1156. .settings-hint {
  1157. margin-top: -12px;
  1158. margin-bottom: 12px;
  1159. opacity: .7;
  1160. }
  1161. /* USERS LIST -------------------------------------------------------------- */
  1162. #body-settings {
  1163. $grid-row-height: 60px;
  1164. $grid-col-min-width: 160px;
  1165. overflow-x: scroll;
  1166. min-height: 100%;
  1167. height: auto;
  1168. #app-content.user-list-grid {
  1169. display: grid;
  1170. grid-column-gap: 20px;
  1171. grid-auto-rows: minmax(60px, max-content);
  1172. .row {
  1173. // TODO replace with css4 subgrid when available
  1174. // fallback for ie11 no grid
  1175. display: flex;
  1176. display: grid;
  1177. min-height: $grid-row-height;
  1178. grid-row-start: span 1;
  1179. grid-gap: 3px;
  1180. align-items: center;
  1181. /* let's define the column until storage path,
  1182. what follows will be manually defined */
  1183. grid-template-columns:
  1184. 44px
  1185. minmax($grid-col-min-width + 30px, 1fr) // username, displayname
  1186. minmax($grid-col-min-width, 1fr) // password
  1187. minmax($grid-col-min-width, 1fr) // email
  1188. minmax(1.5*$grid-col-min-width, 1fr) // groups
  1189. minmax(1.5*$grid-col-min-width, 1fr) // group admins
  1190. repeat(auto-fit, minmax($grid-col-min-width, 1fr));
  1191. border-bottom: var(--color-border) 1px solid;
  1192. &.disabled {
  1193. opacity: .5;
  1194. }
  1195. /* grid col width */
  1196. .name,
  1197. .password,
  1198. .mailAddress,
  1199. .languages,
  1200. .storageLocation,
  1201. .userBackend,
  1202. .lastLogin {
  1203. min-width: $grid-col-min-width;
  1204. doesnotexist:-o-prefocus, .strengthify-wrapper {
  1205. color: var(--color-text-dark);
  1206. vertical-align: baseline;
  1207. text-overflow: ellipsis;
  1208. }
  1209. }
  1210. &:not(.row--editable) {
  1211. &.name,
  1212. &.password,
  1213. &.displayName,
  1214. &.mailAddress,
  1215. &.userBackend,
  1216. &.languages {
  1217. overflow: hidden;
  1218. }
  1219. }
  1220. .groups,
  1221. .subadmins,
  1222. .quota {
  1223. min-width: $grid-col-min-width;
  1224. .multiselect {
  1225. width: 100%;
  1226. color: var(--color-text-dark);
  1227. vertical-align: baseline;
  1228. }
  1229. }
  1230. .obfuscated {
  1231. width: 400px;
  1232. opacity: .7;
  1233. }
  1234. .userActions {
  1235. display: flex;
  1236. justify-content: flex-end;
  1237. position: sticky;
  1238. right: 0px;
  1239. min-width: 88px;
  1240. background-color: var(--color-main-background);
  1241. }
  1242. .subtitle {
  1243. color: var(--color-text-maxcontrast);
  1244. vertical-align: baseline;
  1245. }
  1246. /* various */
  1247. &#grid-header,
  1248. &#new-user {
  1249. @include position('sticky');
  1250. align-self: normal;
  1251. background-color: var(--color-main-background);
  1252. z-index: 100; /* above multiselect */
  1253. top: $header-height;
  1254. &.sticky {
  1255. box-shadow: 0 -2px 10px 1px var(--color-box-shadow);
  1256. }
  1257. /* fake input for groups validation */
  1258. input#newgroups {
  1259. position: absolute;
  1260. opacity: 0;
  1261. width: 80% !important;
  1262. margin: 0 10%;
  1263. z-index: 0;
  1264. }
  1265. }
  1266. // separate prop to set initial value to top: 50px
  1267. &#new-user {
  1268. height: 120px;
  1269. .row {
  1270. padding-top: 50px;
  1271. }
  1272. }
  1273. &#grid-header {
  1274. color: var(--color-text-maxcontrast);
  1275. z-index: 60; /* above new-user */
  1276. border-bottom-width: thin;
  1277. #headerDisplayName,
  1278. #headerPassword,
  1279. #headerAddress,
  1280. #headerGroups,
  1281. #headerSubAdmins,
  1282. #theHeaderUserBackend,
  1283. #theHeaderLastLogin,
  1284. #headerQuota,
  1285. #theHeaderStorageLocation,
  1286. #headerLanguages {
  1287. /* Line up header text with column content for when there’s inputs */
  1288. padding-left: 7px;
  1289. text-transform: none;
  1290. color: var(--color-text-maxcontrast);
  1291. vertical-align: baseline;
  1292. }
  1293. }
  1294. &:hover {
  1295. input:not([type='submit']):not(:focus):not(:active) {
  1296. border-color: var(--color-border) !important;
  1297. }
  1298. &:not(#grid-header) {
  1299. box-shadow: 5px 0 0 var(--color-primary-element) inset;
  1300. }
  1301. }
  1302. > form {
  1303. width: 100%;
  1304. }
  1305. > div,
  1306. > .displayName > form,
  1307. > form {
  1308. grid-row: 1;
  1309. display: inline-flex;
  1310. color: var(--color-text-lighter);
  1311. flex-grow: 1;
  1312. > input:not(:focus):not(:active) {
  1313. border-color: transparent;
  1314. cursor: pointer;
  1315. }
  1316. > input:focus, > input:active {
  1317. + .icon-confirm {
  1318. display: block !important;
  1319. }
  1320. }
  1321. /* inputs like mail, username, password */
  1322. &:not(.userActions) > input:not([type='submit']) {
  1323. width: 100%;
  1324. min-width: 0;
  1325. }
  1326. &.name {
  1327. word-break: break-all;
  1328. }
  1329. &.displayName,
  1330. &.mailAddress {
  1331. > input {
  1332. text-overflow: ellipsis;
  1333. flex-grow: 1;
  1334. }
  1335. }
  1336. &.name,
  1337. &.userBackend {
  1338. /* better multi-line visual */
  1339. line-height: 1.3em;
  1340. max-height: 100%;
  1341. overflow: hidden;
  1342. /* not supported by all browsers
  1343. so we keep the overflow hidden
  1344. as a fallback */
  1345. text-overflow: ellipsis;
  1346. display: -webkit-box;
  1347. -webkit-line-clamp: 2;
  1348. -webkit-box-orient: vertical;
  1349. }
  1350. &.quota {
  1351. display: flex;;
  1352. justify-content: left;
  1353. white-space: nowrap;
  1354. position: relative;
  1355. progress {
  1356. width: 150px;
  1357. margin-top: 35px;
  1358. height: 3px;
  1359. }
  1360. }
  1361. .icon-confirm {
  1362. flex: 0 0 auto;
  1363. cursor: pointer;
  1364. &:not(:active) {
  1365. display: none;
  1366. }
  1367. }
  1368. &.avatar {
  1369. height: 32px;
  1370. width: 32px;
  1371. margin: 6px;
  1372. img {
  1373. display: block;
  1374. }
  1375. }
  1376. &.userActions {
  1377. display: flex;
  1378. justify-content: flex-end;
  1379. #newsubmit {
  1380. width: 100%;
  1381. }
  1382. .toggleUserActions {
  1383. position: relative;
  1384. display: flex;
  1385. align-items: center;
  1386. background-color: var(--color-main-background);
  1387. .icon-more {
  1388. width: 44px;
  1389. height: 44px;
  1390. opacity: .5;
  1391. cursor: pointer;
  1392. &:focus,
  1393. &:hover,
  1394. &:active {
  1395. opacity: .7;
  1396. background-color: var(--color-background-dark)
  1397. }
  1398. }
  1399. }
  1400. .feedback {
  1401. display: flex;
  1402. align-items: center;
  1403. white-space: nowrap;
  1404. transition: opacity 200ms ease-in-out;
  1405. .icon-checkmark {
  1406. opacity: .5;
  1407. margin-right: 5px;
  1408. }
  1409. }
  1410. }
  1411. /* Fill the grid cell */
  1412. .multiselect.multiselect-vue {
  1413. width: 100%;
  1414. }
  1415. }
  1416. }
  1417. .infinite-loading-container {
  1418. display: flex;
  1419. align-items: center;
  1420. justify-content: center;
  1421. grid-row-start: span 4;
  1422. }
  1423. .users-list-end {
  1424. opacity: .5;
  1425. user-select: none;
  1426. }
  1427. }
  1428. }