Giter Site home page Giter Site logo

felixhpp / entry.css Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zmmbreeze/entry.css

0.0 1.0 0.0 1.33 MB

Customizable and readable less library for Chinese text. 一个可配置的、更适合阅读的中文文章样式库

Home Page: http://zencode.in/Entry.css/

JavaScript 12.00% CSS 31.05% Shell 0.48% HTML 56.48%

entry.css's Introduction

Entry.css

Entry.css是一个可配置的、更适合阅读的中文文章样式库,可以用来快速搭建中文博客主题或是用于项目文档的样式。

支持浏览器:IE 9+,Chrome 14+,Firefox 4+,Safari 5+,Opera 11+,Mobile Safari(iOS 5+)

为什么要有Entry.css?

作为一个前端工程师,有时朋友会让你帮忙整一整他们博客文章或是项目文档的样式。有时我们在自己博客使用了一个非常漂亮的主题,应用到自己博客上时却变的很难看(因为原主题针对的是英文)。

虽然我自己对设计也是一窍不通,不过没吃过猪肉但却见过猪跑。于是啃了些文字排版的基础知识,创造了Entry.css为一些不懂CSS的同学提供一个适合阅读的文章样式。如果你对此感兴趣或是有改进意见请在github上给我提issue,在此表示感谢~

注意:Entry.css仅仅提供对文章的样式,你可以将其嵌入到你自己的主题中。如果你想要找全套主题,那么它不是个好的选择。

快速开始

在你的HTML中嵌入Entry.css,如下:

<link rel="stylesheet" href="bin/entry.css" />
<div class="entry">
    <!-- 这里是你的文章 -->
</div>

如果你想要自定义CSS选择器或是文章主题,那么请查看下Entry.css的文档。

优势

  1. 合理的间距,遵循“垂直的旋律”,更适合中文阅读
  2. 宽度自适应,兼容手机等小屏幕
  3. 专为中文提供的书名号、缩写、着重符、旁注、上下标...
  4. 丰富的自定义选项:布局、大小、颜色等等

Bitdeli Badge

entry.css's People

Contributors

zmmbreeze avatar bitdeli-chef avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.