Skip to content

Commit

Permalink
Ticket #4446 - Timeline: Text overflow gradient doesn't match the bac…
Browse files Browse the repository at this point in the history
…kground.
  • Loading branch information
AntonLV committed Aug 22, 2023
1 parent a23dc13 commit a5f1879
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 28 deletions.
12 changes: 5 additions & 7 deletions modules/boonex/artificer/data/template/bx_timeline/css/view.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,11 @@ div.bx-tl-item-text div.bx-tl-content {
div.bx-tl-item-text div.bx-tl-content.bx-tl-overflow {
margin-bottom: 0;
}
div.bx-tl-item-text div.bx-tl-content.bx-tl-overflow:before {
position: absolute;
bottom: 0;
width: 100%;
height: 20%;

content: '';
div.bx-tl-item-text div.bx-tl-content .bx-tl-content-overflow {
display: none;
}
div.bx-tl-item-text div.bx-tl-content.bx-tl-overflow .bx-tl-content-overflow {
display: block;
}

/*--- Item Activity (Actions and Manage are different menus) ---*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="__html_id__" class="__style_prefix__-item __class__">
<a name="timeline-event-__id__"></a>
<div class="__style_prefix__-item-ind p-2">
<div class="__style_prefix__-item-cnt bx-def-box bx-def-box-round-corners bx-def-color-bg-box __class_content__">
<div class="__style_prefix__-item-cnt bx-def-box bx-def-box-round-corners bx-def-color-bg-box __class_content__ group/item hover:bg-gray-50 dark:hover:bg-gray-900 hover:shadow-lg transition-transform hover:-translate-y-1 duration-300">
<div class="__style_prefix__-blink-plate"></div>
<bx_if:show_note>
<div class="__style_prefix__-item-notes mt-3 md:mt-4">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="__html_id__" class="__style_prefix__-item __class__ bx-def-thumb-size-min-height relative pb-3 md:pb-4 lg:pb-6 bx-clearfix ">
<a name="timeline-event-__id__"></a>
<div class="__style_prefix__-item-cnt bx-lnk-cnt bx-def-box bx-def-box-round-corners bx-def-color-bg-box __class_content__ hover:bg-gray-50 dark:hover:bg-gray-700/20 hover:shadow-lg hover:-translate-y-1 duration-300">
<div class="__style_prefix__-item-cnt bx-lnk-cnt bx-def-box bx-def-box-round-corners bx-def-color-bg-box __class_content__ group/item hover:bg-gray-50 dark:hover:bg-gray-900 hover:shadow-lg transition-transform hover:-translate-y-1 duration-300">
<div class="__style_prefix__-blink-plate"></div>
<bx_if:show_note>
<div class="__style_prefix__-item-notes mt-3 md:mt-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import (reference) '../../system/css/default.less';
@import '../../../../../timeline/template/css/view.css';

div.bx-tl-item-text div.bx-tl-content.bx-tl-overflow:before {
div.bx-tl-item-text div.bx-tl-content.bx-tl-overflow .bx-tl-content-overflow {
background: -webkit-linear-gradient(top, transparent, @bx-color-box);
background: -moz-linear-gradient(top, transparent, @bx-color-box);
background: -o-linear-gradient(top, transparent, @bx-color-box);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import '../../../../../timeline/template/css/view.css';

/*--- Item Content Style ---*/
div.bx-tl-item-text div.bx-tl-content.bx-tl-overflow:before {
div.bx-tl-item-text div.bx-tl-content.bx-tl-overflow .bx-tl-content-overflow {
background: -webkit-linear-gradient(top, @bx-color-box-transparent, @bx-color-box);
background: -moz-linear-gradient(top, @bx-color-box-transparent, @bx-color-box);
background: -o-linear-gradient(top, @bx-color-box-transparent, @bx-color-box);
Expand Down
17 changes: 5 additions & 12 deletions modules/boonex/timeline/template/css/view.css
Original file line number Diff line number Diff line change
Expand Up @@ -471,18 +471,11 @@ div.bx-tl-item-text div.bx-tl-content > p:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
div.bx-tl-item-text div.bx-tl-content.bx-tl-overflow:before {
position: absolute;
bottom: 0;
width: 100%;
height: 20%;

background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1.0));
background: -moz-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1.0));
background: -o-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1.0));
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1.0));

content: '';
div.bx-tl-item-text div.bx-tl-content .bx-tl-content-overflow {
display: none;
}
div.bx-tl-item-text div.bx-tl-content.bx-tl-overflow .bx-tl-content-overflow {
display: block;
}
div.bx-tl-item-text div.bx-tl-content-show-more {
position: relative;
Expand Down
5 changes: 4 additions & 1 deletion modules/boonex/timeline/template/type_post.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
<div class="__style_prefix__-title mb-2 md:mb-4 text-lg lg:text-xl font-semibold text-gray-700 dark:text-gray-300">__title__</div>
</bx_if:show_title>
<bx_if:show_content>
<div class="__style_prefix__-content bx-overflow-ready bx-def-vanilla-html bx-def-vh-sm relative max-w-none">__item_content__</div>
<div class="__style_prefix__-content bx-overflow-ready bx-def-vanilla-html bx-def-vh-sm relative max-w-none">
__item_content__
<div class="__style_prefix__-content-overflow bx-def-color-bg-box-overflow absolute bottom-0 w-full h-1/5"></div>
</div>
</bx_if:show_content>
</div>
<bx_if:show_attachments>
Expand Down
12 changes: 9 additions & 3 deletions plugins_public/tailwind/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@
.bx-popup-color-bg {
@apply bg-white dark:bg-gray-800 shadow-md;
}
.bx-def-color-bg-box-overflow {
@apply bg-gradient-to-b from-transparent to-white dark:to-gray-800;
}
.bx-def-border-block,
.bx-def-box,
.bx-popup-border {
Expand Down Expand Up @@ -1214,10 +1217,13 @@
@apply text-gray-300 dark:text-gray-700;
}


/* Modules: Timeline */
.bx-artificer .bx-tl-item-text .bx-tl-content.bx-tl-overflow:before {
@apply bg-gradient-to-b from-transparent to-white dark:to-gray-800;
.bx-artificer .group\/item:hover .bx-tl-item-text .bx-tl-content.bx-tl-overflow .bx-tl-content-overflow {
@apply to-gray-50;
}
.dark .bx-artificer .group\/item:hover .bx-tl-item-text .bx-tl-content.bx-tl-overflow .bx-tl-content-overflow {
@apply to-gray-900;
}
.bx-artificer .bx-tl-item-activity .bx-stl-mil-wo-gaps-sm .sys-action-element-holder > a,
.bx-artificer .bx-menu-object-bx_timeline_menu_item_manage .bx-stl-mil-wo-gaps-sm .sys-action-element-holder > a {
Expand Down
2 changes: 1 addition & 1 deletion plugins_public/tailwind/css/tailwind.min.css

Large diffs are not rendered by default.

0 comments on commit a5f1879

Please sign in to comment.