<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cloud Soh Jun Fu on Medium]]></title>
        <description><![CDATA[Stories by Cloud Soh Jun Fu on Medium]]></description>
        <link>https://medium.com/@cloudsohjunfu?source=rss-5712bc8666d5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*f_wzWLvDRPspgDlu7tHtXg.jpeg</url>
            <title>Stories by Cloud Soh Jun Fu on Medium</title>
            <link>https://medium.com/@cloudsohjunfu?source=rss-5712bc8666d5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:44:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cloudsohjunfu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Bootstrap 4’s Breaking Changes That You Need to Know]]></title>
            <link>https://medium.com/it-wonders-web/bootstrap-4-changes-that-you-need-to-know-b33c41679c7d?source=rss-5712bc8666d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b33c41679c7d</guid>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[bootstrap-4]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Cloud Soh Jun Fu]]></dc:creator>
            <pubDate>Fri, 19 Jan 2018 11:58:10 GMT</pubDate>
            <atom:updated>2018-01-30T09:47:31.115Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tqrGoAokrdLPDJzCm3ePOQ.jpeg" /></figure><h3>What is Bootstrap?</h3><p><strong>Bootstrap</strong> has been a widely-used front-end component library for years. Previously, it was known as <strong>Twitter Blueprint</strong>. Besides that, it is also known for its modular component, responsive design, and mobile first approach. Its easy-to-use characteristic and its modern appearance have earned itself a lot of users. At the same time, it’s even the <a href="https://github.com/search?q=stars:%3E1&amp;s=stars&amp;type=Repositories"><strong>second most starred repository in GitHub</strong></a>. For these reasons, Bootstrap is almost fundamental for front-end developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/128/1*yaXLQ6gruy3qnyB_kHxtng.png" /></figure><h3>Getting Better And Better</h3><p>Since it’s an open source and free project, there are <a href="https://github.com/twbs/bootstrap/graphs/contributors"><strong>lots of contributors</strong></a><strong> </strong>striving to make it better. For this reason, Bootstrap has been improving continuously to fit the needs of community throughout the years.</p><p>As a result, the first alpha version of Bootstrap 4 was released on August 19, 2015, while the beta version was released on 10 August 2017. Presently, Bootstrap 4 has made quite some breaking changes along with its release.</p><h3>Testing the codes</h3><p>Sooner or later, you might want to test out some of the codes in the article. Don’t you worry, there is a free tool available online that you can use to ease your works — <a href="https://www.itwonders-web.com/tools/about-bootstrap4-editor/"><strong>Bootstrap 4 Editor</strong></a><strong>, </strong>created by <a href="https://www.itwonders-web.com/"><strong>IT Wonders Web</strong></a>. All you need to do is just copy the codes in this article to the editor then you can have the result instantly. Furthermore, you can even add some other custom styles to suit your needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*C4fDzpBJAUIxJz2VU9KhvQ.png" /></figure><h3>New Changes</h3><h3>1. No more <strong>Glyphicons</strong>!?</h3><p>Yes, you heard it right. After all, there isn’t any font folder in Bootstrap 4 directories. If you want it, go get it yourself. Pretty good parenting from Bootstrap 4, eh?</p><p>Probably many of you would have questions towards this removal of Glyphicons, but it has its reason. First, some people never use them. Secondly, some people use other variations of fonts. Since the fonts are in the Bootstrap 3 by default, it makes the file size bigger. Besides this, there are still <a href="https://github.com/twbs/bootstrap/issues/18749">many reasons</a>.</p><p>Presently, here are some options of the icons you can consider if you want to use icons:<br> 1. <a href="https://glyphicons.com/">Glyphicons</a><br> 2. <a href="https://octicons.github.com/">Octicons</a><br> 3. <a href="https://fontawesome.com/">Font Awesome</a><br> 4. <a href="https://useiconic.com/open/">Iconic</a><br> 5. <a href="http://www.entypo.com/">Entypo</a></p><h3>2. Support or not?</h3><p>Bootstrap 4 now only supports <strong>browser </strong>IE10+ and IOS 7+. For sites needing either of those, use v3. Besides that, they added official support for Android v5.0 Lollipop’s Browser and WebView. Earlier versions of the Android Browser and WebView remain only unofficially supported.</p><p>More importantly, the team has dropped support for <strong>Bower</strong> since Beta 2<strong> </strong>as they’ve already deprecated the package manager. Alternatively, you can consider <strong>Yarn</strong> or <strong>NPM</strong>. See <a href="https://github.com/bower/bower/issues/2298">here</a> for details.</p><h3>Units 3.</h3><p>First, global <strong>font-size</strong> has been increased to <strong>16px</strong> from 14px. Secondly, to take advantage of newer CSS support, pixels have been swapped for <strong>rems </strong>and <strong>ems</strong> to make responsive typography and component sizing even easier. The em and rem units are practical in creating a perfectly scalable layout. (eg: Viewport = the browser window size. If the viewport is 50cm wide, 1vw = 0.5cm)</p><blockquote><em>em = Relative to the font-size of the element (2em means 2 times the size of the current font)<br> rem = Relative to font-size of the root element</em></blockquote><p>Even though the <strong>primary</strong> CSS unit is now using rem, <strong>pixels</strong> are still used for media queries and grid behavior as device viewports are not affected by type size.</p><h3>4. Sass or Less?</h3><p>Bootstrap 4 has switched from Less to Sass for their source CSS files. Consequently, it compiles faster thanks to <strong>Libsass</strong>. This also means that there is no more dedicated theme stylesheet like what they did back when using Less. Instead, you can enable the built-in theme to add gradients, shadows, and others. For instance, changing the variables <strong>$enable-gradients: true</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*cPZoyznEP6Cu9EkKPzkq8g.png" /></figure><p>At the same time, try to avoid modifying Bootstrap’s core files for the best practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/1*g3puC3eWAgLBeh1Wq-NS3Q.png" /></figure><p>For example, this is the preferable way to change your configuration. (By creating a custom SCSS)</p><h3>5. Finally, a card!</h3><p>As one of the most common components of the internet, card is finally available in Bootstrap 4. Basically, it is a <strong>flexible</strong> and extensible content container, with powerful display options.<br>Wells, thumbnails, and panels have been replaced by the cards, since the cards can do whatever they did in a better way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*VTU1JjVzIumcG_mNyW6new.png" /><figcaption><strong>Example</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*uN6f5Z3Z72U0lQhVWvmICw.png" /></figure><p>Once again, you can copy it into the <a href="http://www.itwonders-web.com/bootstrap4-editor/"><strong>Bootstrap 4 Editor</strong></a> to try it out.</p><h3>6. Are you flexible?</h3><p>In brief, this means a move away from floats and more across the components.</p><blockquote><em>Quickly manage the layout, alignment, and sizing of grid columns, navigation, components, and more with a full suite of responsive flexbox utilities. For more complex implementations, custom CSS may be necessary.</em></blockquote><blockquote><em>–Bootstrap Documentation</em></blockquote><p>Bootstrap 4’s release is largely tied with the flexbox. It is <strong>powerful</strong> as it can easily make design flexible responsive layout structure without having to use floats or positioning. It was designed as a one-dimensional model instead of two-dimensional like <strong>Grid</strong>. It offers space distribution between items in an interface and powerful alignment capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*uSUmz-qVPeesomExwg7Y9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*mbz6FmQI2PfHQeq0JQeplA.png" /></figure><p>Also, Bootstrap 4 has <strong>rewritten</strong> these <strong>components</strong> with flexbox:</p><ul><li>button groups</li><li>list groups</li><li>modal</li><li>navs</li><li>navbar</li><li>pagination</li><li>card</li></ul><h3>7. Grid has a new family member</h3><p>Let’s welcome our new member <strong>xl</strong>. Bootstrap 4 now has xs, sm, md, lg, and xl. Therefore, every tier has been bumped up one level. (eg: .col-md-6 in v3 is now .col-lg-6 in v4)</p><p><strong>Grid</strong> system has also been moved to flexbox. Besides that, due to the new member <strong>xl </strong>joining the family, <strong>xs</strong> grid classes do not required the infix to more appropriately represent that they start applying styles at <strong>min-width: 0</strong>. (eg: instead of .col-xs-6, use .col-6)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*XADjnz_mgMA6Qq6apS47aA.png" /></figure><h3>8. Did you reboot?</h3><p>Still remember that every time you called the customer service, and they asked you “Did you try to reboot your device?” Well, rebooting can indeed solve a lot of issues, and here’s how Bootstrap do it.</p><p>What Bootstrap’s <strong>Reboot</strong> do is to normalize HTML elements, manually forked from <strong>Normalize.css</strong> to remove styles targeting irrelevant browsers while applying new styles. Selectors appearing in this file(_reboot.scss) only use elements — there are no classes here. This way Reboot can isolate Bootstrap’s reset styles from their component styles for a more modular approach.</p><p>For example, they reboot some &lt;table&gt; styles for a simpler baseline and later provide .table, .table-bordered, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*D3MfQtIhkXTx7qVpYRJdrA.png" /></figure><h3>9. Class name changes</h3><p>There are lots of class name has been changed. Bootstrap 4 has removed some of them, while renaming many of them. I’ve compiled them from the documentation.</p><p>Have a look for yourself, if you’re interested.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*xa_8enGf2EgRNDoJYcP3nQ.png" /></figure><h3>The end</h3><p>That’s all for this article. Did you try our <a href="http://www.itwonders-web.com/bootstrap4-editor/"><strong>Bootstrap 4 Editor</strong></a>? Have you learned the changes of Bootstrap 4?</p><p>These are the changes that I think is important. If you want more detail about it, feel free to dig into the official documentation.</p><p>Also, if you have any questions, feel free to leave the comment below. It’s my first time writing blog. Any suggestions are welcome!</p><p><em>Originally published at </em><a href="https://www.itwonders-web.com/blog/bootstrap-4-changes/"><em>www.itwonders-web.com</em></a><em> on January 19, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b33c41679c7d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/it-wonders-web/bootstrap-4-changes-that-you-need-to-know-b33c41679c7d">Bootstrap 4’s Breaking Changes That You Need to Know</a> was originally published in <a href="https://medium.com/it-wonders-web">IT Wonders Web</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>