
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
css-text-overflow
Advanced tools
Css module of single purpose classes for text overflow
| 357 | 24 | 24 |
|---|---|---|
| bytes | selectors | declarations |
npm install --save-dev css-text-overflow
git clone https://github.com/tachyons-css/css-text-overflow
Import the css module
@import "css-text-overflow";
Then process the CSS using the tachyons-cli
$ npm i -g tachyons-cli
$ tachyons-cli path/to/css-file.css > dist/t.css
The built CSS is located in the css directory. It contains an unminified and minified version.
You can either cut and paste that css or link to it directly in your html.
<link rel="stylesheet" href="path/to/module/css/css-text-overflow">
The source CSS files can be found in the src directory.
Running $ npm start will process the source CSS and place the built CSS in the css directory.
/*
TEXT OVERFLOW
*/
.t-clip { text-overflow: clip; }
.t-ellipsis { text-overflow: ellipsis; }
.t-dots { text-overflow: "…"; }
/* Two-value syntax: the first value describes the overflow at the left end of the line,
the second at the right end. Directionality has no influence */
.t-clip-ellipsis { text-overflow: clip ellipsis; }
.t-double { text-overflow: "…" "…"; }
.t-i { text-overflow: inherit; }
@media screen and (min-width: 48em) {
.t-clip-ns { text-overflow: clip; }
.t-ellipsis-ns { text-overflow: ellipsis; }
.t-dots-ns { text-overflow: "…"; }
.t-clip-ellipsis-ns { text-overflow: clip ellipsis; }
.t-double-ns { text-overflow: "…" "…"; }
.t-i-ns { text-overflow: inherit; }
}
@media screen and (min-width:48em) and (max-width: 64em) {
.t-clip-m { text-overflow: clip; }
.t-ellipsis-m { text-overflow: ellipsis; }
.t-dots-m { text-overflow: "…"; }
.t-clip-ellipsis-m { text-overflow: clip ellipsis; }
.t-double-m { text-overflow: "…" "…"; }
.t-i-m { text-overflow: inherit; }
}
@media screen and (min-width: 64em) {
.t-clip-l { text-overflow: clip; }
.t-ellipsis-l { text-overflow: ellipsis; }
.t-dots-l { text-overflow: "…"; }
.t-clip-ellipsis-l { text-overflow: clip ellipsis; }
.t-double-l { text-overflow: "…" "…"; }
.t-i-l { text-overflow: inherit; }
}
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)ISC
FAQs
Css module of single purpose classes for text overflow
We found that css-text-overflow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.