summaryrefslogtreecommitdiff
path: root/addons/website/static/src/snippets/s_timeline/000.scss
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/website/static/src/snippets/s_timeline/000.scss
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/website/static/src/snippets/s_timeline/000.scss')
-rw-r--r--addons/website/static/src/snippets/s_timeline/000.scss70
1 files changed, 70 insertions, 0 deletions
diff --git a/addons/website/static/src/snippets/s_timeline/000.scss b/addons/website/static/src/snippets/s_timeline/000.scss
new file mode 100644
index 00000000..4a0ce4df
--- /dev/null
+++ b/addons/website/static/src/snippets/s_timeline/000.scss
@@ -0,0 +1,70 @@
+.s_timeline {
+ .s_timeline_line {
+ position: relative;
+ &:before {
+ content: '';
+ display: block !important; // override portal '#wrap .container' value
+ position: absolute;
+ width: 1px;
+ top: 0px;
+ bottom: 0px;
+ left: 50%;
+ background-color: gray('800');
+ }
+ }
+ .s_timeline_row {
+ align-items: center;
+ .s_timeline_content {
+ align-items: center;
+ justify-content: flex-end;
+ width: 100%;
+ ~ .s_timeline_content {
+ justify-content: flex-start;
+ }
+ }
+ &.flex-row-reverse {
+ .s_timeline_content {
+ flex-direction: row-reverse;
+ }
+ }
+ @include media-breakpoint-up(md) {
+ &.flex-row-reverse {
+ .s_timeline_content {
+ flex-direction: row-reverse;
+ &:not(:last-child) {
+ margin-left: 10%;
+ }
+ }
+ }
+ &:not(.flex-row-reverse) {
+ .s_timeline_content:last-child {
+ margin-left: 10%;
+ }
+ }
+ }
+ }
+ .s_timeline_date {
+ @include media-breakpoint-up(md) {
+ position: absolute;
+ left: 0%;
+ right: 0%;
+ }
+ @include media-breakpoint-down(sm) {
+ position: relative;
+ margin: 20px 0px;
+ }
+ span:not(.fa) {
+ display: inline-block;
+ padding: 5px;
+ }
+ .fa {
+ margin: 0 $grid-gutter-width/2;
+ }
+ text-align: center;
+ }
+ .s_timeline_icon {
+ flex: 0 0 auto;
+ margin: $grid-gutter-width/2;
+ z-index: 1;
+ }
+}