Giter Site home page Giter Site logo

wpplugins / scale-to-fit Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

This is a mirror of the svn repo: https://plugins.svn.wordpress.org/scale-to-fit/, the master is always the latest release.

Home Page: http://wpplugins.it

License: GNU General Public License v2.0

JavaScript 86.10% PHP 13.90%

scale-to-fit's Introduction

=== Plugin Name ===
Contributors: metatavu
Tags: utilities
Requires at least: 4.6
Tested up to: 4.6
Stable tag: 0.0.1
License: GPLv2 or later.

== Description ==

wordpress-scale-to-fit plugin allows developers to force some elements to fit inside other. This can be useful when developers need to make 
some non-responsive components (e.g. iframes) to scale with the rest of the page.

Key Features:

  * Allows developers to force elements to fit inside others
 
== Installation ==

  * Upload folder into /wp-content/plugins -directory
  * Activate the plugin in 'Plugins' menu

== Configuration ==

Add css class "scale-to-fit" to element you wish to initialize scale-to-fit.

You can use following data -attributes to control scaling:

  * data-element-method: Method to find scaled element. Allowed values: 
    - self - element it self (default)
    - parent - reference element
    - closest - closest ancestor of reference element matching data-element -attribute selector
    - find - closest descendant of reference element matching data-element -attribute selector
  * data-element: CSS Selector for closest and find methods 
  * data-container-method: Method to find container element. Allowed values: 
    - self - reference element
    - parent - parent of reference element (default)
    - closest - closest ancestor of reference element matching data-element -attribute selector
    _ find - closest descendant of reference element matching data-element -attribute selector
  * data-container: CSS Selector for closest and find methods
  
== Changelog ==

= 0.1 =
* Initial version

scale-to-fit's People

Contributors

wppluginsbot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.