mirror of
https://github.com/langgenius/dify.git
synced 2025-11-22 16:06:53 +00:00
Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> Co-authored-by: jyong <718720800@qq.com> Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com> Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com> Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com> Co-authored-by: quicksand <quicksandzn@gmail.com> Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com> Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: Hanqing Zhao <sherry9277@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Harry <xh001x@hotmail.com>
81 lines
1.6 KiB
CSS
81 lines
1.6 KiB
CSS
@tailwind components;
|
|
|
|
@layer components {
|
|
.segmented-control {
|
|
@apply flex items-center bg-components-segmented-control-bg-normal gap-x-px
|
|
}
|
|
|
|
.segmented-control-regular,
|
|
.segmented-control-large {
|
|
@apply rounded-lg
|
|
}
|
|
|
|
.segmented-control-large.padding,
|
|
.segmented-control-regular.padding {
|
|
@apply p-0.5
|
|
}
|
|
|
|
.segmented-control-small {
|
|
@apply rounded-md
|
|
}
|
|
|
|
.segmented-control-small.padding {
|
|
@apply p-px
|
|
}
|
|
|
|
.no-padding {
|
|
@apply border-[0.5px] border-divider-subtle
|
|
}
|
|
|
|
.segmented-control-item {
|
|
@apply flex items-center justify-center relative border-[0.5px] border-transparent
|
|
}
|
|
|
|
.segmented-control-item-regular {
|
|
@apply px-2 h-7 gap-x-0.5 rounded-lg
|
|
}
|
|
|
|
.segmented-control-item-small {
|
|
@apply p-px h-[22px] rounded-md
|
|
}
|
|
|
|
.segmented-control-item-large {
|
|
@apply px-2.5 h-8 gap-x-0.5 rounded-lg
|
|
}
|
|
|
|
.segmented-control-item-disabled {
|
|
@apply cursor-not-allowed text-text-disabled
|
|
}
|
|
|
|
.default {
|
|
@apply hover:bg-state-base-hover text-text-tertiary hover:text-text-secondary
|
|
}
|
|
|
|
.active {
|
|
@apply border-components-segmented-control-item-active-border bg-components-segmented-control-item-active-bg shadow-xs shadow-shadow-shadow-3 text-text-secondary
|
|
}
|
|
|
|
.disabled {
|
|
@apply cursor-not-allowed text-text-disabled hover:text-text-disabled bg-transparent hover:bg-transparent
|
|
}
|
|
|
|
.active.accent {
|
|
@apply text-text-accent
|
|
}
|
|
|
|
.active.accent-light {
|
|
@apply text-text-accent-light-mode-only
|
|
}
|
|
|
|
.item-text-regular {
|
|
@apply p-0.5
|
|
}
|
|
|
|
.item-text-small {
|
|
@apply p-0.5 pr-1
|
|
}
|
|
|
|
.item-text-large {
|
|
@apply px-0.5
|
|
}
|
|
} |