@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
214 lines (175 loc) • 4.26 kB
JavaScript
import { createStaticStyles, responsive } from "antd-style";
//#region src/Footer/style.ts
const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => {
const prefix = `rc-footer`;
const baseFooterStyles = css$1`
font-size: 14px;
line-height: 1.5;
color: ${cssVar$1.colorTextSecondary};
background-color: ${cssVar$1.colorBgLayout};
&.${prefix} {
a {
color: ${cssVar$1.colorTextTertiary};
text-decoration: none;
transition: all 0.3s;
&:hover {
color: ${cssVar$1.colorLinkHover};
}
}
}
.${prefix} {
&-columns {
display: flex;
justify-content: space-around;
}
&-column {
text-align: start;
h2 {
position: relative;
margin-block: 0;
margin-inline: auto;
font-size: 16px;
font-weight: 500;
color: ${cssVar$1.colorText};
}
&-icon {
position: relative;
inset-block-start: -1px;
display: inline-block;
width: 22px;
margin-inline-end: 0.5em;
text-align: center;
vertical-align: middle;
> span,
> svg,
img {
display: block;
width: 100%;
}
}
}
&-item {
margin-block: 12px;
margin-inline: 0;
&-icon {
position: relative;
inset-block-start: -1px;
display: inline-block;
width: 16px;
margin-inline-end: 0.4em;
text-align: center;
vertical-align: middle;
> span,
> svg,
img {
display: block;
width: 100%;
}
}
&-separator {
margin-block: 0;
margin-inline: 0.3em;
}
}
&-bottom {
color: ${cssVar$1.colorTextDescription};
&-container {
width: 100%;
max-width: var(--footer-content-max-width, 960px);
margin-block: 0;
margin-inline: auto;
padding-block: 16px;
padding-inline: 0;
line-height: 32px;
text-align: center;
}
}
&-light {
color: rgba(0, 0, 0, 85%);
background-color: transparent;
h2,
a {
color: rgba(0, 0, 0, 85%);
}
}
&-light &-bottom-container {
border-block-start-color: #e8e8e8;
}
&-light &-item-separator,
&-light &-item-description {
color: rgba(0, 0, 0, 45%);
}
}
`;
return {
footer: css$1`
${baseFooterStyles};
.${prefix}-container {
width: 100%;
max-width: var(--footer-content-max-width, 960px);
margin: auto;
padding-block: 60px 20px;
padding-inline: 0;
}
${responsive.sm} {
.${prefix} {
&-container {
padding-block: 40px;
padding-inline: 0;
}
&-columns {
display: block;
}
&-column {
display: block;
margin-block-end: 40px;
text-align: center;
&:last-child {
margin-block-end: 0;
}
}
}
}
`,
footerEmpty: css$1`
${baseFooterStyles};
.${prefix}-container {
width: 100%;
max-width: var(--footer-content-max-width, 960px);
margin: auto;
padding: 0;
}
${responsive.sm} {
.${prefix} {
&-container {
padding: 0;
}
&-columns {
display: block;
}
&-column {
display: block;
margin-block-end: 40px;
text-align: center;
&:last-child {
margin-block-end: 0;
}
}
}
}
`,
root: css$1`
grid-area: footer;
align-self: stretch;
border-block-start: 1px solid ${cssVar$1.colorSplit};
color: ${cssVar$1.colorTextDescription};
${responsive.sm} {
flex-direction: column;
border: none;
}
`
};
});
//#endregion
export { styles };
//# sourceMappingURL=style.mjs.map