block.css 18 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072
  1. .block-content-wrapper {
  2. user-select: text;
  3. @screen sm {
  4. overflow-x: visible;
  5. }
  6. }
  7. .block-content {
  8. @apply min-h-[24px] max-w-full whitespace-pre-wrap break-words cursor-text;
  9. img {
  10. max-width: 100%;
  11. /* FIXME: img macros */
  12. &.left {
  13. float: left;
  14. }
  15. &.right {
  16. float: right;
  17. }
  18. &.loading-asset {
  19. width: 9px;
  20. }
  21. }
  22. .asset-container {
  23. @apply relative inline-block mt-2 w-full;
  24. .asset-action-bar {
  25. @apply top-0.5 right-0.5 absolute flex items-center
  26. border bg-gray-02 rounded opacity-0 transition-opacity;
  27. }
  28. .asset-action-btn {
  29. @apply m-1 p-0.5 truncate flex items-center opacity-70 select-none
  30. hover:opacity-90 active:opacity-60;
  31. }
  32. &:hover, &:active {
  33. .asset-action-bar {
  34. @apply opacity-100;
  35. }
  36. }
  37. > img {
  38. max-width: unset;
  39. width: 100%;
  40. }
  41. }
  42. .draw [aria-labelledby="shapes-title"] {
  43. position: absolute;
  44. left: 50%;
  45. transform: translate(-50%);
  46. }
  47. &-fallback-ui {
  48. padding: 10px 15px;
  49. border-color: var(--ls-secondary-border-color);
  50. }
  51. [data-tooltipped]:has(a.tag) {
  52. @apply px-0.5;
  53. }
  54. }
  55. .block-content-or-editor-wrap {
  56. @apply flex flex-1 flex-row flex-wrap gap-1;
  57. }
  58. .block-content-or-editor-inner {
  59. @apply flex flex-1 flex-col w-full;
  60. }
  61. .block-head-wrap {
  62. @apply flex flex-1 w-full flex-row flex-wrap;
  63. @apply justify-between items-center;
  64. }
  65. .page-ref {
  66. @apply inline;
  67. .icon-emoji-wrap {
  68. @apply relative top-[2px] pl-[1px];
  69. &.as-emoji {
  70. @apply top-0 pr-[1px];
  71. }
  72. }
  73. .icon-cp-container {
  74. @apply inline-flex items-center pr-0.5;
  75. }
  76. .block-title-wrap.as-heading {
  77. @apply inline text-[length:inherit];
  78. }
  79. }
  80. .breadcrumb {
  81. @apply flex flex-row items-center flex-wrap;
  82. .asset-container > img {
  83. height: 18px;
  84. width: unset !important;
  85. }
  86. .inline-wrap {
  87. & > div, & > div > div {
  88. display: inherit;
  89. }
  90. }
  91. &.block-parents {
  92. a {
  93. color: var(--ls-primary-text-color);
  94. &:hover {
  95. opacity: 1;
  96. }
  97. }
  98. }
  99. }
  100. .open-block-ref-link {
  101. background-color: var(--ls-page-properties-background-color);
  102. padding: 1px 4px;
  103. border-radius: 2px;
  104. }
  105. .block-body {
  106. blockquote:first-child,
  107. pre:first-child {
  108. margin-top: 8px;
  109. margin-bottom: 8px;
  110. }
  111. }
  112. .block-body ul,
  113. .block-body ol,
  114. .block-body dl {
  115. @apply mb-0;
  116. > li {
  117. @apply py-[1px] m-0;
  118. .ui__checkbox {
  119. @apply mr-1.5 overflow-hidden relative top-0.5;
  120. }
  121. }
  122. }
  123. .block-body ol {
  124. list-style-position: inside;
  125. margin-left: 0;
  126. > li {
  127. &::marker,
  128. > p {
  129. display: initial;
  130. }
  131. }
  132. }
  133. .block-children-container {
  134. position: relative;
  135. margin-left: 29px;
  136. }
  137. .block-children-left-border {
  138. z-index: 1;
  139. width: 4px;
  140. left: -1px;
  141. top: 0;
  142. height: 100%;
  143. cursor: pointer;
  144. background-clip: content-box;
  145. background-color: transparent;
  146. position: absolute;
  147. border-radius: 2px;
  148. opacity: 0.6;
  149. border-left-color: var(--lx-gray-09, var(--ls-border-color, var(--rx-gray-09)));
  150. &:hover {
  151. background-color: var(--lx-gray-10, var(--ls-primary-text-color, var(--rx-gray-10)));
  152. opacity: .7;
  153. }
  154. &:active {
  155. opacity: 1;
  156. }
  157. }
  158. .block-children {
  159. border-left: 1px solid;
  160. border-left-color: var(--lx-gray-04-alpha, var(--ls-guideline-color, var(--rx-gray-04-alpha))) !important;
  161. }
  162. .hidden-block .block-children {
  163. border-left: 0;
  164. }
  165. .block-control-wrap, .ls-page-title .property-value .block-control-wrap {
  166. @apply h-[24px];
  167. &.is-order-list {
  168. @apply mr-0 pr-0;
  169. .bullet-link-wrap {
  170. @apply relative left-[-3px];
  171. }
  172. }
  173. &.is-with-icon {
  174. &.bullet-closed {
  175. .block-control .control-hide {}
  176. }
  177. .bullet-container {
  178. .icon-cp-container {
  179. @apply flex;
  180. }
  181. &.bullet-closed {
  182. .ls-icon-color-wrap em-emoji {
  183. @apply relative -top-[1px];
  184. }
  185. }
  186. }
  187. }
  188. &.bullet-hidden {
  189. padding-right: 2px;
  190. }
  191. }
  192. .ls-page-title .block-control-wrap {
  193. height: initial;
  194. }
  195. .block-title-wrap {
  196. @apply w-full inline;
  197. > .ui__checkbox {
  198. @apply relative top-[2px];
  199. > span {
  200. @apply h-full;
  201. }
  202. }
  203. &.as-heading {
  204. @apply flex flex-1 items-center flex-wrap;
  205. > .ui__checkbox {
  206. @apply top-0;
  207. }
  208. h1& {
  209. .ui__icon.ti svg {
  210. @apply w-8 h-7;
  211. }
  212. }
  213. h2& {
  214. .ui__icon.ti svg {
  215. @apply w-7 h-6;
  216. }
  217. }
  218. h3& {
  219. .ui__icon.ti svg {
  220. @apply w-5 h-5;
  221. }
  222. }
  223. &.as-inline {
  224. @apply inline;
  225. }
  226. }
  227. &:has(.dsl-query), &:has(.embed-page) {
  228. @apply flex flex-row w-full;
  229. > .embed-page {
  230. @apply w-full;
  231. }
  232. }
  233. .dsl-query {
  234. @apply w-full;
  235. }
  236. }
  237. .block-control {
  238. @apply decoration-0 text-sm cursor-default mt-[1px]
  239. min-w-[22px] min-h-[22px] p-0.5 select-none opacity-40;
  240. .control-hide {
  241. @apply hidden;
  242. }
  243. &:active {
  244. @apply opacity-30;
  245. }
  246. }
  247. .block-left-menu {
  248. background-color: var(--ls-secondary-background-color);
  249. background: linear-gradient(90deg, var(--ls-primary-background-color) 0%, var(--ls-secondary-background-color) 100%);
  250. .commands-button {
  251. @apply overflow-hidden flex max-w-[40px];
  252. .indent {
  253. @apply flex items-center w-full justify-center opacity-30;
  254. }
  255. }
  256. }
  257. .block-right-menu {
  258. background-color: var(--ls-secondary-background-color);
  259. /* background: linear-gradient(-90deg, var(--ls-primary-background-color) 0%, var(--ls-secondary-background-color) 100%); */
  260. .commands-button {
  261. @apply overflow-hidden flex flex-nowrap;
  262. .outdent, .more {
  263. @apply flex items-center justify-center
  264. overflow-hidden opacity-30 m-0 w-[40px];
  265. }
  266. }
  267. }
  268. .block-ref {
  269. @apply border-b-[0.5px] border-b-[--ls-block-ref-link-text-color] cursor-alias;
  270. display: inherit;
  271. margin-bottom: -1px;
  272. .block-ref {
  273. @apply mx-1;
  274. }
  275. &:hover {
  276. color: var(--ls-link-text-hover-color);
  277. }
  278. .block-content {
  279. cursor: inherit;
  280. &-inner {
  281. display: inherit;
  282. > * {
  283. display: inherit;
  284. }
  285. }
  286. }
  287. }
  288. .block-ref-no-title {
  289. border-bottom: 0.5px solid;
  290. border-bottom-color: var(--ls-block-ref-link-text-color);
  291. cursor: alias;
  292. padding: 2px 5px;
  293. display: block;
  294. &:hover {
  295. color: var(--ls-link-text-hover-color);
  296. }
  297. .block-content {
  298. cursor: inherit;
  299. }
  300. }
  301. .page-reference {
  302. @apply inline rounded transition-[background];
  303. .bracket {
  304. @apply opacity-30;
  305. }
  306. &:hover {
  307. background: var(--lx-accent-04-alpha, var(--ls-secondary-background-color, hsl(var(--primary)/.4)));
  308. }
  309. .asset-block-wrap {
  310. @apply inline-block;
  311. }
  312. }
  313. .page-ref {
  314. color: var(--lx-accent-11, var(--ls-link-text-color, hsl(var(--primary)/.8)));
  315. &:hover {
  316. color: var(--lx-accent-11, var(--ls-link-text-color, hsl(var(--primary))));
  317. }
  318. &:has(.asset-ref.is-pdf) {
  319. .asset-block-wrap {
  320. @apply inline;
  321. }
  322. }
  323. }
  324. .asset-ref {
  325. &-wrap {
  326. &[data-ext=pdf] {
  327. display: inline-flex;
  328. align-items: center;
  329. }
  330. }
  331. &.is-doc {
  332. &:before {
  333. content: "[[📜";
  334. opacity: .7;
  335. margin-right: 4px;
  336. }
  337. &:after {
  338. content: "]]";
  339. opacity: .7;
  340. }
  341. }
  342. }
  343. .embed-page {
  344. @apply py-2 my-2 px-2;
  345. > section {
  346. margin-bottom: 5px;
  347. }
  348. &.in-sidebar {
  349. background-color: var(--ls-tertiary-background-color);
  350. }
  351. }
  352. .block-properties, .page-properties {
  353. margin: 4px 0;
  354. padding: 4px 8px;
  355. background-color: var(--lx-gray-03, var(--ls-block-properties-background-color, var(--rx-gray-03)));
  356. }
  357. .block-marker {
  358. padding: 2px 4px;
  359. opacity: 0.7;
  360. font-size: 85%;
  361. margin: 0 2px 0 0;
  362. font-weight: 650;
  363. border: 0;
  364. }
  365. .marker-switch {
  366. &:hover {
  367. color: var(--ls-link-text-hover-color);
  368. opacity: 1;
  369. }
  370. }
  371. .block-main-container {
  372. @apply min-h-[24px];
  373. &[data-has-heading="1"], &:has(textarea.h1) {
  374. > .block-control-wrap {
  375. @apply relative top-4;
  376. }
  377. .block-content-or-editor-wrap {
  378. .positioned-properties {
  379. @apply relative top-4;
  380. }
  381. }
  382. }
  383. &[data-has-heading="2"], &:has(textarea.h2) {
  384. > .block-control-wrap {
  385. @apply relative top-3;
  386. }
  387. .block-content-or-editor-wrap {
  388. .positioned-properties {
  389. @apply relative top-3;
  390. }
  391. }
  392. }
  393. &[data-has-heading="3"], &:has(textarea.h3) {
  394. > .block-control-wrap {
  395. @apply relative top-[2px];
  396. }
  397. .block-content-or-editor-wrap {
  398. .positioned-properties {
  399. @apply relative top-[2px];
  400. }
  401. }
  402. }
  403. &[data-has-heading="5"] {
  404. > .block-control-wrap {
  405. @apply relative -top-[1px];
  406. }
  407. }
  408. &[data-has-heading="6"], &:has(textarea.h6) {
  409. h6.as-heading, textarea.h6 {
  410. @apply pt-1;
  411. }
  412. }
  413. }
  414. .block-main-content {
  415. &:hover {
  416. & > .db-page-title-actions {
  417. @apply delay-300 transition-opacity opacity-100;
  418. }
  419. }
  420. }
  421. .ls-block {
  422. @apply relative py-0.5 transition-[background-color] mx-auto;
  423. &.selected {
  424. @apply rounded;
  425. }
  426. }
  427. .ls-block h1,
  428. .editor-inner .h1.uniline-block {
  429. font-size: 2rem;
  430. min-height: 1.5em;
  431. line-height: 1.38em;
  432. }
  433. .ls-block h2,
  434. .editor-inner .h2.uniline-block {
  435. font-size: 1.5rem;
  436. min-height: 1.5em;
  437. line-height: 1.38em;
  438. }
  439. .ls-block h3,
  440. .editor-inner .h3.uniline-block {
  441. font-size: 1.2rem;
  442. min-height: 1.2em;
  443. line-height: 1.15em;
  444. }
  445. .ls-block h4,
  446. .editor-inner .h4.uniline-block {
  447. font-size: 1rem;
  448. min-height: 1em;
  449. }
  450. .ls-block h5,
  451. .editor-inner .h5.uniline-block {
  452. font-size: 0.83rem;
  453. min-height: 0.83em;
  454. }
  455. .ls-block h6,
  456. .editor-inner .h6.uniline-block {
  457. font-size: 0.75rem;
  458. min-height: 0.75rem;
  459. }
  460. .ls-block :is(h1, h2, h3, h4, h5, h6),
  461. .editor-inner .uniline-block:is(.h1, .h2, .h3, .h4, .h5, .h6),
  462. .editor-inner .multiline-block:is(.h1, .h2, .h3, .h4, .h5, .h6)::first-line {
  463. font-weight: 600;
  464. }
  465. .ls-block :is(h1, h2),
  466. .editor-inner .uniline-block:is(.h1, .h2) {
  467. @apply border-b border-gray-06 mt-1 mb-2 pb-1;
  468. }
  469. .editor-inner textarea.uniline-block:is(.h1, .h2) {
  470. border-bottom-style: solid;
  471. border-bottom-color: transparent;
  472. }
  473. .block-ref .ls-block :is(h1, h2),
  474. .block-ref .editor-inner :is(.h1, .h2) {
  475. border-bottom: none;
  476. }
  477. .block-ref :is(h1, h2, h3, h4, h5, h6) {
  478. border-bottom: none;
  479. font-size: 1rem;
  480. }
  481. .document-mode {
  482. & .ls-block h1,
  483. & .editor-inner .h1 {
  484. margin: 0.67em 0;
  485. }
  486. & .ls-block h2,
  487. & .editor-inner .h2 {
  488. margin: 0.75em 0;
  489. }
  490. & .ls-block h3,
  491. & .editor-inner .h3 {
  492. margin: 0.83em 0;
  493. }
  494. & .ls-block h4,
  495. & .editor-inner .h4 {
  496. margin: 1.12em 0;
  497. }
  498. & .ls-block h5,
  499. & .editor-inner .h5 {
  500. margin: 1.5em 0;
  501. }
  502. & .ls-block h6,
  503. & .editor-inner .h6 {
  504. margin: 1.67em 0;
  505. }
  506. }
  507. .color-level {
  508. background-color: var(--lx-gray-02, var(--color-level-1, var(--rx-gray-02)));
  509. .dark & {
  510. background-color: var(--lx-gray-01, var(--color-level-1, var(--rx-gray-01)));
  511. }
  512. & .color-level {
  513. background-color: var(--color-level-2);
  514. & .color-level {
  515. background-color: var(--color-level-3);
  516. & .color-level {
  517. background-color: var(--color-level-4);
  518. & .color-level {
  519. background-color: var(--color-level-5);
  520. & .color-level {
  521. background-color: var(--color-level-6);
  522. & .color-level {
  523. background-color: var(--color-level-4);
  524. & .color-level {
  525. background-color: var(--color-level-5);
  526. & .color-level {
  527. background-color: var(--color-level-6);
  528. & .color-level {
  529. background-color: var(--color-level-4);
  530. & .color-level {
  531. background-color: var(--color-level-6);
  532. }
  533. }
  534. }
  535. }
  536. }
  537. }
  538. }
  539. }
  540. }
  541. }
  542. }
  543. .color-level-1 {
  544. background-color: var(--color-level-1);
  545. }
  546. .color-level-2 {
  547. background-color: var(--color-level-2);
  548. }
  549. .color-level-3 {
  550. background-color: var(--color-level-3);
  551. }
  552. .color-level-4 {
  553. background-color: var(--color-level-4);
  554. }
  555. .color-level-5 {
  556. background-color: var(--color-level-5);
  557. }
  558. .color-level-6 {
  559. background-color: var(--color-level-6);
  560. }
  561. .bullet-container {
  562. display: flex;
  563. height: 16px;
  564. width: 16px;
  565. border-radius: 50%;
  566. justify-content: center;
  567. align-items: center;
  568. .bullet-heading {
  569. background-color: var(--ls-block-bullet-color, #8fbc8f);
  570. }
  571. &.as-order-list {
  572. @apply w-[22px] whitespace-nowrap justify-center pl-[3px];
  573. }
  574. .bullet {
  575. @apply rounded-full w-[6px] h-[6px] text-[15px] opacity-80;
  576. > * {
  577. @apply cursor-pointer;
  578. }
  579. }
  580. &:not(.typed-list) {
  581. &.bullet-closed {
  582. background-color: var(--lx-gray-04-alpha, var(--ls-block-bullet-border-color, var(--rx-gray-04-alpha)));
  583. }
  584. .bullet {
  585. background-color: var(--lx-gray-08, var(--ls-block-bullet-color, var(--rx-gray-08)));
  586. transition: transform 0.2s;
  587. }
  588. }
  589. &.typed-list:not(:focus-within) {
  590. .bullet {
  591. background-color: unset;
  592. height: unset;
  593. width: unset;
  594. box-shadow: none;
  595. }
  596. }
  597. }
  598. .bullet-link-wrap {
  599. color: var(--ls-primary-text-color);
  600. .ui__icon {
  601. @apply opacity-80;
  602. }
  603. &:hover > .bullet-container:not(.typed-list) {
  604. background-color: var(--lx-gray-04-alpha, var(--ls-block-bullet-border-color, var(--rx-gray-04-alpha)));
  605. .bullet {
  606. transform: scale(1.2);
  607. background-color: var(--lx-gray-08, var(--ls-block-bullet-color, var(--rx-gray-08))) !important;
  608. }
  609. }
  610. }
  611. .content.doc-mode {
  612. margin-left: -16px;
  613. .block-children-left-border {
  614. display: none;
  615. }
  616. .block-children {
  617. border-left: none;
  618. }
  619. .hide-inner-bullet .bullet {
  620. display: none;
  621. }
  622. .block-children-container {
  623. margin-left: 18px;
  624. }
  625. }
  626. .ls-block .custom-query {
  627. > .th {
  628. @apply flex flex-row flex-1 items-center justify-between my-1 text-xs opacity-90;
  629. }
  630. }
  631. /* copied from https://github.com/drdogbot7/tailwindcss-responsive-embed */
  632. .embed-responsive {
  633. position: relative;
  634. display: block;
  635. height: 0;
  636. padding: 0;
  637. overflow: hidden;
  638. .embed-responsive-item,
  639. iframe,
  640. embed,
  641. object,
  642. video {
  643. position: absolute;
  644. top: 0;
  645. left: 0;
  646. bottom: 0;
  647. height: 100%;
  648. width: 100%;
  649. border: 0;
  650. }
  651. }
  652. .embed {
  653. border-radius: var(--ls-border-radius-low);
  654. }
  655. .embed-header {
  656. font-weight: 600;
  657. }
  658. a.filter svg {
  659. transform: scale(0.9);
  660. }
  661. .table-query-properties svg {
  662. display: inline;
  663. }
  664. .query-title {
  665. background: var(--ls-page-properties-background-color);
  666. }
  667. .ls-card {
  668. height: 100%;
  669. }
  670. .ls-card a[data-ref="card"], .ls-card .page-reference[data-ref="card"] {
  671. display: none;
  672. }
  673. a.cloze {
  674. color: var(--ls-cloze-text-color);
  675. }
  676. a.cloze-revealed {
  677. color: var(--ls-cloze-text-color);
  678. text-decoration: underline;
  679. text-underline-position: under;
  680. }
  681. .page-property-key {
  682. @apply font-medium whitespace-nowrap;
  683. color: var(--ls-secondary-text-color);
  684. }
  685. .page-property-key:hover {
  686. background-color: var(--ls-selection-background-color);
  687. }
  688. .cp__fenced-code-block {
  689. .not-edit {
  690. cursor: default;
  691. }
  692. }
  693. html.is-native-ios {
  694. audio {
  695. width: 100%;
  696. max-width: 350px;
  697. }
  698. }
  699. html:not(.is-mac) {
  700. body[data-active-keystroke="Control"] {
  701. .block-content {
  702. cursor: pointer;
  703. }
  704. }
  705. }
  706. html.is-mac {
  707. body[data-active-keystroke="Meta"] {
  708. .block-content {
  709. cursor: pointer;
  710. }
  711. }
  712. }
  713. .references-blocks {
  714. @apply mb-3;
  715. &-wrap {
  716. .foldable-title {
  717. @apply ml-3;
  718. .block-control {
  719. @apply relative right-[-5px] top-[1px];
  720. }
  721. }
  722. }
  723. &-item {
  724. @apply bg-gray-03 rounded p-4;
  725. > .only-page-blocks {
  726. @apply relative -left-[11px];
  727. }
  728. .with-foldable-page {
  729. > .preview-ref-link {
  730. .page-ref .ui__icon.ti {
  731. @apply top-[2px] left-0;
  732. }
  733. }
  734. }
  735. }
  736. .page-reference:hover {
  737. background: var(--lx-accent-04-alpha, var(--ls-tertiary-background-color, hsl(var(--primary)/.4)));
  738. }
  739. }
  740. .cp__right-sidebar-inner {
  741. .references-blocks-item {
  742. @apply bg-gray-04;
  743. }
  744. }
  745. .block-title-wrap a.tag, .block-body a.tag {
  746. font-size: initial;
  747. opacity: 1;
  748. }
  749. .positioned-properties {
  750. @apply text-sm;
  751. }
  752. .positioned-properties.block-left {
  753. .asset-container {
  754. @apply max-w-[120px];
  755. }
  756. .block-title-wrap {
  757. @apply hidden;
  758. }
  759. }
  760. .positioned-properties.block-right {
  761. button {
  762. @apply whitespace-nowrap;
  763. }
  764. .block-title-wrap {
  765. @apply overflow-hidden h-6 whitespace-nowrap text-ellipsis;
  766. }
  767. }
  768. .positioned-properties.block-below {
  769. .block-content.inline {
  770. @apply flex;
  771. }
  772. }
  773. .block-tags {
  774. @apply flex flex-row flex-wrap self-start items-center;
  775. min-height: 24px;
  776. max-width: 256px;
  777. }
  778. .block-tag {
  779. @apply flex flex-row items-center;
  780. }
  781. .block-tag a.tag {
  782. @apply flex text-sm font-normal items-center opacity-70;
  783. }
  784. .block-tag a.hash-symbol {
  785. @apply text-sm text-sm font-normal opacity-70;
  786. }
  787. .block-tag a.tag:hover, .block-tag a.hash-symbol:hover {
  788. @apply opacity-100;
  789. }
  790. .block-tag span {
  791. @apply whitespace-nowrap overflow-hidden;
  792. max-width: 160px;
  793. text-overflow: ellipsis;
  794. }
  795. .block-content-wrapper svg, .view-actions svg {
  796. width: 18px;
  797. height: 18px;
  798. }
  799. .ls-type-warning svg {
  800. color: var(--rx-gray-09);
  801. width: 12px;
  802. height: 12px;
  803. }
  804. .ls-page-title .ls-page-icon svg, .ls-page-title .ls-page-icon button {
  805. width: 38px;
  806. height: 38px;
  807. }
  808. .ls-page-title .positioned-properties svg, .page-ref svg {
  809. width: 16px;
  810. height: 16px;
  811. }
  812. .ls-page-title .ls-page-icon button {
  813. margin-top: 8px;
  814. }
  815. .ls-page-title .block-tags {
  816. @apply relative min-h-full;
  817. }
  818. .ls-code-editor-wrap {
  819. @apply relative w-full overflow-hidden rounded;
  820. .extensions__code-lang {
  821. @apply hidden;
  822. }
  823. > .code-block-actions {
  824. @apply absolute right-1 top-1 select-none z-[1] text-xs;
  825. button {
  826. @apply !py-0 h-4 text-muted-foreground hover:text-foreground text-xs px-1;
  827. }
  828. svg {
  829. width: 14px;
  830. height: 14px;
  831. }
  832. }
  833. }
  834. .ls-resize-image {
  835. @apply flex relative;
  836. .handle-left, .handle-right {
  837. @apply absolute w-[6px] h-[15%] min-h-[30px] bg-black/30 hover:bg-black/70
  838. top-[50%] left-[5px] rounded-full cursor-col-resize select-none
  839. translate-y-[-20%] opacity-0 border border-gray-200;
  840. }
  841. .handle-right {
  842. @apply left-auto right-[5px]
  843. }
  844. &:hover {
  845. .handle-left, .handle-right {
  846. @apply opacity-100;
  847. }
  848. }
  849. }
  850. .recent-block {
  851. transition: background-color 0.2s cubic-bezier(0, 1, 0, 1);
  852. background-color: var(--ls-secondary-background-color, var(--rx-gray-03));
  853. }
  854. .aspect-video {
  855. aspect-ratio: 16 / 9;
  856. height: auto;
  857. }