Code Monkey home page Code Monkey logo

obsidian-bullet-cards's Introduction

⏹ Obsidian Bullet Cards

css snippet to render bulleted list items as cards in Reading View (live preview not supported)


Example Usage

source view

reading view


Installation

  • Install obsidian-element-enhancer script to allow custom classes to be injected into the Reading View.

  • Copy the bullet-cards.css file to your Obsidian snippets folder and enable the snippet in your Appearance preferences.


Usage

  • using the format specified in obsidian-element-enhancer, add a div with the buttet-cards custom class (and optional modifier classes):
    <div class="🌟 bullet-cards bullet-cards--centered bullet-cards--width3"></div>
  • don't forget to add the following to the last line of your note (as spefiied in obsidian-element-enhancer)
    $= await dv.view("= scripts/obsidian-element-enhancer", "🌟")

Modifier Classes

The following modifer classes can be mixed and matched to achive differnt looks:

alignment of cards

  • bullet-cards--centered
  • bullet-cards--justified
  • bullet-cards--left
  • bullet-cards--right

card width

  • bullet-cards--no-width
  • bullet-cards--width1
  • bullet-cards--width2
  • bullet-cards--width3
  • bullet-cards--width4
  • bullet-cards--width5
  • bullet-cards--width6
  • bullet-cards--width7
  • bullet-cards--width8
  • bullet-cards--width9
  • bullet-cards--width10

aligment of card contents

  • bullet-cards--vertical-content
  • bullet-cards--content-left
  • bullet-cards--content-centered
  • bullet-cards--content-right

card padding

  • bullet-cards--padding1
  • bullet-cards--padding2
  • bullet-cards--padding3
  • bullet-cards--padding4
  • bullet-cards--padding5
  • bullet-cards--vertical-padding1
  • bullet-cards--vertical-padding2
  • bullet-cards--vertical-padding3
  • bullet-cards--vertical-padding4
  • bullet-cards--vertical-padding5

card border

  • bullet-cards--no-border

note: live preview is not supported


My Obsidian GitHub Projects

obsidian-bullet-cards's People

Contributors

jparkerweb avatar

Stargazers

gapmiss avatar

Watchers

 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.