responsive-design

SVG Responsive Text

蹲街弑〆低调 提交于 2020-12-06 04:14:20
问题 I have an SVG within a web page, it consists of images + text <object data="/infographic/timeline.svg" type="image/svg+xml"> <img src="/infographic/timeline.svg" alt="Timeline"> </object> All the images are responsive, but the text isn't, so the text becomes really, REALLY small. snippet of SVG (its massive) <defs> <style> .cls-1 { font-size: 60.014px; } .cls-1, .cls-10 { opacity: 0.69; } .cls-1, .cls-10, .cls-4, .cls-5, .cls-7, .cls-8, .cls-9 { fill: #ffffff; } .cls-1, .cls-10, .cls-3, .cls

SVG Responsive Text

*爱你&永不变心* 提交于 2020-12-06 04:14:12
问题 I have an SVG within a web page, it consists of images + text <object data="/infographic/timeline.svg" type="image/svg+xml"> <img src="/infographic/timeline.svg" alt="Timeline"> </object> All the images are responsive, but the text isn't, so the text becomes really, REALLY small. snippet of SVG (its massive) <defs> <style> .cls-1 { font-size: 60.014px; } .cls-1, .cls-10 { opacity: 0.69; } .cls-1, .cls-10, .cls-4, .cls-5, .cls-7, .cls-8, .cls-9 { fill: #ffffff; } .cls-1, .cls-10, .cls-3, .cls

Responsive CSS Grid with persistent aspect ratio

随声附和 提交于 2020-12-01 09:34:30
问题 My goal is to create a responsive grid with an unknown amount of items, that keep their aspect ratio at 16 : 9. Right now it looks like this: .grid { display: grid; grid-template-columns: repeat(auto-fill, 160px); grid-template-rows: 1fr; grid-gap: 20px; } .item { height: 90px; background: grey; } <div class="grid"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div

Responsive CSS Grid with persistent aspect ratio

孤街浪徒 提交于 2020-12-01 09:33:07
问题 My goal is to create a responsive grid with an unknown amount of items, that keep their aspect ratio at 16 : 9. Right now it looks like this: .grid { display: grid; grid-template-columns: repeat(auto-fill, 160px); grid-template-rows: 1fr; grid-gap: 20px; } .item { height: 90px; background: grey; } <div class="grid"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div