
\documentclass[paper=6.14in:9.21in,pagesize=pdftex,11pt,twoside,openright]{scrbook}

\usepackage[framemethod=TikZ]{mdframed}
\mdfsetup{skipbelow=2pt, backgroundcolor=gray!8, linecolor=black!40}

% \usepackage{tex4ebook}

\usepackage{pdfpages}

% EXAMPLES
%% set the counter for your environment
\newcounter{example}
\renewcommand{\theexample}{\thesection.\arabic{example}}


%% define the style
\mdfdefinestyle{example}{%
    linecolor=blue,
    outerlinewidth=2pt,
    bottomline=true,
    leftline=false,rightline=false,
    skipabove=\baselineskip,
    skipbelow=\baselineskip,
    frametitle=\mbox{},
}

%% setup the environments
%%% with number
\newmdenv[%
    style=example,
    % settings={\global\refstepcounter{example}},
    settings={},
    frametitlefont={\global\refstepcounter{example}\bfseries Example~\theexample\quad},
]{example}

\begin{document}
\begin{example}[frametitle="test"]
This is a test.
\end{example}
\end{document}
