property.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. .property-configure {
  2. min-width: 40rem;
  3. .form-input, .form-select {
  4. line-height: 1rem;
  5. padding: 0.25rem 0.5rem;
  6. }
  7. }
  8. .property-value-content {
  9. cursor: text;
  10. min-height: 24px;
  11. }
  12. .property-configure-popup-content {
  13. @apply min-w-[700px] p-2 overflow-auto;
  14. /*noinspection CssUnresolvedCustomProperty*/
  15. max-height: var(--radix-dropdown-menu-content-available-height);
  16. }
  17. .ls-block .ls-properties-area, .property-block-container {
  18. border-left: 1px solid;
  19. border-left-color: or(--lx-gray-04-alpha, --ls-guideline-color, #ddd) !important;
  20. }
  21. .ls-page-properties > .ls-properties-area > .property-block {
  22. margin-left: -22px;
  23. }
  24. .ls-block .ls-properties-area {
  25. margin-left: 0;
  26. }
  27. .ls-block .property-pair,
  28. .property-block .property-value,
  29. .property-template .property-pair {
  30. padding-left: 22px;
  31. }
  32. .block-property-value {
  33. margin-left: 7px;
  34. }
  35. .grid-auto-fit {
  36. grid-template-columns: repeat(auto-fit, 120px);
  37. }
  38. .ls-properties-area {
  39. @apply grid gap-0.5 pt-1.5 pb-1.5;
  40. .property-pair {
  41. @apply grid grid-cols-5 gap-1;
  42. .jtrigger {
  43. @apply relative;
  44. &-id {
  45. @apply absolute left-[-26px] top-[3px] rounded-full leading-none
  46. flex items-center justify-center bg-primary text-primary-foreground border-none
  47. text-xs min-w-[20px] min-h-[20px];
  48. }
  49. }
  50. .property-value {
  51. .jtrigger-id {
  52. @apply left-[-34px] top-[2px];
  53. }
  54. &-inner[data-type=checkbox] {
  55. .jtrigger-id {
  56. @apply left-[-44px] top-[-2px];
  57. }
  58. }
  59. &-inner[data-type=date] {
  60. .jtrigger-id {
  61. @apply top-[4px];
  62. }
  63. &.empty-value {
  64. @apply -ml-1;
  65. .multi-values {
  66. @apply gap-0;
  67. }
  68. }
  69. }
  70. }
  71. }
  72. .add-button-link {
  73. opacity: 0.5;
  74. }
  75. tr:nth-child(even), tr:nth-child(odd) {
  76. background: none;
  77. }
  78. .editor-inner {
  79. padding: 0;
  80. width: 100%;
  81. }
  82. .cp__select-main {
  83. width: fit-content;
  84. margin: 0;
  85. .ui__dropdown-trigger {
  86. position: absolute;
  87. .dropdown-wrapper {
  88. left: 0;
  89. }
  90. }
  91. }
  92. .cp__select .input-wrap {
  93. height: auto;
  94. min-width: 14em;
  95. }
  96. .cp__select .input-wrap input.cp__select-input {
  97. border: none;
  98. }
  99. .cp__select .input-wrap input.cp__select-input:focus {
  100. outline: none;
  101. box-shadow: none;
  102. }
  103. .ls-block {
  104. margin: 0;
  105. }
  106. .property-key a {
  107. color: var(--ls-primary-text-color);
  108. }
  109. .property-key a:hover {
  110. color: var(--ls-link-text-hover-color);
  111. }
  112. .multi-values {
  113. @apply cursor-pointer active:opacity-80;
  114. }
  115. }
  116. .ui__button.empty-btn {
  117. @apply !h-7 !px-0 font-normal opacity-50;
  118. }
  119. .closed-values-properties {
  120. .select-item {
  121. @apply flex items-center;
  122. }
  123. }
  124. .block-main-container .ls-properties-area {
  125. margin-top: 0.25em;
  126. }
  127. input.simple-input {
  128. @apply px-1;
  129. border-radius: 0;
  130. border: none;
  131. border-bottom: 1px solid;
  132. }
  133. input.simple-input:focus {
  134. box-shadow: none;
  135. }
  136. .page-configure {
  137. @screen md {
  138. max-width: 720px;
  139. }
  140. }
  141. .property-key .bullet-container .bullet, .ls-property-input .bullet-container .bullet {
  142. background-color: darkgrey;
  143. }
  144. /* TODO: */
  145. .page-add-tags, .page-tags, .property-select, .ls-property-add,
  146. .property-configure, .ui__dropdown-menu-content {
  147. .cp__select-main {
  148. width: fit-content;
  149. margin: 0;
  150. .ui__dropdown-trigger {
  151. position: absolute;
  152. .dropdown-wrapper {
  153. left: 0;
  154. }
  155. }
  156. .item-results-wrap {
  157. max-height: calc(var(--palettle-container-height) - var(--palettle-input-height) - 150px);
  158. }
  159. }
  160. .cp__select .input-wrap {
  161. height: auto;
  162. min-width: 14em;
  163. }
  164. .cp__select .input-wrap input.cp__select-input {
  165. border: none;
  166. }
  167. .cp__select .input-wrap input.cp__select-input:focus {
  168. outline: none;
  169. box-shadow: none;
  170. }
  171. .cp__select-input {
  172. @apply px-4 py-2;
  173. }
  174. }
  175. .ls-property-add {
  176. .cp__select-input {
  177. padding: 0;
  178. }
  179. }
  180. .property-configure {
  181. .cp__select-input {
  182. @apply px-4 py-2;
  183. }
  184. }
  185. .ls-property-input {
  186. min-height: 1.5em;
  187. }
  188. .page-title .page-tags {
  189. font-size: 1em;
  190. font-weight: 400;
  191. }
  192. a.control-link {
  193. @apply select-none;
  194. color: var(--ls-primary-text-color);
  195. span {
  196. @apply select-none;
  197. }
  198. }
  199. .property-key {
  200. h1.title, h2.title {
  201. border-bottom: 0;
  202. padding-bottom: 0;
  203. }
  204. h1.title {
  205. margin-bottom: 1.5rem;
  206. }
  207. h2.title {
  208. margin-bottom: 1rem;
  209. }
  210. }
  211. .property-select {
  212. .menu-link:hover, a.menu-link.chosen {
  213. .iconTablerExtInProgress50,
  214. .iconTablerExtBacklog,
  215. .iconTablerExtTodo,
  216. .iconTablerExtDoing,
  217. .iconTablerExtInReview,
  218. .iconTablerExtDone {
  219. @apply text-accent-09;
  220. }
  221. .iconTablerExtCancelled {
  222. @apply text-red-rx-09;
  223. }
  224. }
  225. }
  226. .ls-page-properties {
  227. @apply min-h-[40px];
  228. &.no-mode {
  229. @apply hidden;
  230. }
  231. }
  232. .property-k:focus {
  233. @apply pr-1;
  234. }