Skip to content

Commit

Permalink
Base styles, various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Nov 14, 2024
1 parent ee02c44 commit d356de3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
3 changes: 1 addition & 2 deletions apps/rr7/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import config from '@plone/registry';
import './config';

import '@plone/theming/styles/main.css';
// import '@plone/components/dist/basic.css';
import '@plone/slots/main.css';

function useHrefLocal(to: string) {
Expand All @@ -37,7 +36,7 @@ export const links: LinksFunction = () => [
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap',
href: 'https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap',
},
];

Expand Down
6 changes: 3 additions & 3 deletions packages/slots/components/MainFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const Footer = (props: SlotComponentProps) => {
))
: null}
</ul>
<div className="logo">
<Logo content={content} location={location} />
</div>

<Logo content={content} location={location} />

<a className="item powered-by" href="https://plone.org">
Powered by Plone & Python
</a>
Expand Down
11 changes: 11 additions & 0 deletions packages/slots/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,18 @@ figure img {
width: 100%;
}

footer {
margin-top: 100px;
}

.footer {
display: flex;
flex-direction: column;
padding: 2rem 0;
text-align: center;

.logo {
margin: 20px 0;
place-self: center;
}
}
8 changes: 8 additions & 0 deletions packages/theming/styles/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
body {
font-family: var(--basic-font-family, system-ui);
font-size: var(--basic-font-size, 16px);
}

figure {
margin: 0;
}
1 change: 1 addition & 0 deletions packages/theming/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@layer reset, plone-components, layout, addons, theme;
@import 'reset.css';
@import 'base.css';
@import '@plone/components/dist/basic.css';
@import 'layout.css';

0 comments on commit d356de3

Please sign in to comment.