An open API service indexing awesome lists of open source software.

https://github.com/xwp/wp-styles-control-background-position

Styles Control: background-position
https://github.com/xwp/wp-styles-control-background-position

Last synced: 10 months ago
JSON representation

Styles Control: background-position

Awesome Lists containing this project

README

          

# Styles Control: background-position

Extension for Styles plugin to add a background-position control type

**Contributors:** [x-team](http://profiles.wordpress.org/x-team), [westonruter](http://profiles.wordpress.org/westonruter)
**Tags:** [styles](http://wordpress.org/plugins/tags/styles), [customizer](http://wordpress.org/plugins/tags/customizer), [background](http://wordpress.org/plugins/tags/background)
**Requires at least:** 3.6
**Tested up to:** 3.6
**Stable tag:** trunk (master)
**License:** [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)

## Description ##

This is a plugin/extension for the [Styles plugin](http://stylesplugin.com/). It adds a new `background-position` control type
which can be referenced by that ID in the `type` field of the control defined in your customize.json. It allows you to specify
the X and Y coordinates separately, allowing lengths of any unit, as well as keywords.

[![Build Status](https://travis-ci.org/x-team/wp-styles-control-background-position.png)](https://travis-ci.org/x-team/wp-styles-control-background-position)

## Screenshots ##

### Set pixel X and Y coordinates

![Set pixel X and Y coordinates](assets/screenshot-1.png)

### Use keyword positions for X and Y coordinates

![Use keyword positions for X and Y coordinates](assets/screenshot-2.png)

### Use a pixel value and a keyword value for either dimension

![Use a pixel value and a keyword value for either dimension](assets/screenshot-3.png)

### Change unit from pixel to percentage and other CSS units

![Change unit from pixel to percentage and other CSS units](assets/screenshot-4.png)

## Changelog ##

### 0.1.0 ###
First Release