0.2.0 • Published 10 years ago
stylep-card v0.2.0
stylep-card
A simple card pattern for your next project.
Install
You can install using the spm command or install using npm and the project name.
spm install cardUsage
/* card.css */
@import “stylep-card”;
.card {
/* Card Design Pattern */
@mixin card-block;
/* Customize your card */
@mixin card-solid #efefef, #444, 0 0 0 3px #000;
}Patterns
Placeholder selectors that contain common styles for structure.
card-inline
This draws a card that displays inline on the page.
Options
$card-margin: 0 0 1emSpace around the card
card-block
This draws a card that expands the width of the containing element.
Options
$card-margin: 0 0 1emSpace around the card$card-min-width: 100pxThe smallest width of a card allowed.
Styles
card-solid
Paints your card as a solid object with colors, shadow and radius.
Options
$card-color: #f7f7f7Background color of the card$card-text-color: #444Color of text inside the card$card-shadow: 0 2px 2px rgba(0, 0, 0, .4)Shadow around the card
card-hollow
Paints your card as a bordered object with colors and radius.
Options
$card-color: #444Background and text color of the card$card-border-width: 1pxThe size of the stroke around the card$card-border-style: solidStyle of border around the card
License
This project is licensed under the MIT license.