Git Product home page Git Product logo

tuff's Introduction

tuff

This project is directly inspired by and based on Tufte CSS and Acme from Plan 9.

Edward Tufte uses a distinctive style in his handouts: simple, with well-set typography, extensive sidenotes, and tight integration of graphics and charts. tufte-css brings that style to HTML documents.

Basically, I like the structure of the document and especially the side-notes.

A screenshoot of tuff in action

Getting Started

To use tuff, just copy tuff.css to your project and add the following to your HTML doc's head block:

<link rel="stylesheet" href="tuff.css">

All other files in the repository can be ignored.

Template

<!DOCTYPE html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<link rel="stylesheet" href="tuff.css">

<title>Tuff means tough</title>

<article>
<section>
<h1>Tuff means tough</h1>

<address>
Author <a rel="author" href="https://mastodon.nu/@antics">@[email protected]</a><br>
Last update: <time>2024-04-07</time></address>

<p>
Pray for a tough instructor to hear and act and stay within you.
We have been busy accumulating solace.
Make us afraid of how we were.

Examples

Now, I'm no fan of using either classes or id's or unnecessary markup in hypertext. However, in this case we have none but this choice.

All spans must be within a <p> but not necessarily directly after. You put the sidenote inline in the text and in relation to where in the sidebar you want it to appear.

.sn Add a numbered reference sidenote; automatically counted with .snn

<p>
Pray for a tough instructor<span class="snn"></span>
to hear and act and stay within you.
We have been busy accumulating solace.
Make us afraid of how we were.<span class="sn">Jalāl al-Dīn Muḥammad Rūmī - or simply Rumi</span>

.mn Jibberish note for jibberish.

<p>
Flumbogoo wizzlefrazzled<span class="mn">flubberidoo</span>
the bimblywinks with zorgonified flibberflabber.

Add a picture as a sidenote .mn. But do not print it .np.

<p>
<span class="mn np"><img src="vacilala.png"></span>

Use .danger to make the text red.

<b class="danger">Attention!</b>

Project Scope and Status

tuff is specifically a CSS-only solution for styling HTML for the web and print styles are included.

This project is maintained and under active development. Contributions are welcomed especially if they simplify code.

License

Released under the MIT license. See LICENSE.

tuff's People

Contributors

ab1908 avatar adamschwartz avatar adilzeshan avatar antics avatar clayh53 avatar crmackay avatar daiyi avatar daveliepmann avatar edent avatar emma-sg avatar godbyk avatar janfabry avatar jez avatar mailtokamalnayan avatar mbucc avatar mgraupner avatar mhuebert avatar moubry avatar padenot avatar pyrocat101 avatar readmecritic avatar ruricolist avatar sathomas avatar sbichenko avatar statzhero avatar tdaltonc avatar tg-x avatar wesleyac avatar wilburhimself avatar zeke 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.