semantic-ui

Equal height columns with centered content in flexbox

一世执手 提交于 2019-11-26 23:04:53
问题 I'd like to have two columns of equal height and their content should be middle aligned, so in the very center of each div. Problem: 'equal height' and 'middle aligned' seem to exclude themselves, the one doesn't work with the other. Question: How can I create a row with two columns with different width, equal height and their content centered in the middle of each column? <!-- 'middle aligned' and 'equal height' don't like each other ? --> <div class="ui equal height center aligned grid">

How to import jquery using ES6 syntax?

人走茶凉 提交于 2019-11-26 14:13:58
I'm writing a new app using (JavaScript) ES6 syntax through babel transpiler and the preset-es2015 plugins, as well as semantic-ui for the style. index.js import * as stylesheet from '../assets/styles/app.scss'; import * as jquery2 from '../dist/scripts/jquery.min'; import * as jquery3 from '../node_modules/jquery/dist/jquery.min'; console.log($('my-app')); index.html <!DOCTYPE html> <html lang="fr"> <head> <body> <script src="dist/app.js"></script> </body> </html> Project structure . ├── app/ │ ├── index.js ├── assets/ ├── dist/ │ ├── scripts/ │ │ ├── jquery.min.js ├── index.html ├── node