project-list-react.less 16 KB

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