Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

wocss/objects.media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This module is DEPRECATED

This module has been moved to the monorepo wocss (and renamed to @wocss/objects-media)

MEDIA

Object

The wocss-objects-media module contains the media object.

Install using npm:

$ npm install wocss-objects-media --save

Usage

With a tool like webpack you can import this module writing:

@import '~wocss-objects-media';

Then you can use the required classes:

<div class="o-media">
  <div class="o-media__left">
    <!-- here media content -->
  </div>
  <div class="o-media__body">
    <!-- here body content -->
  </div>
</div>

Modifiers

  • .o-media--gutter-[1|2|3|4] alter the spacing between the elements.

State

  • .is-reverse reverse the horizontal rendered order of the left and body content.

For example:

<div class="o-media o-media--gutter-2 is-reverse">
  <div class="o-media__left">
    <!-- here media content -->
  </div>
  <div class="o-media__body">
    <!-- here body content -->
  </div>
</div>

Dependencies

About

[DEPRECATED] wocss' media object

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages