project-list-react.less 18 KB

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