| 1 | .n-modal-mask { |
| 2 | backdrop-filter: blur(3px); |
| 3 | } |
| 4 | .n-modal, |
| 5 | .n-card.n-modal[role] { |
| 6 | // background-color: rgba(var(--bg-default-color-rgb) / 0.7); |
| 7 | backdrop-filter: blur(20px); |
| 8 | max-width: 90%; |
| 9 | margin: 10vh auto; |
| 10 | } |
| 11 | .n-card { |
| 12 | .n-card-header { |
| 13 | flex-wrap: wrap; |
| 14 | gap: 12px; |
| 15 | justify-content: flex-end; |
| 16 | |
| 17 | .n-card-header__main { |
| 18 | min-width: auto !important; |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | .n-drawer__resize-trigger { |
| 24 | &::before { |
| 25 | content: "::"; |
| 26 | background-color: var(--bg-default-color); |
| 27 | width: 16px; |
| 28 | height: 26px; |
| 29 | display: flex; |
| 30 | position: absolute; |
| 31 | top: 50%; |
| 32 | right: 0px; |
| 33 | text-align: center; |
| 34 | justify-content: center; |
| 35 | align-items: center; |
| 36 | border-radius: 12px 0 0 12px; |
| 37 | letter-spacing: 1px; |
| 38 | padding-bottom: 2px; |
| 39 | padding-left: 4px; |
| 40 | line-height: 0; |
| 41 | transition: background-color 0.3s var(--n-bezier); |
| 42 | } |
| 43 | |
| 44 | &.n-drawer__resize-trigger--hover { |
| 45 | &::before { |
| 46 | background-color: var(--primary-color); |
| 47 | color: var(--fg-tertiary-color); |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | .n-image-preview-container { |
| 53 | .n-image-preview-overlay { |
| 54 | backdrop-filter: blur(3px); |
| 55 | } |
| 56 | .n-image-preview-toolbar { |
| 57 | box-sizing: content-box; |
| 58 | |
| 59 | * { |
| 60 | box-sizing: content-box; |
| 61 | } |
| 62 | |
| 63 | & > i { |
| 64 | font-size: clamp(18px, 5.5vw, 28px); |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | .n-slider { |
| 70 | box-sizing: content-box; |
| 71 | } |
| 72 | |
| 73 | .n-calendar * { |
| 74 | box-sizing: content-box; |
| 75 | } |
| 76 | |
| 77 | .n-badge { |
| 78 | direction: ltr; |
| 79 | } |
| 80 | |
| 81 | .n-dropdown-menu { |
| 82 | &.n-dropdown-menu--scrollable { |
| 83 | max-height: 60vh; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | .n-card { |
| 88 | & > .n-card__content { |
| 89 | max-height: 100%; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | .n-avatar .n-avatar__text { |
| 94 | transform: translateX(-50%) translateY(-50%) scale(1); |
| 95 | } |
| 96 | |
| 97 | // popover max-width |
| 98 | .v-binder-follower-content { |
| 99 | max-width: calc(100vw - (var(--view-padding) * 2)); |
| 100 | } |
| 101 | |
| 102 | .n-data-table { |
| 103 | .n-data-table-resize-button { |
| 104 | --n-merged-border-color: rgba(var(--fg-secondary-color-rgb) / 0.35); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | .n-spin-container { |
| 109 | .n-spin-body { |
| 110 | inset: 0 !important; |
| 111 | transform: none !important; |
| 112 | display: block; |
| 113 | |
| 114 | .n-base-loading { |
| 115 | position: sticky; |
| 116 | top: 50%; |
| 117 | margin-top: min(50%, 100px); |
| 118 | width: 100%; |
| 119 | display: flex; |
| 120 | justify-content: center; |
| 121 | transform: translateY(-70px); |
| 122 | |
| 123 | .n-base-loading__transition-wrapper { |
| 124 | width: 1em; |
| 125 | height: 1em; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | .n-spin-description { |
| 130 | position: sticky; |
| 131 | top: calc(50% + 50px); |
| 132 | left: 50%; |
| 133 | transform: translateX(-50%) translateY(-40px); |
| 134 | margin-top: 0; |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | .n-form-item { |
| 140 | .n-form-item-feedback-wrapper { |
| 141 | .n-form-item-feedback { |
| 142 | line-height: 1.1; |
| 143 | } |
| 144 | } |
| 145 | .n-form-item-blank--error { |
| 146 | .n-upload-dragger { |
| 147 | border-color: var(--n-feedback-text-color-error); |
| 148 | } |
| 149 | .n-upload-file-list:not(:empty) { |
| 150 | margin-bottom: 24px; |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | .n-menu { |
| 156 | .n-menu-item { |
| 157 | .n-menu-item-content { |
| 158 | gap: 16px; |
| 159 | |
| 160 | .n-menu-item-content__icon { |
| 161 | margin-right: 0 !important; |
| 162 | margin-left: 0 !important; |
| 163 | } |
| 164 | } |
| 165 | } |
| 166 | .n-menu-item-group { |
| 167 | .n-menu-item-group-title { |
| 168 | padding-left: 22px !important; |
| 169 | padding-right: 22px !important; |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | &.n-menu--horizontal { |
| 174 | .n-menu-item { |
| 175 | .n-menu-item-content { |
| 176 | gap: 8px; |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | .n-space.n-space--rtl { |
| 183 | .n-layout { |
| 184 | aside.n-layout-sider.n-layout-sider--left-placement.n-layout-sider--bordered { |
| 185 | .n-layout-toggle-button { |
| 186 | right: unset; |
| 187 | left: 0; |
| 188 | transform: translateX(-50%) translateY(-50%) rotate(180deg); |
| 189 | } |
| 190 | .n-layout-sider__border { |
| 191 | right: unset; |
| 192 | left: 0; |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | .direction-rtl { |
| 199 | .v-binder-follower-container { |
| 200 | direction: ltr; |
| 201 | |
| 202 | .v-binder-follower-content { |
| 203 | & > * { |
| 204 | direction: rtl; |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | .n-menu { |
| 210 | direction: rtl; |
| 211 | |
| 212 | &.n-menu--collapsed { |
| 213 | .n-menu-item { |
| 214 | .n-menu-item-content { |
| 215 | padding-right: 0px; |
| 216 | direction: ltr; |
| 217 | } |
| 218 | } |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | .n-base-select-menu { |
| 223 | .n-base-select-option { |
| 224 | .n-base-select-option__content { |
| 225 | .n-icon { |
| 226 | margin-right: unset !important; |
| 227 | margin-left: 8px; |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | .n-base-selection { |
| 234 | .n-base-selection-label { |
| 235 | .n-base-selection-input { |
| 236 | .n-base-selection-input__content { |
| 237 | .n-icon { |
| 238 | margin-right: unset !important; |
| 239 | margin-left: 8px; |
| 240 | } |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | .n-color-picker-panel { |
| 247 | .n-color-picker-action { |
| 248 | gap: 8px; |
| 249 | |
| 250 | & > * { |
| 251 | margin-left: 0; |
| 252 | } |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | .n-cascader-menu { |
| 257 | direction: ltr !important; |
| 258 | } |
| 259 | |
| 260 | .n-rate { |
| 261 | direction: ltr; |
| 262 | } |
| 263 | |
| 264 | .n-carousel { |
| 265 | direction: ltr; |
| 266 | } |
| 267 | |
| 268 | .n-tabs { |
| 269 | .n-tabs-nav { |
| 270 | direction: ltr; |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | .n-timeline { |
| 275 | &:not(.n-timeline--horizontal) { |
| 276 | .n-timeline-item .n-timeline-item-timeline { |
| 277 | direction: ltr; |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | &.n-timeline--horizontal { |
| 282 | .n-timeline-item .n-timeline-item-timeline { |
| 283 | .n-timeline-item-timeline__line { |
| 284 | right: var(--n-icon-size); |
| 285 | left: 0; |
| 286 | } |
| 287 | } |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | .n-data-table-filter-menu__action { |
| 292 | gap: 8px; |
| 293 | |
| 294 | .n-button--rtl { |
| 295 | margin: 0 !important; |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | .n-data-table-check-extra { |
| 300 | right: unset !important; |
| 301 | left: -3px; |
| 302 | } |
| 303 | |
| 304 | .n-page-header { |
| 305 | .n-page-header__main { |
| 306 | gap: 16px; |
| 307 | |
| 308 | & > * { |
| 309 | margin-right: 0; |
| 310 | margin-left: 0; |
| 311 | } |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | .n-date-panel-calendar { |
| 316 | direction: ltr; |
| 317 | } |
| 318 | |
| 319 | .n-date-panel { |
| 320 | .n-date-panel-header { |
| 321 | gap: 10px; |
| 322 | |
| 323 | & > *:not(:last-child) { |
| 324 | margin-right: 0; |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | .n-date-panel-actions { |
| 329 | .n-date-panel-actions__suffix { |
| 330 | margin-bottom: 0; |
| 331 | gap: 8px; |
| 332 | flex-wrap: wrap; |
| 333 | |
| 334 | .n-button { |
| 335 | margin-bottom: 0; |
| 336 | |
| 337 | &:not(:last-child) { |
| 338 | margin-right: 0; |
| 339 | } |
| 340 | } |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | .n-date-panel-month-calendar { |
| 345 | direction: ltr; |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | .n-time-picker-panel { |
| 350 | direction: ltr !important; |
| 351 | } |
| 352 | |
| 353 | .n-form { |
| 354 | &.n-form--inline { |
| 355 | gap: 18px; |
| 356 | |
| 357 | .n-form-item { |
| 358 | margin-right: 0; |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | .n-form-item.n-form-item--left-labelled { |
| 363 | .n-form-item-label { |
| 364 | padding-right: 0; |
| 365 | padding-left: 12px; |
| 366 | } |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | .n-input-group { |
| 371 | direction: ltr; |
| 372 | justify-content: flex-end; |
| 373 | } |
| 374 | |
| 375 | .n-slider { |
| 376 | direction: ltr; |
| 377 | } |
| 378 | |
| 379 | .n-transfer { |
| 380 | direction: ltr; |
| 381 | |
| 382 | .n-transfer-list-item { |
| 383 | &.n-transfer-list-item--source { |
| 384 | gap: 8px; |
| 385 | |
| 386 | & > * { |
| 387 | margin-right: 0 !important; |
| 388 | } |
| 389 | } |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | .n-popover { |
| 394 | .n-popover__content { |
| 395 | .n-popconfirm__panel { |
| 396 | .n-popconfirm__body { |
| 397 | .n-popconfirm__icon { |
| 398 | margin-right: 0; |
| 399 | margin-left: 8px; |
| 400 | } |
| 401 | } |
| 402 | .n-popconfirm__action { |
| 403 | gap: 8px; |
| 404 | |
| 405 | .n-button:not(:last-child) { |
| 406 | margin-right: 0px; |
| 407 | } |
| 408 | } |
| 409 | } |
| 410 | } |
| 411 | } |
| 412 | } |