mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
chore(layout): shorten cssr
This commit is contained in:
parent
82479c4c58
commit
b56d80a2f5
@ -71,40 +71,28 @@ export default c([
|
||||
}),
|
||||
c('&:hover', [
|
||||
cE('top', {
|
||||
raw: `
|
||||
transform: rotate(12deg) scale(1.15) translateY(-2px);
|
||||
`
|
||||
transform: 'rotate(12deg) scale(1.15) translateY(-2px)'
|
||||
}),
|
||||
cE('bottom', {
|
||||
raw: `
|
||||
transform: rotate(-12deg) scale(1.15) translateY(2px);
|
||||
`
|
||||
transform: 'rotate(-12deg) scale(1.15) translateY(2px)'
|
||||
})
|
||||
]),
|
||||
cM('collapsed', [
|
||||
c('&:hover', [
|
||||
cE('top', {
|
||||
raw: `
|
||||
transform: rotate(-12deg) scale(1.15) translateY(-2px);
|
||||
`
|
||||
transform: 'rotate(-12deg) scale(1.15) translateY(-2px)'
|
||||
}),
|
||||
cE('bottom', {
|
||||
raw: `
|
||||
transform: rotate(12deg) scale(1.15) translateY(2px);
|
||||
`
|
||||
transform: 'rotate(12deg) scale(1.15) translateY(2px)'
|
||||
})
|
||||
])
|
||||
]),
|
||||
cE('top, bottom', {
|
||||
raw: `
|
||||
background-color: ${siderToggleBarColor}
|
||||
`
|
||||
backgroundColor: siderToggleBarColor
|
||||
}),
|
||||
c('&:hover', [
|
||||
cE('top, bottom', {
|
||||
raw: `
|
||||
background-color: ${siderToggleBarColorHover}
|
||||
`
|
||||
backgroundColor: siderToggleBarColorHover
|
||||
})
|
||||
])
|
||||
]),
|
||||
@ -126,16 +114,12 @@ export default c([
|
||||
}),
|
||||
cM('show-content', [
|
||||
cE('content', {
|
||||
raw: `
|
||||
opacity: 1;
|
||||
`
|
||||
opacity: 1
|
||||
})
|
||||
]),
|
||||
cM('collapsed', [
|
||||
cB('layout-toggle-button', {
|
||||
raw: `
|
||||
transform: translateX(50%) translateY(-50%) rotate(180deg);
|
||||
`
|
||||
transform: 'translateX(50%) translateY(-50%) rotate(180deg)'
|
||||
})
|
||||
]),
|
||||
cM('absolute-positioned', {
|
||||
@ -158,9 +142,7 @@ export default c([
|
||||
]),
|
||||
cM('bordered', [
|
||||
cE('border', {
|
||||
raw: `
|
||||
background-color: ${siderBorderColor};
|
||||
`
|
||||
backgroundColor: siderBorderColor
|
||||
})
|
||||
])
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user