mirror of
https://github.com/clearleft/clearless.git
synced 2026-01-08 21:28:05 -05:00
Minor doc tweak
This commit is contained in:
12
README.md
12
README.md
@@ -94,16 +94,14 @@ Generates a font-size property the font-size in ems.
|
|||||||
* `@context-px-size`: *(Optional)* The font size (in pixels) of the current context. Defaults to the value of `@base-font-size` if not specified.
|
* `@context-px-size`: *(Optional)* The font size (in pixels) of the current context. Defaults to the value of `@base-font-size` if not specified.
|
||||||
|
|
||||||
```css
|
```css
|
||||||
|
/* Usage: */
|
||||||
p {
|
p {
|
||||||
.font-size-ems( 12 );
|
.font-size-ems( 12 );
|
||||||
}
|
}
|
||||||
|
/* Output: */
|
||||||
/*
|
|
||||||
Outputs:
|
|
||||||
p {
|
p {
|
||||||
font-size: 0.75em;
|
font-size: 0.75em;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### .font-size-rems
|
### .font-size-rems
|
||||||
@@ -118,17 +116,15 @@ Calculates the font-size in rems and provides a pixel based fallback for browser
|
|||||||
* `@context-px-size`: *(Optional)* The font size (in pixels) of the current context. Defaults to the value of `@base-font-size` if not specified.
|
* `@context-px-size`: *(Optional)* The font size (in pixels) of the current context. Defaults to the value of `@base-font-size` if not specified.
|
||||||
|
|
||||||
```css
|
```css
|
||||||
|
/* Usage: */
|
||||||
p {
|
p {
|
||||||
.font-size-rems( 12 );
|
.font-size-rems( 12 );
|
||||||
}
|
}
|
||||||
|
/* Output: */
|
||||||
/*
|
|
||||||
Outputs:
|
|
||||||
p {
|
p {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Grids
|
Grids
|
||||||
|
|||||||
Reference in New Issue
Block a user