project-list-react.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  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. }
  9. .container:before {
  10. content: '';
  11. display: block;
  12. float: left;
  13. height: 100%;
  14. }
  15. .fill {
  16. position: relative;
  17. &:after {
  18. content: '';
  19. display: block;
  20. clear: left;
  21. }
  22. }
  23. .project-list-wrapper {
  24. display: flex;
  25. align-items: stretch;
  26. min-height: calc(~'100vh -' @header-height);
  27. }
  28. .project-list-sidebar-wrapper-react {
  29. position: relative;
  30. background-color: @sidebar-bg;
  31. flex: @project-list-sidebar-wrapper-flex;
  32. min-height: calc(~'100vh -' @header-height);
  33. max-width: 320px;
  34. min-width: 200px;
  35. .project-list-sidebar-subwrapper {
  36. display: flex;
  37. flex-direction: column;
  38. height: 100%;
  39. .project-list-sidebar-react {
  40. flex-grow: 1;
  41. padding-left: 15px;
  42. padding-right: 15px;
  43. -ms-overflow-style: -ms-autohiding-scrollbar;
  44. padding-top: @content-margin-vertical;
  45. padding-bottom: @content-margin-vertical;
  46. color: @sidebar-color;
  47. .small {
  48. color: @sidebar-color;
  49. }
  50. button {
  51. white-space: normal;
  52. word-wrap: anywhere;
  53. // prevents buttons from expanding sidebar width
  54. }
  55. > .dropdown {
  56. width: 100%;
  57. .new-project-button {
  58. width: 100%;
  59. }
  60. }
  61. }
  62. }
  63. }
  64. .project-list-welcome-wrapper {
  65. width: 100%;
  66. .welcome-new-wrapper {
  67. max-width: 1080px;
  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. &:hover,
  360. &:focus {
  361. color: @ol-type-color;
  362. text-decoration: none;
  363. }
  364. }
  365. .dash-cell-checkbox {
  366. width: 5%;
  367. line-height: 1.55;
  368. input[type='checkbox'] {
  369. margin-top: 5px;
  370. }
  371. }
  372. .dash-cell-name {
  373. width: 50%;
  374. overflow: hidden;
  375. text-overflow: ellipsis;
  376. }
  377. .dash-cell-owner {
  378. width: 20%;
  379. overflow: hidden;
  380. text-overflow: ellipsis;
  381. }
  382. .dash-cell-date {
  383. width: 25%;
  384. overflow: hidden;
  385. text-overflow: ellipsis;
  386. }
  387. .dash-cell-actions {
  388. display: none;
  389. text-align: right;
  390. white-space: nowrap;
  391. }
  392. .dash-cell-date-owner {
  393. font-size: 14px;
  394. .text-overflow();
  395. }
  396. .dash-cell-tag {
  397. .tag-label {
  398. padding: 14px 0;
  399. cursor: pointer;
  400. &:not(.tag-label-close-hover) {
  401. &:hover,
  402. &:focus {
  403. .label.tag-label-name {
  404. color: @tag-color;
  405. background-color: @tag-bg-hover-color;
  406. outline-width: 0;
  407. }
  408. }
  409. }
  410. &:first-child {
  411. margin-left: initial;
  412. }
  413. }
  414. }
  415. @media (min-width: @screen-xs) {
  416. .dash-cell-checkbox {
  417. width: 4%;
  418. }
  419. .dash-cell-name {
  420. width: 50%;
  421. }
  422. .dash-cell-owner {
  423. width: 21%;
  424. }
  425. .dash-cell-date {
  426. width: 25%;
  427. }
  428. .dash-cell-actions {
  429. width: 0%;
  430. }
  431. }
  432. @media (min-width: @screen-sm) {
  433. .dash-cell-checkbox {
  434. width: 3%;
  435. }
  436. .dash-cell-name {
  437. width: 48%;
  438. }
  439. .dash-cell-owner {
  440. width: 13%;
  441. }
  442. .dash-cell-date {
  443. width: 15%;
  444. }
  445. .dash-cell-actions {
  446. display: table-cell;
  447. width: 21%;
  448. }
  449. .project-tools {
  450. float: none;
  451. }
  452. }
  453. @media (min-width: @screen-md) {
  454. .dash-cell-checkbox {
  455. width: 3%;
  456. }
  457. .dash-cell-name {
  458. width: 50%;
  459. }
  460. .dash-cell-owner {
  461. width: 13%;
  462. }
  463. .dash-cell-date {
  464. width: 16%;
  465. }
  466. .dash-cell-actions {
  467. width: 18%;
  468. }
  469. }
  470. @media (min-width: @screen-lg) {
  471. .dash-cell-checkbox {
  472. width: 3%;
  473. }
  474. .dash-cell-name {
  475. width: 50%;
  476. }
  477. .dash-cell-owner {
  478. width: 15%;
  479. }
  480. .dash-cell-date {
  481. width: 19%;
  482. }
  483. .dash-cell-actions {
  484. width: 13%;
  485. }
  486. }
  487. @media (min-width: 1440px) {
  488. .dash-cell-checkbox {
  489. width: 2%;
  490. }
  491. .dash-cell-name {
  492. width: 50%;
  493. }
  494. .dash-cell-owner {
  495. width: 16%;
  496. }
  497. .dash-cell-date {
  498. width: 19%;
  499. }
  500. .dash-cell-actions {
  501. width: 13%;
  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. 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-header {
  588. padding: 14px 20px;
  589. font-size: 13px;
  590. text-transform: uppercase;
  591. }
  592. }
  593. .projects-types-menu-item {
  594. .menu-item-button-icon {
  595. left: 10px;
  596. }
  597. &.projects-types-menu-tag-item {
  598. display: flex;
  599. .edit-btn {
  600. padding: 12px 14px;
  601. }
  602. }
  603. }
  604. .projects-sort-menu-item {
  605. .menu-item-button-icon {
  606. left: 14px;
  607. }
  608. }
  609. .projects-action-menu-item {
  610. .menu-item-button-icon {
  611. left: 11px;
  612. }
  613. }
  614. }
  615. .current-plan {
  616. vertical-align: middle;
  617. line-height: @line-height-base;
  618. a.current-plan-label {
  619. text-decoration: none;
  620. color: @text-color;
  621. }
  622. }
  623. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  624. .uppy-Dashboard-AddFiles-title {
  625. display: flex;
  626. flex-direction: column;
  627. color: @ol-blue-gray-3;
  628. white-space: pre-line;
  629. button.uppy-Dashboard-browse {
  630. background-color: @ol-green;
  631. color: @white;
  632. margin-bottom: @margin-md;
  633. padding: 4px 16px 5px;
  634. height: 46px;
  635. border-radius: 23px;
  636. font-weight: 700;
  637. display: flex;
  638. justify-content: center;
  639. align-items: center;
  640. font-size: @font-size-large;
  641. font-family: @font-family-sans-serif;
  642. }
  643. }
  644. }
  645. .btn-transparent {
  646. box-shadow: none !important;
  647. background: none !important;
  648. border-radius: 0 !important;
  649. color: inherit !important;
  650. font-weight: 400;
  651. &:hover {
  652. box-shadow: none !important;
  653. background: none !important;
  654. color: inherit !important;
  655. }
  656. }
  657. .menu-item-button,
  658. #new-project-button-projects-table + .dropdown-menu [role='menuitem'] {
  659. padding: 12px 20px;
  660. }
  661. .menu-item-button {
  662. position: relative;
  663. width: 100%;
  664. border: none;
  665. box-shadow: none;
  666. background: inherit;
  667. color: @ol-blue-gray-5;
  668. text-align: left;
  669. .menu-item-button-text {
  670. padding-left: 14px;
  671. }
  672. .menu-item-button-icon {
  673. position: absolute;
  674. top: 50%;
  675. transform: translateY(-50%);
  676. }
  677. }
  678. .project-list-load-more {
  679. display: flex;
  680. flex-direction: column;
  681. justify-content: center;
  682. align-items: center;
  683. }
  684. .project-list-load-more-button {
  685. margin-bottom: @margin-sm;
  686. }
  687. .tag-dropdown-button {
  688. display: block;
  689. width: 100%;
  690. font-weight: normal;
  691. font-size: @font-size-base;
  692. text-align: left;
  693. color: @gray-dark;
  694. background-color: transparent;
  695. border-radius: unset;
  696. border: none;
  697. border-bottom: solid 1px transparent;
  698. padding: 3px 20px;
  699. &:active,
  700. &:focus {
  701. color: @gray-dark;
  702. background-color: transparent;
  703. text-decoration: none;
  704. outline: none;
  705. }
  706. &:hover {
  707. color: @white;
  708. background-color: @ol-green;
  709. }
  710. .tag-checkbox {
  711. width: 16px;
  712. }
  713. .tag-dot {
  714. display: inline-block;
  715. position: relative;
  716. border: 1px solid #ffffff;
  717. width: 14px;
  718. height: 14px;
  719. border-radius: 7px;
  720. text-align: center;
  721. top: 1px;
  722. }
  723. }
  724. .project-list-sidebar-survey-wrapper {
  725. position: sticky;
  726. bottom: 0;
  727. .alert-info-alt {
  728. font-size: @font-size-small;
  729. margin-bottom: 0;
  730. a {
  731. text-decoration: none;
  732. }
  733. }
  734. @media (max-width: @screen-xs-max) {
  735. position: static;
  736. margin-top: @margin-sm;
  737. .alert-info-alt {
  738. font-size: unset;
  739. &:before {
  740. display: none;
  741. }
  742. .project-list-sidebar-survey-link {
  743. display: block;
  744. align-items: center;
  745. min-width: @mobile-action-element-width;
  746. min-height: @mobile-action-element-height;
  747. padding-top: @padding-md;
  748. }
  749. }
  750. }
  751. }
  752. .color-picker-item {
  753. height: 28px;
  754. width: 28px;
  755. cursor: pointer;
  756. position: relative;
  757. outline: none;
  758. border-radius: 4px;
  759. margin: 0 14px 0 0;
  760. display: inline-block;
  761. vertical-align: middle;
  762. &.more-button {
  763. border: 1px solid @gray-dark;
  764. .color-picker-more {
  765. color: @gray-dark;
  766. margin: 6px 0 0 7px;
  767. @media (max-width: @screen-xs-max) {
  768. margin: 8px 0 0 9px;
  769. }
  770. }
  771. .color-picker-more-open {
  772. color: @gray-dark;
  773. margin: 5px 0 0 5px;
  774. @media (max-width: @screen-xs-max) {
  775. margin: 7px 0 0 7px;
  776. }
  777. }
  778. }
  779. .color-picker-item-icon {
  780. margin: 6px 0 0 6px;
  781. color: @white;
  782. }
  783. @media (max-width: @screen-xs-max) {
  784. height: 32px;
  785. width: 32px;
  786. margin: 24px 24px;
  787. .color-picker-item-icon {
  788. margin: 8px 0 0 8px;
  789. color: @white;
  790. }
  791. }
  792. }
  793. .color-picker-more-wrapper {
  794. position: relative;
  795. display: inline-block;
  796. .custom-picker {
  797. position: absolute;
  798. @media (max-width: @screen-xs-max) {
  799. top: 56px;
  800. left: 24px;
  801. }
  802. }
  803. .custom-picker when(@is-new-css = false) {
  804. // to prevent the primary button from overlapping when disabled due to the opacity property
  805. z-index: 100 !important;
  806. }
  807. .popover-backdrop {
  808. position: fixed;
  809. top: 0;
  810. right: 0;
  811. bottom: 0;
  812. left: 0;
  813. }
  814. }