The dinosaurs may have a lacking amount of vitamin d. which came from the sunlight. But alot of dust and particles blocked a maximum amount of the sun.
So the dinosaur's bones can no longer support the weight. But the smaller dinosaurs survived and evolved.