Skip to content

Commit

Permalink
feat: add utils and improve styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmoore17 committed Dec 30, 2023
1 parent 2a65b76 commit 6b7f724
Show file tree
Hide file tree
Showing 11 changed files with 8,286 additions and 56 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-forks-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pierogis/utensils": patch
---

add words utils
9 changes: 7 additions & 2 deletions packages/utensils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,19 @@
"type": "module",
"files": [
"dist",
"./dist/styles/*"
"./dist/styles/*",
"./dist/utils/*"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
},
"./styles/*": "./dist/styles/*"
"./styles/*": "./dist/styles/*",
"./utils/*": {
"types": "./dist/utils/*/index.d.ts",
"import": "./dist/utils/*/index.js"
}
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
1 change: 0 additions & 1 deletion packages/utensils/src/lib/components/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<style>
.card {
padding: 12px;
max-width: 90vw;
height: 100%;
display: flex;
Expand Down
3 changes: 0 additions & 3 deletions packages/utensils/src/lib/components/Layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,5 @@
align-content: center;
justify-content: center;
flex-wrap: wrap;
padding: 1rem;
padding-top: 0;
}
</style>
108 changes: 58 additions & 50 deletions packages/utensils/src/lib/styles/pierogis.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ body {
font-size: 16px;
}

@media screen and (max-width: 768px) {
body {
font-size: calc(15px + 0.25vw);
}
}

/* end default styles */

/* global css class/element style */
Expand Down Expand Up @@ -224,48 +218,6 @@ textarea {
font-weight: 400;
}

h6 {
font-size: 0.875em;
/* 14px */
line-height: 1.25em;
/* 20px */
}

h5 {
font-size: 1em;
/* 16px */
line-height: 1.5em;
/* 24px */
}

h4 {
font-size: 1.125em;
/* 18px */
line-height: 1.75em;
/* 28px */
}

h3 {
font-size: 1.25em;
/* 20px */
line-height: 1.75em;
/* 28px */
}

h2 {
font-size: 1.5em;
/* 24px */
line-height: 2em;
/* 32px */
}

h1 {
font-size: 1.875em;
/* 30px */
line-height: 2.25em;
/* 36px */
}


/* end global css class/element style */

Expand All @@ -291,14 +243,16 @@ header {
}

nav {
padding-top: 16px;
padding-bottom: 24px;
padding-top: 8px;
padding-bottom: 8px;

background-color: transparent;

display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
align-items: center;

text-align: center;
}
Expand All @@ -319,4 +273,58 @@ footer {

text-align: center;
border-top: 2px dashed var(--text-color-st);
}

blockquote {
background-color: var(--secondary-color-st);
padding: 1em;
border-radius: 8px;
width: fit-content;
font-family: Courier, monospace;
}


article {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 16px;
margin: 1em;
}

section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

article a {
text-decoration: underline;
color: var(--link-color);
}

article img {
border-radius: 16px;
object-fit: contain;
max-width: 100%;
max-height: 100%;
}

article * {
line-height: 1.5em;
}

article h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0.5em 0;
}

ul {
margin: 0;
}
Loading

0 comments on commit 6b7f724

Please sign in to comment.