GithubHelp home page GithubHelp logo

americanbible / scripture-styles Goto Github PK

View Code? Open in Web Editor NEW
18.0 16.0 5.0 10.65 MB

Style assets for Scripture Content from API.Bible

Home Page: http://styles.api.bible

JavaScript 55.85% HTML 0.74% SCSS 43.41%

scripture-styles's Introduction

Overview

This repo contains base style sheets intented to be used on scripture content return from API.Bible. For examples of all the styles and formatting used, see examples.

All the HTML content returned from API.Bible uses classnames that follow USX styles.

Usage

To use this package directly in your app, install with NPM.

npm install --save scripture-styles

Then import into your index file.

import "scripture-styles/dist/css/scripture-styles.css";

Wherever you display scripture content from API.Bible on your site, just make sure it's wrapped in a div with class="scripture-styles".

<div class="scripture-styles">
  {apiBibleResponse.data.content}
</div>


## CDN

If you prefer to reference this directly from the CDN add the following to your page.

```html
<link
  rel="stylesheet"
  href="https://assets.api.bible/css/scripture-styles.css"
/>

Source Order

We've worked hard to make sure that the scripture styles do not collide with other styles on your site. That being said, it's important that it comes last in the source order whether that is last in a Sass import or last when linking to the CSS file.

Choose an Output Style

We've chose to use :nested as the style for the main css file. It's nice and easy to read. We've used :compressed on the minified css file. If you want to go straight into production just grab the minifed version.

If you need to rebuild the css you can run.


npm run build

Or individually:

nested

npm run build-nested

compressed

npm run build-nested

gzip

npm run gzip

Preview Tool

First add your API.Bible key to previewer/.env. See .env.sample for format. If you need a key, you can Sign Up Here.

Then, to run the preview tool

cd previewer
npm install
npm start

New stories can be added to stories/stories.js.

scripture-styles's People

Contributors

bryceallison avatar dallasbpeters avatar hanatgit avatar sloansparger avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

Jared Hawkins avatar Daniel Collingwood avatar Gerson Amorim avatar Christopher Gautam Hota avatar Wellyson Freitas avatar Guilherme Mourão avatar Matthew Carroll avatar  avatar Jon avatar Sandra Ise avatar JERCOM IO avatar Arthur Monney avatar James Fowler avatar Max Ma avatar  avatar Isaac Tait avatar  avatar Matthew Wilson avatar

Watchers

 avatar Leonardo Prates avatar James Cloos avatar  avatar Joel Zehring avatar Douglas McMorris avatar John Mark Mitchell avatar Touch Titans avatar Ruy R. Garcia avatar  avatar Joshua Kemmerer avatar  avatar A.Z. avatar Chuck Barker avatar Steven Dyk avatar  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.