Richard (10-12) was 0-3 with a 7.64 ERA in his three previous starts against San Francisco this season.
Maybin tied his career high with four hits, including a two-run single in the first inning when the Padres scored three times against Ryan Vogelsong (10-7).
ROCKIES 3, MARLINS 2
DENVER (AP) _ Jordan Pacheco homered among his three hits as the banged-up Colorado Rockies slowed down Giancarlo Stanton and beat Miami.
Stanton went homerless for the first time in seven games at Coors Field. On Saturday night, he became the first player in big league history to homer in his first six games in a particular park, the Marlins said in citing the Elias Sports Bureau.
Stanton drew two intentional walks and went 0 for 2 in the series finale.
Rockies outfielder Eric Young Jr. left after one inning with a strain in his left ribcage and shortstop Josh Rutledge exited in the fifth with tightness in his left thigh.
Adam Ottavino (5-1) tossed three scoreless innings for the win and Rafael Betancourt pitched the ninth for his 23rd save.
Josh Johnson (7-10) lost his third consecutive start.
PHILLIES 8, BREWERS 0
MILWAUKEE (AP) _ Kyle Kendrick pitched three-hit ball for eight innings and the Philadelphia Phillies beat Milwaukee after waiting out a rare rain delay at Miller Park.
The game was held up for 7 minutes when showers popped up in the first inning with the retractable roof still open. It takes about 10 minutes for the roof to fully shut, and the game was delayed with the Brewers batting in the bottom half when the rain became harder. Most of the Phillies stayed on the field.
Kendrick (6-9) struck out seven and walked one. In his previous start, he threw seven impressive innings and beat Miami 1-0.
Domonic Brown drove in four runs and scored twice. Michael Martinez, who began the day hitting .130, homered off Randy Wolf (3-10).