plone 4的默认主题。
plonetheme.sunburst的Python项目详细描述
《公共科学图书馆4》的主题是"太阳风暴"
Sunburst是Plone 4的一个现代、简约、基于网格的主题。
目录
-
sunburst,plone 4的主题
- 目标
- 如何在自定义主题中依赖于Sunburst"id="id37" rel="nofollow">如何在自定义主题中依赖Sunburst
- 详细文档
- 设置并登录
- Sunburst视图
- 1.5.4(2018-02-11)
- 1.5.3(2016-08-18)
- 1.5.2(2016-02-14)
- 1.5.1(2014-07-10)
- 1.5.0(2014-03-02)
- 1.4.5(2013-08-14)
- 1.4.4(2013-06-13)
- 1.4.3(2013-05-30)
- 1.4.2(2013-05-23)
- 1.4.1(2013-03-05)
- 1.4(2013-01-17)
- 1.3.1(2013-01-01)
- 1.3.0(2012-10-16)
- 1.2.7(2012-08-11)
- 1.2.6(2012-06-29)
- 1.2.5(2012-05-25)
- 1.2.4(2012-05-07)
- 1.2.3(2012-04-15)
- 1.2.2(2012-02-07)
- 1.2.1(2011-08-25)
- 1.2-2011-07-19
- 1.1.5-2011-07-04
- 1.1.4-2011-05-13
- 1.1.3-2011-05-12
- 1.1.2-2011-03-02
- 1.1.1-2011-02-10
- 1.1-2011-02-04
- 1.0.6-2011-01-18
- 1.0.5-2011-01-04
- 1.0.4-2010-11-15
- 1.0.3-2010-09-09
- 1.0.2-2010-07-18
- 1.0.1-2010-07-07
- 1.0-2010-07-07
- 1.0b7-2010-05-31
- 1.0b6-2010-05-03
- 1.0b5-2010-05-03
- 1.0b4-2010-05-01
- 1.0b3-2010-04-10
- 1.0b2-2010-03-05
- 1.0b1-2010-02-18
- 1.0A5-2010-02-01
- 1.0a4-2009-12-21
- 1.0a3-2009-12-02
- 1.0a2-2009-11-18
- 1.0a1-2009-11-18
目标
- 保持主题颜色中性(黑色、白色、灰色),因此它与任何 公司标志,不需要调整颜色来做 10分钟向老板展示练习。
- 主题不使用任何表进行布局,并且基于deco网格 目前在plone.org上使用的方法。一切都很完美 浏览器,包括IE6。
- 网格在固定宽度和可变宽度模式下都工作,有一个 如果需要,可以启用css文件顶部的注释掉部分 固定宽度布局。
- 在表删除之外没有实质性的标记更改-类和id 保留姓名。
- 该主题使用了一些css3功能,但会优雅地降级。
- 主题不使用任何DTML。
- 当在宽度小于640px的设备上查看时,portlet会整齐地折叠起来 在主要内容区域下。这意味着该网站与 支持css的设备,如平板电脑和手机,其分辨率可能有限。
如何依赖Sunburst定制主题
自Sunburst 1.4以来,plone UI通用样式与public.css分离, 这里只剩下阳光设计风格。这就减少了 覆盖样式定义以匹配您的自定义主题。
这里是一种在自定义主题中只包含特定样式表的方法。这个 示例基于products.resourceregistries和"bundles"概念, 可从2.1a1版获得。
在cssregistry.xml配置文件中,为您的样式配置捆绑包:
<?xml version="1.0"?><objectname="portal_css"><!-- These are the Sunburst-styles which we want to include in our custom theme. They are configured to be in the "default" bundle. Note: by default, all styles land in the "default" bundle. So this configuration isn't strictly necessary. --><stylesheetbundle="default"id="authoring.css"/><stylesheetbundle="default"id="base.css"/><stylesheetbundle="default"id="controlpanel.css"/><stylesheetbundle="default"id="forms.css"/><stylesheetbundle="default"id="IEFixes.css"/><stylesheetbundle="default"id="member.css"/><stylesheetbundle="default"id="reset.css"/><stylesheetbundle="default"id="RTL.css"/><!-- These are Sunburst-design specific styles, which we do not want to include in our theme. They are configured to be in the "sunburst" bundle. --><stylesheetbundle="sunburst"id="columns.css"/><stylesheetbundle="sunburst"id="deprecated.css"/><stylesheetbundle="sunburst"id="invisibles.css"/><stylesheetbundle="sunburst"id="kupuplone.css"/><stylesheetbundle="sunburst"id="mobile.css"/><stylesheetbundle="sunburst"id="navtree.css"/><stylesheetbundle="sunburst"id="portlets.css"/><stylesheetbundle="sunburst"id="print.css"/><stylesheetbundle="sunburst"id="public.css"/><!-- This is your custom style --><stylesheetbundle="mycustombundle"id="mystyles.css"insert-after="*"cacheable="True"compression="safe"cookable="True"enabled="True"expression=""media="screen"rel="stylesheet"rendering="link"/></object>
在registry.xml中,配置要包含在 自定义主题。"Sunburst"包不包括在内。
<?xml version="1.0"?><registry><recordname="Products.ResourceRegistries.interfaces.settings.IResourceRegistriesSettings.resourceBundlesForThemes"interface="Products.ResourceRegistries.interfaces.settings.IResourceRegistriesSettings"field="resourceBundlesForThemes"><valuepurge="false"><elementkey="mycustom_skin"><element>jquery</element><element>default</element><element>mycustombundle</element></element></value></record></registry>
当然,mycustom_皮肤也需要在skins.xml中注册。