|
@@ -155,7 +155,7 @@ const StyledAccordionDetails = styled(AccordionDetails)`
|
|
|
${(props) => {
|
|
${(props) => {
|
|
|
let olStyle=props.olStyle;
|
|
let olStyle=props.olStyle;
|
|
|
if (olStyle==null)return ``;
|
|
if (olStyle==null)return ``;
|
|
|
- const {button,icon,text,radius}=olStyle;
|
|
|
|
|
|
|
+ const {button,icon,text,radius,gap,fontsize,weight}=olStyle;
|
|
|
let btnN=getColor(button,COLOR_TYPE_NOMAL);
|
|
let btnN=getColor(button,COLOR_TYPE_NOMAL);
|
|
|
let btnH=getColor(button,COLOR_TYPE_HONER);
|
|
let btnH=getColor(button,COLOR_TYPE_HONER);
|
|
|
let btnA=getColor(button,COLOR_TYPE_ACTIVE);
|
|
let btnA=getColor(button,COLOR_TYPE_ACTIVE);
|
|
@@ -167,7 +167,10 @@ const StyledAccordionDetails = styled(AccordionDetails)`
|
|
|
let textA=getColor(text,COLOR_TYPE_ACTIVE);
|
|
let textA=getColor(text,COLOR_TYPE_ACTIVE);
|
|
|
return `
|
|
return `
|
|
|
a {
|
|
a {
|
|
|
|
|
+ gap:${gap};
|
|
|
color:${textN};
|
|
color:${textN};
|
|
|
|
|
+ font-size:${fontsize};
|
|
|
|
|
+ font-weight:${weight};
|
|
|
border-radius:${radius} !important;
|
|
border-radius:${radius} !important;
|
|
|
.icon {
|
|
.icon {
|
|
|
fill: ${icoN};
|
|
fill: ${icoN};
|
|
@@ -269,7 +272,7 @@ const SingleLink=styled.div`
|
|
|
${(props) => {
|
|
${(props) => {
|
|
|
let olStyle=props.olStyle;
|
|
let olStyle=props.olStyle;
|
|
|
if (olStyle==null)return ``;
|
|
if (olStyle==null)return ``;
|
|
|
- const {button,icon,text,radius,direction}=olStyle;
|
|
|
|
|
|
|
+ const {button,icon,text,radius,direction,gap,fontsize,weight}=olStyle;
|
|
|
let btnN=getColor(button,COLOR_TYPE_NOMAL);
|
|
let btnN=getColor(button,COLOR_TYPE_NOMAL);
|
|
|
let btnH=getColor(button,COLOR_TYPE_HONER);
|
|
let btnH=getColor(button,COLOR_TYPE_HONER);
|
|
|
let btnA=getColor(button,COLOR_TYPE_ACTIVE);
|
|
let btnA=getColor(button,COLOR_TYPE_ACTIVE);
|
|
@@ -280,12 +283,14 @@ const SingleLink=styled.div`
|
|
|
let textH=getColor(text,COLOR_TYPE_HONER);
|
|
let textH=getColor(text,COLOR_TYPE_HONER);
|
|
|
let textA=getColor(text,COLOR_TYPE_ACTIVE);
|
|
let textA=getColor(text,COLOR_TYPE_ACTIVE);
|
|
|
let flex_d=direction==="horizontal"?"row":"column";
|
|
let flex_d=direction==="horizontal"?"row":"column";
|
|
|
- let gap=flex_d=="row"?"12px":"6px";
|
|
|
|
|
|
|
+ // let gap=flex_d=="row"?"12px":"6px";
|
|
|
return `
|
|
return `
|
|
|
border-radius: ${radius} !important;
|
|
border-radius: ${radius} !important;
|
|
|
a {
|
|
a {
|
|
|
flex-direction: ${flex_d};
|
|
flex-direction: ${flex_d};
|
|
|
gap:${gap};
|
|
gap:${gap};
|
|
|
|
|
+ font-size:${fontsize};
|
|
|
|
|
+ font-weight:${weight};
|
|
|
border-radius: ${radius} !important;
|
|
border-radius: ${radius} !important;
|
|
|
background-color: ${btnN} !important;
|
|
background-color: ${btnN} !important;
|
|
|
color:${textN};
|
|
color:${textN};
|
|
@@ -341,7 +346,7 @@ const Link = styled.span`
|
|
|
${(props) => {
|
|
${(props) => {
|
|
|
let olStyle=props.olStyle;
|
|
let olStyle=props.olStyle;
|
|
|
if (olStyle==null)return ``;
|
|
if (olStyle==null)return ``;
|
|
|
- const {icon,text}=olStyle;
|
|
|
|
|
|
|
+ const {icon,text,gap,fontsize,weight}=olStyle;
|
|
|
let icoN=getColor(icon,COLOR_TYPE_NOMAL);
|
|
let icoN=getColor(icon,COLOR_TYPE_NOMAL);
|
|
|
let icoH=getColor(icon,COLOR_TYPE_HONER);
|
|
let icoH=getColor(icon,COLOR_TYPE_HONER);
|
|
|
let icoA=getColor(icon,COLOR_TYPE_ACTIVE);
|
|
let icoA=getColor(icon,COLOR_TYPE_ACTIVE);
|
|
@@ -350,6 +355,9 @@ const Link = styled.span`
|
|
|
let textA=getColor(text,COLOR_TYPE_ACTIVE);
|
|
let textA=getColor(text,COLOR_TYPE_ACTIVE);
|
|
|
return `
|
|
return `
|
|
|
color:${textN};
|
|
color:${textN};
|
|
|
|
|
+ gap:${gap};
|
|
|
|
|
+ font-size:${fontsize};
|
|
|
|
|
+ font-weight:${weight};
|
|
|
& .icon {
|
|
& .icon {
|
|
|
fill:${icoN};
|
|
fill:${icoN};
|
|
|
}
|
|
}
|