From baf7534870460015c194281ad98e1fef99911ef1 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Tue, 14 Apr 2020 20:58:19 +0800 Subject: Remove redundant Primer CSS --- assets/sass/@primer/css/truncate/README.md | 25 --------------------- assets/sass/@primer/css/truncate/index.scss | 1 - assets/sass/@primer/css/truncate/truncate.scss | 31 -------------------------- 3 files changed, 57 deletions(-) delete mode 100644 assets/sass/@primer/css/truncate/README.md delete mode 100644 assets/sass/@primer/css/truncate/index.scss delete mode 100644 assets/sass/@primer/css/truncate/truncate.scss (limited to 'assets/sass/@primer/css/truncate') diff --git a/assets/sass/@primer/css/truncate/README.md b/assets/sass/@primer/css/truncate/README.md deleted file mode 100644 index ae6f88e..0000000 --- a/assets/sass/@primer/css/truncate/README.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -bundle: "truncate" -generated: true ---- - -# Primer CSS: `truncate` bundle - -## Usage - -Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with: - -```scss -@import "@primer/css/truncate/index.scss"; -``` - -## Build - -The `@primer/css` npm package includes a standalone CSS build of this module in `dist/truncate.css`. - -## License - -[MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/) - - -[scss]: https://sass-lang.com/documentation/syntax#scss diff --git a/assets/sass/@primer/css/truncate/index.scss b/assets/sass/@primer/css/truncate/index.scss deleted file mode 100644 index c391a32..0000000 --- a/assets/sass/@primer/css/truncate/index.scss +++ /dev/null @@ -1 +0,0 @@ -@import "./truncate.scss"; diff --git a/assets/sass/@primer/css/truncate/truncate.scss b/assets/sass/@primer/css/truncate/truncate.scss deleted file mode 100644 index 8590f1b..0000000 --- a/assets/sass/@primer/css/truncate/truncate.scss +++ /dev/null @@ -1,31 +0,0 @@ -// Truncate -// -// css-truncate will shorten text with an ellipsis. - -.css-truncate { - - // css-truncate-auto will shorten text with an ellipsis when overflowing - &.css-truncate-overflow, - .css-truncate-overflow, - &.css-truncate-target, - .css-truncate-target { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - - // css-truncate-target will shorten text with an ellipsis and a max width - &.css-truncate-target, - .css-truncate-target { - display: inline-block; - max-width: 125px; - vertical-align: top; - } - - &.expandable.zeroclipboard-is-hover .css-truncate-target, - &.expandable.zeroclipboard-is-hover.css-truncate-target, - &.expandable:hover .css-truncate-target, - &.expandable:hover.css-truncate-target { - max-width: 10000px !important; - } -} -- cgit v1.2.3