| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171 |
- .block-content-wrapper {
- user-select: text;
- @screen sm {
- overflow-x: visible;
- }
- }
- .block-content {
- @apply min-h-[24px] max-w-full whitespace-pre-wrap break-words cursor-text;
- img {
- /* FIXME: img macros */
- &.left {
- float: left;
- }
- &.right {
- float: right;
- }
- &.loading-asset {
- width: 9px;
- }
- }
- .draw [aria-labelledby="shapes-title"] {
- position: absolute;
- left: 50%;
- transform: translate(-50%);
- }
- &-fallback-ui {
- padding: 10px 15px;
- border-color: var(--ls-secondary-border-color);
- }
- [data-tooltipped]:has(a.tag) {
- @apply px-0.5;
- }
- }
- .block-content-or-editor-wrap {
- @apply flex flex-1 flex-row flex-wrap gap-1;
- }
- .block-content-or-editor-inner {
- @apply flex flex-1 flex-col w-full pr-1;
- }
- .block-head-wrap {
- @apply flex flex-1 w-full flex-row flex-wrap;
- @apply justify-between items-center;
- }
- .page-ref {
- @apply inline;
- .icon-emoji-wrap {
- @apply relative top-[2px] pl-[1px];
- &.as-emoji {
- @apply top-0 pr-[1px];
- }
- }
- .icon-cp-container {
- @apply inline-flex items-center pr-0.5;
- }
- .block-title-wrap.as-heading {
- @apply inline text-[length:inherit];
- }
- }
- .breadcrumb {
- @apply inline;
- .asset-container > img {
- height: 18px;
- width: unset !important;
- }
- a, svg, div {
- @apply inline;
- }
- &.block-parents {
- a {
- color: var(--ls-primary-text-color);
- &:hover {
- opacity: 1;
- }
- }
- }
- }
- .breadcrumb {
- .property-value-inner[data-type], .property-value-inner .select-item {
- display: inline;
- }
- }
- .open-block-ref-link {
- background-color: var(--ls-page-properties-background-color);
- padding: 1px 4px;
- border-radius: 2px;
- }
- .block-body {
- blockquote:first-child,
- pre:first-child {
- margin-top: 8px;
- margin-bottom: 8px;
- }
- }
- .block-body ul,
- .block-body ol,
- .block-body dl {
- @apply mb-0;
- > li {
- @apply py-[1px] m-0;
- .ui__checkbox {
- @apply mr-1.5 overflow-hidden relative top-0.5;
- }
- }
- }
- .block-body ol {
- list-style-position: inside;
- margin-left: 0;
- > li {
- &::marker,
- > p {
- display: initial;
- }
- }
- }
- .block-children-container {
- position: relative;
- margin-left: 29px;
- }
- .block-children-left-border {
- z-index: 1;
- width: 4px;
- left: -1px;
- top: 0;
- height: 100%;
- cursor: pointer;
- background-clip: content-box;
- background-color: transparent;
- position: absolute;
- border-radius: 2px;
- opacity: 0.6;
- border-left-color: var(--lx-gray-09, var(--ls-border-color, var(--rx-gray-09)));
- &:hover {
- background-color: var(--lx-gray-10, var(--ls-primary-text-color, var(--rx-gray-10)));
- opacity: .7;
- }
- &:active {
- opacity: 1;
- }
- }
- .block-children {
- border-left: 1px solid;
- border-left-color: var(--lx-gray-04-alpha, var(--ls-guideline-color, var(--rx-gray-04-alpha))) !important;
- }
- .hidden-block .block-children {
- border-left: 0;
- }
- .block-control-wrap, .ls-page-title .property-value .block-control-wrap {
- @apply h-[24px];
- &.is-order-list {
- @apply mr-0 pr-0;
- .bullet-link-wrap {
- @apply relative left-[-3px];
- }
- }
- &.is-with-icon {
- &.bullet-closed {
- .block-control .control-hide {}
- }
- .bullet-container {
- .icon-cp-container {
- @apply flex;
- }
- &.bullet-closed {
- .ls-icon-color-wrap em-emoji {
- @apply relative -top-[1px];
- }
- }
- }
- }
- &.bullet-hidden {
- padding-right: 2px;
- }
- }
- .ls-page-title .block-control-wrap {
- height: initial;
- }
- .block-title-wrap {
- @apply w-full inline;
- > .ui__checkbox {
- @apply relative top-0.5;
- &.checked {
- @apply top-1;
- }
- > span {
- @apply h-full;
- }
- }
- &.as-heading {
- @apply flex flex-1 items-center flex-wrap;
- > .ui__checkbox {
- @apply top-0;
- }
- h1& {
- .ui__icon.ti svg {
- @apply w-8 h-7;
- }
- }
- h2& {
- .ui__icon.ti svg {
- @apply w-7 h-6;
- }
- }
- h3& {
- .ui__icon.ti svg {
- @apply w-5 h-5;
- }
- }
- &.as-inline {
- @apply inline;
- }
- }
- &:has(.dsl-query), &:has(.embed-page) {
- @apply flex flex-row w-full;
- > .embed-page {
- @apply w-full;
- }
- }
- .dsl-query {
- @apply w-full;
- }
- }
- .block-control {
- @apply decoration-0 text-sm cursor-default mt-[1px]
- min-w-[22px] min-h-[22px] p-0.5 select-none opacity-40;
- .control-hide {
- @apply hidden;
- }
- &:active {
- @apply opacity-30;
- }
- }
- .block-left-menu {
- background-color: var(--ls-secondary-background-color);
- background: linear-gradient(90deg, var(--ls-primary-background-color) 0%, var(--ls-secondary-background-color) 100%);
- .commands-button {
- @apply overflow-hidden flex max-w-[40px];
- .indent {
- @apply flex items-center w-full justify-center opacity-30;
- }
- }
- }
- .block-right-menu {
- background-color: var(--ls-secondary-background-color);
- /* background: linear-gradient(-90deg, var(--ls-primary-background-color) 0%, var(--ls-secondary-background-color) 100%); */
- .commands-button {
- @apply overflow-hidden flex flex-nowrap;
- .outdent, .more {
- @apply flex items-center justify-center
- overflow-hidden opacity-30 m-0 w-[40px];
- }
- }
- }
- .block-ref {
- @apply border-b-[0.5px] border-b-[--ls-block-ref-link-text-color] cursor-alias;
- display: inherit;
- margin-bottom: -1px;
- .block-ref {
- @apply mx-1;
- }
- &:hover {
- color: var(--ls-link-text-hover-color);
- }
- .block-content {
- cursor: inherit;
- &-inner {
- display: inherit;
- > * {
- display: inherit;
- }
- }
- }
- }
- .block-ref-no-title {
- border-bottom: 0.5px solid;
- border-bottom-color: var(--ls-block-ref-link-text-color);
- cursor: alias;
- padding: 2px 5px;
- display: block;
- &:hover {
- color: var(--ls-link-text-hover-color);
- }
- .block-content {
- cursor: inherit;
- }
- }
- .page-reference {
- @apply rounded transition-[background];
- .bracket {
- @apply opacity-30 inline-flex;
- }
- &:hover {
- background: var(--lx-accent-04-alpha, var(--ls-secondary-background-color, hsl(var(--primary)/.4)));
- }
- .asset-block-wrap {
- @apply inline-block;
- }
- }
- .page-ref {
- color: var(--lx-accent-11, var(--ls-link-text-color, hsl(var(--primary)/.8)));
- &:hover {
- color: var(--lx-accent-11, var(--ls-link-text-color, hsl(var(--primary))));
- }
- &:has(.asset-ref.is-pdf) {
- .asset-block-wrap {
- @apply inline;
- }
- }
- .block-title-wrap {
- > .prefix-link {
- @apply inline mx-1;
- }
- }
- }
- .asset-ref {
- &-wrap {
- &[data-ext=pdf] {
- display: inline-flex;
- align-items: center;
- }
- }
- &.is-doc {
- &:before {
- content: "[[📜";
- opacity: .7;
- margin-right: 4px;
- }
- &:after {
- content: "]]";
- opacity: .7;
- }
- }
- }
- .embed-page {
- @apply py-2 my-2 px-2;
- > section {
- margin-bottom: 5px;
- }
- &.in-sidebar {
- background-color: var(--ls-tertiary-background-color);
- }
- }
- .block-properties, .page-properties {
- margin: 4px 0;
- padding: 4px 8px;
- background-color: var(--lx-gray-03, var(--ls-block-properties-background-color, var(--rx-gray-03)));
- }
- .block-marker {
- padding: 2px 4px;
- opacity: 0.7;
- font-size: 85%;
- margin: 0 2px 0 0;
- font-weight: 650;
- border: 0;
- }
- .marker-switch {
- &:hover {
- color: var(--ls-link-text-hover-color);
- opacity: 1;
- }
- }
- .block-main-container {
- @apply min-h-[24px];
- &[data-has-heading="1"], &:has(textarea.h1) {
- > .block-control-wrap {
- @apply relative top-4;
- }
- .block-content-or-editor-wrap {
- .positioned-properties {
- @apply relative top-4;
- }
- }
- }
- &[data-has-heading="2"], &:has(textarea.h2) {
- > .block-control-wrap {
- @apply relative top-2.5;
- }
- .block-content-or-editor-wrap {
- .positioned-properties {
- @apply relative top-3;
- }
- }
- }
- &[data-has-heading="3"], &:has(textarea.h3) {
- > .block-control-wrap {
- @apply relative top-[2px];
- }
- .block-content-or-editor-wrap {
- .positioned-properties {
- @apply relative top-[2px];
- }
- }
- }
- &[data-has-heading="5"] {
- > .block-control-wrap {
- @apply relative -top-[1px];
- }
- }
- &[data-has-heading="6"], &:has(textarea.h6) {
- h6.as-heading, textarea.h6 {
- @apply pt-1;
- }
- }
- }
- .ls-page-title-container .block-content-wrapper {
- .ls-page-title-actions {
- @apply absolute -top-5 opacity-0;
- left: -2px;
- }
- &:hover {
- & > .ls-page-title-actions {
- @apply delay-300 transition-opacity opacity-100;
- }
- }
- }
- .ls-block {
- @apply flex-1 relative py-0.5 transition-[background-color] mx-auto;
- width: 100%;
- transform: translateX(0);
- transition: transform 0.3s ease;
- will-change: transform;
- container-type: inline-size;
- container-name: ls-block;
- &.selected {
- @apply rounded;
- }
- }
- .ls-table .ls-block {
- container-type: initial;
- }
- #main-content-container, #right-sidebar {
- container-type: inline-size;
- }
- @container (max-width: 600px) {
- .time-spent, .positioned-properties.block-right, .view-actions {
- display: none;
- }
- .block-row {
- @apply flex-col gap-0;
- }
- .ls-block-right {
- @apply gap-0 -ml-1;
- }
- .ls-page-title .ls-block-right {
- @apply ml-0;
- }
- }
- @container ls-block (max-width: 430px) {
- .ls-properties-area {
- display: none;
- }
- }
- .ls-block h1,
- .editor-inner .h1.uniline-block {
- font-size: 2rem;
- min-height: 1.5em;
- line-height: 1.38em;
- }
- .ls-block h2,
- .editor-inner .h2.uniline-block {
- font-size: 1.5rem;
- min-height: 1.5em;
- line-height: 1.38em;
- }
- .ls-block h3,
- .editor-inner .h3.uniline-block {
- font-size: 1.2rem;
- min-height: 1.2em;
- line-height: 1.15em;
- }
- .ls-block h4,
- .editor-inner .h4.uniline-block {
- font-size: 1rem;
- min-height: 1em;
- }
- .ls-block h5,
- .editor-inner .h5.uniline-block {
- font-size: 0.83rem;
- min-height: 0.83em;
- }
- .ls-block h6,
- .editor-inner .h6.uniline-block {
- font-size: 0.75rem;
- min-height: 0.75rem;
- }
- .ls-block :is(h1, h2, h3, h4, h5, h6),
- .editor-inner .uniline-block:is(.h1, .h2, .h3, .h4, .h5, .h6),
- .editor-inner .multiline-block:is(.h1, .h2, .h3, .h4, .h5, .h6)::first-line {
- font-weight: 600;
- }
- .ls-block :is(h1, h2),
- .editor-inner .uniline-block:is(.h1, .h2) {
- @apply border-b border-gray-06 mt-1 mb-2 pb-1;
- }
- .editor-inner textarea.uniline-block:is(.h1, .h2) {
- border-bottom-style: solid;
- border-bottom-color: transparent;
- }
- .block-ref .ls-block :is(h1, h2),
- .block-ref .editor-inner :is(.h1, .h2) {
- border-bottom: none;
- }
- .block-ref :is(h1, h2, h3, h4, h5, h6) {
- border-bottom: none;
- font-size: 1rem;
- }
- .document-mode {
- & .ls-block h1,
- & .editor-inner .h1 {
- margin: 0.67em 0;
- }
- & .ls-block h2,
- & .editor-inner .h2 {
- margin: 0.75em 0;
- }
- & .ls-block h3,
- & .editor-inner .h3 {
- margin: 0.83em 0;
- }
- & .ls-block h4,
- & .editor-inner .h4 {
- margin: 1.12em 0;
- }
- & .ls-block h5,
- & .editor-inner .h5 {
- margin: 1.5em 0;
- }
- & .ls-block h6,
- & .editor-inner .h6 {
- margin: 1.67em 0;
- }
- }
- .color-level {
- background-color: var(--lx-gray-02, var(--color-level-1, var(--rx-gray-02)));
- .dark & {
- background-color: var(--lx-gray-01, var(--color-level-1, var(--rx-gray-01)));
- }
- & .color-level {
- background-color: var(--color-level-2);
- & .color-level {
- background-color: var(--color-level-3);
- & .color-level {
- background-color: var(--color-level-4);
- & .color-level {
- background-color: var(--color-level-5);
- & .color-level {
- background-color: var(--color-level-6);
- & .color-level {
- background-color: var(--color-level-4);
- & .color-level {
- background-color: var(--color-level-5);
- & .color-level {
- background-color: var(--color-level-6);
- & .color-level {
- background-color: var(--color-level-4);
- & .color-level {
- background-color: var(--color-level-6);
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- .color-level-1 {
- background-color: var(--color-level-1);
- }
- .color-level-2 {
- background-color: var(--color-level-2);
- }
- .color-level-3 {
- background-color: var(--color-level-3);
- }
- .color-level-4 {
- background-color: var(--color-level-4);
- }
- .color-level-5 {
- background-color: var(--color-level-5);
- }
- .color-level-6 {
- background-color: var(--color-level-6);
- }
- .bullet-container {
- display: flex;
- height: 16px;
- width: 16px;
- border-radius: 50%;
- justify-content: center;
- align-items: center;
- .bullet-heading {
- background-color: var(--ls-block-bullet-color, #8fbc8f);
- }
- &.as-order-list {
- @apply w-[22px] whitespace-nowrap justify-center pl-[3px];
- }
- .bullet {
- @apply rounded-full w-[6px] h-[6px] text-[15px] opacity-80;
- > * {
- @apply cursor-pointer;
- }
- }
- &:not(.typed-list) {
- &.bullet-closed {
- background-color: var(--lx-gray-04-alpha, var(--ls-block-bullet-border-color, var(--rx-gray-04-alpha)));
- }
- .bullet {
- background-color: var(--lx-gray-08, var(--ls-block-bullet-color, var(--rx-gray-08)));
- transition: transform 0.2s;
- }
- }
- &.typed-list:not(:focus-within) {
- .bullet {
- background-color: unset;
- height: unset;
- width: unset;
- box-shadow: none;
- }
- }
- }
- .bullet-link-wrap {
- color: var(--ls-primary-text-color);
- .ui__icon {
- @apply opacity-80;
- }
- &:hover > .bullet-container:not(.typed-list) {
- background-color: var(--lx-gray-04-alpha, var(--ls-block-bullet-border-color, var(--rx-gray-04-alpha)));
- .bullet {
- transform: scale(1.2);
- background-color: var(--lx-gray-08, var(--ls-block-bullet-color, var(--rx-gray-08))) !important;
- }
- }
- }
- .content.doc-mode {
- margin-left: -16px;
- .block-children-left-border {
- display: none;
- }
- .block-children {
- border-left: none;
- }
- .hide-inner-bullet .bullet {
- display: none;
- }
- .block-children-container {
- margin-left: 18px;
- }
- }
- .ls-block .custom-query {
- > .th {
- @apply flex flex-row flex-1 items-center justify-between my-1 text-xs opacity-90;
- }
- }
- /* copied from https://github.com/drdogbot7/tailwindcss-responsive-embed */
- .embed-responsive {
- position: relative;
- display: block;
- height: 0;
- padding: 0;
- overflow: hidden;
- .embed-responsive-item,
- iframe,
- embed,
- object,
- video {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- height: 100%;
- width: 100%;
- border: 0;
- }
- }
- .embed {
- border-radius: var(--ls-border-radius-low);
- }
- .embed-header {
- font-weight: 600;
- }
- a.filter svg {
- transform: scale(0.9);
- }
- .table-query-properties svg {
- display: inline;
- }
- .query-title {
- background: var(--ls-page-properties-background-color);
- }
- .ls-card {
- height: 100%;
- }
- .ls-card a[data-ref="card"], .ls-card .page-reference[data-ref="card"] {
- display: none;
- }
- a.cloze {
- color: var(--ls-cloze-text-color);
- }
- a.cloze-revealed {
- color: var(--ls-cloze-text-color);
- text-decoration: underline;
- text-underline-position: under;
- }
- .page-property-key {
- @apply font-medium whitespace-nowrap;
- color: var(--ls-secondary-text-color);
- }
- .page-property-key:hover {
- background-color: var(--ls-selection-background-color);
- }
- .cp__fenced-code-block {
- .not-edit {
- cursor: default;
- }
- }
- html.is-native-ios {
- audio {
- width: 100%;
- max-width: 350px;
- }
- }
- html:not(.is-mac) {
- body[data-active-keystroke="Control"] {
- .block-content {
- cursor: pointer;
- }
- }
- }
- html.is-mac {
- body[data-active-keystroke="Meta"] {
- .block-content {
- cursor: pointer;
- }
- }
- }
- .references-blocks {
- @apply mb-3;
- &-wrap {
- .foldable-title {
- @apply ml-3;
- .block-control {
- @apply relative right-[-5px] top-[1px];
- }
- }
- }
- &-item {
- @apply bg-gray-03 rounded p-4;
- > .only-page-blocks {
- @apply relative -left-[11px];
- }
- .with-foldable-page {
- > .preview-ref-link {
- .page-ref .ui__icon.ti {
- @apply top-[2px] left-0;
- }
- }
- }
- }
- .page-reference:hover {
- background: var(--lx-accent-04-alpha, var(--ls-tertiary-background-color, hsl(var(--primary)/.4)));
- }
- }
- .cp__right-sidebar-inner {
- .references-blocks-item {
- @apply bg-gray-04;
- }
- }
- .block-title-wrap a.tag, .block-body a.tag {
- font-size: initial;
- opacity: 1;
- }
- .positioned-properties {
- @apply text-sm;
- }
- .positioned-properties.block-left {
- .asset-container {
- @apply max-w-[120px];
- }
- .block-title-wrap {
- @apply hidden;
- }
- }
- .positioned-properties.block-right {
- button {
- @apply whitespace-nowrap;
- }
- .block-title-wrap {
- @apply overflow-hidden h-6 whitespace-nowrap text-ellipsis;
- }
- .jtrigger {
- @apply px-1;
- }
- }
- .positioned-properties.block-below {
- .block-content.inline {
- @apply flex;
- }
- .property-k {
- color: var(--ls-primary-text-color);
- }
- }
- .block-tags {
- @apply flex flex-row flex-wrap self-start items-center;
- min-height: 24px;
- max-width: 256px;
- }
- .block-tag {
- @apply flex relative pl-2 pr-1;
- }
- .block-tag.private-tag {
- @apply pl-1;
- }
- .block-tag:hover {
- @apply bg-gray-03 rounded;
- }
- .block-tag a.tag {
- @apply flex text-sm font-normal items-center opacity-70;
- }
- .block-tag a.hash-symbol {
- @apply text-sm text-sm font-normal opacity-70;
- }
- .block-tag a.tag:hover, .block-tag a.hash-symbol:hover {
- @apply opacity-100;
- }
- .block-tag span {
- @apply whitespace-nowrap overflow-hidden;
- max-width: 160px;
- text-overflow: ellipsis;
- }
- .block-content-wrapper svg, .view-actions svg {
- width: 18px;
- height: 18px;
- }
- .ls-small-icon svg {
- width: 12px;
- height: 12px;
- }
- .ls-type-warning svg {
- color: var(--rx-gray-09);
- }
- .ls-page-title .ls-page-icon svg, .ls-page-title .ls-page-icon button {
- width: 38px;
- height: 38px;
- }
- .ls-page-title .positioned-properties svg, .page-ref svg {
- width: 16px;
- height: 16px;
- }
- .ls-page-title {
- .positioned-properties, .time-spent {
- margin-top: 15px;
- }
- }
- .ls-page-title .ls-properties-area {
- .positioned-properties, .time-spent {
- margin-top: initial;
- }
- }
- .ls-page-title .ls-page-icon button {
- margin-top: 8px;
- }
- .ls-page-title .block-tags {
- @apply relative min-h-full;
- }
- .ls-code-editor-wrap {
- @apply relative w-full overflow-hidden rounded;
- .extensions__code-lang {
- @apply hidden;
- }
- > .code-block-actions {
- @apply flex flex-row gap-1 opacity-0 transition-opacity ease-in duration-300 absolute right-1 top-1 select-none z-[1] text-xs bg-gray-01;
- button {
- @apply !py-0 h-4 text-muted-foreground hover:text-foreground text-xs px-1;
- }
- svg {
- width: 14px;
- height: 14px;
- }
- }
- }
- .ls-resize-image {
- @apply flex relative w-fit cursor-pointer;
- .handle-left, .handle-right {
- @apply absolute w-[6px] h-[15%] min-h-[30px] bg-black/30 hover:bg-black/70
- top-[50%] left-[5px] rounded-full cursor-col-resize select-none
- translate-y-[-20%] opacity-0 border border-gray-200;
- }
- .handle-right {
- @apply left-auto right-[5px]
- }
- &:hover {
- .handle-left, .handle-right {
- @apply opacity-100;
- }
- }
- }
- .recent-block {
- transition: background-color 0.2s cubic-bezier(0, 1, 0, 1);
- background-color: var(--ls-secondary-background-color, var(--rx-gray-03));
- }
- .aspect-video {
- aspect-ratio: 16 / 9;
- height: auto;
- }
- .ls-filters {
- div[data-testid='virtuoso-item-list'] button {
- @apply mb-2;
- }
- }
- .swipe-item {
- touch-action: pan-y; /* disables horizontal scrolling on touch */
- }
- .ls-dialog-block {
- @apply !w-[90dvw] !h-[75%] !max-w-4xl bg-gray-02 overflow-scroll;
- }
- .asset-container {
- @apply relative inline-block mt-2 w-full;
- .asset-action-bar {
- @apply top-1 right-1 absolute flex items-center opacity-0 transition-opacity;
- &[data-popup-active] {
- @apply opacity-100;
- }
- }
- .asset-action-btn {
- @apply m-1 p-0.5 truncate flex items-center opacity-70 select-none
- hover:opacity-90 active:opacity-60;
- }
- &:hover, &:active {
- .asset-action-bar {
- @apply opacity-100;
- }
- }
- }
|