Tokens for ScrollPanel
parent
83eab20745
commit
cda6f133cc
|
@ -11,9 +11,9 @@ const theme = ({ dt }) => `
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-scrollpanel-content {
|
.p-scrollpanel-content {
|
||||||
height: calc(100% + 18px);
|
height: calc(100% + calc(2 * ${dt('scrollpanel.bar.size')}));
|
||||||
width: calc(100% + 18px);
|
width: calc(100% + calc(2 * ${dt('scrollpanel.bar.size')}));
|
||||||
padding: 0 18px 18px 0;
|
padding: 0 calc(2 * ${dt('scrollpanel.bar.size')}) calc(2 * ${dt('scrollpanel.bar.size')}) 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -26,7 +26,7 @@ const theme = ({ dt }) => `
|
||||||
|
|
||||||
.p-scrollpanel-bar {
|
.p-scrollpanel-bar {
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 3px;
|
border-radius: ${dt('scrollpanel.bar.border.radius')};
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
@ -38,17 +38,18 @@ const theme = ({ dt }) => `
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-scrollpanel-bar:focus-visible {
|
.p-scrollpanel-bar:focus-visible {
|
||||||
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
box-shadow: ${dt('scrollpanel.bar.focus.ring.shadow')};
|
||||||
outline-offset: ${dt('focus.ring.offset')};
|
outline: ${dt('scrollpanel.barfocus.ring.width')} ${dt('scrollpanel.bar.focus.ring.style')} ${dt('scrollpanel.bar.focus.ring.color')};
|
||||||
|
outline-offset: ${dt('scrollpanel.barfocus.ring.offset')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-scrollpanel-bar-y {
|
.p-scrollpanel-bar-y {
|
||||||
width: 9px;
|
width: ${dt('scrollpanel.bar.size')});
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-scrollpanel-bar-x {
|
.p-scrollpanel-bar-x {
|
||||||
height: 9px;
|
height: ${dt('scrollpanel.bar.size')});
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,17 @@
|
||||||
export default {
|
export default {
|
||||||
|
root: {
|
||||||
|
bar: {
|
||||||
|
size: '9px',
|
||||||
|
borderRadius: '{border.radius.sm}',
|
||||||
|
focusRing: {
|
||||||
|
width: '{focus.ring.width}',
|
||||||
|
style: '{focus.ring.style}',
|
||||||
|
color: '{focus.ring.color}',
|
||||||
|
offset: '{focus.ring.offset}',
|
||||||
|
shadow: '{focus.ring.shadow}'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
light: {
|
light: {
|
||||||
bar: {
|
bar: {
|
||||||
|
|
|
@ -1,13 +1,26 @@
|
||||||
export default {
|
export default {
|
||||||
|
root: {
|
||||||
|
bar: {
|
||||||
|
size: '9px',
|
||||||
|
borderRadius: '{border.radius.xs}',
|
||||||
|
focusRing: {
|
||||||
|
width: '{focus.ring.width}',
|
||||||
|
style: '{focus.ring.style}',
|
||||||
|
color: '{focus.ring.color}',
|
||||||
|
offset: '{focus.ring.offset}',
|
||||||
|
shadow: '{focus.ring.shadow}'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
light: {
|
light: {
|
||||||
bar: {
|
bar: {
|
||||||
background: '{surface.100}'
|
background: '{surface.200}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
bar: {
|
bar: {
|
||||||
background: '{surface.800}'
|
background: '{surface.700}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue