project-list-react.less 15 KB

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