\href{https://travis-ci.org/css-modules/postcss-modules-local-by-default}{\texttt{ }} \href{https://codecov.io/github/css-modules/postcss-modules-local-by-default?branch=master}{\texttt{ }} \href{https://www.npmjs.com/package/postcss-modules-local-by-default}{\texttt{ }}\hypertarget{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21739}{}\doxysection{CSS Modules\+: Local by Default}\label{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21739}
Transformation examples\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{.foo \{ ... \} /* => */ :local(.foo) \{ ... \}}
\DoxyCodeLine{}
\DoxyCodeLine{.foo .bar \{ ... \} /* => */ :local(.foo) :local(.bar) \{ ... \}}
\DoxyCodeLine{}
\DoxyCodeLine{/* Shorthand global selector */}
\DoxyCodeLine{}
\DoxyCodeLine{:global .foo .bar \{ ... \} /* => */ .foo .bar \{ ... \}}
\DoxyCodeLine{}
\DoxyCodeLine{.foo :global .bar \{ ... \} /* => */ :local(.foo) .bar \{ ... \}}
\DoxyCodeLine{}
\DoxyCodeLine{/* Targeted global selector */}
\DoxyCodeLine{}
\DoxyCodeLine{:global(.foo) .bar \{ ... \} /* => */ .foo :local(.bar) \{ ... \}}
\DoxyCodeLine{}
\DoxyCodeLine{.foo:global(.bar) \{ ... \} /* => */ :local(.foo).bar \{ ... \}}
\DoxyCodeLine{}
\DoxyCodeLine{.foo :global(.bar) .baz \{ ... \} /* => */ :local(.foo) .bar :local(.baz) \{ ... \}}
\DoxyCodeLine{}
\DoxyCodeLine{.foo:global(.bar) .baz \{ ... \} /* => */ :local(.foo).bar :local(.baz) \{ ... \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21740}{}\doxysubsection{Building}\label{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21740}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install}
\DoxyCodeLine{\$ npm test }

\end{DoxyCode}



\begin{DoxyItemize}
\item Build\+: \href{https://travis-ci.org/css-modules/postcss-modules-local-by-default}{\texttt{ }}
\item Lines\+: \href{https://coveralls.io/r/css-modules/postcss-modules-local-by-default?branch=master}{\texttt{ }}
\item Statements\+: \href{https://codecov.io/github/css-modules/postcss-modules-local-by-default?branch=master}{\texttt{ }}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21741}{}\doxysubsection{Development}\label{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21741}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm run autotest }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21742}{}\doxysubsection{License}\label{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21742}
MIT\hypertarget{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21743}{}\doxysubsection{With thanks}\label{md_sfcode_node_modules_postcss_modules_local_by_default_README_autotoc_md21743}

\begin{DoxyItemize}
\item \href{https://github.com/sokra}{\texttt{ Tobias Koppers}}
\item \href{https://github.com/geelen}{\texttt{ Glen Maddern}}
\end{DoxyItemize}

\DoxyHorRuler{0}
 Mark Dalgleish, 2015. 