Repository: cbracco/cardinal Branch: master Commit: 647fb8a4fe63 Files: 60 Total size: 365.4 KB Directory structure: gitextract_ng7ldxh_/ ├── .csscomb.json ├── .editorconfig ├── .gitattributes ├── .gitignore ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── base/ │ ├── README.md │ ├── anchors.less │ ├── blockquotes.less │ ├── code.less │ ├── debug.less │ ├── embedded-content.less │ ├── form-elements.less │ ├── headings.less │ ├── horizontal-rules.less │ ├── lists.less │ ├── mixins/ │ │ ├── antialiasing.less │ │ ├── clearing.less │ │ ├── font-face.less │ │ ├── media-queries.less │ │ ├── momentum-scrolling.less │ │ ├── text-truncate.less │ │ ├── to-rem.less │ │ └── vertically-centered.less │ ├── normalize.less │ ├── print.less │ ├── reset.less │ ├── root.less │ ├── tables.less │ ├── text-elements.less │ └── variables.less ├── bower.json ├── cardinal.css ├── cardinal.less ├── components/ │ ├── README.md │ ├── boxes.less │ ├── buttons.less │ ├── forms.less │ ├── lists.less │ └── tables.less ├── gulpfile.js ├── index.html ├── layout/ │ ├── README.md │ ├── grids.less │ └── wrappers.less ├── package.json └── utilities/ ├── README.md ├── display.less ├── floats.less ├── font-sizes.less ├── margins.less ├── paddings.less ├── positions.less ├── text-alignment.less ├── vertical-alignment.less ├── visually-hidden.less ├── widths.less └── z-index.less ================================================ FILE CONTENTS ================================================ ================================================ FILE: .csscomb.json ================================================ // http://csscomb.com/config { // Whether to add a semicolon after the last value/mixin. "always-semicolon": true, // Set indent for code inside blocks, including media queries and nested rules. "block-indent": " ", // Unify case of hexadecimal colors. "color-case": "lower", // Whether to expand hexadecimal colors or use shorthands. "color-shorthand": true, // Unify case of element selectors. "element-case": "lower", // Add/remove line break at EOF. "eof-newline": true, // Add/remove leading zero in dimensions. "leading-zero": true, // Unify quotes style. "quotes": "double", // Remove all rulesets that contain nothing but spaces. "remove-empty-rulesets": true, // Sort unknown properties alphabetically "sort-order-fallback": "abc", // Sort properties in particular order. "sort-order": [ [ "font", "font-family", "font-size", "font-weight", "font-style", "font-variant", "font-size-adjust", "font-stretch", "font-effect", "font-emphasize", "font-emphasize-position", "font-emphasize-style", "font-smooth", "line-height", "position", "z-index", "top", "right", "bottom", "left", "display", "visibility", "float", "clear", "overflow", "overflow-x", "overflow-y", "-ms-overflow-x", "-ms-overflow-y", "-webkit-overflow-scrolling", "clip", "zoom", "flex-direction", "flex-order", "flex-pack", "flex-align", "-webkit-box-sizing", "-moz-box-sizing", "box-sizing", "width", "min-width", "max-width", "height", "min-height", "max-height", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "table-layout", "empty-cells", "caption-side", "border-spacing", "border-collapse", "list-style", "list-style-position", "list-style-type", "list-style-image", "content", "quotes", "counter-reset", "counter-increment", "resize", "cursor", "-webkit-user-select", "-moz-user-select", "-ms-user-select", "user-select", "nav-index", "nav-up", "nav-right", "nav-down", "nav-left", "-webkit-transition", "-moz-transition", "-ms-transition", "-o-transition", "transition", "-webkit-transition-delay", "-moz-transition-delay", "-ms-transition-delay", "-o-transition-delay", "transition-delay", "-webkit-transition-timing-function", "-moz-transition-timing-function", "-ms-transition-timing-function", "-o-transition-timing-function", "transition-timing-function", "-webkit-transition-duration", "-moz-transition-duration", "-ms-transition-duration", "-o-transition-duration", "transition-duration", "-webkit-transition-property", "-moz-transition-property", "-ms-transition-property", "-o-transition-property", "transition-property", "-webkit-transform", "-moz-transform", "-ms-transform", "-o-transform", "transform", "-webkit-transform-origin", "-moz-transform-origin", "-ms-transform-origin", "-o-transform-origin", "transform-origin", "-webkit-animation", "-moz-animation", "-ms-animation", "-o-animation", "animation", "-webkit-animation-name", "-moz-animation-name", "-ms-animation-name", "-o-animation-name", "animation-name", "-webkit-animation-duration", "-moz-animation-duration", "-ms-animation-duration", "-o-animation-duration", "animation-duration", "-webkit-animation-play-state", "-moz-animation-play-state", "-ms-animation-play-state", "-o-animation-play-state", "animation-play-state", "-webkit-animation-timing-function", "-moz-animation-timing-function", "-ms-animation-timing-function", "-o-animation-timing-function", "animation-timing-function", "-webkit-animation-delay", "-moz-animation-delay", "-ms-animation-delay", "-o-animation-delay", "animation-delay", "-webkit-animation-iteration-count", "-moz-animation-iteration-count", "-ms-animation-iteration-count", "-o-animation-iteration-count", "animation-iteration-count", "-webkit-animation-direction", "-moz-animation-direction", "-ms-animation-direction", "-o-animation-direction", "animation-direction", "text-align", "-webkit-text-align-last", "-moz-text-align-last", "-ms-text-align-last", "text-align-last", "vertical-align", "white-space", "text-decoration", "text-emphasis", "text-emphasis-color", "text-emphasis-style", "text-emphasis-position", "text-indent", "-ms-text-justify", "text-justify", "letter-spacing", "word-spacing", "-ms-writing-mode", "text-outline", "text-transform", "text-wrap", "text-overflow", "-ms-text-overflow", "text-overflow-ellipsis", "text-overflow-mode", "-ms-word-wrap", "word-wrap", "word-break", "-ms-word-break", "-moz-tab-size", "-o-tab-size", "tab-size", "-webkit-hyphens", "-moz-hyphens", "hyphens", "pointer-events", "opacity", "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity", "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha", "-ms-interpolation-mode", "color", "fill", "border", "border-width", "border-style", "border-color", "border-top", "border-top-width", "border-top-style", "border-top-color", "border-right", "border-right-width", "border-right-style", "border-right-color", "border-bottom", "border-bottom-width", "border-bottom-style", "border-bottom-color", "border-left", "border-left-width", "border-left-style", "border-left-color", "-webkit-border-radius", "-moz-border-radius", "border-radius", "-webkit-border-top-left-radius", "-moz-border-radius-topleft", "border-top-left-radius", "-webkit-border-top-right-radius", "-moz-border-radius-topright", "border-top-right-radius", "-webkit-border-bottom-right-radius", "-moz-border-radius-bottomright", "border-bottom-right-radius", "-webkit-border-bottom-left-radius", "-moz-border-radius-bottomleft", "border-bottom-left-radius", "-webkit-border-image", "-moz-border-image", "-o-border-image", "border-image", "-webkit-border-image-source", "-moz-border-image-source", "-o-border-image-source", "border-image-source", "-webkit-border-image-slice", "-moz-border-image-slice", "-o-border-image-slice", "border-image-slice", "-webkit-border-image-width", "-moz-border-image-width", "-o-border-image-width", "border-image-width", "-webkit-border-image-outset", "-moz-border-image-outset", "-o-border-image-outset", "border-image-outset", "-webkit-border-image-repeat", "-moz-border-image-repeat", "-o-border-image-repeat", "border-image-repeat", "stroke", "outline", "outline-width", "outline-style", "outline-color", "outline-offset", "background", "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader", "background-color", "background-image", "background-repeat", "background-attachment", "background-position", "background-position-x", "-ms-background-position-x", "background-position-y", "-ms-background-position-y", "-webkit-background-clip", "-moz-background-clip", "background-clip", "background-origin", "-webkit-background-size", "-moz-background-size", "-o-background-size", "background-size", "box-decoration-break", "-webkit-box-shadow", "-moz-box-shadow", "box-shadow", "filter:progid:DXImageTransform.Microsoft.gradient", "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient", "text-shadow", "text-rendering", "-webkit-font-smoothing", "-moz-osx-font-smoothing", "-webkit-backface-visibility", "-moz-backface-visibility", "backface-visibility" ] ], // Set space after `:` in declarations. "space-after-colon": " ", // Set space after combinator (for example, in selectors like `p > a`). "space-after-combinator": " ", // Set space after `{`. "space-after-opening-brace": "\n", // Set space after selector delimiter. "space-after-selector-delimiter": "\n", // Set space before `}`. "space-before-closing-brace": "\n", // Set space before `:` in declarations. "space-before-colon": "", // Set space before combinator (for example, in selectors like `p > a`). "space-before-combinator": " ", // Set space before `{`. "space-before-opening-brace": " ", // Set space before selector delimiter. "space-before-selector-delimiter": "", // Set space between declarations (i.e. `color: tomato`). "space-between-declarations": "\n", // Whether to trim trailing spaces. "strip-spaces": false, // Replace hard tabs with spaces "tab-size": true, // Whether to remove units in zero-valued dimensions. "unitless-zero": true, // Whether to align prefixes in properties and values. "vendor-prefix-align": true } ================================================ FILE: .editorconfig ================================================ # EditorConfig helps developers define and maintain consistent coding # styles between different editors and IDEs # editorconfig.org root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.md] trim_trailing_whitespace = false ================================================ FILE: .gitattributes ================================================ * text=auto ================================================ FILE: .gitignore ================================================ .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes ehthumbs.db Thumbs.db bower_components/ node_modules/ npm-debug.log *.map ================================================ FILE: CHANGELOG.md ================================================ # 3.7.0 (March 24, 2016) - Add `.breakpoint-prefixes()` mixin (thanks @lukechilds!). # 3.6.1 (February 10, 2016) - Fix `@font-face` mixin. # 3.5.1 (January 18, 2016) - Remove `outline: 0 none;` from form components. # 3.5.0 (January 18, 2016) - Hardcode the value of `@to-rem-font-size` to 16 so that `@font-size` can be overridden. # 3.4.1 (January 11, 2016) - Fix incorrect variable used in the grid system. - Fix `height: auto !important;` from preventing `

