diff --git a/build/scss/_mixins.scss b/build/scss/_mixins.scss index 95fcd6fb1..fa4bb833b 100644 --- a/build/scss/_mixins.scss +++ b/build/scss/_mixins.scss @@ -267,7 +267,7 @@ // Background Variant @mixin background-variant($name, $color) { .bg-#{$name} { - background-color: #{$color}; + background-color: #{$color} !important; &, > a { diff --git a/build/scss/_timeline.scss b/build/scss/_timeline.scss index e80e81c69..7f0e43437 100644 --- a/build/scss/_timeline.scss +++ b/build/scss/_timeline.scss @@ -3,11 +3,9 @@ // .timeline { - list-style: none; - margin: 0 0 30px; + margin: 0 0 45px; padding: 0; position: relative; - // The line &::before { @include border-radius($border-radius); @@ -20,13 +18,17 @@ top: 0; width: 4px; } + // Element + > div { + &::before, + &::after { + content: ""; + display: table; + } - > li { - @include clearfix; margin-bottom: 15px; margin-right: 10px; position: relative; - // The content > .timeline-item { @include box-shadow($card-shadow); @@ -38,7 +40,6 @@ margin-top: 0; padding: 0; position: relative; - // The time and header > .time { color: #999; @@ -46,7 +47,7 @@ font-size: 12px; padding: 10px; } - + // Header > .timeline-header { border-bottom: 1px solid $card-border-color; color: $gray-700; @@ -54,21 +55,30 @@ line-height: 1.1; margin: 0; padding: 10px; - + // Link in header > a { font-weight: 600; } } - // Item body and footer > .timeline-body, > .timeline-footer { padding: 10px; } - } + > .timeline-body { + > img { + margin: 10px; + } + } - // The icons + > .timeline-footer { + > a { + color: $white; + } + } + } + // The icons at line > .fa, > .fas, > .far, @@ -87,12 +97,10 @@ width: 30px; } } - // Time label > .time-label { > span { @include border-radius(4px); - background-color: $white; display: inline-block; font-weight: 600; @@ -102,7 +110,7 @@ } .timeline-inverse { - > li { + > div { > .timeline-item { @include box-shadow(none); background: $gray-100; diff --git a/docs/_config.yml b/docs/_config.yml index e93d253b0..a07ac9728 100755 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -52,6 +52,8 @@ navigation: url: components/boxes.html - title: Direct Chat url: components/direct-chat.html + - title: Timeline + url: components/timeline.html - title: JavaScript icon: fas fa-code url: javascript diff --git a/docs/components/timeline.md b/docs/components/timeline.md new file mode 100644 index 000000000..d519bf15c --- /dev/null +++ b/docs/components/timeline.md @@ -0,0 +1,59 @@ +--- +layout: page +title: Timeline Component +--- + +The timeline component displays an event history. +You can use it for descriptions of events that occurred in a particular time section. + +##### Default + +```html + +
+ +
+ 23 Aug. 2019 +
+
+ + + +
+ + 12:05 + +

Support Team sent you an email

+ +
+ Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, + weebly ning heekya handango imeem plugg dopplr jibjab, movity + jajah plickers sifteo edmodo ifttt zimbra. Babblely odeo kaboodle + quora plaxo ideeli hulu weebly balihoo... +
+ + +
+
+ +
+ +
+
+``` +{: .max-height-300} + +##### Extra style + +There is an additional class for styling. +It darkens the elements, highlighting it against the general background. +You can use it with adding `.timeline-inverse` to `.timeline`. + +```html +
+ +
+``` diff --git a/index.html b/index.html index 4bb41c1b9..6e31e786a 100644 --- a/index.html +++ b/index.html @@ -339,6 +339,12 @@

Navbar & Tabs

+ + + + + + + + + + + + + + + + + + + + + +
  • +
    @@ -850,10 +856,10 @@

    Sarah Young accepted your friend request

    -
  • + -
  • +
    @@ -870,17 +876,17 @@ View comment
    -
  • + -
  • +
    3 Jan. 2014 -
  • + -
  • +
    @@ -889,18 +895,18 @@

    Mina Lee uploaded new photos

    - ... - ... - ... - ... + ... + ... + ... + ...
    -
  • + -
  • +
    -
  • - + + diff --git a/pages/examples/project_add.html b/pages/examples/project_add.html index dad182deb..eff7cc6a9 100644 --- a/pages/examples/project_add.html +++ b/pages/examples/project_add.html @@ -330,6 +330,12 @@

    Navbar & Tabs

    + + + + + + + + + + + + + + + + + + +