project-list-react.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997
  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: 0 0 0 2px @white, 0 0 0 3px @blue-50, 0 0 0 5px @blue-30;
  772. }
  773. &.more-button {
  774. border: 1px solid @gray-dark;
  775. .color-picker-more {
  776. color: @gray-dark;
  777. margin: 6px 0 0 7px;
  778. @media (max-width: @screen-xs-max) {
  779. margin: 8px 0 0 9px;
  780. }
  781. }
  782. .color-picker-more-open {
  783. color: @gray-dark;
  784. margin: 5px 0 0 5px;
  785. @media (max-width: @screen-xs-max) {
  786. margin: 7px 0 0 7px;
  787. }
  788. }
  789. }
  790. .color-picker-item-icon {
  791. margin: 6px 0 0 6px;
  792. color: @white;
  793. }
  794. @media (max-width: @screen-xs-max) {
  795. height: 32px;
  796. width: 32px;
  797. margin: 24px 24px;
  798. .color-picker-item-icon {
  799. margin: 8px 0 0 8px;
  800. color: @white;
  801. }
  802. }
  803. }
  804. .color-picker-more-wrapper {
  805. position: relative;
  806. display: inline-block;
  807. .custom-picker {
  808. position: absolute;
  809. user-select: none;
  810. @media (max-width: @screen-xs-max) {
  811. top: 56px;
  812. left: 24px;
  813. }
  814. }
  815. .popover-backdrop {
  816. position: fixed;
  817. top: 0;
  818. right: 0;
  819. bottom: 0;
  820. left: 0;
  821. }
  822. }
  823. .clone-project-tag {
  824. display: flex;
  825. &:hover .label.tag-label-name {
  826. background-color: @tag-bg-color;
  827. }
  828. }