0.1.5 • Published 6 years ago

pasteque-all v0.1.5

Weekly downloads
-
License
CC-BY-4.0
Repository
-
Last release
6 years ago

🍉 pasteque-all

npm

⚠︎ DEPRECATED: pasteque-all is no longer maintained. Please install pasteque-align instead.

Aligning type to baseline.

Installation

$ npm install pasteque-all

$ npm install pasteque-align

Usage

📖 Read the docs! Coming soon.

@charset "UTF-8";

// Primary typeface specs.
$p-fonteque--primary: (
  "family": ("Name Serif", serif),
  "style": "normal",
  "weight": 400,
  "cap-height": 0.7,
);

// Secondary typeface specs.
$p-fonteque--secondary: (
  "family": ("Name Sans", sans-serif),
  "style": "normal",
  "weight": 400,
  "cap-height": 0.7,
);

@import "path/to/node_modules/pasteque-align/align";

@debug p-fonteque-has-key("primary");
// /path/to/style.scss:21 DEBUG: true

.foo {
  @include p-align-padding-top(16px, "primary");
}

.foo {
  @include p-align-trailer(16px, "secondary");
}

.foo {
  @include p-align-type-to-baseline(16px, "primary");
}

.foo {
  @include p-align-type-horizontal-padding(16px, "secondary");
}
.foo {
  padding-top: 0.65rem;
}

.foo {
  margin-bottom: 0.35rem;
}

.foo + * {
  margin-top: 0;
}

.foo {
  padding-top: 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 2rem;
}

.foo + * {
  margin-top: 0;
}

.foo {
  padding-top: 0.65rem;
  padding-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 2rem;
}

Author

Zaza Agency

Contributors

Aziz Da


CC-BY-4.0

0.1.5

6 years ago

0.1.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago