Giter Site home page Giter Site logo

hisaharu / keiyaku-css Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cognitom/keiyaku-css

0.0 1.0 0.0 24 KB

Crazy Style Formatter for Japanese Contract Document

Home Page: https://cognitom.github.io/keiyaku-css/

License: MIT License

HTML 47.17% JavaScript 4.58% CSS 48.25%

keiyaku-css's Introduction

Keiyaku CSS

Crazy Style Formatter for Japanese Contract Document

Unfortunately, the style in Japanese contract document is totally crazy. I hope this CSS library cures that a bit:

  1. write a document logically structured in markdown or HTML,
  2. apply keiyaku-css to it
  3. then, you'll get a well-formed document
  4. good luck!

概要

Keiyaku CSS(以下、「本件ライブラリ」という。)は、Markdownで書かれた契約文書を、適切な印刷書式にスタイリングするための、CSSライブラリです。

ユーザ(以下、「甲」という。)は、製作者(以下、「乙」という。)が開発した本件ライブラリについて、以下のとおり使用することが可能です。

目的

本件ライブラリの目的は、法務の方からダメ出しされないことです。

インストール

ここからCSSファイルをダウンロードするか、npm経由でインストールします。

$ npm install --save keiyaku-css

HTMLのHEAD内にCSSファイルを読み込みます。

<link rel="stylesheet" href="path/to/keiyaku.css">

本件ライブラリを使用したいセクションに、keiyakuクラスを付加します。(divタグなどでも構いません)

<section class="keiyaku"></section>

上記セクション内に、必要なHTMLを書き入れます。

使い方・HTML編

HTMLを手書きする場合は、次の要素を使います。

  • <h1>文書のタイトル</h1>
  • <h2>見出しタイトル(条)</h2>
  • <ul><li>箇条書き</li></ul>
  • <ol><li>箇条書き(連番)</li><ol>
  • <hr> 署名欄の開始
  • <h4>署名欄・見出し</h4>
  • <ul><li>署名欄・項目</li></ul> (最後の項目には、自動的にマークが付きます)

使い方・Markdown編

本件ライブラリの使用が想定されているのは、主にMarkdownを使う場合です。下記のように書くことで可読性の高い契約文書を作成でき(ると期待し)ます。

  • 文書のタイトル: #
  • 見出しタイトル(条): ##
  • 箇条書き: -
  • 箇条書き(連番): 1., 2., ...
  • 署名欄: ---で始める
  • 署名欄・見出し: ####
  • 署名欄・項目: - (最後の項目には、自動的にマークが付きます)

使用例

エディタで使う

下記のテーマファイルを、所定のフォルダに読み込みます。

ライセンス

MIT © Tsutomu Kawamura


2017年1月吉日

  • 住所:
  • 氏名: Your Name

  • 住所: 東京都世田谷区 下北沢オープンソースCafe
  • 氏名: Tsutomu Kawamura

keiyaku-css's People

Contributors

cognitom avatar takahashim 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.