Você está na página 1de 19

Theming for Panels 3

Stephanie Pakrul
stephthegeek

Chris Fassnacht
sociotech

Jay Wolf
jwolf

www.TopNotchThemes.com
Agenda
A quick overview of Panels
Ways to style Panels 3
Using layouts and core Panels styles
Basics
Flexible Layout Designer
System block styles
Applying styles to regions vs. Panes

Styling with CSS


Hijacking Panels' rounded corners
Embed CSS in Panels UI
Add ID/class in Panels UI & target in theme

Providing custom styles and layouts within the theme


Overview of Panels
Why Panels?
Using Panels puts the power of configuring layouts and
selecting styles more in the hands of editors / administrators

The future of Drupal is reusable and modular theming

Why Panels theming?


Many different approaches to styling Panels with varying
levels of complexity and control
Working with Layouts
Basics

Flexible Layout Designer

System block styles

Applying styles to regions vs. Panes


Basics of Panels Layouts
Panels 3 comes with
several standard
layout types

You can use these with


Drupal's regions, or
disable your sidebars
Flexible Layout Designer
Flexible Layout Designer
demonstration
System block styles
The System Block style
uses your theme's
block.tpl.php file
This option may be
more or less useful to
you, depending on
theme structure
demonstration
Applying styles to regions vs. panes

You can apply styles to


the containers, called
Regions

Or to the sections of
content inside
regions, called Panes
demonstration
Styling with CSS

Hijacking Panels' rounded corners

Embed CSS in Panels UI

Add ID/class in Panels UI & target in theme


Rounded corners style
Panels comes with a
basic rounded corner
style

You can take over this


markup in your
theme's CSS and
replace with your own
graphics
Adding your own CSS
Adding your own CSS
For simple changes,
add your CSS right in
Panels' UI

Even better, add a


unique ID or class to
the panel and target
this in your theme's
style.css file
demonstration
Styles & Layouts with Theme
Define a Panels plugins
in your theme

Layouts
Region/pane styles

Add plugins to theme's


.info file
demonstration
Questions?
Code / screenshots

Links
http://drupal.org/project/panels

http://drupal.org/project/acquia_marina - 2.x dev branch


http://drupal.org/project/acquia_slate - 2.x dev branch

Thank you!

Você também pode gostar