[Top]

Select menus

[Top]

Checkboxes

[Top]

Radio buttons

[Top]

HTML5 inputs

[Top]

Action buttons

[Top]

Layout

Wrappers

This is a wrapper.
This is a flush wrapper.
This is a full-bleed wrapper.

Grids

Basic

1
2
3
4
5
6
7
8
9
10
11
12

Basic, using <ul>

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

RTL

1
2
3
4
5
6
7
8
9
10
11
12

Gutters

1
2
3
4
5
6
7
8
9
10
11
12
1
2
3
4
5
6
7
8
9
10
11
12
1
2
3
4
5
6
7
8
9
10
11
12
1
2
3
4
5
6
7
8
9
10
11
12

Alignment

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat est adipisci sapiente quisquam sit earum libero obcaecati nobis, pariatur. Commodi placeat iure quidem enim, molestiae saepe cupiditate porro numquam nulla! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Est vitae soluta quis accusantium, praesentium modi non rem magni magnam deleniti laborum, cupiditate eligendi necessitatibus, esse sint a repudiandae repellat eos.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque repellat adipisci dolorem earum aspernatur, aliquid.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat est adipisci sapiente quisquam sit earum libero obcaecati nobis, pariatur. Commodi placeat iure quidem enim, molestiae saepe cupiditate porro numquam nulla! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Est vitae soluta quis accusantium, praesentium modi non rem magni magnam deleniti laborum, cupiditate eligendi necessitatibus, esse sint a repudiandae repellat eos.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque repellat adipisci dolorem earum aspernatur, aliquid.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat est adipisci sapiente quisquam sit earum libero obcaecati nobis, pariatur. Commodi placeat iure quidem enim, molestiae saepe cupiditate porro numquam nulla! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Est vitae soluta quis accusantium, praesentium modi non rem magni magnam deleniti laborum, cupiditate eligendi necessitatibus, esse sint a repudiandae repellat eos.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque repellat adipisci dolorem earum aspernatur, aliquid.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque repellat adipisci dolorem earum aspernatur, aliquid.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque repellat adipisci dolorem earum aspernatur, aliquid.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque repellat adipisci dolorem earum aspernatur, aliquid.

