project-list-react.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981
  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. .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. align-items: center;
  543. min-height: calc(~'100vh -' @header-height);
  544. .loading-screen-brand-container {
  545. margin: 0 auto;
  546. }
  547. }
  548. @media (max-width: @screen-xs-max) {
  549. .project-tools {
  550. float: left;
  551. margin-left: initial;
  552. }
  553. }
  554. .projects-toolbar,
  555. .tag-item {
  556. display: flex;
  557. align-items: center;
  558. }
  559. .projects-toolbar {
  560. .dropdown,
  561. .dropdown-toggle {
  562. max-width: 100%;
  563. }
  564. .dropdown {
  565. min-width: 0;
  566. }
  567. .dropdown-toggle {
  568. display: inline-flex;
  569. align-items: baseline;
  570. }
  571. }
  572. .projects-sort-dropdown {
  573. flex-shrink: 0;
  574. margin-left: auto;
  575. }
  576. #projects-types-dropdown {
  577. font-family: @font-family-serif;
  578. & + .projects-dropdown-menu {
  579. min-width: 226px;
  580. }
  581. }
  582. #projects-sort-dropdown {
  583. & + .projects-dropdown-menu {
  584. min-width: 156px;
  585. }
  586. }
  587. .projects-dropdown-menu {
  588. .dropdown-header {
  589. padding: 14px 20px;
  590. font-size: 13px;
  591. text-transform: uppercase;
  592. }
  593. }
  594. .projects-types-menu-item {
  595. .menu-item-button-icon {
  596. left: 10px;
  597. }
  598. &.projects-types-menu-tag-item {
  599. display: flex;
  600. .edit-btn {
  601. padding: 12px 14px;
  602. }
  603. }
  604. }
  605. .projects-sort-menu-item {
  606. .menu-item-button-icon {
  607. left: 14px;
  608. }
  609. }
  610. .projects-action-menu-item {
  611. .menu-item-button-icon {
  612. left: 11px;
  613. }
  614. }
  615. }
  616. .current-plan {
  617. vertical-align: middle;
  618. line-height: @line-height-base;
  619. a.current-plan-label {
  620. text-decoration: none;
  621. color: @text-color;
  622. }
  623. }
  624. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  625. .uppy-Dashboard-AddFiles-title {
  626. display: flex;
  627. flex-direction: column;
  628. color: @ol-blue-gray-3;
  629. white-space: pre-line;
  630. button.uppy-Dashboard-browse {
  631. background-color: @ol-green;
  632. color: @white;
  633. margin-bottom: @margin-md;
  634. padding: 4px 16px 5px;
  635. height: 46px;
  636. border-radius: 23px;
  637. font-weight: 700;
  638. display: flex;
  639. justify-content: center;
  640. align-items: center;
  641. font-size: @font-size-large;
  642. font-family: @font-family-sans-serif;
  643. }
  644. }
  645. }
  646. .btn-transparent {
  647. box-shadow: none !important;
  648. background: none !important;
  649. border-radius: 0 !important;
  650. color: inherit !important;
  651. font-weight: 400;
  652. &:hover {
  653. box-shadow: none !important;
  654. background: none !important;
  655. color: inherit !important;
  656. }
  657. }
  658. .menu-item-button,
  659. #new-project-button-projects-table + .dropdown-menu [role='menuitem'] {
  660. padding: 12px 20px;
  661. }
  662. .menu-item-button {
  663. position: relative;
  664. width: 100%;
  665. border: none;
  666. box-shadow: none;
  667. background: inherit;
  668. color: @ol-blue-gray-5;
  669. text-align: left;
  670. .menu-item-button-text {
  671. padding-left: 14px;
  672. }
  673. .menu-item-button-icon {
  674. position: absolute;
  675. top: 50%;
  676. transform: translateY(-50%);
  677. }
  678. }
  679. .project-list-load-more {
  680. display: flex;
  681. flex-direction: column;
  682. justify-content: center;
  683. align-items: center;
  684. }
  685. .project-list-load-more-button {
  686. margin-bottom: @margin-sm;
  687. }
  688. .tag-dropdown-button {
  689. display: block;
  690. width: 100%;
  691. font-weight: normal;
  692. font-size: @font-size-base;
  693. text-align: left;
  694. color: @gray-dark;
  695. background-color: transparent;
  696. border-radius: unset;
  697. border: none;
  698. border-bottom: solid 1px transparent;
  699. padding: 3px 20px;
  700. &:active,
  701. &:focus {
  702. color: @gray-dark;
  703. background-color: transparent;
  704. text-decoration: none;
  705. outline: none;
  706. }
  707. &:hover {
  708. color: @white;
  709. background-color: @ol-green;
  710. }
  711. .tag-checkbox {
  712. width: 16px;
  713. }
  714. .tag-dot {
  715. display: inline-block;
  716. position: relative;
  717. border: 1px solid #ffffff;
  718. width: 14px;
  719. height: 14px;
  720. border-radius: 7px;
  721. text-align: center;
  722. top: 1px;
  723. }
  724. }
  725. .project-list-sidebar-survey-wrapper {
  726. position: sticky;
  727. bottom: 0;
  728. .alert-info-alt {
  729. font-size: @font-size-small;
  730. margin-bottom: 0;
  731. a {
  732. text-decoration: none;
  733. }
  734. }
  735. @media (max-width: @screen-xs-max) {
  736. position: static;
  737. margin-top: @margin-sm;
  738. .alert-info-alt {
  739. font-size: unset;
  740. &:before {
  741. display: none;
  742. }
  743. .project-list-sidebar-survey-link {
  744. display: block;
  745. align-items: center;
  746. min-width: @mobile-action-element-width;
  747. min-height: @mobile-action-element-height;
  748. padding-top: @padding-md;
  749. }
  750. }
  751. }
  752. }
  753. .color-picker-item {
  754. height: 28px;
  755. width: 28px;
  756. cursor: pointer;
  757. position: relative;
  758. outline: none;
  759. border-radius: 4px;
  760. margin: 0 14px 0 0;
  761. display: inline-block;
  762. vertical-align: middle;
  763. &.more-button {
  764. border: 1px solid @gray-dark;
  765. .color-picker-more {
  766. color: @gray-dark;
  767. margin: 6px 0 0 7px;
  768. @media (max-width: @screen-xs-max) {
  769. margin: 8px 0 0 9px;
  770. }
  771. }
  772. .color-picker-more-open {
  773. color: @gray-dark;
  774. margin: 5px 0 0 5px;
  775. @media (max-width: @screen-xs-max) {
  776. margin: 7px 0 0 7px;
  777. }
  778. }
  779. }
  780. .color-picker-item-icon {
  781. margin: 6px 0 0 6px;
  782. color: @white;
  783. }
  784. @media (max-width: @screen-xs-max) {
  785. height: 32px;
  786. width: 32px;
  787. margin: 24px 24px;
  788. .color-picker-item-icon {
  789. margin: 8px 0 0 8px;
  790. color: @white;
  791. }
  792. }
  793. }
  794. .color-picker-more-wrapper {
  795. position: relative;
  796. display: inline-block;
  797. .custom-picker {
  798. position: absolute;
  799. @media (max-width: @screen-xs-max) {
  800. top: 56px;
  801. left: 24px;
  802. }
  803. }
  804. .custom-picker when(@is-new-css = false) {
  805. // to prevent the primary button from overlapping when disabled due to the opacity property
  806. z-index: 100 !important;
  807. }
  808. .popover-backdrop {
  809. position: fixed;
  810. top: 0;
  811. right: 0;
  812. bottom: 0;
  813. left: 0;
  814. }
  815. }