settings.scss 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649
  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. overflow: auto;
  1148. max-height: 100%;
  1149. }
  1150. }
  1151. .managers,
  1152. .groups,
  1153. .subadmins,
  1154. .quota {
  1155. min-width: $grid-col-min-width;
  1156. .multiselect {
  1157. width: 100%;
  1158. color: var(--color-text-dark);
  1159. vertical-align: baseline;
  1160. }
  1161. progress {
  1162. max-width: 95%;
  1163. }
  1164. }
  1165. .obfuscated {
  1166. width: 400px;
  1167. opacity: .7;
  1168. }
  1169. .userActions {
  1170. display: flex;
  1171. justify-content: flex-end;
  1172. position: sticky;
  1173. right: 0px;
  1174. min-width: 88px;
  1175. background-color: var(--color-main-background);
  1176. }
  1177. &.row--editable .userActions {
  1178. z-index: 10;
  1179. }
  1180. .subtitle {
  1181. color: var(--color-text-maxcontrast);
  1182. vertical-align: baseline;
  1183. }
  1184. /* various */
  1185. &#grid-header {
  1186. position: sticky;
  1187. align-self: normal;
  1188. background-color: var(--color-main-background);
  1189. z-index: 100; /* above multiselect */
  1190. top: 0;
  1191. &.sticky {
  1192. box-shadow: 0 -2px 10px 1px var(--color-box-shadow);
  1193. }
  1194. }
  1195. &#grid-header {
  1196. color: var(--color-text-maxcontrast);
  1197. border-bottom-width: thin;
  1198. #headerDisplayName,
  1199. #headerPassword,
  1200. #headerAddress,
  1201. #headerGroups,
  1202. #headerSubAdmins,
  1203. #theHeaderUserBackend,
  1204. #theHeaderLastLogin,
  1205. #headerQuota,
  1206. #theHeaderStorageLocation,
  1207. #headerLanguages {
  1208. /* Line up header text with column content for when there’s inputs */
  1209. padding-left: 7px;
  1210. text-transform: none;
  1211. color: var(--color-text-maxcontrast);
  1212. vertical-align: baseline;
  1213. }
  1214. }
  1215. &:hover {
  1216. input:not([type='submit']):not(:focus):not(:active) {
  1217. border-color: var(--color-border) !important;
  1218. }
  1219. &:not(#grid-header) {
  1220. box-shadow: 5px 0 0 var(--color-primary-element) inset;
  1221. }
  1222. }
  1223. > form {
  1224. width: 100%;
  1225. }
  1226. > div,
  1227. > .displayName > form,
  1228. > form {
  1229. grid-row: 1;
  1230. display: inline-flex;
  1231. color: var(--color-text-lighter);
  1232. flex-grow: 1;
  1233. > input:not(:focus):not(:active) {
  1234. border-color: transparent;
  1235. cursor: pointer;
  1236. }
  1237. > input:focus, > input:active {
  1238. + .icon-confirm {
  1239. display: block !important;
  1240. }
  1241. }
  1242. /* inputs like mail, username, password */
  1243. &:not(.userActions) > input:not([type='submit']) {
  1244. width: 100%;
  1245. min-width: 0;
  1246. }
  1247. &.name {
  1248. word-break: break-all;
  1249. }
  1250. &.displayName,
  1251. &.mailAddress {
  1252. > input {
  1253. text-overflow: ellipsis;
  1254. flex-grow: 1;
  1255. }
  1256. }
  1257. &.name,
  1258. &.userBackend {
  1259. /* better multi-line visual */
  1260. line-height: 1.3em;
  1261. max-height: 100%;
  1262. overflow: hidden;
  1263. /* not supported by all browsers
  1264. so we keep the overflow hidden
  1265. as a fallback */
  1266. text-overflow: ellipsis;
  1267. display: -webkit-box;
  1268. -webkit-line-clamp: 2;
  1269. -webkit-box-orient: vertical;
  1270. }
  1271. &.name .subtitle {
  1272. color: var(--color-main-text);
  1273. }
  1274. &.quota {
  1275. display: flex;;
  1276. justify-content: left;
  1277. white-space: nowrap;
  1278. position: relative;
  1279. progress {
  1280. width: 150px;
  1281. margin-top: 35px;
  1282. height: 3px;
  1283. }
  1284. }
  1285. .icon-confirm {
  1286. flex: 0 0 auto;
  1287. cursor: pointer;
  1288. &:not(:active) {
  1289. display: none;
  1290. }
  1291. }
  1292. &.avatar {
  1293. height: 32px;
  1294. width: 32px;
  1295. margin: 6px;
  1296. img {
  1297. display: block;
  1298. }
  1299. }
  1300. &.userActions {
  1301. display: flex;
  1302. justify-content: flex-end;
  1303. #newsubmit {
  1304. width: 100%;
  1305. }
  1306. .toggleUserActions {
  1307. position: relative;
  1308. display: flex;
  1309. align-items: center;
  1310. background-color: var(--color-main-background);
  1311. .icon-more {
  1312. width: 44px;
  1313. height: 44px;
  1314. opacity: .5;
  1315. cursor: pointer;
  1316. &:focus,
  1317. &:hover,
  1318. &:active {
  1319. opacity: .7;
  1320. background-color: var(--color-background-dark)
  1321. }
  1322. }
  1323. }
  1324. .feedback {
  1325. display: flex;
  1326. align-items: center;
  1327. white-space: nowrap;
  1328. transition: opacity 200ms ease-in-out;
  1329. .icon-checkmark {
  1330. opacity: .5;
  1331. margin-right: 5px;
  1332. }
  1333. }
  1334. }
  1335. /* Fill the grid cell */
  1336. .multiselect.multiselect-vue {
  1337. min-width: 100%;
  1338. width: 100%;
  1339. }
  1340. }
  1341. }
  1342. .infinite-loading-container {
  1343. display: flex;
  1344. align-items: center;
  1345. justify-content: center;
  1346. grid-row-start: span 4;
  1347. }
  1348. .users-list-end {
  1349. opacity: .5;
  1350. user-select: none;
  1351. }
  1352. }
  1353. }
  1354. .animated {
  1355. animation: blink-animation 1s steps(5, start) 4;
  1356. }
  1357. @keyframes blink-animation {
  1358. to {
  1359. opacity: 0.6;
  1360. }
  1361. }
  1362. @-webkit-keyframes blink-animation {
  1363. to {
  1364. opacity: 1;
  1365. }
  1366. }