project-list-react.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002
  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. hyphens: auto;
  373. width: 50%;
  374. word-break: break-word;
  375. }
  376. .dash-cell-owner {
  377. width: 20%;
  378. }
  379. .dash-cell-date {
  380. width: 25%;
  381. }
  382. .dash-cell-actions {
  383. display: none;
  384. text-align: right;
  385. }
  386. .dash-cell-date-owner {
  387. font-size: 14px;
  388. .text-overflow();
  389. }
  390. .dash-cell-tag,
  391. .clone-project-tag {
  392. .tag-label {
  393. padding: 14px 0;
  394. cursor: pointer;
  395. &:not(.tag-label-close-hover) {
  396. &:hover,
  397. &:focus {
  398. .label.tag-label-name {
  399. color: @tag-color;
  400. background-color: @tag-bg-hover-color;
  401. outline-width: 0;
  402. }
  403. }
  404. }
  405. &:first-child {
  406. margin-left: initial;
  407. }
  408. }
  409. }
  410. @media (min-width: @screen-xs) {
  411. .dash-cell-checkbox {
  412. width: 4%;
  413. }
  414. .dash-cell-name {
  415. width: 50%;
  416. }
  417. .dash-cell-owner {
  418. width: 21%;
  419. }
  420. .dash-cell-date {
  421. width: 25%;
  422. }
  423. .dash-cell-actions {
  424. width: 0%;
  425. }
  426. }
  427. @media (min-width: @screen-sm) {
  428. .dash-cell-checkbox {
  429. width: 3%;
  430. }
  431. .dash-cell-name {
  432. width: 45%;
  433. }
  434. .dash-cell-owner {
  435. width: 16%;
  436. }
  437. .dash-cell-date {
  438. width: 21%;
  439. }
  440. .dash-cell-actions {
  441. display: table-cell;
  442. width: 15%;
  443. }
  444. .project-tools {
  445. float: none;
  446. }
  447. }
  448. @media (min-width: @screen-md) {
  449. .dash-cell-checkbox {
  450. width: 3%;
  451. }
  452. .dash-cell-name {
  453. width: 46%;
  454. }
  455. .dash-cell-owner {
  456. width: 13%;
  457. }
  458. .dash-cell-date {
  459. width: 16%;
  460. }
  461. .dash-cell-actions {
  462. width: 22%;
  463. }
  464. tbody {
  465. .dash-cell-actions {
  466. white-space: nowrap;
  467. }
  468. }
  469. }
  470. @media (min-width: @screen-lg) {
  471. .dash-cell-checkbox {
  472. width: 3%;
  473. }
  474. .dash-cell-name {
  475. width: 46%;
  476. }
  477. .dash-cell-owner {
  478. width: 15%;
  479. }
  480. .dash-cell-date {
  481. width: 19%;
  482. }
  483. .dash-cell-actions {
  484. width: 17%;
  485. }
  486. }
  487. @media (min-width: 1440px) {
  488. .dash-cell-checkbox {
  489. width: 2%;
  490. }
  491. .dash-cell-name {
  492. width: 49%;
  493. }
  494. .dash-cell-owner {
  495. width: 16%;
  496. }
  497. .dash-cell-date {
  498. width: 19%;
  499. }
  500. .dash-cell-actions {
  501. width: 14%;
  502. }
  503. }
  504. @media (max-width: @screen-xs-max) {
  505. @actions-btn-size: 48px;
  506. tr {
  507. position: relative;
  508. display: flex;
  509. flex-direction: column;
  510. td {
  511. padding-top: @line-height-computed / 6;
  512. padding-bottom: @line-height-computed / 6;
  513. }
  514. td:not(.dash-cell-actions) {
  515. padding-right: @actions-btn-size + 12.5px;
  516. }
  517. }
  518. .dash-cell-name,
  519. .dash-cell-owner,
  520. .dash-cell-date,
  521. .dash-cell-tag,
  522. .dash-cell-actions {
  523. display: block;
  524. width: auto;
  525. }
  526. .dash-cell-actions {
  527. position: absolute;
  528. top: 0;
  529. right: 0;
  530. padding: 0 !important;
  531. .dropdown-toggle {
  532. padding: 13px 15px;
  533. border-radius: 0;
  534. font-size: 14px;
  535. }
  536. }
  537. }
  538. }
  539. .loading-container {
  540. display: flex;
  541. flex-direction: column;
  542. justify-content: center;
  543. align-items: center;
  544. min-height: calc(~'100vh -' @header-height);
  545. .loading-screen-brand-container {
  546. margin: 0 auto;
  547. }
  548. }
  549. @media (max-width: @screen-xs-max) {
  550. .project-tools {
  551. float: left;
  552. margin-left: initial;
  553. }
  554. }
  555. .projects-toolbar,
  556. .tag-item {
  557. display: flex;
  558. align-items: center;
  559. }
  560. .projects-toolbar {
  561. .dropdown,
  562. .dropdown-toggle {
  563. max-width: 100%;
  564. }
  565. .dropdown {
  566. min-width: 0;
  567. }
  568. .dropdown-toggle {
  569. display: inline-flex;
  570. align-items: baseline;
  571. }
  572. }
  573. .projects-sort-dropdown {
  574. flex-shrink: 0;
  575. margin-left: auto;
  576. }
  577. #projects-types-dropdown {
  578. font-family: @font-family-serif;
  579. & + .projects-dropdown-menu {
  580. min-width: 226px;
  581. }
  582. }
  583. #projects-sort-dropdown {
  584. & + .projects-dropdown-menu {
  585. min-width: 156px;
  586. }
  587. }
  588. .projects-dropdown-menu {
  589. &.dropdown-menu {
  590. // Avoid line breaks for labels in menu items.
  591. // There is enough space for these on mobile devices (checked DE and EN translations).
  592. white-space: nowrap;
  593. }
  594. .dropdown-header {
  595. padding: 14px 20px;
  596. font-size: 13px;
  597. text-transform: uppercase;
  598. }
  599. }
  600. .projects-types-menu-item {
  601. .menu-item-button-icon {
  602. left: 10px;
  603. }
  604. &.projects-types-menu-tag-item {
  605. display: flex;
  606. .edit-btn {
  607. padding: 12px 14px;
  608. }
  609. }
  610. }
  611. .projects-sort-menu-item {
  612. .menu-item-button-icon {
  613. left: 14px;
  614. }
  615. }
  616. .projects-action-menu-item {
  617. .menu-item-button-icon {
  618. left: 11px;
  619. }
  620. }
  621. }
  622. .current-plan {
  623. vertical-align: middle;
  624. line-height: @line-height-base;
  625. a.current-plan-label {
  626. text-decoration: none;
  627. color: @text-color;
  628. }
  629. }
  630. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  631. .uppy-Dashboard-AddFiles-title {
  632. display: flex;
  633. flex-direction: column;
  634. color: @ol-blue-gray-3;
  635. white-space: pre-line;
  636. button.uppy-Dashboard-browse {
  637. background-color: @ol-green;
  638. color: @white;
  639. margin-bottom: @margin-md;
  640. padding: 4px 16px 5px;
  641. height: 46px;
  642. border-radius: 23px;
  643. font-weight: 700;
  644. display: flex;
  645. justify-content: center;
  646. align-items: center;
  647. font-size: @font-size-large;
  648. font-family: @font-family-sans-serif;
  649. }
  650. }
  651. }
  652. .btn-transparent {
  653. box-shadow: none !important;
  654. background: none !important;
  655. border-radius: 0 !important;
  656. color: inherit !important;
  657. font-weight: 400;
  658. &:hover {
  659. box-shadow: none !important;
  660. background: none !important;
  661. color: inherit !important;
  662. }
  663. }
  664. .menu-item-button,
  665. #new-project-button-projects-table + .dropdown-menu [role='menuitem'] {
  666. padding: 12px 20px;
  667. }
  668. .menu-item-button {
  669. position: relative;
  670. width: 100%;
  671. border: none;
  672. box-shadow: none;
  673. background: inherit;
  674. color: @ol-blue-gray-5;
  675. text-align: left;
  676. .menu-item-button-text {
  677. padding-left: 14px;
  678. }
  679. .menu-item-button-icon {
  680. position: absolute;
  681. top: 50%;
  682. transform: translateY(-50%);
  683. &.fa-spinner {
  684. top: 30%;
  685. }
  686. }
  687. }
  688. .project-list-load-more {
  689. display: flex;
  690. flex-direction: column;
  691. justify-content: center;
  692. align-items: center;
  693. }
  694. .project-list-load-more-button {
  695. margin-bottom: @margin-sm;
  696. }
  697. .tag-dropdown-button {
  698. display: block;
  699. width: 100%;
  700. font-weight: normal;
  701. font-size: @font-size-base;
  702. text-align: left;
  703. color: @gray-dark;
  704. background-color: transparent;
  705. border-radius: unset;
  706. border: none;
  707. border-bottom: solid 1px transparent;
  708. padding: 3px 20px;
  709. &:active,
  710. &:focus {
  711. color: @gray-dark;
  712. background-color: transparent;
  713. text-decoration: none;
  714. outline: none;
  715. }
  716. &:hover {
  717. color: @white;
  718. background-color: @ol-green;
  719. }
  720. .tag-checkbox {
  721. width: 16px;
  722. }
  723. .tag-dot {
  724. display: inline-block;
  725. position: relative;
  726. border: 1px solid #ffffff;
  727. width: 14px;
  728. height: 14px;
  729. border-radius: 7px;
  730. text-align: center;
  731. top: 1px;
  732. }
  733. }
  734. .project-list-sidebar-survey-wrapper {
  735. position: sticky;
  736. bottom: 0;
  737. .alert-info-alt {
  738. font-size: @font-size-small;
  739. margin-bottom: 0;
  740. a {
  741. text-decoration: none;
  742. }
  743. }
  744. @media (max-width: @screen-xs-max) {
  745. position: static;
  746. margin-top: @margin-sm;
  747. .alert-info-alt {
  748. font-size: unset;
  749. &:before {
  750. display: none;
  751. }
  752. .project-list-sidebar-survey-link {
  753. display: block;
  754. align-items: center;
  755. min-width: @mobile-action-element-width;
  756. min-height: @mobile-action-element-height;
  757. padding-top: @padding-md;
  758. }
  759. }
  760. }
  761. }
  762. .color-picker-item {
  763. height: 28px;
  764. width: 28px;
  765. cursor: pointer;
  766. position: relative;
  767. outline: none;
  768. border-radius: 4px;
  769. margin: 0 14px 0 0;
  770. display: inline-block;
  771. vertical-align: middle;
  772. &:focus-visible {
  773. box-shadow:
  774. 0 0 0 2px @white,
  775. 0 0 0 3px @blue-50,
  776. 0 0 0 5px @blue-30;
  777. }
  778. &.more-button {
  779. border: 1px solid @gray-dark;
  780. .color-picker-more {
  781. color: @gray-dark;
  782. margin: 6px 0 0 7px;
  783. @media (max-width: @screen-xs-max) {
  784. margin: 8px 0 0 9px;
  785. }
  786. }
  787. .color-picker-more-open {
  788. color: @gray-dark;
  789. margin: 5px 0 0 5px;
  790. @media (max-width: @screen-xs-max) {
  791. margin: 7px 0 0 7px;
  792. }
  793. }
  794. }
  795. .color-picker-item-icon {
  796. margin: 6px 0 0 6px;
  797. color: @white;
  798. }
  799. @media (max-width: @screen-xs-max) {
  800. height: 32px;
  801. width: 32px;
  802. margin: 24px 24px;
  803. .color-picker-item-icon {
  804. margin: 8px 0 0 8px;
  805. color: @white;
  806. }
  807. }
  808. }
  809. .color-picker-more-wrapper {
  810. position: relative;
  811. display: inline-block;
  812. .custom-picker {
  813. position: absolute;
  814. user-select: none;
  815. @media (max-width: @screen-xs-max) {
  816. top: 56px;
  817. left: 24px;
  818. }
  819. }
  820. .popover-backdrop {
  821. position: fixed;
  822. top: 0;
  823. right: 0;
  824. bottom: 0;
  825. left: 0;
  826. }
  827. }
  828. .clone-project-tag {
  829. display: flex;
  830. &:hover .label.tag-label-name {
  831. background-color: @tag-bg-color;
  832. }
  833. }