[themes] Rounded corners like drupal.org

Sean Wingert seanw at norris-stevens.com
Wed Apr 16 17:21:02 UTC 2008


Richard wrote:
>> There are so many different ways you can do
it and there are even sites whose sole purpose is to showcase these
different methods.
http://www.google.com/search?hl=en&q=rounded+corners+css

Richard, your message's link to Google turned out to be awesome! It lead me to try http://www.schillmania.com/content/entries/2006/04/more-rounded-corners/. I'm using Panels2 and Views. The link's approach works well, but only when I insert "custom HTML code" in Panels2, or create a custom block containing HTML (I'm using the sample code below).

However, this approach doesn't seem very Drupal-ish--meaning, static HTML renders translations inoperable since nothing passes through t() and changes to the drupal menu aren't (obviously) updated in my static code. How do I wrap that--or the drupal.org--approach into the Drupal menu system? Do I need to create a custom region in a PHP Template, and therefore review the VanDyk / Westgate chapter on Theming?

<!-- most basic example -->
<div class="dialog">
 <div class="content">
  <div class="t"></div>
  <!-- Your content goes here -->
  <h1>Even <em>More</em> Rounded Corners With CSS</h1>
  <p>Here is a very simple example dialog.</p>

        <li class="round-li">
                <a title="An assortment of high-quality products" href="/products">Products</a>
        </li>

  <p>Note that if gradients are used, you will need a "min-height" (or fixed height) rule on the body of the dialog. If these examples appear funny at the bottom, it is because they do not enforce the min-height rule.</p>
 </div>
 <div class="b"><div></div></div>
</div>



More information about the themes mailing list