0.1.1 • Published 10 years ago
vcl-utils v0.1.1
VCL utils
Basic utility classes.
Features
Utility classes for:
- Floated elements
- Box model manipulation
- Alignment of inline elements
- Text and word wrapping
- Visibility control
- Scrollable containers
- Text selection by users
Usage
Inline Element Alignment
inline-element-alignment example
Scrollable Containers
Text and Word Wrapping
text-and-word-wrapping example
Classes
Float Helpers
vclFloatLeftvclFloatRightvclFloatNonevclClearFixvclClear
Block Element alignment
vclCenterBlock
Border
vclNoBorder
Padding
vclNoPadding
Margin
vclNoMargin
Alignment of inline Elements
vclAlignLeftvclAlignRightvclAlignCenteredvclAlignJustified
Text and Word Wrapping
vclBreakWordsvclNoWrapvclOverflowEllipsis
Visibility Control
vclOverflowHiddenvclDisplayNonevclVisibilityHidden
Scrollable Containers
vclScrollable
Modifiers:
vclX: scrollable only along x-axisvclXOnHover: scrollable only along x-axis when hoveredvclY: scrollable only along y-axisvclYOnHover: scrollable only along y-axis when hovered
Text Selection by Users
vclEnableUserSelectvclDisableUserSelect
Demo
example.html on GH-pages.