Shrink Wrap

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque repellat adipisci dolorem earum aspernatur, aliquid.

Responsive

1
2
3
4
5
6
7
8
9
10
11
12

Components

Boxes

This is a box.
This is a box with a border.
This is a round box.
This is a flush box.
This is a raised box with a border.
This is a sunken box.

Buttons

I’m a button I’m a button I’m a button I’m a button I’m a button I’m a button I’m a button

I’m a button I’m a button I’m a button I’m a button I’m a button I’m a button I’m a button

Forms

Basic

Grid Layouts

Lists

Bare List

.list-bare

  • List Item 1
  • List Item 2
    • Child List Item 1
    • Child List Item 2
      • Grandchild List Item 1
      • Grandchild List Item 2
      • Grandchild List Item 3
    • Child List Item 3
  • List Item 3

Reset List

.list-reset

  • List Item 1
  • List Item 2
    • Child List Item 1
    • Child List Item 2
      • Grandchild List Item 1
      • Grandchild List Item 2
      • Grandchild List Item 3
    • Child List Item 3
  • List Item 3

Inline List

.list-inline

  • List Item 1
  • List Item 2
  • List Item 3

Inline, Delimited List

.list-inline.list-inline-delimited

  • List Item 1
  • List Item 2
  • List Item 3

