command_palette.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .cp__palette, .cp__select {
  2. --palettle-input-height: 64px;
  3. --palettle-container-height: 75vh;
  4. &-main {
  5. max-height: var(--palettle-container-height);
  6. margin: -2rem;
  7. overflow: hidden;
  8. display: flex;
  9. flex-direction: column;
  10. @screen lg {
  11. width: var(--ls-main-content-max-width);
  12. }
  13. .menu-link {
  14. transition: none;
  15. border: none;
  16. border-radius: unset !important;
  17. background: none;
  18. }
  19. .chosen {
  20. background-color: var(--ls-quaternary-background-color);
  21. color: var(--ls-secondary-text-color);
  22. }
  23. .command-results-wrap,
  24. .item-results-wrap,
  25. .search-results-wrap > div:first-child {
  26. overflow-x: hidden;
  27. overflow-y: auto;
  28. max-height: calc(var(--palettle-container-height) - var(--palettle-input-height));
  29. }
  30. .input-wrap {
  31. height: var(--palettle-input-height);
  32. }
  33. .recent-search {
  34. > .wrap {
  35. > div:last-child {
  36. display: flex !important;
  37. justify-items: center;
  38. }
  39. }
  40. }
  41. .cp__palette-input {
  42. color: var(--ls-secondary-text-color);
  43. }
  44. .search-result {
  45. @apply text-sm font-medium flex items-baseline;
  46. }
  47. }
  48. &-input {
  49. padding: 16px;
  50. font-size: 20px;
  51. outline: none;
  52. }
  53. &-results {
  54. .tip code {
  55. white-space: nowrap;
  56. }
  57. }
  58. }
  59. html.is-ios {
  60. .cp__palette-main {
  61. margin-bottom: 0;
  62. }
  63. }
  64. .cards-review .cp__select {
  65. &-main {
  66. margin: 0;
  67. @screen lg {
  68. width: 240px;
  69. }
  70. }
  71. .input-wrap {
  72. height: initial;
  73. }
  74. &-input {
  75. padding: 16px;
  76. font-size: 16px;
  77. }
  78. }