Skip to content

Commit

Permalink
Merge pull request #68 from minedelve/develop
Browse files Browse the repository at this point in the history
v0.4.13
  • Loading branch information
Nycolaide authored Jan 2, 2025
2 parents f39bcbf + 44169c3 commit 225df07
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.13] - 2025-01-02

### Added

- Add new utilities `margin` and `padding` for \*\*-inline-start propertie
- Add new utilities `margin` and `padding` for \*\*-inline-end propertie

## [0.4.12] - 2025-01-01

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mytril",
"description": "Mytril Svelte library component for rapidly building modern websites based on Svelte and Sveltekit",
"version": "0.4.12",
"version": "0.4.13",
"author": {
"name": "Nycolaide",
"email": "[email protected]"
Expand Down
8 changes: 8 additions & 0 deletions src/styles/js/spacing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ const classSpacing = (
css += `${element?.property}-top: ${negative ? '-' : ''}${value};\n`;
css += `${element?.property}-bottom: ${negative ? '-' : ''}${value};\n`;
css += `}\n`;
// inline-start
css += `${formatBreakpoint(breakpoint)}${element?.name}s-${negative ? 'n' : ''}${formatClassName(key)} {\n`;
css += `${element?.property}-inline-start: ${negative ? '-' : ''}${value};\n`;
css += `}\n`;
// inline-end
css += `${formatBreakpoint(breakpoint)}${element?.name}e-${negative ? 'n' : ''}${formatClassName(key)} {\n`;
css += `${element?.property}-inline-end: ${negative ? '-' : ''}${value};\n`;
css += `}\n`;
// all
css += `${formatBreakpoint(breakpoint)}${element?.name}a-${negative ? 'n' : ''}${formatClassName(key)} {\n`;
css += `${element?.property}: ${negative ? '-' : ''}${value};\n`;
Expand Down

0 comments on commit 225df07

Please sign in to comment.