SharePoint Framework, React, and Office UI sps Silicon Valley
CSS Frameworks for Rapid Site Designs
1. CSS Frameworks for
Rapid Site Designs
• Ben MacNeill
ben.macneill@extension.org
• Presentation at:
slideshare.net/chillnc/
2.
3. What is a CSS framework?
• Two CSS files (core + responsive)
• A single Javascript file (dependent on jQuery)
• Two image files
4. Why use Bootstrap?
• Faster development
• Instant grid
• Library of commonly used elements (components)
• Typography
• Responsive CSS (optional)
• Compatibility (down to IE 7)
• Open source
• Active: https://github.com/popular/starred
13. Short Detour:
Reseting theViewport
• Modern mobile browsers pretend that web
pages are desktop-browser size (~900px)
• They render them at that size
• Then shrink the resulting page to fit in the
device window
14.
15. Override the Default
<meta name="viewport" content="initial-
scale=1.0, width=device-width" />
• Makes width of the browser’s viewport
equal to the width of the device’s screen
22. Data Attributes
• Trigger Bootstrap plugins without writing any JS
• Use data-toggle to call the plugin
• Use data-target or href to set your target
<a href="#myModal" data-toggle="modal">
Click me
</a>