project-list-react.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980
  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. max-width: 1080px;
  69. .welcome-title {
  70. font-size: 32px;
  71. }
  72. .welcome-message-cards-wrapper {
  73. display: flex;
  74. flex-direction: column;
  75. justify-content: space-between;
  76. align-items: center;
  77. margin-top: 50px;
  78. @media (min-width: @screen-md-min) {
  79. flex-direction: row;
  80. justify-content: center;
  81. }
  82. }
  83. .welcome-message-card {
  84. border: 1px solid @neutral-20;
  85. border-radius: 16px;
  86. display: flex;
  87. flex-direction: column;
  88. align-items: center;
  89. justify-content: space-between;
  90. padding: 24px 16px;
  91. margin: @margin-sm 0;
  92. width: 280px;
  93. height: 200px;
  94. position: relative;
  95. cursor: pointer;
  96. @media (min-width: @screen-md-min) {
  97. margin: 0 15px;
  98. height: 240px;
  99. }
  100. &:hover {
  101. background-color: @ol-blue-gray-0;
  102. }
  103. .welcome-message-card-img {
  104. @media (min-width: @screen-md-min) {
  105. margin-bottom: 20px;
  106. }
  107. }
  108. .create-new-project-dropdown {
  109. border: 1px solid @neutral-20;
  110. position: absolute;
  111. top: 100%;
  112. left: 0;
  113. width: 100%;
  114. padding: 0;
  115. border-radius: 3px;
  116. z-index: 1;
  117. text-align: left;
  118. button,
  119. a,
  120. .dropdown-header {
  121. padding: 5px 10px;
  122. }
  123. > button {
  124. background-color: white;
  125. border: none;
  126. box-shadow: none;
  127. display: flex;
  128. align-items: center;
  129. width: 100%;
  130. &:hover {
  131. background-color: @ol-blue-gray-0;
  132. }
  133. }
  134. > a {
  135. color: @ol-blue-gray-3;
  136. display: block;
  137. &:hover {
  138. text-decoration: none;
  139. background-color: @ol-blue-gray-0;
  140. }
  141. }
  142. hr {
  143. margin-top: 6px;
  144. margin-bottom: 6px;
  145. }
  146. }
  147. }
  148. .welcome-message-card-link {
  149. &,
  150. &:hover {
  151. text-decoration: none;
  152. color: @ol-blue-gray-3;
  153. }
  154. }
  155. }
  156. }
  157. .project-list-main-react {
  158. max-width: 100%;
  159. overflow-x: hidden;
  160. padding: @content-margin-vertical @grid-gutter-width / 2;
  161. }
  162. .project-list-header-row {
  163. display: flex;
  164. align-items: center;
  165. margin-bottom: @margin-sm;
  166. }
  167. .project-list-title {
  168. min-width: 0;
  169. color: @content-secondary;
  170. font-family: Lato, sans-serif;
  171. font-size: @font-size-large;
  172. line-height: 28px;
  173. font-weight: bold;
  174. overflow: hidden;
  175. text-overflow: ellipsis;
  176. }
  177. ul.project-list-filters {
  178. margin: @margin-sm @folders-menu-margin;
  179. .subdued {
  180. color: @gray-light;
  181. }
  182. > li {
  183. cursor: pointer;
  184. position: relative;
  185. > button {
  186. display: block;
  187. width: 100%;
  188. font-weight: normal;
  189. text-align: left;
  190. color: @sidebar-link-color;
  191. background-color: transparent;
  192. border-radius: unset;
  193. border: none;
  194. border-bottom: solid 1px transparent;
  195. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  196. &:hover {
  197. background-color: @sidebar-hover-bg;
  198. text-decoration: @sidebar-hover-text-decoration;
  199. }
  200. &:focus {
  201. text-decoration: none;
  202. outline: none;
  203. }
  204. }
  205. &.separator {
  206. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  207. cursor: auto;
  208. }
  209. }
  210. > li.active {
  211. border-radius: @sidebar-active-border-radius;
  212. > button {
  213. background-color: @sidebar-active-bg;
  214. font-weight: @sidebar-active-font-weight;
  215. color: @sidebar-active-color;
  216. .subdued {
  217. color: @sidebar-active-color;
  218. }
  219. }
  220. }
  221. h2 {
  222. margin-top: @folders-title-margin-top;
  223. margin-bottom: @folders-title-margin-bottom;
  224. font-size: @folders-title-font-size;
  225. color: @folders-title-color;
  226. text-transform: @folders-title-text-transform;
  227. padding: @folders-title-padding;
  228. font-weight: @folders-title-font-weight;
  229. font-family: @font-family-sans-serif;
  230. }
  231. > li.tag {
  232. &.active {
  233. .tag-menu > button {
  234. color: white;
  235. border-color: white;
  236. &:hover {
  237. background-color: @folders-tag-menu-active-hover;
  238. }
  239. }
  240. }
  241. &.untagged {
  242. button.tag-name {
  243. span.name {
  244. font-style: italic;
  245. padding-left: 0;
  246. }
  247. }
  248. }
  249. &:hover {
  250. &:not(.active) {
  251. background-color: @folders-tag-hover;
  252. }
  253. .tag-menu {
  254. display: block;
  255. }
  256. }
  257. &:not(.active) {
  258. .tag-menu > a:hover {
  259. background-color: @folders-tag-menu-hover;
  260. }
  261. }
  262. button.tag-name {
  263. position: relative;
  264. padding: @folders-tag-padding;
  265. display: @folders-tag-display;
  266. word-wrap: anywhere;
  267. span.name {
  268. padding-left: 0.5em;
  269. line-height: @folders-tag-line-height;
  270. }
  271. }
  272. }
  273. .tag-menu {
  274. button.dropdown-toggle {
  275. border: 1px solid @folders-tag-border-color;
  276. border-radius: @border-radius-small;
  277. background-color: transparent;
  278. color: @folders-tag-menu-color;
  279. display: block;
  280. width: 16px;
  281. height: 16px;
  282. position: relative;
  283. .caret {
  284. position: absolute;
  285. top: 6px;
  286. left: 1px;
  287. }
  288. }
  289. display: none;
  290. width: auto;
  291. position: absolute;
  292. top: 50%;
  293. margin-top: -8px; // Half the element height.
  294. right: 4px;
  295. &.open {
  296. display: block;
  297. }
  298. button.tag-action {
  299. border-radius: unset;
  300. width: 100%;
  301. background-color: transparent;
  302. border-color: transparent;
  303. color: @gray-dark;
  304. text-align: left;
  305. font-weight: normal;
  306. &:hover {
  307. color: @white;
  308. background-color: @ol-green;
  309. }
  310. &:active {
  311. outline: none;
  312. }
  313. }
  314. }
  315. }
  316. .project-tools {
  317. flex-shrink: 0;
  318. margin-left: auto;
  319. }
  320. .project-dash-table {
  321. width: 100%;
  322. table-layout: fixed;
  323. tr {
  324. border-bottom: 1px solid @structured-list-border-color;
  325. }
  326. th,
  327. td {
  328. padding: (@line-height-computed / 4) @line-height-computed / 2;
  329. vertical-align: top;
  330. }
  331. tr {
  332. th:first-child,
  333. td:first-child,
  334. th:last-child,
  335. td:last-child {
  336. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  337. }
  338. &:hover {
  339. &:not(.no-projects) {
  340. background-color: @structured-list-hover-color;
  341. }
  342. }
  343. }
  344. thead {
  345. tr:hover {
  346. background-color: transparent;
  347. }
  348. }
  349. tbody {
  350. tr:last-child {
  351. border-bottom: 0 none;
  352. }
  353. }
  354. .table-header-sort-btn {
  355. border: 0;
  356. text-align: left;
  357. color: @ol-type-color;
  358. padding: 0;
  359. font-weight: bold;
  360. &:hover,
  361. &:focus {
  362. color: @ol-type-color;
  363. text-decoration: none;
  364. }
  365. }
  366. .dash-cell-checkbox {
  367. width: 5%;
  368. line-height: 1.55;
  369. input[type='checkbox'] {
  370. margin-top: 5px;
  371. }
  372. }
  373. .dash-cell-name {
  374. width: 50%;
  375. overflow: hidden;
  376. text-overflow: ellipsis;
  377. }
  378. .dash-cell-owner {
  379. width: 20%;
  380. overflow: hidden;
  381. text-overflow: ellipsis;
  382. }
  383. .dash-cell-date {
  384. width: 25%;
  385. overflow: hidden;
  386. text-overflow: ellipsis;
  387. }
  388. .dash-cell-actions {
  389. display: none;
  390. text-align: right;
  391. white-space: nowrap;
  392. }
  393. .dash-cell-date-owner {
  394. font-size: 14px;
  395. .text-overflow();
  396. }
  397. .dash-cell-tag {
  398. .tag-label {
  399. padding: 14px 0;
  400. cursor: pointer;
  401. &:not(.tag-label-close-hover) {
  402. &:hover,
  403. &:focus {
  404. .label.tag-label-name {
  405. color: @tag-color;
  406. background-color: @tag-bg-hover-color;
  407. outline-width: 0;
  408. }
  409. }
  410. }
  411. &:first-child {
  412. margin-left: initial;
  413. }
  414. }
  415. }
  416. @media (min-width: @screen-xs) {
  417. .dash-cell-checkbox {
  418. width: 4%;
  419. }
  420. .dash-cell-name {
  421. width: 50%;
  422. }
  423. .dash-cell-owner {
  424. width: 21%;
  425. }
  426. .dash-cell-date {
  427. width: 25%;
  428. }
  429. .dash-cell-actions {
  430. width: 0%;
  431. }
  432. }
  433. @media (min-width: @screen-sm) {
  434. .dash-cell-checkbox {
  435. width: 3%;
  436. }
  437. .dash-cell-name {
  438. width: 48%;
  439. }
  440. .dash-cell-owner {
  441. width: 13%;
  442. }
  443. .dash-cell-date {
  444. width: 15%;
  445. }
  446. .dash-cell-actions {
  447. display: table-cell;
  448. width: 21%;
  449. }
  450. .project-tools {
  451. float: none;
  452. }
  453. }
  454. @media (min-width: @screen-md) {
  455. .dash-cell-checkbox {
  456. width: 3%;
  457. }
  458. .dash-cell-name {
  459. width: 50%;
  460. }
  461. .dash-cell-owner {
  462. width: 13%;
  463. }
  464. .dash-cell-date {
  465. width: 16%;
  466. }
  467. .dash-cell-actions {
  468. width: 18%;
  469. }
  470. }
  471. @media (min-width: @screen-lg) {
  472. .dash-cell-checkbox {
  473. width: 3%;
  474. }
  475. .dash-cell-name {
  476. width: 50%;
  477. }
  478. .dash-cell-owner {
  479. width: 15%;
  480. }
  481. .dash-cell-date {
  482. width: 19%;
  483. }
  484. .dash-cell-actions {
  485. width: 13%;
  486. }
  487. }
  488. @media (min-width: 1440px) {
  489. .dash-cell-checkbox {
  490. width: 2%;
  491. }
  492. .dash-cell-name {
  493. width: 50%;
  494. }
  495. .dash-cell-owner {
  496. width: 16%;
  497. }
  498. .dash-cell-date {
  499. width: 19%;
  500. }
  501. .dash-cell-actions {
  502. width: 13%;
  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. }