mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5667 - Remove base option from theme config
This commit is contained in:
parent
6d688ef675
commit
0979dde96d
438 changed files with 10872 additions and 11957 deletions
|
@ -1,5 +1,78 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const theme = ({ dt }) => `
|
||||
.p-tabmenu {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.p-tabmenu-tablist {
|
||||
display: flex;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
flex: 1 1 auto;
|
||||
background: ${dt('tabmenu.nav.background')};
|
||||
border: 1px solid ${dt('tabmenu.nav.border.color')};
|
||||
border-width: 0 0 1px 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.p-tabmenu-item-link {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-style: solid;
|
||||
border-width: 0 0 1px 0;
|
||||
border-color: transparent transparent ${dt('tabmenu.header.border.color')} transparent;
|
||||
color: ${dt('tabmenu.header.color')};
|
||||
padding: 1rem 1.125rem;
|
||||
font-weight: 600;
|
||||
border-top-right-radius: ${dt('rounded.base')};
|
||||
border-top-left-radius: ${dt('rounded.base')};
|
||||
transition: color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
||||
margin: 0 0 -1px 0;
|
||||
outline-color: transparent;
|
||||
}
|
||||
|
||||
.p-tabmenu-item-link:focus-visible {
|
||||
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
.p-tabmenu-item-icon {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.p-tabmenu-item-label {
|
||||
line-height: 1;
|
||||
}
|
||||
.p-tabmenu-item:not(.p-tabmenu-item-active):not(.p-disabled):hover .p-tabmenu-item-link {
|
||||
color: ${dt('tabmenu.header.hover.color')};
|
||||
}
|
||||
|
||||
.p-tabmenu-item-active .p-tabmenu-item-link {
|
||||
color: ${dt('tabmenu.header.active.border.color')};
|
||||
}
|
||||
|
||||
.p-tabmenu-ink-bar {
|
||||
z-index: 1;
|
||||
display: block;
|
||||
position: absolute;
|
||||
bottom: -1px;
|
||||
height: 1px;
|
||||
background-color: ${dt('tabmenu.header.active.border.color')};
|
||||
transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
|
||||
}
|
||||
|
||||
.p-tabmenu::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
`;
|
||||
|
||||
const classes = {
|
||||
root: 'p-tabmenu p-component',
|
||||
tablist: 'p-tabmenu-tablist',
|
||||
|
@ -18,5 +91,6 @@ const classes = {
|
|||
|
||||
export default BaseStyle.extend({
|
||||
name: 'tabmenu',
|
||||
theme,
|
||||
classes
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue