Code Monkey home page Code Monkey logo

card_css's Introduction

Playing Card CSS

Master branch in git is kept as a "minimal" content branch, CSS, Readme, Demo.html.

The CSS is generated by a Python script stored in the 'code' along with the source art assets.

A visual demo is available.

Details

Cards blocks are created by creating a div with class "card, where size is either "small", "medium", or "large", and optional "hand" class then adding i-tags with a card synonym class."

Example:

<div class="large hand">
  <i class="ace-of-spades">ace-of-spades</i>
  <i class="ten-of-spades">ten-of-spades</i>
</div>

Synonyms of card classes are available in these templates:

  • <cardName>-of-<suit>
  • _<cardNumber>-of-<suit>
  • _<cardNumber><suit>
  • <suit>-<card>
  • <suit><card>

The four standard suits are defined as plural, singular, and first-initial.

  • hearts
  • spades
  • diamonds
  • clubs

Cards are defined with numbers (leading zero or without), and alternate names.

  • 01, 1, one, ace, a
  • 02, 2, two
  • 03, 3, three
  • 04, 4, four
  • 05, 5, five
  • 06, 6, six
  • 07, 7, seven
  • 08, 8, eight
  • 09, 9, nine
  • 10, 10, ten, x
  • 11, 11, jack, j
  • 12, 12, queen, q
  • 13, 13, king, k

For example, the Ace of Spades has 38 synonyms!

card_css's People

Contributors

dothtm avatar

Watchers

 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.