settings.scss 24 KB

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