国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal模块] Drupal 7.X/6.X模块介绍:Skinr 主题定义一套可重用和模块化CSS

[复制链接]
发表于 8-20-2012 21:44 | 显示全部楼层 |阅读模式

Skinr

Skinr's main purpose is to allow the theme to define a set of reusable and modular CSS styles, and to make those styles available in Drupal's UI. Skinr was developed for themers to allow them to tap into the power of Drupal's modularity and apply those same principals to theme development. It does not provide any styles of its own. These styles are defined in the .info file of the theme (or subtheme), by the themer and end up in various places in Drupal's UI, such as:

skinr的主要目的是为了让主题定义一套可重用的和模块化的CSS样式,这些样式Drupal的UI 。 skinr发展为主题制作,让他们进军Drupal的模块化电源,适用相同的校长,以发展为主题。它不提供其自身的任何样式。这些样式的主题(或分专题)的信息文件中定义,由themer和Drupal的用户界面,如在不同的地方在结束了。

  • Block Configuration
  • Node Type (and Comment) Configuration
  • Panel Panes
  • Views Displays

It also provides a CSS class field, where you can manually add custom classes.

它还提供了一个CSS类的领域,在那里你可以手动添加自定义类。

Who should use this module?

Here are a few examples, though there are many more possibilities.

  • You are a themer looking to dramatically reduce the size and bloat of your CSS files.
  • 如果你是一个主题制作者将大大减少你CSS文件的大小和膨胀。

  • You want to be able to apply the same CSS across blocks, panel panes, views, nodes and comments.
  • You are developing a theme for a client and want the client to have more flexibility and access to a multitude of existing styles, after you've completed the project and handed it off.
  • You are a contrib theme developer who wants to provide multiple styles and allow the site administrator to be able to choose where to apply them.
  • You are a rebel who wants to rip out CSS classes in every possible template file and use your own instead, but need a better way to add your own classes back to Drupal.

Module developers can take advantage of Skinr using its API. Detailed documentation on how to do this is included in docs.php.

This module was developed by Bala Bosch and Jacine Luisi of Gravitek Labs. It was originally inspired by the blocktheme module.

Skinr Documentation

Documentation for Skinr 6.x-2.x is included in Skinr via the Advanced Help module.
Documentation for Skinr 7.x-2.x is available at Skinr.org.

Join our Group

Join the Skinr group on groups.drupal.org.

Help us test out the new version

Read about the awesome new features in Skinr 2.

6.x-2.x NOTE: There are lots of changes in the new version. Backup your entire site before doing anything. It is STRONGLY recommended that you do NOT use this on production sites at this point.

7.x-2.0-beta1 NOTE: Backup your entire site before upgrading, just in case.

Downloads



太累不翻译了,感兴趣的就DIY你的眼睛吧

|2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

GMT+8, 2-12-2025 12:45 , Processed in 0.425314 second(s), 110 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表