Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@avalanche/object-media

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avalanche/object-media

Media object - image on left/right, text next to it

  • 4.0.0-alpha.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by133.33%
Maintainers
1
Weekly downloads
 
Created
Source

@avalanche/object-media

Media object - image on left/right, text next to it.

  • [Documentation](https://avalanche.oberlehner.net/documentation/#object: media)

Install

npm install @avalanche/object-media --save-dev

Basic usage

This package requires that node-sass (or one of the grunt, gulp, etc. equivalents) in combination with the node-sass-magic-importer custom importer is used.

// Import the main file.
@import '~@avalanche/object-media';

// Import just the mixin file.
@import '~@avalanche/object-media/scss/mixins';

// Import just the classes you need.
@import '{ .o-media, .o-media__body } from ~@avalanche/object-media';

// Not a fan of the "o-" prefix?
@import '{ .o-media as .media, .o-media__body as .media__body } from ~@avalanche/object-media';

Demo

Default spacing size

<div class="o-media">
  <div class="o-media__figure">
    <img src="http://placehold.it/50x50" alt="Placeholder">
  </div>
  <div class="o-media__body">
    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et.
  </div>
</div>

X-large spacing size

<div class="o-media o-media--xl">
  <div class="o-media__figure">
    <img src="http://placehold.it/50x50" alt="Placeholder">
  </div>
  <div class="o-media__body">
    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et.
  </div>
</div>

Mixins

@import '~@avalanche/object-media/scss/mixins';

// Usage.
.media {
  @include o-media();
}

.media-figure {
  @include o-media-figure();
}

.media-body {
  @include o-media-body();
}

About

Author

Markus Oberlehner
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner

License

MIT

Keywords

FAQs

Package last updated on 27 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc