The answer would depend on the equities held. Some can weather inflation better than others (such as companies that have solid dividend growth) and even outpace inflation. Some industries are also safer against inflation than others, such as consumer staples and utilities since people usually have to purchase these regardless of how much $ they have.
In looking over the data comparing S&P 500 returns, dividends, and inflation, the results are all over the map. In the 50's the total return was 19.3% with inflation at 2.2%. Then in the 70's returns were 5.8% with inflation at 7.4 percent, leading one to think that inflation diminished returns. But then in the 80's inflation was 5.1%, yet the return on the S&P was up to 17.3%
Either way, aside from the 70's every other decade since 1950 has outpaced inflation (as long as you are including dividends; hence my first paragraph).
S&P 500: Total and Inflation-Adjusted Historical Returns
Also, the 7% average stock appreciation you mention is just that, an average. You are comparing a year-over-year number (7% inflation) with an aggregated one (stock performance over x number of years) and that is a misrepresentation and is not being weighted for the difference in what those numbers mean.
Finally, there are thousands of things that have an effect on the stock market and stocks. Some are controllable and others are not. The idea that any one of them, such as inflation, has any sort of long-term, everlasting effect on prices that they cannot outmaneuver is improbable. This is where researching your stocks comes in...and if done prudently, who cares what the inflation rate is?