为YER网站生成基本的Sixfoh编码图像。

sixfoh的Python项目详细描述


六角

为您的网站生成基sixfoh编码的图像。

安装

pip install sixfoh

用法

给Sixfoh一些图像转换成Base64::

sixfoh datauri/*.png

如果没有给出任何文件,它将在当前目录中查找图像。

使用量少于

--less`标记对输出进行管道化,它将在导入到的变量前面加上较少的变量 您的css.:

sixfoh --less myimage.png > datauri.less

我通常会在photoshop中将所有的图标分割并输出到一个“data uri”文件夹中。

sixfoh -L data-uri/* > datauri.less

导入并使用:

@import "datauri.less";

#Logo {
    background-image: @myimage;
}

对于带有--scss标志的sass,您也可以这样做。

选项

-LWrites images into a group of LessCSS variables, to be included in a stylesheet or written to a .less file to be imported. (alias: –less)
-SWrites images into a group of Sass variables, to be included in a stylesheet or written to a .scss file to be imported. (alias: –scss)
-fForce output and ignore warnings.

-

图像:http://www.gifmania.co.uk/cars/3D/lowrider.gif

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Gson类中的java验证错误   If和elseif之间的java差异?   字典Java8地图。输入比较器   java连接到远程计算机以获得WMI支持   java如何使用改型处理JSON对象中的空值   在Java中使用Comparator时不可编译的源代码   java将Jar添加到JSP的运行时路径   带有随机对象的while循环的java大O时间复杂性   java可以在不考虑参数的情况下模拟方法吗?   java我有一个简单的代码,它不工作。无法修复错误“println”   向eclipse添加Xively java库   java是否可以启用本机代码的缓存?   全局变量如何在Java中的所有类之间共享要使用的语言环境?   Java内存游戏如何翻转单个卡?