Code Monkey home page Code Monkey logo

obsidian-timeline's Introduction

Build Amazing Timelines

Example

How to use it

Choose the timeline or timeline-labeled tag

  • timeline tag

    Requires + at the beginning of each line:

    • each event has 3 +s in total: 1 for time, 1 for title and 1 for content

    • you can separate them with empty lines if it's easier for you to write

    • Example


  • timeline-labeled tag

    • each event has a corresponding label (date, title and content) that starts the line
    • you can separate them with empty lines if it's easier for you to write
    • Example

[] is optional!

You can use [] at the beginning of the code-block to add pre-written classes or your own classes to the wrapper.
Example: [spaced-paragraph, your-class, even-more]
Can be used for timeline and timeline-labeled tag

Example:

```timeline-labeled
[line-5, body-3, active-color-interactive-accent-hover]

date: 13th April 1969
title: Enim sit amet venenatis urna
content:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
```

Just a snippet

Use this file as a snippet using this template!

Customize

Using pre-written classes for line, body and the active color:

  • line:

    • preview (soon, for now test it in obsidian)
    • classes:
      • line-2
      • line-3
      • line-4
      • line-5

  • body:

    • preview (soon, for now test it in obsidian)
    • classes:
      • body-2
      • body-3
      • body-4

  • active color:

    • it uses obsidian's css variables as active colors, so it matches the theme
    • default active color is background-modifier-success
    • if you want your own color use --timeline-active-color css variable attached to .timeline class
      .timeline
          --timeline-active-color: #00c137
      
    • preview (soon, for now test it in obsidian)
    • classes:
      • active-color-background-modifier-success
      • active-color-background-modifier-error
      • active-color-background-modifier-error-hover
      • active-color-text-accent
      • active-color-text-accent-hover
      • active-color-text-error
      • active-color-text-error-hover
      • active-color-text-selection
      • active-color-interactive-accent
      • active-color-interactive-accent-hover
      • active-color-interactive-success

BuyMeACoffee

obsidian-timeline's People

Contributors

george-debug avatar welding-torch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.