app.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. * {
  2. -webkit-tap-highlight-color: transparent; /* Removes the grey highlight on clickable elements on iOS */
  3. -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS */
  4. }
  5. :root {
  6. --ls-mobile-font-scale: 1;
  7. --ls-page-title-size: calc(24px * var(--ls-mobile-font-scale, 1));
  8. --safe-area-inset-top: 40px;
  9. --safe-area-inset-bottom: 16px;
  10. --ls-mobile-font-size: 16px;
  11. }
  12. html.is-native-ios {
  13. --safe-area-inset-top: 58px;
  14. --safe-area-inset-bottom: 24px;
  15. }
  16. html.is-native-ios,
  17. html.is-ios {
  18. font-size: calc(var(--ls-mobile-font-size) * var(--ls-mobile-font-scale, 1));
  19. }
  20. html.is-native-ios body,
  21. html.is-native-ios textarea,
  22. html.is-native-ios input,
  23. html.is-native-ios select,
  24. html.is-native-ios .block-content,
  25. html.is-ios body,
  26. html.is-ios textarea,
  27. html.is-ios input,
  28. html.is-ios select,
  29. html.is-ios .block-content {
  30. font-size: inherit;
  31. }
  32. html.is-native-ios .block-content,
  33. html.is-ios .block-content {
  34. line-height: 1.6;
  35. }
  36. html.has-mobile-keyboard {
  37. body {
  38. @apply overflow-hidden
  39. }
  40. .app-popup, #main-content-container, #app-main-home {
  41. padding-bottom: calc(var(--ls-native-kb-height, 0px) + 160px);
  42. }
  43. }
  44. html, body {
  45. overscroll-behavior: none;
  46. }
  47. html {
  48. @apply h-full overflow-hidden;
  49. &[data-theme=dark] {
  50. &[data-color=logseq] {
  51. --background: var(--ls-primary-background-color);
  52. input, textarea {
  53. caret-color: var(--ls-primary-text-color);
  54. }
  55. .Card-content {
  56. background: var(--ls-primary-background-color);
  57. }
  58. .BottomSheet-handle {
  59. @apply bg-gray-03;
  60. }
  61. }
  62. }
  63. }
  64. body {
  65. @apply relative overflow-hidden;
  66. min-height: unset !important;
  67. .SheetWithDepth-stackSceneryContainer {
  68. @apply overflow-hidden;
  69. }
  70. .SheetWithDepth-stackSceneryContainer > .SheetWithDepth-view {
  71. height: var(--ls-full-screen-height, "auto");
  72. }
  73. }
  74. ul {
  75. @apply list-disc ml-1 mt-2 list-inside;
  76. li {
  77. @apply pl-0;
  78. }
  79. }
  80. .bg-background {
  81. @apply bg-gray-01;
  82. }
  83. #journals {
  84. .ls-view-body {
  85. .block-main-container {
  86. @apply pr-10;
  87. }
  88. .ls-block .block-control {
  89. @apply !right-5 !top-1;
  90. }
  91. }
  92. }
  93. .view-actions {
  94. @apply absolute right-0;
  95. }
  96. .app-login-modal {
  97. @apply mx-8 p-0;
  98. }
  99. .ui__notifications {
  100. @apply fixed top-8 pointer-events-none w-full;
  101. z-index: 9999;
  102. &-content {
  103. @apply inset-0 flex items-end justify-center px-4 py-2
  104. pointer-events-none sm:px-6 sm:py-2 sm:items-start sm:justify-end;
  105. }
  106. .notification-area {
  107. @apply border;
  108. }
  109. }
  110. .block-content-or-editor-inner {
  111. @apply min-h-[25px];
  112. }
  113. .blocks-container {
  114. .block-main-container {
  115. &[data-has-heading] {
  116. > .block-control-wrap {
  117. @apply static;
  118. }
  119. }
  120. &[data-has-heading="1"], &:has(textarea.h1) {
  121. > .block-control-wrap, > .block-control-wrap > .block-control {
  122. @apply mt-[18px];
  123. }
  124. }
  125. &[data-has-heading="2"], &:has(textarea.h2) {
  126. > .block-control-wrap, > .block-control-wrap > .block-control {
  127. @apply mt-3;
  128. }
  129. }
  130. }
  131. }
  132. .latex.initial {
  133. @apply pt-1;
  134. .katex-html {
  135. &[aria-hidden="true"] {
  136. @apply hidden;
  137. }
  138. }
  139. }
  140. .ui__popover-content, .ui__dropdown-menu-content {
  141. &[data-editor-popup-ref=page-search],
  142. &[data-editor-popup-ref=page-search-hashtag],
  143. &[data-editor-popup-ref=commands] {
  144. min-width: 61.8vw;
  145. max-width: calc(100vw - 40px);
  146. &[data-side=top] {
  147. max-height: var(--top-popup-content-max-height, 50vh);
  148. }
  149. &[data-side=bottom] {
  150. max-height: var(--bottom-popup-content-max-height, 50vh);
  151. }
  152. }
  153. }
  154. .property-key {
  155. min-width: 0;
  156. }
  157. .property-block-container {
  158. margin-left: 0;
  159. }
  160. .ls-page-title .ls-page-icon svg, .ls-page-title .ls-page-icon button {
  161. width: 26px;
  162. height: 26px;
  163. }
  164. .ls-page-title .ls-page-icon button {
  165. margin-top: 6px;
  166. }
  167. .ls-page-title {
  168. margin-left: -8px;
  169. }
  170. .ls-block[draggable="true"] {
  171. &.dragging {
  172. @apply bg-gray-02;
  173. }
  174. }
  175. .app-popup {
  176. @apply w-full overflow-y-auto overflow-x-hidden;
  177. }
  178. .app-audio-recorder {
  179. @apply flex flex-col p-4 gap-4;
  180. select {
  181. @apply bg-transparent;
  182. }
  183. .record-ctrl-btn {
  184. @apply w-12 h-12 text-green-800 bg-green-200 border-none;
  185. &.recording {
  186. @apply bg-red-200 border-red-500 text-red-700;
  187. }
  188. }
  189. .timer-wrap {
  190. @apply select-none;
  191. > .timer {
  192. @apply text-[28px] font-[500] font-mono opacity-90;
  193. }
  194. > small {
  195. @apply opacity-50 -mt-1;
  196. }
  197. }
  198. }
  199. .app-wave-container {
  200. @apply mt-4 border-none flex justify-center;
  201. .waveform-item {
  202. @apply dark:bg-gray-12;
  203. }
  204. }
  205. .left-sidebar-inner {
  206. @apply -mx-4;
  207. a {
  208. @apply text-gray-12 dark:text-gray-11;
  209. .page-title {
  210. @apply text-base opacity-80;
  211. display: flex !important;
  212. }
  213. }
  214. .cp__sidebar-left-layout a, .wrap-th, .more {
  215. @apply !opacity-80;
  216. }
  217. .hd .wrap-th > strong {
  218. @apply !text-lg;
  219. }
  220. }
  221. .menu-link, .cp__repos-quick-actions .ui__button {
  222. @apply text-base;
  223. }
  224. .no-repos {
  225. @apply pb-1;
  226. .cp__repos-quick-actions {
  227. @apply border-none;
  228. }
  229. }
  230. .ls-properties-area .property-pair {
  231. @apply flex flex-col items-start;
  232. .property-key {
  233. margin-bottom: -6px;
  234. }
  235. }
  236. body, #root {
  237. @apply h-full;
  238. }
  239. /* Both layers use their own independent scroll containers. */
  240. #app-main-home, #main-content-container
  241. {
  242. height: 100%;
  243. overflow-y: auto;
  244. -webkit-overflow-scrolling: touch;
  245. padding-bottom: 160px;
  246. }
  247. .cp__select-main, .cp__emoji-icon-picker, .ls-property-key {
  248. @apply w-full;
  249. }
  250. .cp__select {
  251. --palettle-container-height: 100%;
  252. }
  253. .ls-layer {
  254. position: absolute;
  255. inset: 0; /* top: 0; right: 0; bottom: 0; left: 0; */
  256. overflow-y: auto;
  257. }
  258. .ls-page-title .block-tags {
  259. margin-top: 0px;
  260. }
  261. @container ls-block (max-width: 430px) {
  262. .ls-mobile-page .ls-properties-area {
  263. display: initial;
  264. }
  265. }
  266. .ls-mobile-page .ls-page-title .ls-properties-area {
  267. @apply mt-4 block ml-2;
  268. }
  269. div[data-radix-menu-content] {
  270. @apply overflow-y-auto;
  271. padding-bottom: 80px;
  272. }
  273. .ls-nlp-calendar {
  274. @apply flex-1;
  275. }
  276. .mobile-setting-item {
  277. @apply rounded-2xl px-3 py-3 shadow-sm flex items-center justify-between bg-gray-03;
  278. }
  279. #ls-mobile-kb-anchor {
  280. opacity:0;
  281. position:fixed;
  282. top:-9999px;
  283. }
  284. .bullet {
  285. width: 0.45em;
  286. height: 0.45em;
  287. }