Tables

.table
# Thing 1 Thing 2 Thing 3
1 1246 Hello true
2 4652 Goodbye false
3 1657 Cheers false
4 1498 Beers true
5 3286 Awesome true
.table-border
# Thing 1 Thing 2 Thing 3
1 1246 Hello true
2 4652 Goodbye false
3 1657 Cheers false
4 1498 Beers true
5 3286 Awesome true
.table-border-rows
# Thing 1 Thing 2 Thing 3
1 1246 Hello true
2 4652 Goodbye false
3 1657 Cheers false
4 1498 Beers true
5 3286 Awesome true
.table-border-cells
# Thing 1 Thing 2 Thing 3
1 1246 Hello true
2 4652 Goodbye false
3 1657 Cheers false
4 1498 Beers true
5 3286 Awesome true
.table-border.table-striped, with <thead> and <tfoot>
# Thing 1 Thing 2 Thing 3
# Thing 1 Thing 2 Thing 3
1 1246 Hello true
2 4652 Goodbye false
3 1657 Cheers false
4 1498 Beers true
5 3286 Awesome true

Utilities

Display

This box is only visible on medium-sized devices and up.
This box is displayed inline-block.
This box is displayed as a table cell inside a parent table.
This box is displayed as a table cell inside a parent table.
This is displayed as a table row inside a parent table.
This is displayed as a table row inside a parent table.
This is displayed as a table row inside a parent table.

Floats

This box is floated to the left.
This box is floated to the right.

Font Sizes

.fz*

A A A A A A A A A

.h*

A A A A A A

Margins

.m--
.m-
.m
.m+
.m++
.mv--
.mv-
.mv
.mv+
.mv+

Paddings

.p--
.p-
.p
.p+
.p++
.pv--
.pv-
.pv
.pv+
.pv++

Text Alignment

This text is aligned to the left.
This text is aligned to the center.
This text is aligned to the right.

Vertical Alignment

This text is top-aligned. Image alt text
This text is vertically-aligned. Image alt text
This text is bottom-aligned. Image alt text

Visually Hidden

This text is hidden visually, but available for screenreaders.
This text is hidden visually, but available for screenreaders and is focusable with the keyboard.

Widths

.1/12
.2/12
.3/12
.4/12
.5/12
.6/12
.7/12
.8/12
.9/12
.10/12
.11/12
.1/1

Z-Index

1
2
3
4
5
6
7
8
9
10
================================================ FILE: layout/README.md ================================================ # Cardinal Layout The `layout/` directory is where all the style tools for creating UI layouts exist. These tools work in tandem with some of Cardinal’s utilities (e.g. widths) to make it easy for front-end developers to whip up fast, flexible UI layouts. # Table of Contents - [Overview](#overview) - [Included Layout Tools](#included-layout-tools) - [Wrappers](#wrappers) - [Grids](#grids) # Overview Using a combination of `.wrapper` and `.grid` elements, you can create some very interesting and complex layouts. Each of these tools also include modifier classes to change their behavior, even across different device sizes using prefixed class names like `.lg-2/3`, which sets the width of the element to 2/3, or 66.667% for devices “large” and up. # Included Layout Tools ## Wrappers [View Demo](http://codepen.io/cbracco/pen/eNZNML) The `.wrapper` class is a common CSS layout tool that sets a maximum width and centers the element inside its parent. ### Usage ```
Hello World!
``` It also includes a few modifier classes to force wrappers to either sit flush with its parent, or remove the maximum width, like so: ```
I am 100% the width of my parent!
I don’t have a maximum width or horizontal centering!
``` ## Grids [View Demo](http://codepen.io/cbracco/pen/LVNVdw) The `.grid` classes are used to create both simple and complex UI layouts. There are several modifier classes available for changing the order and alignment of `.grid-item` elements across various device sizes. `.grid-item` classes are used alongside the [width utility classes](https://github.com/cbracco/cardinal/blob/master/utilities/widths.less) to help create layouts. ### Usage ```
1
2
3
4
5
6
7
8
9
10
11
12
``` ================================================ FILE: layout/grids.less ================================================ /* ========================================================================== *\ Layout -> Grids ($layout-grids) \* ========================================================================== */ /** * Grid System * Hat tip to @csswizardry for the `display: inline-block` grid technique. * * @link http://cbrac.co/1RvPb53 */ /** * Grid containers * 1. Remove default styles in case `.grid` is on a