{
flex: 1,
width: null, // important
height: 300 // any size
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:10.15.3 as node | |
| FROM ruby:2.5.1 | |
| RUN apt-get update -qq && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libpq-dev \ | |
| libfontconfig1 && \ | |
| rm -rf /var/lib/apt/lists/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:10.15.3 as node | |
| FROM ruby:2.5.1 | |
| RUN apt-get update -qq && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libpq-dev \ | |
| libfontconfig1 && \ | |
| rm -rf /var/lib/apt/lists/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const puppeteer = require("puppeteer"); | |
| const sleep = timeout => new Promise(resolve => setTimeout(resolve, timeout)); | |
| const { email, pass } = process.env; | |
| const startTime = "2018/12/2 10:59:00"; | |
| const viewport = { | |
| width: 1368, | |
| height: 819 | |
| }; |
- container 有
padding的話 masonry 計算會不準確,會一直無故換行 - container 要
padding的話要在 container 之外再包一個 wrapper,把padding設在 wrapper 即可。 percentPosition: true的時候gutter不能接受固定 size 如:16pxorcalc(100% - 16%)- responsive layout 最保險的作法是把 gutter 當作是 item 裡的
padding來處理,columnWidth直接用百分比即可
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const templates = | |
| fs | |
| .readdirSync("templateDir") | |
| .filter(filename => filename.match(/\.pug$/)) | |
| .map((filename) => { | |
| return new HtmlWebpackPlugin({ | |
| filename: filename, | |
| template: path.resolve("templateDir", filename) | |
| }) | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export getMediaQuery = getMediaQuery | |
| export getBreakpoint = (targetDevice) -> | |
| media = {} | |
| for device, query of getMediaQuery() | |
| if query.match /min-width:\s(\d+)px/i | |
| media[device] = RegExp.$1 | |
| media[targetDevice] |
NewerOlder