johannessteu / neos-flexboxgrid
Neos CMS 包,提供基于 flexbox 的网格布局
0.1.1
2016-05-16 10:53 UTC
Requires
- johannessteu/bootstrap-gridsystem: ~3.0.0
- typo3/neos: 2.*
This package is auto-updated.
Last update: 2024-09-18 03:17:21 UTC
README
这是一个基于JohannesSteu.Bootstrap.GridSystem的包,并实现了基于 flexbox 的网格系统。此包还包含样式表,因此使用了flexboxgrid / http://flexboxgrid.com/
安装
只需通过 composer 安装
composer require johannessteu/neos-flexboxgrid
或者将此包复制到 YOUR_ROOT/Applications/JohannesSteu.Neos.FlexBoxGrid
之后,Root.ts2 将自动包含到你的主 TypoScript 中。否则使用
include: resource://JohannesSteu.Neos.FlexBoxGrid/Private/TypoScript/Root.ts2
在你的 Root.ts2 中。
在模板内部,你需要包含样式表
<link rel="stylesheet" type="text/css" href="{f:uri.resource(package: 'JohannesSteu.Neos.FlexBoxGrid', path: 'Styles/flexboxgrid.min.css')}" media="all">
在 head 部分的内部。你还可以在分布中包含 npm 模块 flexboxgrid
并使用这些文件。
用法
要使用此插件,只需在你的页面中创建一个新的内容元素,并选择其中的一种新类型。检查器面板将为您提供访问所有不同布局和设置的权限。有关用法更多信息,请参阅JohannesSteu.Bootstrap.GridSystem