page.css 3.8 KB

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