project-list-react.less 18 KB

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