Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Creating Interfaces with Bulma

You're reading from   Creating Interfaces with Bulma Create impressive web interfaces with this open-source Flexbox-based CSS framework

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher
ISBN-13 9781800209374
Length 194 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (6):
Arrow left icon
Oleksii Potiekhin Oleksii Potiekhin
Author Profile Icon Oleksii Potiekhin
Oleksii Potiekhin
Dave Berning Dave Berning
Author Profile Icon Dave Berning
Dave Berning
Backstop Media LLC Backstop Media LLC
Author Profile Icon Backstop Media LLC
Backstop Media LLC
Mikko Lauhakari Mikko Lauhakari
Author Profile Icon Mikko Lauhakari
Mikko Lauhakari
Jeremy Thomas Jeremy Thomas
Author Profile Icon Jeremy Thomas
Jeremy Thomas
Aslam Shah Aslam Shah
Author Profile Icon Aslam Shah
Aslam Shah
+2 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface
1. Introduction 2. Understanding Bulma, terminology, and concepts FREE CHAPTER 3. Creating and controlling forms with Bulma 4. Creating navigations and vertical menus 5. Creating responsive grids with common components 6. Creating breadcrumbs and file upload fields 7. Creating tables and selecting dropdowns 8. Creating more tables and selecting dropdowns 9. Creating notifications and cards 10. Using Bulma with Vanilla JavaScript 11. Using Bulma with Angular 12. Using Bulma with VueJS 13. Using Bulma with React 14. Customizing Bulma

Responsiveness with Bulma mixins

The last design fixes required are harder to spot, because they only occur before or after certain breakpoints.

Since Bulma is fully responsive, some of its components are styled according to the viewport size.

Media

The media items in dashboard.html combine four elements side by side:

  • 2 media-left
  • 1 media-content
  • 1 media-right

This makes the components squashed on mobile screens.

Instead, layout the four elements vertically:

@include mobile() {
  .media {
    flex-direction: column;
  }

  .media-left {
    margin: 0 0 0.5rem;
  }
}

The mobile() mixin comes from Bulma itself. It uses the $mobile variable breakpoint defined in initial-variables.sass. As a result, using this mixin instead of writing your own media query ensures that the responsiveness you write here is synchronized with Bulma’s own responsive behavior.

The last task is to fix the navbar dropdown on desktop screens:

@include desktop() {
  .navbar-dropdown .navbar-item {
 ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime