Giter Site home page Giter Site logo

duoshuo-embed.css's Introduction

embed.css

多说评论框CSS样式源代码

安装方法

安装less

sudo npm install -g less

编译embed.css

lessc -x embed.less > embed.css

在你的网页中的duoshuoQuery部分:

var duoshuoQuery = {short_name : 'XXXX'};

增加 theme : 'none'

var duoshuoQuery = {short_name : 'XXXX', theme : 'none'};

这样,多说就不会加载自己的样式。

你自己来加载由你自己编译的embed.css,在head中加入

<link rel="stylesheet" type="text/css" href="{路径}embed.css" />

开发建议

建议通过修改variables.less来自定义配色

建议将对特定样式的修改都写在custom.less中

由于官方的代码经常更新,建议经常merge 官方代码。

git fetch origin
git merge origin master 

主题发布方法

  1. 在github上fork这个duoshuo-embed.css项目
  2. git clone 到本地
  3. 以你主题的名字,创建一个branch(分支),并切换到这个分支上
  4. 开发代码(小幅修改建议写在custom.less中)
  5. git push,在多说开发者中心发帖,或者发信给多说团队

样式参考

  1. 多说开发者中心的CSS开发指南

联系方式

如果你想分享自己的主题设计,请邮件联系:[email protected],或者到多说开发者中心发帖。

duoshuo-embed.css's People

Contributors

shen2 avatar

Watchers

Guo Yu avatar  avatar  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.