I would like to center, with respect to the page margins, a displayed equation that is boxed and is within either an enumerate or itemize environment. Below is an example of what I have. Notice that the displayed, boxed equation is centered with respect to the environment (not the page margins). By the way, I borrowed the answer to this question in order to make the boxed equation.
\documentclass[11pt]{article}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{color}
\definecolor{myblue}{rgb}{.8, .8, 1}
\usepackage{amsmath}
\usepackage{empheq}
%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%
%Code for boxed equation, taken from a question on Stack Exchange:
\newlength\mytemplen
\newsavebox\mytempbox
\makeatletter
\newcommand\mybluebox{%
\@ifnextchar[%]
{\@mybluebox}%
{\@mybluebox[0pt]}}
\def\@mybluebox[#1]{%
\@ifnextchar[%]
{\@@mybluebox[#1]}%
{\@@mybluebox[#1][0pt]}}
\def\@@mybluebox[#1][#2]#3{
\sbox\mytempbox{#3}%
\mytemplen\ht\mytempbox
\advance\mytemplen #1\relax
\ht\mytempbox\mytemplen
\mytemplen\dp\mytempbox
\advance\mytemplen #2\relax
\dp\mytempbox\mytemplen
\colorbox{myblue}{\hspace{1em}\usebox{\mytempbox}\hspace{1em}}}
\makeatother
%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%
\begin{document}
\title{Title}
\author{Author}
\date{Date}
\maketitle
\noindent Here is a sentence.
\begin{itemize}
\item Here is an item.
\item Here is an item.
\begin{enumerate}
\item Here is Step 1.
\item Here is Step 2 with an equation:
\begin{empheq}[box={\mybluebox[5pt]}]{equation*}
x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}.
\end{empheq}
\item Here is Step 3.
\end{enumerate}
\item Here is an item.
\end{itemize}
\end{document}