| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- :root {
- --ls-page-title-size: 26px;
- }
- html.plt-capacitor.plt-android {
- --ion-safe-area-top: 42px;
- --ion-safe-area-bottom: 16px;
- ion-button, ion-tab-button {
- --ripple-color: rgba(0, 0, 0, .3); /* 设置涟漪颜色为透明 */
- }
- ion-app {
- margin-top: 0;
- }
- .header-md {
- box-shadow: 0 2px 8px #eee;
- border-bottom: .5px solid rgba(0, 0, 0, .15);
- }
- .searchbar-input.sc-ion-searchbar-md {
- @apply shadow-none;
- }
- ion-modal {
- ion-content {
- #app-container-wrapper {
- @apply pt-0;
- }
- }
- }
- .pswp__top-bar {
- @apply relative top-8;
- }
- }
- html.has-mobile-keyboard {
- .ion-page:not(.ion-page-hidden) {
- & > ion-content::part(scroll) {
- padding-bottom: 512px !important;
- }
- }
- }
- html {
- &[data-theme=dark] {
- &[data-color=logseq] {
- --background: var(--ls-primary-background-color);
- --ion-item-background: var(--ls-primary-background-color);
- --ion-text-color: var(--ls-primary-text-color);
- --ion-toolbar-color: var(--ls-link-text-color);
- --ion-item-color: var(--ls-primary-text-color);
- --ion-item-border-color: var(--ls-border-color);
- input, textarea {
- caret-color: var(--ls-primary-text-color);
- }
- ion-toolbar::part(background), ion-tab-bar,
- ion-tab-button, ion-header
- {
- background-color: var(--lx-gray-01);
- }
- ion-modal {
- --background: var(--lx-gray-01);
- --backdrop-color: var(--ls-secondary-background-color);
- }
- #mobile-editor-toolbar {
- background: var(--ls-secondary-background-color);
- }
- .action-sheet-group.sc-ion-action-sheet-ios,
- .alert-wrapper.sc-ion-alert-ios {
- --background: var(--ls-primary-background-color);
- --button-background: var(--ls-primary-background-color);
- --button-color: var(--ls-primary-text-color);
- }
- }
- }
- }
- ul {
- @apply !list-disc ml-1 mt-2 list-inside;
- li {
- @apply pl-0;
- }
- }
- ion-textarea {
- textarea {
- @apply !p-1 min-h-[120px];
- }
- }
- ion-buttons {
- &:has(.app-graph-select) {
- @apply max-w-[60%] overflow-hidden;
- }
- }
- .app-graph-select {
- ion-button {
- &::part(native) {
- @apply whitespace-nowrap overflow-hidden font-semibold active:opacity-80 pr-8;
- }
- }
- }
- .sc-ion-buttons-md {
- &.text-muted-foreground {
- @apply text-gray-600;
- }
- }
- .app-login-modal {
- @apply mx-8 p-0;
- }
- .ui__notifications {
- @apply fixed top-8 pointer-events-none w-full;
- z-index: 9999;
- & -content {
- @apply inset-0 flex items-end justify-center px-4 py-2
- pointer-events-none sm:px-6 sm:py-2 sm:items-start sm:justify-end;
- }
- .notification-area {
- @apply border;
- background-color: var(--ion-color-light-tint);
- }
- }
- .block-modal-page {
- > ion-header {
- @apply pt-5 pb-1 px-4 flex justify-between bg-white/10;
- }
- > ion-content {
- #app-container-wrapper {
- @apply relative -top-6;
- }
- .ls-view-body {
- @apply max-w-[90vw];
- }
- }
- }
- .block-content-or-editor-inner {
- @apply min-h-[25px];
- }
- ion-tab-bar {
- box-shadow: 0 0 1px #999999;
- padding-top: 4px;
- ion-tab-button {
- @apply opacity-70;
- &.tab-selected {
- @apply opacity-100 text-accent-11 font-semibold;
- }
- }
- }
- ion-modal {
- .property-select {
- .cp__select-main {
- @apply w-auto;
- }
- }
- }
- ion-content {
- .ls-page-blocks {
- @apply px-1;
- }
- .block-main-container {
- &[data-has-heading] {
- > .block-control-wrap {
- @apply static;
- }
- }
- &[data-has-heading="1"], &:has(textarea.h1) {
- > .block-control-wrap, > .block-control-wrap > .block-control {
- @apply mt-[18px];
- }
- }
- &[data-has-heading="2"], &:has(textarea.h2) {
- > .block-control-wrap, > .block-control-wrap > .block-control {
- @apply mt-3;
- }
- }
- }
- &::part(background) {
- @apply !bg-transparent;
- }
- .ion-page {
- @apply bg-gray-01 -mb-3;
- }
- }
- .latex.initial {
- @apply pt-1;
- .katex-html {
- &[aria-hidden="true"] {
- @apply hidden;
- }
- }
- }
- [type='text']:focus, [type='email']:focus, [type='url']:focus,
- [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus,
- [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus,
- [multiple]:focus, textarea:focus, select:focus {
- box-shadow: none;
- }
- .ui__popover-content, .ui__dropdown-menu-content {
- &[data-editor-popup-ref=page-search],
- &[data-editor-popup-ref=page-search-hashtag],
- &[data-editor-popup-ref=commands] {
- min-width: 61.8vw;
- max-width: calc(100vw - 40px);
- &[data-side=top] {
- max-height: var(--top-popup-content-max-height, 50vh);
- }
- &[data-side=bottom] {
- max-height: var(--bottom-popup-content-max-height, 50vh);
- }
- }
- }
- html[data-color=logseq] {
- &[data-theme=light] {
- --ion-color-primary: var(--rx-logseq-11);
- }
- }
- .graph-switcher .action-sheet-button {
- font-size: 1.125em;
- }
- div.block-content[contenteditable][data-readonly] {
- user-select: text; /* allow text selection */
- caret-color: transparent; /* hide caret */
- outline: none; /* remove focus outline */
- }
|