bulma

Bulma: How can I define the stack order on mobile devices

烈酒焚心 提交于 2019-12-04 15:14:40
I am taking the Bulma flexbox css framework for a spin - so far its pretty neat! The only stumbling block I've found is that I can't seem to set the display order for mobile devices. <div class="columns"> <div class="column foo">Foo</div> <div class="column bar">Bar</div> // Would like this to be first on small deviecs </div> EDIT Here is what my css looks like: body, html { background-color: blue; } .foo { order: 2; } .bar { order: 1; } @media only screen and (min-width: 769px) { body, html { background-color: red; } .foo { order: 1; } .bar { order: 2; } } Angela For this answer, I'm assuming

Center elements vertically in Bulma

你。 提交于 2019-12-04 07:15:50
I just started setting up my blog prototype with Bulma. There is a footer section with two equally divided columns. I'd like the three items (Twitter, Email, etc.) to be vertically centered in the yellow area. Is there any special class for that available in Bulma? (Please see the full example on codepen.io .) <footer class="footer" style="background-color: lightpink;"> <div class="columns"> <div class="column has-text-centered-touch" style="background-color: cyan;"> <p>Some copyright stuff...</p> <p>Templated with <a href="https://bulma.io" target="_blank">Bulma</a>. Published with <a href=

How to customize bulma variables in rails

独自空忆成欢 提交于 2019-12-03 17:00:00
I'm using the bulma rails gem and I Want to customize some of the variables it uses, specifically the font color. According to the bulma docs http://bulma.io/documentation/overview/customize/ I should do something like this: // 1. Import the initial variables @import "../sass/utilities/initial-variables" // 2. Set your own initial variables // Update blue $blue: #72d0eb // Add pink and its invert $pink: #ffb3b3 $pink-invert: #fff // Add a serif family $family-serif: "Merriweather", "Georgia", serif // 3. Set the derived variables // Use the new pink as the primary color $primary: $pink

After installing bulma through NPM, how can I refer it in my project

十年热恋 提交于 2019-12-03 08:08:33
问题 I have pulled in bulma in my project through : $ npm install bulma After that, how can I refer to it in my pages. I really don't know how to work with npm, so please can you guide me. Do I have to refer to it in my js by saying: import bulma from 'bulma' or require it, I don't know where my files are. That means I don't know where are they located. 回答1: You can find the final css build at projectName/node_modules/bulma/css/bulma.css . Chances are you're using a file loader with webpack and

After installing bulma through NPM, how can I refer it in my project

老子叫甜甜 提交于 2019-12-02 21:41:53
I have pulled in bulma in my project through : $ npm install bulma After that, how can I refer to it in my pages. I really don't know how to work with npm, so please can you guide me. Do I have to refer to it in my js by saying: import bulma from 'bulma' or require it, I don't know where my files are. That means I don't know where are they located. You can find the final css build at projectName/node_modules/bulma/css/bulma.css . Chances are you're using a file loader with webpack and similar. If, for example in a Vue project, you have that, then you can use import syntax: import 'bulma/css

How to center text with logo in the middle of it in navbar bulma

我只是一个虾纸丫 提交于 2019-12-01 07:29:33
问题 I'm trying to center text inside navbar with the logo being in between navbar items, however, I was only able to center logo as brand image. Here's my code: <a role="button" class="navbar-burger" aria-label="menu" data-target="navMenu" aria-expanded="false"> <span aria-hidden="true"></span> <span aria-hidden="true"></span> <span aria-hidden="true"></span> </a> <nav class="navbar is-white"> <div class="navbar-brand"> <a class="navbar-item" href="/"> <img src='img/logo.png' style="width: 100px;

Angular 4 *ngFor adding a row div every third column

耗尽温柔 提交于 2019-11-30 15:50:32
问题 I am using Angular 4 with the bulma css framework and I am wondering how I can add a new row (or columns class) every third column. The index variable which prints out 0,1,2 0,1,2 etc. was when I looking at a snippet when using bootstrap. Noticed some comments on maybe I can use the template syntax but didn't get that to work either. <div class="columns"> <div class="column is-one-third" *ngFor="let item of items | async; let index = index"> <app-item-details [item]='item '></app-item-details