command_palette.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. .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. .type-icon {
  19. color: var(--ls-search-icon-color);
  20. &.highlight {
  21. color: var(--ls-selection-text-color);
  22. border-color: var(--ls-selection-background-color);
  23. &:before {
  24. opacity: 0.5;
  25. background: var(--ls-selection-background-color);
  26. }
  27. }
  28. }
  29. &.chosen .type-icon,
  30. &:hover .type-icon {
  31. color: var(--ls-search-icon-hover-color);
  32. }
  33. &.chosen,
  34. &.chosen p {
  35. background-color: or(--logseq-og-cp-chosen, --lx-gray-03, --ls-a-chosen-bg);
  36. color: var(--ls-secondary-text-color);
  37. }
  38. .dark &.chosen,
  39. .dark &.chosen p {
  40. background-color: or(--logseq-og-cp-chosen, --lx-gray-02, --ls-a-chosen-bg);
  41. }
  42. &:hover p {
  43. color: var(--ls-secondary-text-color);
  44. }
  45. }
  46. .command-results-wrap,
  47. .item-results-wrap,
  48. .search-results-wrap > div:first-child {
  49. overflow-x: hidden;
  50. overflow-y: auto;
  51. max-height: calc(var(--palettle-container-height) - var(--palettle-input-height));
  52. }
  53. .input-wrap {
  54. height: var(--palettle-input-height);
  55. }
  56. .cp__palette-input {
  57. color: var(--ls-secondary-text-color);
  58. border: none;
  59. &:focus {
  60. box-shadow: none;
  61. }
  62. }
  63. .search-result {
  64. @apply text-sm font-medium flex items-baseline;
  65. }
  66. .ui__icon {
  67. font-size: 16px;
  68. }
  69. }
  70. &-input {
  71. padding: 16px;
  72. font-size: 20px;
  73. outline: none;
  74. }
  75. &-results {
  76. .tip code {
  77. white-space: nowrap;
  78. }
  79. }
  80. }
  81. html.is-ios {
  82. .ui__model {
  83. &[label="ls-modal-search"] {
  84. .panel-content {
  85. padding-bottom: 0;
  86. max-height: unset;
  87. }
  88. }
  89. .ls-search {
  90. @apply pb-0;
  91. }
  92. }
  93. .cp__palette-main {
  94. margin-bottom: 0;
  95. min-height: var(--palettle-input-height);
  96. --palettle-container-height: calc(98vh - 6rem - var(--ls-native-kb-height));
  97. }
  98. }
  99. .cards-review .cp__select {
  100. &-main {
  101. margin: 0;
  102. @screen lg {
  103. width: 240px;
  104. }
  105. }
  106. .input-wrap {
  107. height: initial;
  108. }
  109. &-input {
  110. padding: 16px;
  111. font-size: 16px;
  112. }
  113. }