Code Monkey home page Code Monkey logo

basscss-card-components's Introduction

cards

Operationalizing Basscss' Boxes (made up of atomic/reusable classes) as card modules (made up of component classes based on atomic/reusable classes).

/*
  
  Card

*/

.card {
  div.card--parent {
    md-col-6;
  }

  div.card {
    p2;
    bg-white;
    border;
    rounded;
  }

  h1.card--h1 {
    h2;
    mt0;
  }

  p.card--text {
    mb0;
  }
}


/*

  "To create [CARD] headers and footers,
     set padding on nested divs then
     use color styles to control appearance."

     -- http://www.basscss.com/docs/guides/ui/

*/


/*
  
  Card with header


*/

.card-with-header {
  div.card-with-header--parent {
    md-col-6;
  }

  div.card-with-header {
    overflow-hidden;
    bg-white;
    border;
    rounded;
  }

  div.card-with-header--header-h1-wrapper {
    p2;
    bg-silver;
  }

  h1.card-with-header--header-h1 {
    h2;
    m0;
  }

  div.card-with-header--body-text-wrapper {
    p2;
  }

  p.card-with-header--body-text {
    m0;
  }
}



/*
  
  Card with image lead

*/

.card-with-image-lead {
  div.card-with-image-lead--parent {
    md-col-6;
  }

  div.card-with-image-lead {
    p2;
    bg-white;
    border;
    rounded;
  }

  img.card-with-image-lead--img {
    mb2;
  }

  h1.card-with-image-lead--h1 {
    h2;
    mt0;
  }

  p.card-with-image-lead--text {
    mb0;
  }
}



/*
  
  Card with header & footer


*/

.card-with-header-and-footer {
  div.card-with-header--parent {
    md-col-6;
  }

  div.card-with-header-and-footer {
    overflow-hidden;
    bg-white;
    border;
    rounded;
  }

  div.card-with-header-and-footer--header-h1-wrapper {
    p2;
    bg-silver;
  }

  h1.card-with-header-and-footer--header-h1 {
    h2;
    m0;
  }

  div.card-with-header-and-footer--body-text-wrapper {
    p2;
  }

  p.card-with-header-and-footer--body-text {
    m0;
  }

  div.card-with-header-and-footer--footer-text-wrapper {
    p2;
    bg-darken-1;
  }

  p.card-with-header-and-footer--footer-text {
    m0;
    h5;
  }
}

basscss-card-components's People

Contributors

brianzelip 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.