project-list-react.less 18 KB

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