Skip to content

Commit

Permalink
margin padding 0 for all
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Dec 5, 2023
1 parent c318985 commit 1f87688
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
3 changes: 0 additions & 3 deletions bau-ui/examples/bau-storybook/src/components/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ export default function (context) {
padding: 0 1rem 1rem 1rem;
& h1 {
font-size: 56px;
line-height: 2rem;
}
& h2 {
font-size: 48px;
line-height: 1.8rem;
}
& p {
font-size: 24px;
line-height: 1.8rem;
color: var(--color-emphasis-900);
}
`;
Expand Down
1 change: 1 addition & 0 deletions bau-ui/examples/bau-storybook/src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default function ({ tr, bau, css }) {
align-items: center;
gap: 1rem;
margin-top: 4rem;
padding: 1rem;
border-top: 1px solid var(--color-emphasis-200);
color: var(--color-content-secondary);
`,
Expand Down
2 changes: 1 addition & 1 deletion bau-ui/examples/bau-storybook/src/pages/gallery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default (context: Context) => {
flex-wrap: wrap;
gap: 1rem;
list-style: none;
padding: 0;
padding: 1rem;
`,
},
components.map(({ name }) =>
Expand Down
2 changes: 0 additions & 2 deletions bau-ui/form/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ export default function (context, options = {}) {
gap: 1rem;
padding: 1rem;
min-width: 350px;
& > header {
& h1 {
line-height: 0;
font-size: 1.3rem;
}
}
Expand Down
4 changes: 4 additions & 0 deletions bau-ui/globalStyle/globalStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ export default function globalStyle(
{ colorPalette = ColorPaletteDefault } = {}
) {
createGlobalStyles`
* {
margin: 0;
padding: 0;
}
:root {
--color-scheme: light;
--contrast-background-value: 90%;
Expand Down
2 changes: 2 additions & 0 deletions bau-ui/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export default function (context, options = {}) {
).join("\n");

const className = css`
margin: auto;
padding: 1rem;
box-shadow: var(--shadow-s);
background-color: var(--background-color);
border-radius: var(--global-radius);
Expand Down
1 change: 1 addition & 0 deletions bau-ui/paper/paper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default function (context, options = {}) {
border: 1px solid transparent;
height: fit-content;
border-radius: var(--global-radius);
margin: 1rem 0;
&.sm {
box-shadow: var(--shadow-s);
background-image: linear-gradient(
Expand Down
2 changes: 0 additions & 2 deletions examples/gccd/src/components/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ export default function (context: Context) {
& h1 {
font-weight: 700;
font-size: 1.3rem;
line-height: 1.4rem;
}
& h2 {
font-weight: 600;
font-size: 1.2rem;
line-height: 1.3rem;
}
& > header {
display: flex;
Expand Down
1 change: 0 additions & 1 deletion examples/gccd/src/layoutDefault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const layoutDefault = (context: Context) => {
{
class: css`
grid-area: main;
margin: 1rem;
display: grid;
overflow-y: scroll;
`,
Expand Down
1 change: 1 addition & 0 deletions examples/gccd/src/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const createStyles = (context: Context) => {
}
fieldset {
border: 1px solid var(--color-emphasis-200);
padding: 0.5rem;
}
`;
};

0 comments on commit 1f87688

Please sign in to comment.