ui.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. #ui__ac {
  2. &-inner {
  3. overflow-x: hidden;
  4. overflow-y: auto;
  5. position: relative;
  6. -webkit-overflow-scrolling: touch;
  7. .menu-link {
  8. word-break: break-all;
  9. .has-help {
  10. display: flex;
  11. align-items: center;
  12. justify-content: space-between;
  13. small {
  14. visibility: hidden;
  15. cursor: help;
  16. svg {
  17. opacity: .5;
  18. }
  19. &:hover svg {
  20. opacity: .9;
  21. }
  22. }
  23. }
  24. &:hover, &.chosen {
  25. .has-help small {
  26. visibility: visible;
  27. }
  28. }
  29. }
  30. }
  31. }
  32. .ui__ac-group-name {
  33. @apply p-2 text-xs;
  34. color: var(--ls-block-ref-link-text-color);
  35. }
  36. .search-all #ui__ac-inner {
  37. max-height: none;
  38. }
  39. .ui__notifications {
  40. position: fixed;
  41. z-index: var(--ls-z-index-level-4);
  42. width: 100%;
  43. top: 3.2em;
  44. pointer-events: none;
  45. &-content {
  46. @apply inset-0 flex items-end justify-center px-4 py-3
  47. pointer-events-none sm:px-6 sm:py-3 sm:items-start
  48. sm:justify-end;
  49. }
  50. .notification-area {
  51. background-color: var(--ls-tertiary-background-color, #fff);
  52. color: var(--ls-primary-text-color);
  53. }
  54. }
  55. .ui__toggle {
  56. .wrapper {
  57. @apply relative flex-shrink-0
  58. h-6 w-11 border-2 border-transparent flex
  59. rounded-full cursor-pointer focus:outline-none;
  60. }
  61. .switcher {
  62. @apply inline-block h-5 w-5 rounded-full bg-white shadow;
  63. }
  64. &.is-small {
  65. .wrapper {
  66. @apply h-4 w-8;
  67. }
  68. .switcher {
  69. @apply h-3 w-3;
  70. }
  71. }
  72. }
  73. .ui__modal {
  74. @apply fixed px-4 pb-4 inset-0 flex items-baseline justify-center
  75. top-12 sm:top-[calc(3vh+50px)];
  76. &-overlay {
  77. @apply fixed inset-0 transition-opacity;
  78. }
  79. &-overlay div {
  80. background: var(--ls-tertiary-background-color);
  81. }
  82. &-panel {
  83. @apply relative rounded-md shadow-xl;
  84. overflow: hidden;
  85. background: var(--ls-secondary-background-color);
  86. .panel-content {
  87. overflow-y: auto;
  88. overflow-x: hidden;
  89. width: calc(94vw - 2rem);
  90. max-height: 89vh;
  91. padding: 2rem 1.5rem;
  92. @screen sm {
  93. overflow-y: overlay;
  94. min-width: 720px;
  95. max-height: 85vh;
  96. padding: 2rem;
  97. width: auto;
  98. .ls-card,
  99. .ls-search {
  100. width: 740px;
  101. }
  102. .ls-card {
  103. min-height: 60vh;
  104. }
  105. .ls-search {
  106. width: var(--ls-main-content-max-width);
  107. }
  108. }
  109. }
  110. }
  111. &-close {
  112. @apply text-gray-400 hover:text-gray-500
  113. focus:outline-none focus:text-gray-500
  114. transition ease-in-out duration-150;
  115. }
  116. &[label="ls-modal-align-center"] {
  117. top: 0;
  118. .ui__modal-panel {
  119. top: 50vh;
  120. transform: translateY(-52%);
  121. }
  122. }
  123. &[label="diff__cp"] {
  124. .panel-content {
  125. padding: 2rem 1rem;
  126. @screen sm {
  127. padding: 2rem;
  128. }
  129. }
  130. }
  131. &[label="flashcards__cp"] {
  132. .panel-content {
  133. padding: 2rem 0;
  134. @screen sm {
  135. padding: 2rem 2rem;
  136. }
  137. }
  138. }
  139. &[label="instruction__cp"] {
  140. .ui__modal-panel {
  141. height: 90%;
  142. }
  143. .panel-content {
  144. height: 100%;
  145. }
  146. }
  147. }
  148. .instruction {
  149. height: 40%;
  150. @screen sm {
  151. height: 70%;
  152. }
  153. }
  154. html.is-native-android,
  155. html.is-native-iphone,
  156. html.is-native-iphone-without-notch
  157. {
  158. .references {
  159. .blocks-container {
  160. transform: translateX(-8px);
  161. width: 104%;
  162. }
  163. }
  164. .ls-card {
  165. min-height: 65vh;
  166. }
  167. .ui__modal {
  168. &[label="flashcards__cp"] {
  169. .panel-content {
  170. padding: 2rem 1rem 1rem;
  171. width: 90vw;
  172. .cards-review {
  173. padding-left: 0px;
  174. padding-right: 0px;
  175. }
  176. .blocks-container {
  177. transform: translateX(-7px);
  178. width: 103%;
  179. }
  180. }
  181. }
  182. }
  183. }
  184. html.is-mobile {
  185. .ui__modal {
  186. @apply bottom-0 inset-x-0;
  187. }
  188. }
  189. .ui__confirm-modal {
  190. .sublabel {
  191. display: flex;
  192. padding: 2px 0;
  193. align-items: center;
  194. font-size: 14px;
  195. input[type='checkbox'] {
  196. margin-right: 8px;
  197. }
  198. }
  199. }
  200. .ui__button {
  201. @apply flex items-center px-3 py-2 border border-transparent
  202. text-sm leading-4 font-medium rounded-md text-white
  203. focus:outline-none transition ease-in-out duration-150;
  204. &:disabled {
  205. opacity: 0.5;
  206. cursor: not-allowed;
  207. }
  208. &:hover:not([disabled]) {
  209. opacity: 0.8;
  210. }
  211. &.is-link {
  212. @apply text-white;
  213. }
  214. &[intent='logseq'] {
  215. @apply focus:border-gray-500 dark:hover:text-gray-200;
  216. color: var(--ls-primary-text-color);
  217. background: var(--ls-secondary-background-color);
  218. &:hover {
  219. color: var(--ls-link-text-color);
  220. }
  221. }
  222. &[intent='link'], &[intent='border-link'] {
  223. @apply focus:border-gray-500 dark:hover:text-gray-200;
  224. color: var(--ls-primary-text-color);
  225. background: transparent;
  226. &:hover {
  227. color: var(--ls-link-text-color);
  228. }
  229. }
  230. &[intent='border-link'] {
  231. border: 1px solid;
  232. }
  233. &.p-1 {
  234. padding: 0.25rem 0.5rem !important;
  235. }
  236. }
  237. .dropdown-wrapper {
  238. background-color: var(--ls-primary-background-color, #fff);
  239. border: 1px solid var(--ls-tertiary-background-color);
  240. min-width: 12rem;
  241. border-radius: 6px;
  242. }
  243. .dropdown-caret {
  244. display: inline-block;
  245. width: 0;
  246. height: 0;
  247. vertical-align: middle;
  248. content: '';
  249. border-top-style: solid;
  250. border-top-width: 4px;
  251. border-right: 4px solid transparent;
  252. border-bottom: 0 solid transparent;
  253. border-left: 4px solid transparent;
  254. }
  255. .form-select {
  256. @apply block w-full pl-3 pr-10 py-2 text-base leading-6 rounded
  257. border-gray-300 focus:outline-none sm:text-sm sm:leading-5;
  258. background-color: var(--ls-primary-background-color, transparent);
  259. background-repeat: no-repeat;
  260. border-width: 1px;
  261. border-color: var(--ls-border-color);
  262. &.is-small {
  263. @apply pl-2 py-1.5 sm:leading-4 sm:text-xs;
  264. }
  265. }
  266. .form-input {
  267. @apply block w-full pl-2
  268. sm:text-sm sm:leading-5 rounded;
  269. border-width: 1px;
  270. border-color: var(--ls-border-color);
  271. &:focus {
  272. box-shadow: 0 0 0 2px rgba(164, 202, 254, 0.45);
  273. }
  274. &.is-small {
  275. @apply py-1.5 sm:leading-4 sm:text-xs;
  276. }
  277. }
  278. .rotating-arrow.not-collapsed svg {
  279. transform: rotate(90deg);
  280. }
  281. .rotating-arrow svg {
  282. transition: all 100ms ease-in 0ms;
  283. }
  284. .bg-quaternary {
  285. background-color: var(--ls-quaternary-background-color);
  286. }
  287. .ui__icon {
  288. display: inline-block;
  289. }
  290. .type-icon {
  291. @apply text-base text-center flex items-center justify-center rounded border mr-2 relative;
  292. width: 24px;
  293. height: 24px;
  294. flex-shrink: 0;
  295. border-color: var(--ls-primary-background-color);
  296. overflow: hidden;
  297. color: var(--ls-primary-text-color);
  298. .ti,
  299. .tie {
  300. z-index: 1;
  301. }
  302. &:before {
  303. @apply block absolute inset-0 ;
  304. background: var(--ls-primary-background-color);
  305. content: " ";
  306. }
  307. &.highlight {
  308. color: var(--ls-selection-text-color);
  309. border-color: var(--ls-selection-background-color);
  310. &:before {
  311. opacity: 0.5;
  312. background: var(--ls-selection-background-color);
  313. }
  314. }
  315. }