mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Refactored tokens of Misc
This commit is contained in:
parent
4bdc38e892
commit
a20948c218
11 changed files with 39 additions and 126 deletions
|
@ -63,7 +63,7 @@ const theme = ({ dt }) => `
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-avatar-group .p-avatar {
|
.p-avatar-group .p-avatar {
|
||||||
border: 2px solid ${dt('avatar.grouped.border.color')};
|
border: 2px solid ${dt('avatar.group.border.color')};
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ const theme = ({ dt }) => `
|
||||||
.p-progressspinner-circle {
|
.p-progressspinner-circle {
|
||||||
stroke-dasharray: 89, 200;
|
stroke-dasharray: 89, 200;
|
||||||
stroke-dashoffset: 0;
|
stroke-dashoffset: 0;
|
||||||
stroke: ${dt('progressspinner.color-1')};
|
stroke: ${dt('progressspinner.color.1')};
|
||||||
animation: p-progressspinner-dash 1.5s ease-in-out infinite, p-progressspinner-color 6s ease-in-out infinite;
|
animation: p-progressspinner-dash 1.5s ease-in-out infinite, p-progressspinner-color 6s ease-in-out infinite;
|
||||||
stroke-linecap: round;
|
stroke-linecap: round;
|
||||||
}
|
}
|
||||||
|
@ -58,17 +58,17 @@ const theme = ({ dt }) => `
|
||||||
@keyframes p-progressspinner-color {
|
@keyframes p-progressspinner-color {
|
||||||
100%,
|
100%,
|
||||||
0% {
|
0% {
|
||||||
stroke: ${dt('progressspinner.color-1')};
|
stroke: ${dt('progressspinner.color.1')};
|
||||||
}
|
}
|
||||||
40% {
|
40% {
|
||||||
stroke: ${dt('progressspinner.color-2')};
|
stroke: ${dt('progressspinner.color.2')};
|
||||||
}
|
}
|
||||||
66% {
|
66% {
|
||||||
stroke: ${dt('progressspinner.color-3')};
|
stroke: ${dt('progressspinner.color.3')};
|
||||||
}
|
}
|
||||||
80%,
|
80%,
|
||||||
90% {
|
90% {
|
||||||
stroke: ${dt('progressspinner.color-4')};
|
stroke: ${dt('progressspinner.color.4')};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -5,22 +5,6 @@ const theme = ({ dt }) => `
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 20px;
|
bottom: 20px;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
background: ${dt('scrolltop.background')};
|
|
||||||
color: ${dt('scrolltop.color')};
|
|
||||||
}
|
|
||||||
|
|
||||||
.p-scrolltop:hover {
|
|
||||||
background: ${dt('scrolltop.hover.background')};
|
|
||||||
color: ${dt('scrolltop.hover.text')};
|
|
||||||
}
|
|
||||||
|
|
||||||
.p-scrolltop-icon {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
width: 1.5rem;
|
|
||||||
height: 1.5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-scrolltop-sticky {
|
.p-scrolltop-sticky {
|
||||||
|
@ -46,19 +30,10 @@ const theme = ({ dt }) => `
|
||||||
.p-scrolltop-leave-active {
|
.p-scrolltop-leave-active {
|
||||||
transition: opacity 0.15s;
|
transition: opacity 0.15s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-scrolltop {
|
|
||||||
width: 3rem;
|
|
||||||
height: 3rem;
|
|
||||||
border-radius: 50%;
|
|
||||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
||||||
transition: background ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
|
||||||
outline-color: transparent;
|
|
||||||
}
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const classes = {
|
const classes = {
|
||||||
root: ({ props }) => ['p-scrolltop p-link p-component', { 'p-scrolltop-sticky': props.target !== 'window' }],
|
root: ({ props }) => ['p-scrolltop', { 'p-scrolltop-sticky': props.target !== 'window' }],
|
||||||
icon: 'p-scrolltop-icon'
|
icon: 'p-scrolltop-icon'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,8 @@
|
||||||
export default {
|
export default {
|
||||||
colorScheme: {
|
|
||||||
light: {
|
|
||||||
root: {
|
root: {
|
||||||
background: '{surface.200}'
|
background: '{content.border.color}'
|
||||||
},
|
},
|
||||||
grouped: {
|
group: {
|
||||||
borderColor: '{surface.0}'
|
borderColor: '{content.background}'
|
||||||
}
|
|
||||||
},
|
|
||||||
dark: {
|
|
||||||
root: {
|
|
||||||
background: '{surface.700}'
|
|
||||||
},
|
|
||||||
grouped: {
|
|
||||||
borderColor: '{surface.900}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@ export default {
|
||||||
light: {
|
light: {
|
||||||
primary: {
|
primary: {
|
||||||
background: '{primary.color}',
|
background: '{primary.color}',
|
||||||
color: '{primary.inverseColor}'
|
color: '{primary.contrast.color}'
|
||||||
},
|
},
|
||||||
secondary: {
|
secondary: {
|
||||||
background: '{surface.100}',
|
background: '{surface.100}',
|
||||||
|
@ -33,7 +33,7 @@ export default {
|
||||||
dark: {
|
dark: {
|
||||||
primary: {
|
primary: {
|
||||||
background: '{primary.color}',
|
background: '{primary.color}',
|
||||||
color: '{primary.inverseColor}'
|
color: '{primary.contrast.color}'
|
||||||
},
|
},
|
||||||
secondary: {
|
secondary: {
|
||||||
background: '{surface.800}',
|
background: '{surface.800}',
|
||||||
|
|
|
@ -155,7 +155,7 @@ export default {
|
||||||
},
|
},
|
||||||
primary: {
|
primary: {
|
||||||
color: '{primary.500}',
|
color: '{primary.500}',
|
||||||
inverseColor: '#ffffff',
|
contrastColor: '#ffffff',
|
||||||
hoverColor: '{primary.600}',
|
hoverColor: '{primary.600}',
|
||||||
activeColor: '{primary.700}'
|
activeColor: '{primary.700}'
|
||||||
},
|
},
|
||||||
|
@ -214,7 +214,7 @@ export default {
|
||||||
},
|
},
|
||||||
primary: {
|
primary: {
|
||||||
color: '{primary.400}',
|
color: '{primary.400}',
|
||||||
inverseColor: '{surface.900}',
|
contrastColor: '{surface.900}',
|
||||||
hoverColor: '{primary.300}',
|
hoverColor: '{primary.300}',
|
||||||
activeColor: '{primary.200}'
|
activeColor: '{primary.200}'
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,14 +1,5 @@
|
||||||
export default {
|
export default {
|
||||||
colorScheme: {
|
|
||||||
light: {
|
|
||||||
meters: {
|
meters: {
|
||||||
background: '{surface.200}'
|
background: '{content.border.color}'
|
||||||
}
|
|
||||||
},
|
|
||||||
dark: {
|
|
||||||
meters: {
|
|
||||||
background: '{surface.700}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
export default {
|
export default {
|
||||||
colorScheme: {
|
|
||||||
light: {
|
|
||||||
root: {
|
root: {
|
||||||
background: '{surface.200}'
|
background: '{content.border.color}'
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
background: '{primary.color}'
|
background: '{primary.color}'
|
||||||
|
@ -10,17 +8,4 @@ export default {
|
||||||
label: {
|
label: {
|
||||||
color: '{primary.inverse.color}'
|
color: '{primary.inverse.color}'
|
||||||
}
|
}
|
||||||
},
|
|
||||||
dark: {
|
|
||||||
root: {
|
|
||||||
background: '{surface.700}'
|
|
||||||
},
|
|
||||||
value: {
|
|
||||||
background: '{primary.color}'
|
|
||||||
},
|
|
||||||
label: {
|
|
||||||
color: '{primary.inverse.color}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,18 +2,18 @@ export default {
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
light: {
|
light: {
|
||||||
root: {
|
root: {
|
||||||
'color-1': '{red.500}',
|
'color.1': '{red.500}',
|
||||||
'color-2': '{blue.500}',
|
'color.2': '{blue.500}',
|
||||||
'color-3': '{green.500}',
|
'color.3': '{green.500}',
|
||||||
'color-4': '{yellow.500}'
|
'color.4': '{yellow.500}'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
root: {
|
root: {
|
||||||
'color-1': '{red.400}',
|
'color.1': '{red.400}',
|
||||||
'color-2': '{blue.400}',
|
'color.2': '{blue.400}',
|
||||||
'color-3': '{green.400}',
|
'color.3': '{green.400}',
|
||||||
'color-4': '{yellow.400}'
|
'color.4': '{yellow.400}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1 @@
|
||||||
export default {
|
export default {};
|
||||||
colorScheme: {
|
|
||||||
light: {
|
|
||||||
root: {
|
|
||||||
background: '{surface.800}',
|
|
||||||
hoverBackground: '{surface.700}',
|
|
||||||
color: '{surface.100}',
|
|
||||||
hoverColor: '{surface.0}'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
dark: {
|
|
||||||
root: {
|
|
||||||
background: '{surface.800}',
|
|
||||||
hoverBackground: '{surface.700}',
|
|
||||||
color: '{surface.300}',
|
|
||||||
hoverColor: '{surface.200}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,14 +1,7 @@
|
||||||
export default {
|
export default {
|
||||||
colorScheme: {
|
root: {
|
||||||
light: {
|
background: '{form.field.background}',
|
||||||
background: '{surface.0}',
|
borderColor: '{form.field.border.color}',
|
||||||
borderColor: '{surface.300}',
|
color: '{form.field.color}'
|
||||||
color: '{surface.700}'
|
|
||||||
},
|
|
||||||
dark: {
|
|
||||||
background: '{surface.950}',
|
|
||||||
borderColor: '{surface.700}',
|
|
||||||
color: '{surface.0}'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue