forked from Compass/compass
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] Update the docs for the text module
- Loading branch information
1 parent
2754f2d
commit e13026b
Showing
5 changed files
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ classnames: | |
--- | ||
- render 'reference' do | ||
%p | ||
Lorem ipsum dolor sit amet. | ||
Utilities for managing text. |
10 changes: 7 additions & 3 deletions
10
doc-src/content/reference/compass/utilities/text/ellipsis.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
--- | ||
title: Compass Ellipsis | ||
title: Truncating Text with Ellipses | ||
crumb: Ellipsis | ||
framework: compass | ||
stylesheet: compass/utilities/text/_ellipsis.scss | ||
layout: core | ||
nav_stylesheet: compass/_utilities.scss | ||
meta_description: Text truncation with ellipsis. | ||
classnames: | ||
- reference | ||
- core | ||
- utilities | ||
--- | ||
- render 'reference' do | ||
%p | ||
Lorem ipsum dolor sit amet. | ||
:markdown | ||
There is an XML file that must be installed into your stylesheet | ||
directory in order for this utility to work correctly. To install it: | ||
|
||
compass install compass/ellipsis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
doc-src/content/reference/compass/utilities/text/replacement.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
--- | ||
title: Compass Replacement | ||
crumb: Replacement | ||
title: Compass Text Replacement | ||
crumb: Text Replacement | ||
framework: compass | ||
stylesheet: compass/utilities/text/_replacement.scss | ||
layout: core | ||
meta_description: Replace text with images. | ||
nav_stylesheet: compass/_utilities.scss | ||
classnames: | ||
- reference | ||
- core | ||
- utilities | ||
--- | ||
- render 'reference' do | ||
%p | ||
Lorem ipsum dolor sit amet. | ||
= render 'reference' |
3 changes: 1 addition & 2 deletions
3
frameworks/compass/stylesheets/compass/utilities/text/_nowrap.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// When remembering whether or not there's a hyphen in white-space is too hard | ||
@mixin nowrap { | ||
white-space: nowrap; } | ||
@mixin nowrap { white-space: nowrap; } |