Skip to content

Commit

Permalink
feat(truncation): add truncation classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed May 9, 2018
1 parent e8add07 commit 60de1bd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
24 changes: 24 additions & 0 deletions src/globals/scss/_helper-classes.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.bx--end-line {
width: 100%;
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}

.bx--front-line {
width: 100%;
display: inline-block;
direction: rtl;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}

.test {
width: 65px;
}

.component-example__live {
min-width: 400px;
}
14 changes: 12 additions & 2 deletions src/globals/scss/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
$breakpoints: (bp--xs--major: 500px, bp--sm--major: 768px, bp--md--major: 992px, bp--lg--major: 1200px);
@import 'helper-classes';

$padding: ('mobile': 3%, 'xs': 5%);
$breakpoints: (
bp--xs--major: 500px,
bp--sm--major: 768px,
bp--md--major: 992px,
bp--lg--major: 1200px
);

$padding: (
'mobile': 3%,
'xs': 5%
);

@function padding($value) {
@if map-has-key($padding, $value) {
Expand Down

0 comments on commit 60de1bd

Please sign in to comment.