CSSJanus
Convert CSS stylesheets between left-to-right and right-to-left.
Loading...
Searching...
No Matches
CSSJanus Class Reference

CSSJanus is a utility that converts CSS stylesheets from left-to-right (LTR) to right-to-left (RTL). More...

Static Public Member Functions

static transform ( $css, $options=[], $transformEdgeInUrl=false)
 Transform an LTR stylesheet to RTL.
 

Detailed Description

CSSJanus is a utility that converts CSS stylesheets from left-to-right (LTR) to right-to-left (RTL).

Member Function Documentation

◆ transform()

static CSSJanus::transform ( $css,
$options = [],
$transformEdgeInUrl = false )
static

Transform an LTR stylesheet to RTL.

Parameters
string$cssStylesheet to transform
bool|array{transformDirInUrl?:bool,transformEdgeInUrl?:bool}$options Options array, or value of transformDirInUrl option (back-compat)
  • transformDirInUrl: Transform directions in URLs (ltr/rtl). Default: false.
  • transformEdgeInUrl: Transform edges in URLs (left/right). Default: false.
bool$transformEdgeInUrl[optional] For back-compat
Returns
string Transformed stylesheet

The documentation for this class was generated from the following file: