app.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. :root {
  2. --ls-page-title-size: 26px;
  3. }
  4. html.plt-capacitor.plt-android {
  5. --ion-safe-area-top: 42px;
  6. --ion-safe-area-bottom: 16px;
  7. ion-button, ion-tab-button {
  8. --ripple-color: rgba(0, 0, 0, .3); /* 设置涟漪颜色为透明 */
  9. }
  10. ion-app {
  11. margin-top: 0;
  12. }
  13. .header-md {
  14. box-shadow: 0 2px 8px #eee;
  15. border-bottom: .5px solid rgba(0, 0, 0, .15);
  16. }
  17. .searchbar-input.sc-ion-searchbar-md {
  18. @apply shadow-none;
  19. }
  20. ion-modal {
  21. ion-content {
  22. #app-container-wrapper {
  23. @apply pt-0;
  24. }
  25. }
  26. }
  27. .pswp__top-bar {
  28. @apply relative top-8;
  29. }
  30. }
  31. html.has-mobile-keyboard {
  32. .ion-page:not(.ion-page-hidden) {
  33. & > ion-content::part(scroll) {
  34. padding-bottom: 512px !important;
  35. }
  36. }
  37. }
  38. html {
  39. &[data-theme=dark] {
  40. &[data-color=logseq] {
  41. --background: var(--ls-primary-background-color);
  42. --ion-item-background: var(--ls-primary-background-color);
  43. --ion-text-color: var(--ls-primary-text-color);
  44. --ion-toolbar-color: var(--ls-link-text-color);
  45. --ion-item-color: var(--ls-primary-text-color);
  46. --ion-item-border-color: var(--ls-border-color);
  47. input, textarea {
  48. caret-color: var(--ls-primary-text-color);
  49. }
  50. ion-toolbar::part(background), ion-tab-bar,
  51. ion-tab-button, ion-header
  52. {
  53. background-color: var(--lx-gray-01);
  54. }
  55. ion-modal {
  56. --background: var(--lx-gray-01);
  57. --backdrop-color: var(--ls-secondary-background-color);
  58. }
  59. #mobile-editor-toolbar {
  60. background: var(--ls-secondary-background-color);
  61. }
  62. .action-sheet-group.sc-ion-action-sheet-ios,
  63. .alert-wrapper.sc-ion-alert-ios {
  64. --background: var(--ls-primary-background-color);
  65. --button-background: var(--ls-primary-background-color);
  66. --button-color: var(--ls-primary-text-color);
  67. }
  68. }
  69. }
  70. }
  71. ul {
  72. @apply !list-disc ml-1 mt-2 list-inside;
  73. li {
  74. @apply pl-0;
  75. }
  76. }
  77. ion-textarea {
  78. textarea {
  79. @apply !p-1 min-h-[120px];
  80. }
  81. }
  82. ion-buttons {
  83. &:has(.app-graph-select) {
  84. @apply max-w-[60%] overflow-hidden;
  85. }
  86. }
  87. .app-graph-select {
  88. ion-button {
  89. &::part(native) {
  90. @apply whitespace-nowrap overflow-hidden font-semibold active:opacity-80 pr-8;
  91. }
  92. }
  93. }
  94. .sc-ion-buttons-md {
  95. &.text-muted-foreground {
  96. @apply text-gray-600;
  97. }
  98. }
  99. .app-login-modal {
  100. @apply mx-8 p-0;
  101. }
  102. .ui__notifications {
  103. @apply fixed top-8 pointer-events-none w-full;
  104. z-index: 9999;
  105. & -content {
  106. @apply inset-0 flex items-end justify-center px-4 py-2
  107. pointer-events-none sm:px-6 sm:py-2 sm:items-start sm:justify-end;
  108. }
  109. .notification-area {
  110. @apply border;
  111. background-color: var(--ion-color-light-tint);
  112. }
  113. }
  114. .block-modal-page {
  115. > ion-header {
  116. @apply pt-5 pb-1 px-4 flex justify-between bg-white/10;
  117. }
  118. > ion-content {
  119. #app-container-wrapper {
  120. @apply relative -top-6;
  121. }
  122. .ls-view-body {
  123. @apply max-w-[90vw];
  124. }
  125. }
  126. }
  127. .block-content-or-editor-inner {
  128. @apply min-h-[25px];
  129. }
  130. ion-tab-bar {
  131. box-shadow: 0 0 1px #999999;
  132. padding-top: 4px;
  133. ion-tab-button {
  134. @apply opacity-70;
  135. &.tab-selected {
  136. @apply opacity-100 text-accent-11 font-semibold;
  137. }
  138. }
  139. }
  140. ion-modal {
  141. .property-select {
  142. .cp__select-main {
  143. @apply w-auto;
  144. }
  145. }
  146. }
  147. ion-content {
  148. .ls-page-blocks {
  149. @apply px-1;
  150. }
  151. .block-main-container {
  152. &[data-has-heading] {
  153. > .block-control-wrap {
  154. @apply static;
  155. }
  156. }
  157. &[data-has-heading="1"], &:has(textarea.h1) {
  158. > .block-control-wrap, > .block-control-wrap > .block-control {
  159. @apply mt-[18px];
  160. }
  161. }
  162. &[data-has-heading="2"], &:has(textarea.h2) {
  163. > .block-control-wrap, > .block-control-wrap > .block-control {
  164. @apply mt-3;
  165. }
  166. }
  167. }
  168. &::part(background) {
  169. @apply !bg-transparent;
  170. }
  171. .ion-page {
  172. @apply bg-gray-01 -mb-3;
  173. }
  174. }
  175. .latex.initial {
  176. @apply pt-1;
  177. .katex-html {
  178. &[aria-hidden="true"] {
  179. @apply hidden;
  180. }
  181. }
  182. }
  183. [type='text']:focus, [type='email']:focus, [type='url']:focus,
  184. [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus,
  185. [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus,
  186. [multiple]:focus, textarea:focus, select:focus {
  187. box-shadow: none;
  188. }
  189. .ui__popover-content, .ui__dropdown-menu-content {
  190. &[data-editor-popup-ref=page-search],
  191. &[data-editor-popup-ref=page-search-hashtag],
  192. &[data-editor-popup-ref=commands] {
  193. min-width: 61.8vw;
  194. max-width: calc(100vw - 40px);
  195. &[data-side=top] {
  196. max-height: var(--top-popup-content-max-height, 50vh);
  197. }
  198. &[data-side=bottom] {
  199. max-height: var(--bottom-popup-content-max-height, 50vh);
  200. }
  201. }
  202. }
  203. html[data-color=logseq] {
  204. &[data-theme=light] {
  205. --ion-color-primary: var(--rx-logseq-11);
  206. }
  207. }
  208. .graph-switcher .action-sheet-button {
  209. font-size: 1.125em;
  210. }
  211. div.block-content[contenteditable][data-readonly] {
  212. user-select: text; /* allow text selection */
  213. caret-color: transparent; /* hide caret */
  214. outline: none; /* remove focus outline */
  215. }