【文件属性】:
文件名称:transportkit:慕尼黑和纽约市公共交通服务CSS样式
文件大小:45KB
文件格式:ZIP
更新时间:2021-03-02 10:39:47
SCSS
运输工具
支持城市
慕尼黑
柏林
伦敦
纽约市
纽伦堡
雷根斯堡
萨尔茨堡
示例页面
您可以在这里查看样式: 。
建立CSS
首先将存储库克隆到您的计算机上:
git clone https://github.com/schaechinger/transportkit.git
cd transportkit
SASS位于sass文件夹中,按传输类型分隔。
要构建项目运行:
npm i
npm run build
使用CSS
CSS格式的当前版本在构建后位于styles文件夹中。 如果只想为一个城市使用样式,则每个受支持的城市都有其自己的文件。 如果克隆了存储库并编辑了SASS文件,请确保首先构建项目。
例子
格式如下: transportkit-{city} transportkit-{city}--{line} 要启用暗/对比度模式,请添加以下类: transportkit
【文件预览】:
transportkit-master
----.gitignore(46B)
----README.md(33KB)
----examples()
--------script.js(809B)
--------index.html(24KB)
--------style.css(733B)
----LICENSE(1KB)
----package.json(2KB)
----sass()
--------regensburg.scss(75B)
--------nyc.scss(68B)
--------_comment.scss(111B)
--------munich.scss(71B)
--------salzburg.scss(73B)
--------berlin.scss(71B)
--------london.scss(71B)
--------all.scss(275B)
--------transportkit()
--------nuremberg.scss(74B)
----package-lock.json(52KB)