Use
\.myClass\s*\{[^{}\r]*font-size:10px;[^{}]*\}
See proof. The expression will match .myClass { and then any characters other than curly brackets up to font-size:10px;, then any text other than the same brackets till a close curly bracket.
EXPLANATION
NODE EXPLANATION
--------------------------------------------------------------------------------
\. '.'
--------------------------------------------------------------------------------
myClass 'myClass'
--------------------------------------------------------------------------------
\s* whitespace (\n, \r, \t, \f, and " ") (0 or
more times (matching the most amount
possible))
--------------------------------------------------------------------------------
\{ '{'
--------------------------------------------------------------------------------
[^{}\r]* any character except: '{', '}', including linebreaks
(0 or more times matching the most amount possible)
--------------------------------------------------------------------------------
font-size:10px; 'font-size:10px;'
--------------------------------------------------------------------------------
[^{}]* any character except: '{', '}' (0 or more
times (matching the most amount possible))
--------------------------------------------------------------------------------
\} '}'
/.myClass \{ \}font-size:10pxalways the first attribute? Then, something like\.myClass\s*\{\s*font-size:10px;[\w\W]*?\}might work.