project-list-react.less 18 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
  1. @project-list-sidebar-wrapper-flex: 0 0 15%;
  2. .project-list-react {
  3. body > .content& {
  4. padding-top: @header-height;
  5. padding-bottom: 0;
  6. min-height: calc(~'100vh -' @header-height);
  7. display: flex;
  8. flex-direction: column;
  9. }
  10. .container:before {
  11. content: '';
  12. display: block;
  13. float: left;
  14. height: 100%;
  15. }
  16. .fill {
  17. position: relative;
  18. &:after {
  19. content: '';
  20. display: block;
  21. clear: left;
  22. }
  23. }
  24. .project-list-wrapper {
  25. display: flex;
  26. align-items: stretch;
  27. width: 100%;
  28. min-height: calc(~'100vh -' @header-height);
  29. }
  30. .project-list-sidebar-wrapper-react {
  31. position: relative;
  32. background-color: @sidebar-bg;
  33. flex: @project-list-sidebar-wrapper-flex;
  34. min-height: calc(~'100vh -' @header-height);
  35. max-width: 320px;
  36. min-width: 200px;
  37. .project-list-sidebar-subwrapper {
  38. display: flex;
  39. flex-direction: column;
  40. height: 100%;
  41. .project-list-sidebar-react {
  42. flex-grow: 1;
  43. padding-left: 15px;
  44. padding-right: 15px;
  45. -ms-overflow-style: -ms-autohiding-scrollbar;
  46. padding-top: @content-margin-vertical;
  47. padding-bottom: @content-margin-vertical;
  48. color: @sidebar-color;
  49. .small {
  50. color: @sidebar-color;
  51. }
  52. button {
  53. white-space: normal;
  54. word-wrap: anywhere;
  55. // prevents buttons from expanding sidebar width
  56. }
  57. > .dropdown {
  58. width: 100%;
  59. .new-project-button {
  60. width: 100%;
  61. }
  62. }
  63. }
  64. }
  65. }
  66. .project-list-welcome-wrapper {
  67. width: 100%;
  68. padding-bottom: 25px;
  69. .welcome-new-wrapper {
  70. .welcome-title {
  71. font-size: 32px;
  72. }
  73. .welcome-message-cards-wrapper {
  74. display: flex;
  75. flex-direction: column;
  76. justify-content: space-between;
  77. align-items: center;
  78. margin-top: 50px;
  79. @media (min-width: @screen-md-min) {
  80. flex-direction: row;
  81. justify-content: center;
  82. }
  83. }
  84. .welcome-message-card {
  85. border: 1px solid @neutral-20;
  86. border-radius: 16px;
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. justify-content: space-between;
  91. padding: 24px 16px;
  92. margin: @margin-sm 0;
  93. width: 280px;
  94. height: 200px;
  95. position: relative;
  96. cursor: pointer;
  97. @media (min-width: @screen-md-min) {
  98. margin: 0 15px;
  99. height: 240px;
  100. }
  101. &:hover {
  102. background-color: @ol-blue-gray-0;
  103. }
  104. .welcome-message-card-img {
  105. @media (min-width: @screen-md-min) {
  106. margin-bottom: 20px;
  107. }
  108. }
  109. .create-new-project-dropdown {
  110. border: 1px solid @neutral-20;
  111. position: absolute;
  112. top: 100%;
  113. left: 0;
  114. width: 100%;
  115. padding: 0;
  116. border-radius: 3px;
  117. z-index: 1;
  118. text-align: left;
  119. button,
  120. a,
  121. .dropdown-header {
  122. padding: 5px 10px;
  123. }
  124. > button {
  125. background-color: white;
  126. border: none;
  127. box-shadow: none;
  128. display: flex;
  129. align-items: center;
  130. width: 100%;
  131. &:hover {
  132. background-color: @ol-blue-gray-0;
  133. }
  134. }
  135. > a {
  136. color: @ol-blue-gray-3;
  137. display: block;
  138. &:hover {
  139. text-decoration: none;
  140. background-color: @ol-blue-gray-0;
  141. }
  142. }
  143. hr {
  144. margin-top: 6px;
  145. margin-bottom: 6px;
  146. }
  147. }
  148. }
  149. .welcome-message-card-link {
  150. &,
  151. &:hover {
  152. text-decoration: none;
  153. color: @ol-blue-gray-3;
  154. }
  155. }
  156. }
  157. }
  158. .project-list-main-react {
  159. max-width: 100%;
  160. overflow-x: hidden;
  161. padding: @content-margin-vertical @grid-gutter-width / 2;
  162. }
  163. .project-list-header-row {
  164. display: flex;
  165. align-items: center;
  166. margin-bottom: @margin-sm;
  167. min-height: 36px;
  168. }
  169. .project-list-title {
  170. min-width: 0;
  171. color: @content-secondary;
  172. font-family: Lato, sans-serif;
  173. font-size: @font-size-large;
  174. line-height: 28px;
  175. font-weight: bold;
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. }
  179. ul.project-list-filters {
  180. margin: @margin-sm @folders-menu-margin;
  181. .subdued {
  182. color: @gray-light;
  183. }
  184. > li {
  185. cursor: pointer;
  186. position: relative;
  187. > button {
  188. display: block;
  189. width: 100%;
  190. font-weight: normal;
  191. text-align: left;
  192. color: @sidebar-link-color;
  193. background-color: transparent;
  194. border-radius: unset;
  195. border: none;
  196. border-bottom: solid 1px transparent;
  197. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  198. &:hover {
  199. background-color: @sidebar-hover-bg;
  200. text-decoration: @sidebar-hover-text-decoration;
  201. }
  202. &:focus {
  203. text-decoration: none;
  204. outline: none;
  205. }
  206. }
  207. &.separator {
  208. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  209. cursor: auto;
  210. }
  211. }
  212. > li.active {
  213. border-radius: @sidebar-active-border-radius;
  214. > button {
  215. background-color: @sidebar-active-bg;
  216. font-weight: @sidebar-active-font-weight;
  217. color: @sidebar-active-color;
  218. .subdued {
  219. color: @sidebar-active-color;
  220. }
  221. }
  222. }
  223. h2 {
  224. margin-top: @folders-title-margin-top;
  225. margin-bottom: @folders-title-margin-bottom;
  226. font-size: @folders-title-font-size;
  227. color: @folders-title-color;
  228. text-transform: @folders-title-text-transform;
  229. padding: @folders-title-padding;
  230. font-weight: @folders-title-font-weight;
  231. font-family: @font-family-sans-serif;
  232. }
  233. > li.tag {
  234. &.active {
  235. .tag-menu > button {
  236. color: white;
  237. border-color: white;
  238. &:hover {
  239. background-color: @folders-tag-menu-active-hover;
  240. }
  241. }
  242. }
  243. &.untagged {
  244. button.tag-name {
  245. span.name {
  246. font-style: italic;
  247. padding-left: 0;
  248. }
  249. }
  250. }
  251. &:hover {
  252. &:not(.active) {
  253. background-color: @folders-tag-hover;
  254. }
  255. .tag-menu {
  256. display: block;
  257. }
  258. }
  259. &:not(.active) {
  260. .tag-menu > a:hover {
  261. background-color: @folders-tag-menu-hover;
  262. }
  263. }
  264. button.tag-name {
  265. position: relative;
  266. padding: @folders-tag-padding;
  267. display: @folders-tag-display;
  268. word-wrap: anywhere;
  269. span.name {
  270. padding-left: 0.5em;
  271. line-height: @folders-tag-line-height;
  272. }
  273. }
  274. }
  275. .tag-menu {
  276. button.dropdown-toggle {
  277. border: 1px solid @folders-tag-border-color;
  278. border-radius: @border-radius-small;
  279. background-color: transparent;
  280. color: @folders-tag-menu-color;
  281. display: block;
  282. width: 16px;
  283. height: 16px;
  284. position: relative;
  285. .caret {
  286. position: absolute;
  287. top: 6px;
  288. left: 1px;
  289. }
  290. }
  291. display: none;
  292. width: auto;
  293. position: absolute;
  294. top: 50%;
  295. margin-top: -8px; // Half the element height.
  296. right: 4px;
  297. &.open {
  298. display: block;
  299. }
  300. button.tag-action {
  301. border-radius: unset;
  302. width: 100%;
  303. background-color: transparent;
  304. border-color: transparent;
  305. color: @gray-dark;
  306. text-align: left;
  307. font-weight: normal;
  308. &:hover {
  309. color: @white;
  310. background-color: @ol-green;
  311. }
  312. &:active {
  313. outline: none;
  314. }
  315. }
  316. }
  317. }
  318. .project-tools {
  319. flex-shrink: 0;
  320. margin-left: auto;
  321. }
  322. .project-dash-table {
  323. width: 100%;
  324. table-layout: fixed;
  325. tr {
  326. border-bottom: 1px solid @structured-list-border-color;
  327. }
  328. th,
  329. td {
  330. padding: (@line-height-computed / 4) @line-height-computed / 2;
  331. vertical-align: top;
  332. }
  333. tr {
  334. th:first-child,
  335. td:first-child,
  336. th:last-child,
  337. td:last-child {
  338. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  339. }
  340. }
  341. tbody {
  342. tr:not(.no-projects):hover {
  343. background-color: @structured-list-hover-color;
  344. }
  345. tr:last-child {
  346. border-bottom: 0 none;
  347. }
  348. }
  349. .table-header-sort-btn {
  350. border: 0;
  351. text-align: left;
  352. color: @ol-type-color;
  353. padding: 0;
  354. font-weight: bold;
  355. max-width: 100%;
  356. overflow: hidden;
  357. text-overflow: ellipsis;
  358. &:hover,
  359. &:focus {
  360. color: @ol-type-color;
  361. text-decoration: none;
  362. }
  363. }
  364. .dash-cell-checkbox {
  365. width: 5%;
  366. line-height: 1.55;
  367. input[type='checkbox'] {
  368. margin-top: 5px;
  369. }
  370. }
  371. .dash-cell-name {
  372. width: 50%;
  373. }
  374. .dash-cell-owner {
  375. width: 20%;
  376. }
  377. .dash-cell-date {
  378. width: 25%;
  379. }
  380. .dash-cell-actions {
  381. display: none;
  382. text-align: right;
  383. }
  384. .dash-cell-date-owner {
  385. font-size: 14px;
  386. .text-overflow();
  387. }
  388. .dash-cell-tag,
  389. .clone-project-tag {
  390. .tag-label {
  391. padding: 14px 0;
  392. cursor: pointer;
  393. &:not(.tag-label-close-hover) {
  394. &:hover,
  395. &:focus {
  396. .label.tag-label-name {
  397. color: @tag-color;
  398. background-color: @tag-bg-hover-color;
  399. outline-width: 0;
  400. }
  401. }
  402. }
  403. &:first-child {
  404. margin-left: initial;
  405. }
  406. }
  407. }
  408. @media (min-width: @screen-xs) {
  409. .dash-cell-checkbox {
  410. width: 4%;
  411. }
  412. .dash-cell-name {
  413. width: 50%;
  414. }
  415. .dash-cell-owner {
  416. width: 21%;
  417. }
  418. .dash-cell-date {
  419. width: 25%;
  420. }
  421. .dash-cell-actions {
  422. width: 0%;
  423. }
  424. }
  425. @media (min-width: @screen-sm) {
  426. .dash-cell-checkbox {
  427. width: 3%;
  428. }
  429. .dash-cell-name {
  430. width: 45%;
  431. }
  432. .dash-cell-owner {
  433. width: 16%;
  434. }
  435. .dash-cell-date {
  436. width: 21%;
  437. }
  438. .dash-cell-actions {
  439. display: table-cell;
  440. width: 15%;
  441. }
  442. .project-tools {
  443. float: none;
  444. }
  445. }
  446. @media (min-width: @screen-md) {
  447. .dash-cell-checkbox {
  448. width: 3%;
  449. }
  450. .dash-cell-name {
  451. width: 46%;
  452. }
  453. .dash-cell-owner {
  454. width: 13%;
  455. }
  456. .dash-cell-date {
  457. width: 16%;
  458. }
  459. .dash-cell-actions {
  460. width: 22%;
  461. }
  462. tbody {
  463. .dash-cell-actions {
  464. white-space: nowrap;
  465. }
  466. }
  467. }
  468. @media (min-width: @screen-lg) {
  469. .dash-cell-checkbox {
  470. width: 3%;
  471. }
  472. .dash-cell-name {
  473. width: 46%;
  474. }
  475. .dash-cell-owner {
  476. width: 15%;
  477. }
  478. .dash-cell-date {
  479. width: 19%;
  480. }
  481. .dash-cell-actions {
  482. width: 17%;
  483. }
  484. }
  485. @media (min-width: 1440px) {
  486. .dash-cell-checkbox {
  487. width: 2%;
  488. }
  489. .dash-cell-name {
  490. width: 49%;
  491. }
  492. .dash-cell-owner {
  493. width: 16%;
  494. }
  495. .dash-cell-date {
  496. width: 19%;
  497. }
  498. .dash-cell-actions {
  499. width: 14%;
  500. }
  501. }
  502. @media (max-width: @screen-xs-max) {
  503. @actions-btn-size: 48px;
  504. tr {
  505. position: relative;
  506. display: flex;
  507. flex-direction: column;
  508. td {
  509. padding-top: @line-height-computed / 6;
  510. padding-bottom: @line-height-computed / 6;
  511. }
  512. td:not(.dash-cell-actions) {
  513. padding-right: @actions-btn-size + 12.5px;
  514. }
  515. }
  516. .dash-cell-name,
  517. .dash-cell-owner,
  518. .dash-cell-date,
  519. .dash-cell-tag,
  520. .dash-cell-actions {
  521. display: block;
  522. width: auto;
  523. }
  524. .dash-cell-actions {
  525. position: absolute;
  526. top: 0;
  527. right: 0;
  528. padding: 0 !important;
  529. .dropdown-toggle {
  530. padding: 13px 15px;
  531. border-radius: 0;
  532. font-size: 14px;
  533. }
  534. }
  535. }
  536. }
  537. .loading-container {
  538. display: flex;
  539. flex-direction: column;
  540. justify-content: center;
  541. align-items: center;
  542. min-height: calc(~'100vh -' @header-height);
  543. .loading-screen-brand-container {
  544. margin: 0 auto;
  545. }
  546. }
  547. @media (max-width: @screen-xs-max) {
  548. .project-tools {
  549. float: left;
  550. margin-left: initial;
  551. }
  552. }
  553. .projects-toolbar,
  554. .tag-item {
  555. display: flex;
  556. align-items: center;
  557. }
  558. .projects-toolbar {
  559. .dropdown,
  560. .dropdown-toggle {
  561. max-width: 100%;
  562. }
  563. .dropdown {
  564. min-width: 0;
  565. }
  566. .dropdown-toggle {
  567. display: inline-flex;
  568. align-items: baseline;
  569. }
  570. }
  571. .projects-sort-dropdown {
  572. flex-shrink: 0;
  573. margin-left: auto;
  574. }
  575. #projects-types-dropdown {
  576. font-family: @font-family-serif;
  577. & + .projects-dropdown-menu {
  578. min-width: 226px;
  579. }
  580. }
  581. #projects-sort-dropdown {
  582. & + .projects-dropdown-menu {
  583. min-width: 156px;
  584. }
  585. }
  586. .projects-dropdown-menu {
  587. &.dropdown-menu {
  588. // Avoid line breaks for labels in menu items.
  589. // There is enough space for these on mobile devices (checked DE and EN translations).
  590. white-space: nowrap;
  591. }
  592. .dropdown-header {
  593. padding: 14px 20px;
  594. font-size: 13px;
  595. text-transform: uppercase;
  596. }
  597. }
  598. .projects-types-menu-item {
  599. .menu-item-button-icon {
  600. left: 10px;
  601. }
  602. &.projects-types-menu-tag-item {
  603. display: flex;
  604. .edit-btn {
  605. padding: 12px 14px;
  606. }
  607. }
  608. }
  609. .projects-sort-menu-item {
  610. .menu-item-button-icon {
  611. left: 14px;
  612. }
  613. }
  614. .projects-action-menu-item {
  615. .menu-item-button-icon {
  616. left: 11px;
  617. }
  618. }
  619. }
  620. .current-plan {
  621. vertical-align: middle;
  622. line-height: @line-height-base;
  623. a.current-plan-label {
  624. text-decoration: none;
  625. color: @text-color;
  626. }
  627. }
  628. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  629. .uppy-Dashboard-AddFiles-title {
  630. display: flex;
  631. flex-direction: column;
  632. color: @ol-blue-gray-3;
  633. white-space: pre-line;
  634. button.uppy-Dashboard-browse {
  635. background-color: @ol-green;
  636. color: @white;
  637. margin-bottom: @margin-md;
  638. padding: 4px 16px 5px;
  639. height: 46px;
  640. border-radius: 23px;
  641. font-weight: 700;
  642. display: flex;
  643. justify-content: center;
  644. align-items: center;
  645. font-size: @font-size-large;
  646. font-family: @font-family-sans-serif;
  647. }
  648. }
  649. }
  650. .btn-transparent {
  651. box-shadow: none !important;
  652. background: none !important;
  653. border-radius: 0 !important;
  654. color: inherit !important;
  655. font-weight: 400;
  656. &:hover {
  657. box-shadow: none !important;
  658. background: none !important;
  659. color: inherit !important;
  660. }
  661. }
  662. .menu-item-button,
  663. #new-project-button-projects-table + .dropdown-menu [role='menuitem'] {
  664. padding: 12px 20px;
  665. }
  666. .menu-item-button {
  667. position: relative;
  668. width: 100%;
  669. border: none;
  670. box-shadow: none;
  671. background: inherit;
  672. color: @ol-blue-gray-5;
  673. text-align: left;
  674. .menu-item-button-text {
  675. padding-left: 14px;
  676. }
  677. .menu-item-button-icon {
  678. position: absolute;
  679. top: 50%;
  680. transform: translateY(-50%);
  681. &.fa-spinner {
  682. top: 30%;
  683. }
  684. }
  685. }
  686. .project-list-load-more {
  687. display: flex;
  688. flex-direction: column;
  689. justify-content: center;
  690. align-items: center;
  691. }
  692. .project-list-load-more-button {
  693. margin-bottom: @margin-sm;
  694. }
  695. .tag-dropdown-button {
  696. display: block;
  697. width: 100%;
  698. font-weight: normal;
  699. font-size: @font-size-base;
  700. text-align: left;
  701. color: @gray-dark;
  702. background-color: transparent;
  703. border-radius: unset;
  704. border: none;
  705. border-bottom: solid 1px transparent;
  706. padding: 3px 20px;
  707. &:active,
  708. &:focus {
  709. color: @gray-dark;
  710. background-color: transparent;
  711. text-decoration: none;
  712. outline: none;
  713. }
  714. &:hover {
  715. color: @white;
  716. background-color: @ol-green;
  717. }
  718. .tag-checkbox {
  719. width: 16px;
  720. }
  721. .tag-dot {
  722. display: inline-block;
  723. position: relative;
  724. border: 1px solid #ffffff;
  725. width: 14px;
  726. height: 14px;
  727. border-radius: 7px;
  728. text-align: center;
  729. top: 1px;
  730. }
  731. }
  732. .project-list-sidebar-survey-wrapper {
  733. position: sticky;
  734. bottom: 0;
  735. .alert-info-alt {
  736. font-size: @font-size-small;
  737. margin-bottom: 0;
  738. a {
  739. text-decoration: none;
  740. }
  741. }
  742. @media (max-width: @screen-xs-max) {
  743. position: static;
  744. margin-top: @margin-sm;
  745. .alert-info-alt {
  746. font-size: unset;
  747. &:before {
  748. display: none;
  749. }
  750. .project-list-sidebar-survey-link {
  751. display: block;
  752. align-items: center;
  753. min-width: @mobile-action-element-width;
  754. min-height: @mobile-action-element-height;
  755. padding-top: @padding-md;
  756. }
  757. }
  758. }
  759. }
  760. .color-picker-item {
  761. height: 28px;
  762. width: 28px;
  763. cursor: pointer;
  764. position: relative;
  765. outline: none;
  766. border-radius: 4px;
  767. margin: 0 14px 0 0;
  768. display: inline-block;
  769. vertical-align: middle;
  770. &:focus-visible {
  771. box-shadow:
  772. 0 0 0 2px @white,
  773. 0 0 0 3px @blue-50,
  774. 0 0 0 5px @blue-30;
  775. }
  776. &.more-button {
  777. border: 1px solid @gray-dark;
  778. .color-picker-more {
  779. color: @gray-dark;
  780. margin: 6px 0 0 7px;
  781. @media (max-width: @screen-xs-max) {
  782. margin: 8px 0 0 9px;
  783. }
  784. }
  785. .color-picker-more-open {
  786. color: @gray-dark;
  787. margin: 5px 0 0 5px;
  788. @media (max-width: @screen-xs-max) {
  789. margin: 7px 0 0 7px;
  790. }
  791. }
  792. }
  793. .color-picker-item-icon {
  794. margin: 6px 0 0 6px;
  795. color: @white;
  796. }
  797. @media (max-width: @screen-xs-max) {
  798. height: 32px;
  799. width: 32px;
  800. margin: 24px 24px;
  801. .color-picker-item-icon {
  802. margin: 8px 0 0 8px;
  803. color: @white;
  804. }
  805. }
  806. }
  807. .color-picker-more-wrapper {
  808. position: relative;
  809. display: inline-block;
  810. .custom-picker {
  811. position: absolute;
  812. user-select: none;
  813. @media (max-width: @screen-xs-max) {
  814. top: 56px;
  815. left: 24px;
  816. }
  817. }
  818. .popover-backdrop {
  819. position: fixed;
  820. top: 0;
  821. right: 0;
  822. bottom: 0;
  823. left: 0;
  824. }
  825. }
  826. .clone-project-tag {
  827. display: flex;
  828. &:hover .label.tag-label-name {
  829. background-color: @tag-bg-color;
  830. }
  831. }