This 2008 video says about itself:
On the Science Channel’s “Mammals vs. Dinos”: although most small prehistoric mammals were nocturnal, the Repenomamus hunted by day and preyed on small dinosaurs which was a sign of the evolution of mammals.
From the University of Washington in the USA:
Flowering plants, new teeth and no dinosaurs: New study sheds light on the rise of mammals
May 1, 2019
A new study published April 30 in the Proceedings of the National Academy of Sciences identified three factors critical in the rise of mammal communities since they first emerged during the Age of Dinosaurs: the rise of flowering plants, also known as angiosperms; the evolution of tribosphenic molars in mammals; and the extinction of non-avian dinosaurs, which reduced competition between mammals and other vertebrates in terrestrial ecosystems.
Previously, mammals in the Age of Dinosaurs were thought to be a relatively small part of their ecosystems and considered to be small-bodied, nocturnal, ground-dwelling insectivores. According to this long-standing theory, it wasn’t until the K-Pg mass extinction event about 66 million years ago, which wiped out all non-avian dinosaurs, that mammals were then able to flourish and diversify. An astounding number of fossil discoveries over the past 30 years has challenged this theory, but most studies looked only at individual species and none has quantified community-scale patterns of the rise of mammals in the Mesozoic Era.
Co-authors are Meng Chen, a University of Washington alumnus and current postdoctoral researcher at Nanjing University; Caroline Strömberg, a University of Washington biology professor and curator of paleobotany at the UW’s Burke Museum of Natural History & Culture; and Gregory Wilson, a UW associate professor of biology and Burke Museum curator of vertebrate paleontology. The team created a Rubik’s Cube-like structure identifying 240 “eco-cells” representing possible ecological roles of mammals in a given ecospace. These 240 eco-cells cover a broad range of body size, dietary preferences, and ways of moving of small-bodied mammals. When a given mammal filled a certain type of role or eco-cell, it filled a spot in the ‘Rubik’s Cube.’ This method provides the first comprehensive analysis of evolutionary and ecological changes of fossil mammal communities before and after K-Pg mass extinction.
“We cannot directly observe the ecology of extinct species, but body size, dietary preferences and locomotion are three aspects of their ecology that can be relatively easily inferred from well-preserved fossils,” said Chen. “By constructing the ecospace using these three ecological aspects, we can visually identify the spots filled by species and calculate the distance among them. This allows us to compare the ecological structure of extinct and extant communities even though they don’t share any of the same species.”
The team analyzed living mammals to infer how fossil mammals filled roles in their ecosystems. They examined 98 small-bodied mammal communities from diverse biomes around the world, an approach that has not been attempted at this scale. They then used this modern-day reference dataset to analyze five exceptionally preserved mammal paleocommunities — two Jurassic Period and two Cretaceous Period communities from northeastern China, and one Eocene Epoch community from Germany. Usually Mesozoic Era mammal fossils are incomplete and consist of fragmentary bones or teeth. Using these remarkably preserved fossils enabled the team to infer ecology of these extinct mammal species, and look at changes in mammal community structure during the last 165 million years.
The team found that, in current communities of present-day mammals, ecological richness is primarily driven by vegetation type, with 41 percent of small mammals filling eco-cells compared to 16 percent in the paleocommunities. The five mammal paleocommunities were also ecologically distinct from modern communities and pointed to important changes through evolutionary time. Locomotor diversification occurred first during the Mesozoic, possibly due to the diversity of microhabitats, such as trees, soils, lakes and other substrates to occupy in local environments. It wasn’t until the Eocene that mammals grew larger and expanded their diets from mostly carnivory, insectivory and omnivory to include more species with diets dominated by plants, including fruit. The team determined that the rise of flowering plants, new types of teeth and the extinction of dinosaurs likely drove these changes.
Before the rise of flowering plants, mammals likely relied on conifers and other seed plants for habitat, and their leaves and possibly seeds for food. By the Eocene, flowering plants were both diverse and dominant across forest ecosystems. Flowering plants provide more readily available nutrients through their fast-growing leaves, fleshy fruits, seeds and tubers. When becoming dominant in forests, they fundamentally changed terrestrial ecosystems by allowing for new modes of life for a diversity of mammals and other forest-dwelling animals, such as birds.
“Flowering plants really revolutionized terrestrial ecosystems,” said Strömberg. “They have a broader range of growth forms than all other plant groups — from giant trees to tiny annual herbs — and can produce nutrient-rich tissues at a faster rate than other plants. So when they started dominating ecosystems, they allowed for a wider variety of life modes and also for much higher ‘packing’ of species with similar ecological roles, especially in tropical forests.”
Tribosphenic molars — complex multi-functional cheek teeth — became prevalent in mammals in the late Cretaceous Period. Mutations and natural selection drastically changed the shapes of these molars, allowing them to do new things like grinding. In turn, this allowed small mammals with these types of teeth to eat new kinds of foods and diversify their diets.
Lastly, the K-Pg mass extinction event that wiped out all dinosaurs except birds 66 million years ago provided an evolutionary and ecological opportunity for mammals. Small body size is a way to avoid being eaten by dinosaurs and other large vertebrates. The mass extinction event not only removed the main predators of mammals, but also removed small dinosaurs that competed with mammals for resources. This ecological release allowed mammals to grow into larger sizes and fill the roles the dinosaurs once had.
“The old theory that early mammals were held in check by dinosaurs has some truth to it,” said Wilson. “But our study also shows that the rise of modern mammal communities was multifaceted and depended on dental evolution and the rise of flowering plants.”