Honsely, I don't know what happened here
This commit is contained in:
62
components/00_ContentShape/truncation/_truncation.styl
Normal file
62
components/00_ContentShape/truncation/_truncation.styl
Normal file
@@ -0,0 +1,62 @@
|
||||
RV-Truncation--fade(background-color=white)
|
||||
&:after
|
||||
background-image linear-gradient(180deg, rgba(255, 255, 255, 0), background-color)
|
||||
display block
|
||||
content '###'
|
||||
color transparent
|
||||
opacity 1
|
||||
position absolute
|
||||
top calc(var(--height) - 60px)
|
||||
width 100%
|
||||
height 50px
|
||||
line-height var(--line-height)
|
||||
z-index 10
|
||||
|
||||
RV-Truncation--ellipsis(background-color=white)
|
||||
&:after
|
||||
position absolute
|
||||
display block
|
||||
right 0
|
||||
content '...'
|
||||
background-color background-color
|
||||
padding-left 5px
|
||||
padding-bottom 10px
|
||||
box-shadow -10px 8px 6px 0px #fff;
|
||||
line-height var(--line-height)
|
||||
top calc(var(--height) - 40px)
|
||||
|
||||
RV-Truncation(line-height=1.3, height=350px)
|
||||
RV-CSSParameter({
|
||||
line-height: line-height,
|
||||
height: height
|
||||
})
|
||||
|
||||
background-color = white
|
||||
display block
|
||||
overflow hidden
|
||||
position relative
|
||||
|
||||
height calc_height()
|
||||
width calc_width()
|
||||
|
||||
*
|
||||
overflow hidden
|
||||
display block
|
||||
position relative
|
||||
text-overflow ellipsis
|
||||
background-color background-color
|
||||
|
||||
line-height line-height
|
||||
max-height floor(height / (line-height * 16)) * (line-height * 16)
|
||||
|
||||
padding 0
|
||||
margin 0
|
||||
|
||||
.RV-Truncation
|
||||
RV-Truncation()
|
||||
|
||||
&--fade
|
||||
RV-Truncation--fade()
|
||||
|
||||
&--ellipsis
|
||||
RV-Truncation--ellipsis()
|
17
components/00_ContentShape/truncation/truncation.config.json
Normal file
17
components/00_ContentShape/truncation/truncation.config.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "Truncation",
|
||||
"variants": [
|
||||
{
|
||||
"name": "Fade",
|
||||
"context": {
|
||||
"modifier": "RV-Truncation--fade"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Ellipsis",
|
||||
"context": {
|
||||
"modifier": "RV-Truncation--ellipsis"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
5
components/00_ContentShape/truncation/truncation.hbs
Normal file
5
components/00_ContentShape/truncation/truncation.hbs
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="RV-Truncation {{#if modifier}}{{modifier}}{{/if}}">
|
||||
<p>
|
||||
You could see there was text coming out of her eyes, text coming out of her wherever. . Does everybody know that pig named Lorem Ipsum? She's a disgusting pig, right? When other websites give you text, they’re not sending the best. They’re not sending you, they’re sending words that have lots of problems and they’re bringing those problems with us. They’re bringing mistakes. They’re bringing misspellings. They’re typists… And some, I assume, are good words. I'm speaking with myself, number one, because I have a very good brain and I've said a lot of things. Podcasting operational change management inside of workflows to establish a framework. Taking seamless key performance indicators offline to maximise the long tail. Keeping your eye on the ball while performing a deep dive on the start-up mentality to derive convergence on cross-platform integration.
|
||||
</p>
|
||||
</div>
|
Reference in New Issue
Block a user