project-list-react.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  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. }
  8. .container:before {
  9. content: '';
  10. display: block;
  11. float: left;
  12. height: 100%;
  13. }
  14. .fill {
  15. position: relative;
  16. &:after {
  17. content: '';
  18. display: block;
  19. clear: left;
  20. }
  21. }
  22. .project-list-wrapper {
  23. display: flex;
  24. align-items: stretch;
  25. min-height: calc(~'100vh -' @header-height);
  26. }
  27. .project-list-sidebar-wrapper-react {
  28. position: relative;
  29. background-color: @sidebar-bg;
  30. flex: @project-list-sidebar-wrapper-flex;
  31. min-height: calc(~'100vh -' @header-height);
  32. max-width: 320px;
  33. min-width: 200px;
  34. .project-list-sidebar-subwrapper {
  35. display: flex;
  36. flex-direction: column;
  37. height: 100%;
  38. .project-list-sidebar-react {
  39. flex-grow: 1;
  40. padding-left: 15px;
  41. padding-right: 15px;
  42. -ms-overflow-style: -ms-autohiding-scrollbar;
  43. padding-top: @content-margin-vertical;
  44. padding-bottom: @content-margin-vertical;
  45. color: @sidebar-color;
  46. .small {
  47. color: @sidebar-color;
  48. }
  49. button {
  50. white-space: normal;
  51. word-wrap: anywhere;
  52. // prevents buttons from expanding sidebar width
  53. }
  54. > .dropdown {
  55. width: 100%;
  56. .new-project-button {
  57. width: 100%;
  58. }
  59. }
  60. }
  61. }
  62. }
  63. .project-list-welcome-wrapper {
  64. width: 100%;
  65. .welcome-new-wrapper {
  66. max-width: 1080px;
  67. .welcome-title {
  68. font-size: 32px;
  69. }
  70. .welcome-message-cards-wrapper {
  71. display: flex;
  72. flex-direction: column;
  73. justify-content: space-between;
  74. align-items: center;
  75. margin-top: 50px;
  76. @media (min-width: @screen-md-min) {
  77. flex-direction: row;
  78. justify-content: center;
  79. }
  80. }
  81. .welcome-message-card {
  82. border: 1px solid @neutral-20;
  83. border-radius: 16px;
  84. display: flex;
  85. flex-direction: column;
  86. align-items: center;
  87. justify-content: space-between;
  88. padding: 24px 16px;
  89. margin: @margin-sm 0;
  90. width: 280px;
  91. height: 200px;
  92. position: relative;
  93. cursor: pointer;
  94. @media (min-width: @screen-md-min) {
  95. margin: 0 15px;
  96. height: 240px;
  97. }
  98. &:hover {
  99. background-color: @ol-blue-gray-0;
  100. }
  101. .welcome-message-card-img {
  102. @media (min-width: @screen-md-min) {
  103. margin-bottom: 20px;
  104. }
  105. }
  106. .create-new-project-dropdown {
  107. border: 1px solid @neutral-20;
  108. position: absolute;
  109. top: 100%;
  110. left: 0;
  111. width: 100%;
  112. padding: 0;
  113. border-radius: 3px;
  114. z-index: 1;
  115. text-align: left;
  116. button,
  117. a,
  118. .dropdown-header {
  119. padding: 5px 10px;
  120. }
  121. > button {
  122. background-color: white;
  123. border: none;
  124. box-shadow: none;
  125. display: flex;
  126. align-items: center;
  127. width: 100%;
  128. &:hover {
  129. background-color: @ol-blue-gray-0;
  130. }
  131. }
  132. > a {
  133. color: @ol-blue-gray-3;
  134. display: block;
  135. &:hover {
  136. text-decoration: none;
  137. background-color: @ol-blue-gray-0;
  138. }
  139. }
  140. hr {
  141. margin-top: 6px;
  142. margin-bottom: 6px;
  143. }
  144. }
  145. }
  146. .welcome-message-card-link {
  147. &,
  148. &:hover {
  149. text-decoration: none;
  150. color: @ol-blue-gray-3;
  151. }
  152. }
  153. }
  154. }
  155. .project-list-main-react {
  156. max-width: 100%;
  157. overflow-x: hidden;
  158. padding: @content-margin-vertical @grid-gutter-width / 2;
  159. }
  160. .project-list-header-row {
  161. display: flex;
  162. align-items: center;
  163. margin-bottom: @margin-sm;
  164. }
  165. .project-list-title {
  166. min-width: 0;
  167. color: @content-secondary;
  168. font-family: Lato, sans-serif;
  169. font-size: @font-size-large;
  170. line-height: 28px;
  171. font-weight: bold;
  172. overflow: hidden;
  173. text-overflow: ellipsis;
  174. }
  175. ul.project-list-filters {
  176. margin: @margin-sm @folders-menu-margin;
  177. .subdued {
  178. color: @gray-light;
  179. }
  180. > li {
  181. cursor: pointer;
  182. position: relative;
  183. > button {
  184. display: block;
  185. width: 100%;
  186. font-weight: normal;
  187. text-align: left;
  188. color: @sidebar-link-color;
  189. background-color: transparent;
  190. border-radius: unset;
  191. border: none;
  192. border-bottom: solid 1px transparent;
  193. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  194. &:hover {
  195. background-color: @sidebar-hover-bg;
  196. text-decoration: @sidebar-hover-text-decoration;
  197. }
  198. &:focus {
  199. text-decoration: none;
  200. outline: none;
  201. }
  202. }
  203. &.separator {
  204. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  205. cursor: auto;
  206. }
  207. }
  208. > li.active {
  209. border-radius: @sidebar-active-border-radius;
  210. > button {
  211. background-color: @sidebar-active-bg;
  212. font-weight: @sidebar-active-font-weight;
  213. color: @sidebar-active-color;
  214. .subdued {
  215. color: @sidebar-active-color;
  216. }
  217. }
  218. }
  219. h2 {
  220. margin-top: @folders-title-margin-top;
  221. margin-bottom: @folders-title-margin-bottom;
  222. font-size: @folders-title-font-size;
  223. color: @folders-title-color;
  224. text-transform: @folders-title-text-transform;
  225. padding: @folders-title-padding;
  226. font-weight: @folders-title-font-weight;
  227. font-family: @font-family-sans-serif;
  228. }
  229. > li.tag {
  230. &.active {
  231. .tag-menu > button {
  232. color: white;
  233. border-color: white;
  234. &:hover {
  235. background-color: @folders-tag-menu-active-hover;
  236. }
  237. }
  238. }
  239. &.untagged {
  240. button.tag-name {
  241. span.name {
  242. font-style: italic;
  243. padding-left: 0;
  244. }
  245. }
  246. }
  247. &:hover {
  248. &:not(.active) {
  249. background-color: @folders-tag-hover;
  250. }
  251. .tag-menu {
  252. display: block;
  253. }
  254. }
  255. &:not(.active) {
  256. .tag-menu > a:hover {
  257. background-color: @folders-tag-menu-hover;
  258. }
  259. }
  260. button.tag-name {
  261. position: relative;
  262. padding: @folders-tag-padding;
  263. display: @folders-tag-display;
  264. word-wrap: anywhere;
  265. span.name {
  266. padding-left: 0.5em;
  267. line-height: @folders-tag-line-height;
  268. }
  269. }
  270. }
  271. .tag-menu {
  272. button.dropdown-toggle {
  273. border: 1px solid @folders-tag-border-color;
  274. border-radius: @border-radius-small;
  275. background-color: transparent;
  276. color: @folders-tag-menu-color;
  277. display: block;
  278. width: 16px;
  279. height: 16px;
  280. position: relative;
  281. .caret {
  282. position: absolute;
  283. top: 6px;
  284. left: 1px;
  285. }
  286. }
  287. display: none;
  288. width: auto;
  289. position: absolute;
  290. top: 50%;
  291. margin-top: -8px; // Half the element height.
  292. right: 4px;
  293. &.open {
  294. display: block;
  295. }
  296. button.tag-action {
  297. border-radius: unset;
  298. width: 100%;
  299. background-color: transparent;
  300. border-color: transparent;
  301. color: @gray-dark;
  302. text-align: left;
  303. font-weight: normal;
  304. &:hover {
  305. color: @white;
  306. background-color: @ol-green;
  307. }
  308. &:active {
  309. outline: none;
  310. }
  311. }
  312. }
  313. }
  314. .project-tools {
  315. flex-shrink: 0;
  316. margin-left: auto;
  317. }
  318. .project-dash-table {
  319. width: 100%;
  320. table-layout: fixed;
  321. tr {
  322. border-bottom: 1px solid @structured-list-border-color;
  323. }
  324. th,
  325. td {
  326. padding: (@line-height-computed / 4) @line-height-computed / 2;
  327. vertical-align: top;
  328. }
  329. tr {
  330. th:first-child,
  331. td:first-child,
  332. th:last-child,
  333. td:last-child {
  334. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  335. }
  336. &:hover {
  337. &:not(.no-projects) {
  338. background-color: @structured-list-hover-color;
  339. }
  340. }
  341. }
  342. thead {
  343. tr:hover {
  344. background-color: transparent;
  345. }
  346. }
  347. tbody {
  348. tr:last-child {
  349. border-bottom: 0 none;
  350. }
  351. }
  352. .table-header-sort-btn {
  353. border: 0;
  354. text-align: left;
  355. color: @ol-type-color;
  356. padding: 0;
  357. font-weight: bold;
  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. width: 50%;
  373. overflow: hidden;
  374. text-overflow: ellipsis;
  375. }
  376. .dash-cell-owner {
  377. width: 20%;
  378. overflow: hidden;
  379. text-overflow: ellipsis;
  380. }
  381. .dash-cell-date {
  382. width: 25%;
  383. overflow: hidden;
  384. text-overflow: ellipsis;
  385. }
  386. .dash-cell-actions {
  387. display: none;
  388. text-align: right;
  389. white-space: nowrap;
  390. }
  391. .dash-cell-date-owner {
  392. font-size: 14px;
  393. .text-overflow();
  394. }
  395. .dash-cell-tag {
  396. .tag-label {
  397. padding: 14px 0;
  398. cursor: pointer;
  399. &:not(.tag-label-close-hover) {
  400. &:hover,
  401. &:focus {
  402. .label.tag-label-name {
  403. color: @tag-color;
  404. background-color: @tag-bg-hover-color;
  405. outline-width: 0;
  406. }
  407. }
  408. }
  409. &:first-child {
  410. margin-left: initial;
  411. }
  412. }
  413. }
  414. @media (min-width: @screen-xs) {
  415. .dash-cell-checkbox {
  416. width: 4%;
  417. }
  418. .dash-cell-name {
  419. width: 50%;
  420. }
  421. .dash-cell-owner {
  422. width: 21%;
  423. }
  424. .dash-cell-date {
  425. width: 25%;
  426. }
  427. .dash-cell-actions {
  428. width: 0%;
  429. }
  430. }
  431. @media (min-width: @screen-sm) {
  432. .dash-cell-checkbox {
  433. width: 3%;
  434. }
  435. .dash-cell-name {
  436. width: 48%;
  437. }
  438. .dash-cell-owner {
  439. width: 13%;
  440. }
  441. .dash-cell-date {
  442. width: 15%;
  443. }
  444. .dash-cell-actions {
  445. display: table-cell;
  446. width: 21%;
  447. }
  448. .project-tools {
  449. float: none;
  450. }
  451. }
  452. @media (min-width: @screen-md) {
  453. .dash-cell-checkbox {
  454. width: 3%;
  455. }
  456. .dash-cell-name {
  457. width: 50%;
  458. }
  459. .dash-cell-owner {
  460. width: 13%;
  461. }
  462. .dash-cell-date {
  463. width: 16%;
  464. }
  465. .dash-cell-actions {
  466. width: 18%;
  467. }
  468. }
  469. @media (min-width: @screen-lg) {
  470. .dash-cell-checkbox {
  471. width: 3%;
  472. }
  473. .dash-cell-name {
  474. width: 50%;
  475. }
  476. .dash-cell-owner {
  477. width: 15%;
  478. }
  479. .dash-cell-date {
  480. width: 19%;
  481. }
  482. .dash-cell-actions {
  483. width: 13%;
  484. }
  485. }
  486. @media (min-width: 1440px) {
  487. .dash-cell-checkbox {
  488. width: 2%;
  489. }
  490. .dash-cell-name {
  491. width: 50%;
  492. }
  493. .dash-cell-owner {
  494. width: 16%;
  495. }
  496. .dash-cell-date {
  497. width: 19%;
  498. }
  499. .dash-cell-actions {
  500. width: 13%;
  501. }
  502. }
  503. @media (max-width: @screen-xs-max) {
  504. @actions-btn-size: 48px;
  505. tr {
  506. position: relative;
  507. display: flex;
  508. flex-direction: column;
  509. td {
  510. padding-top: @line-height-computed / 6;
  511. padding-bottom: @line-height-computed / 6;
  512. }
  513. td:not(.dash-cell-actions) {
  514. padding-right: @actions-btn-size + 12.5px;
  515. }
  516. }
  517. .dash-cell-name,
  518. .dash-cell-owner,
  519. .dash-cell-date,
  520. .dash-cell-tag,
  521. .dash-cell-actions {
  522. display: block;
  523. width: auto;
  524. }
  525. .dash-cell-actions {
  526. position: absolute;
  527. top: 0;
  528. right: 0;
  529. padding: 0 !important;
  530. .dropdown-toggle {
  531. padding: 13px 15px;
  532. border-radius: 0;
  533. font-size: 14px;
  534. }
  535. }
  536. }
  537. }
  538. .loading-container {
  539. display: flex;
  540. align-items: center;
  541. min-height: calc(~'100vh -' @header-height);
  542. .loading-screen-brand-container {
  543. margin: 0 auto;
  544. }
  545. }
  546. @media (max-width: @screen-xs-max) {
  547. .project-tools {
  548. float: left;
  549. margin-left: initial;
  550. }
  551. }
  552. .projects-toolbar,
  553. .tag-item {
  554. display: flex;
  555. align-items: center;
  556. }
  557. .projects-toolbar {
  558. .dropdown,
  559. .dropdown-toggle {
  560. max-width: 100%;
  561. }
  562. .dropdown {
  563. min-width: 0;
  564. }
  565. .dropdown-toggle {
  566. display: inline-flex;
  567. align-items: baseline;
  568. }
  569. }
  570. .projects-sort-dropdown {
  571. flex-shrink: 0;
  572. margin-left: auto;
  573. }
  574. #projects-types-dropdown {
  575. font-family: @font-family-serif;
  576. & + .projects-dropdown-menu {
  577. min-width: 226px;
  578. }
  579. }
  580. #projects-sort-dropdown {
  581. & + .projects-dropdown-menu {
  582. min-width: 156px;
  583. }
  584. }
  585. .projects-dropdown-menu {
  586. .dropdown-header {
  587. padding: 14px 20px;
  588. font-size: 13px;
  589. text-transform: uppercase;
  590. }
  591. }
  592. .projects-types-menu-item {
  593. .menu-item-button-icon {
  594. left: 10px;
  595. }
  596. &.projects-types-menu-tag-item {
  597. display: flex;
  598. .edit-btn {
  599. padding: 12px 14px;
  600. }
  601. }
  602. }
  603. .projects-sort-menu-item {
  604. .menu-item-button-icon {
  605. left: 14px;
  606. }
  607. }
  608. .projects-action-menu-item {
  609. .menu-item-button-icon {
  610. left: 11px;
  611. }
  612. }
  613. }
  614. .current-plan {
  615. vertical-align: middle;
  616. line-height: @line-height-base;
  617. a.current-plan-label {
  618. text-decoration: none;
  619. color: @text-color;
  620. }
  621. }
  622. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  623. .uppy-Dashboard-AddFiles-title {
  624. display: flex;
  625. flex-direction: column;
  626. color: @ol-blue-gray-3;
  627. white-space: pre-line;
  628. button.uppy-Dashboard-browse {
  629. background-color: @ol-green;
  630. color: @white;
  631. margin-bottom: @margin-md;
  632. padding: 4px 16px 5px;
  633. height: 46px;
  634. border-radius: 23px;
  635. font-weight: 700;
  636. display: flex;
  637. justify-content: center;
  638. align-items: center;
  639. font-size: @font-size-large;
  640. font-family: @font-family-sans-serif;
  641. }
  642. }
  643. }
  644. .btn-transparent {
  645. box-shadow: none !important;
  646. background: none !important;
  647. border-radius: 0 !important;
  648. color: inherit !important;
  649. font-weight: 400;
  650. &:hover {
  651. box-shadow: none !important;
  652. background: none !important;
  653. color: inherit !important;
  654. }
  655. }
  656. .menu-item-button,
  657. #new-project-button-projects-table + .dropdown-menu [role='menuitem'] {
  658. padding: 12px 20px;
  659. }
  660. .menu-item-button {
  661. position: relative;
  662. width: 100%;
  663. border: none;
  664. box-shadow: none;
  665. background: inherit;
  666. color: @ol-blue-gray-5;
  667. text-align: left;
  668. .menu-item-button-text {
  669. padding-left: 14px;
  670. }
  671. .menu-item-button-icon {
  672. position: absolute;
  673. top: 50%;
  674. transform: translateY(-50%);
  675. }
  676. }
  677. .project-list-load-more {
  678. display: flex;
  679. flex-direction: column;
  680. justify-content: center;
  681. align-items: center;
  682. }
  683. .project-list-load-more-button {
  684. margin-bottom: @margin-sm;
  685. }
  686. .tag-dropdown-button {
  687. display: block;
  688. width: 100%;
  689. font-weight: normal;
  690. font-size: @font-size-base;
  691. text-align: left;
  692. color: @gray-dark;
  693. background-color: transparent;
  694. border-radius: unset;
  695. border: none;
  696. border-bottom: solid 1px transparent;
  697. padding: 3px 20px;
  698. &:active,
  699. &:focus {
  700. color: @gray-dark;
  701. background-color: transparent;
  702. text-decoration: none;
  703. outline: none;
  704. }
  705. &:hover {
  706. color: @white;
  707. background-color: @ol-green;
  708. }
  709. .tag-checkbox {
  710. width: 16px;
  711. }
  712. .tag-dot {
  713. display: inline-block;
  714. position: relative;
  715. border: 1px solid #ffffff;
  716. width: 14px;
  717. height: 14px;
  718. border-radius: 7px;
  719. text-align: center;
  720. top: 1px;
  721. }
  722. }
  723. .project-list-sidebar-survey-wrapper {
  724. position: sticky;
  725. bottom: 0;
  726. .alert-info-alt {
  727. font-size: @font-size-small;
  728. margin-bottom: 0;
  729. a {
  730. text-decoration: none;
  731. }
  732. }
  733. @media (max-width: @screen-xs-max) {
  734. position: static;
  735. margin-top: @margin-sm;
  736. .alert-info-alt {
  737. font-size: unset;
  738. &:before {
  739. display: none;
  740. }
  741. .project-list-sidebar-survey-link {
  742. display: block;
  743. align-items: center;
  744. min-width: @mobile-action-element-width;
  745. min-height: @mobile-action-element-height;
  746. padding-top: @padding-md;
  747. }
  748. }
  749. }
  750. }
  751. .color-picker-item {
  752. height: 28px;
  753. width: 28px;
  754. cursor: pointer;
  755. position: relative;
  756. outline: none;
  757. border-radius: 4px;
  758. margin: 0 14px 0 0;
  759. display: inline-block;
  760. vertical-align: middle;
  761. &.more-button {
  762. border: 1px solid @gray-dark;
  763. .color-picker-more {
  764. color: @gray-dark;
  765. margin: 6px 0 0 7px;
  766. @media (max-width: @screen-xs-max) {
  767. margin: 8px 0 0 9px;
  768. }
  769. }
  770. .color-picker-more-open {
  771. color: @gray-dark;
  772. margin: 5px 0 0 5px;
  773. @media (max-width: @screen-xs-max) {
  774. margin: 7px 0 0 7px;
  775. }
  776. }
  777. }
  778. .color-picker-item-icon {
  779. margin: 6px 0 0 6px;
  780. color: @white;
  781. }
  782. @media (max-width: @screen-xs-max) {
  783. height: 32px;
  784. width: 32px;
  785. margin: 24px 24px;
  786. .color-picker-item-icon {
  787. margin: 8px 0 0 8px;
  788. color: @white;
  789. }
  790. }
  791. }
  792. .color-picker-more-wrapper {
  793. position: relative;
  794. display: inline-block;
  795. .custom-picker {
  796. position: absolute;
  797. @media (max-width: @screen-xs-max) {
  798. top: 56px;
  799. left: 24px;
  800. }
  801. }
  802. .custom-picker when(@is-new-css = false) {
  803. // to prevent the primary button from overlapping when disabled due to the opacity property
  804. z-index: 100 !important;
  805. }
  806. .popover-backdrop {
  807. position: fixed;
  808. top: 0;
  809. right: 0;
  810. bottom: 0;
  811. left: 0;
  812. }
  813. }