page.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. .cp__page {
  2. &-inner-wrap {
  3. &.is-node-page:not([data-ready]) {
  4. .ls-page-blocks,
  5. .ls-page-appendix-els {
  6. @apply invisible;
  7. }
  8. }
  9. }
  10. &-publish-actions {
  11. background-color: var(--ls-primary-background-color);
  12. padding: 50px 0;
  13. margin: -1.5rem;
  14. > h1 {
  15. font-size: 18px;
  16. padding: 15px;
  17. text-align: center;
  18. }
  19. > .it {
  20. display: flex;
  21. justify-content: flex-start;
  22. padding-top: 5px;
  23. padding-bottom: 5px;
  24. button {
  25. width: 90%;
  26. justify-content: center;
  27. padding: 15px 0;
  28. }
  29. }
  30. }
  31. }
  32. .cp__vertical-menu-button {
  33. opacity: 60%;
  34. display: block;
  35. }
  36. .cp__vertical-menu-button:hover {
  37. opacity: 1;
  38. }
  39. .cp__vertical-menu-button svg {
  40. width: 20px;
  41. height: 20px;
  42. }
  43. .graph-filters {
  44. width: 200px;
  45. background: var(--ls-secondary-background-color);
  46. }
  47. .graph-filters ul {
  48. margin-left: 0;
  49. }
  50. .graph-filters li {
  51. list-style: none;
  52. margin: 0;
  53. }
  54. .graph-layout {
  55. background: var(--ls-secondary-background-color);
  56. }
  57. .search-filter-close svg {
  58. transform: scale(0.7);
  59. }
  60. .ls-page-title {
  61. @apply rounded-sm;
  62. &.title {
  63. @apply mb-3;
  64. .block-main-container {
  65. @apply gap-2;
  66. }
  67. }
  68. .edit-input {
  69. @apply w-full border-0 p-0 pr-1 bg-transparent outline-0;
  70. box-shadow: none;
  71. &-wrapper {
  72. @apply rounded;
  73. &.editing {
  74. background-color: var(--ls-secondary-background-color);
  75. }
  76. }
  77. }
  78. .page-icon {
  79. @apply font-[48px] leading-none;
  80. .ui__button {
  81. @apply !h-auto pb-[1.5px];
  82. }
  83. }
  84. }
  85. a.page-title {
  86. padding: 0 8px;
  87. margin-left: -8px;
  88. transition: none;
  89. display: block;
  90. color: inherit;
  91. }
  92. .page-title-sizer-wrapper {
  93. @apply w-full overflow-x-auto overflow-y-hidden;
  94. :empty::before {
  95. content: '\200b';
  96. }
  97. > .title {
  98. @apply w-full overflow-hidden overflow-ellipsis;
  99. }
  100. }
  101. html.is-native-android,
  102. html.is-native-ipad,
  103. html.is-native-iphone,
  104. html.is-native-iphone-without-notch {
  105. .ls-page-title {
  106. margin: 0 0 10px -15px;
  107. padding: 0 !important;
  108. }
  109. }
  110. /* Change to another cursor style if Shift key is active */
  111. [data-active-keystroke*="Shift" i] :is(.journal-title, .page-title,
  112. .block-ref, .page-ref, a.tag,
  113. .bullet-container.cursor) {
  114. cursor: e-resize;
  115. }
  116. .ls-all-pages {
  117. max-width: 1400px;
  118. }
  119. .add-button-link {
  120. opacity: 0;
  121. color: var(--ls-primary-text-color);
  122. transform: scale(.8);
  123. margin-left: -1px;
  124. &:hover {
  125. color: var(--ls-primary-text-color);
  126. opacity: .6 !important;
  127. transform: scale(.9);
  128. }
  129. &:active {
  130. opacity: .8 !important;
  131. }
  132. &-wrap {
  133. cursor: pointer;
  134. }
  135. }
  136. html.is-native-android,
  137. html.is-native-ios {
  138. .block-content-wrapper {
  139. /* 38px is the width of block-control */
  140. width: calc(100% - 35px);
  141. @screen sm {
  142. width: calc(100% - 33px);
  143. }
  144. }
  145. }
  146. .page-blocks-collapse-control, .page-blocks-collapse-control:hover {
  147. text-decoration: none;
  148. cursor: default;
  149. min-width: 22px;
  150. padding-top: 22px;
  151. color: initial;
  152. user-select: none;
  153. .control-hide {
  154. display: none;
  155. }
  156. }
  157. .toned-down {
  158. opacity: 0.5;
  159. color: var(--ls-secondary-text-color);
  160. }
  161. .highlighted {
  162. opacity: 1;
  163. color: var(--ls-primary-text-color);
  164. }
  165. .separator-top {
  166. border-top: 1px solid var(--ls-quaternary-background-color);
  167. }
  168. .icon-box {
  169. display: inline-block;
  170. line-height: normal;
  171. background-color: var(--ls-quaternary-background-color);
  172. }
  173. .references {
  174. @apply select-none;
  175. }
  176. .no-ring {
  177. @apply focus:ring-0 focus:ring-offset-0;
  178. }
  179. .ls-dummy-block {
  180. @apply mb-[20px] pt-[5px] pb-[3px] h-[29px];
  181. &.selected {
  182. }
  183. .bullet {
  184. @apply relative -top-[2px] left-[-2px];
  185. }
  186. .text {
  187. @apply relative -top-[2px];
  188. }
  189. }
  190. .ls-preview-popup {
  191. @apply pl-6;
  192. .tippy-wrapper {
  193. @apply p-2;
  194. &.as-page {
  195. @apply -ml-5 pl-7 outline-none;
  196. }
  197. &.as-block {
  198. @apply -ml-5;
  199. }
  200. }
  201. }
  202. .cp__right-sidebar {
  203. .page-linked > .content {
  204. @apply pt-2;
  205. }
  206. }