plone 4的默认主题。

plonetheme.sunburst的Python项目详细描述


《公共科学图书馆4》的主题是"太阳风暴"

Sunburst是Plone 4的一个现代、简约、基于网格的主题。

目标

  • 保持主题颜色中性(黑色、白色、灰色),因此它与任何 公司标志,不需要调整颜色来做 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中注册。

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

推荐PyPI第三方库


热门话题
与ReentrantLock相比,java ReentrantReadWriteLock的性能非常差   java如何使用Maven Android Studio正确导入?   安卓将ADB添加到我的Java PC应用程序   反射Java getDeclaredConstructor失败,来自JUnit的NoSuchMethodException   JSP上siteedit标记库的java替代   JavaSpring环境概要文件和JPA   java中是否有一个类似于StringBuilder的类,唯一的区别是它具有固定的长度?   JavaMathContext。小数点32 vs MathContext。小数点64,使用哪一个,为什么?   java使用spring在Ibm Websphere MQ中实现重试逻辑   java调用SpriteBatch。开始()和结束()   java有一种从文本中读取文本的方法。文件,并将其设置为pom中的maven属性。xml专家?   java让sitemesh使用struts2   Java Swing:在现有窗口上定位对话框   使用带有MemSql的JPA本机查询的java Select json列