GithubHelp home page GithubHelp logo

crittermike / drupal-html Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 100 KB

A bunch of markup to be used to test your Drupal theme's handling of common elements. It includes both regular HTML elements and Drupal-specific elements (such as status messages and tabs).

License: Other

drupal-html's Introduction

Drupal Test HTML

INFORMATION:

In the index.html file, you'll find a bunch of HTML to be used to test your Drupal theme. It includes both regular old HTML elements and Drupal-specific elements (such as tabs and status messages)

USAGE:

Just copy and paste everything in the index.html file into a node, such as a page. The index.html purposely isn't a full HTML file (e.g., there is no ) so that the entire file can be copied into the node and still validate.

Then just view the node.

FAQs:

Why is this useful?

It's pretty common for developers to send out a fresh new site to the client, then a couple weeks later discover that the site looks horrible because not all possible types of content have been accounted for. This is especially dangerous when WYSIWYGs are in use.

This should fix that.

Isn't it stupid to test the style of stuff like tabs and status messages in the theme's content section instead of the header?

Well, yes and no. Yes, it's true that tabs and status messages probably won't ever me in the same div as the content itself, but it's still good to test it there to ensure that everything looks good no matter where it is. If tabs are only styled to look good in the header, for example, then they'll look like crap when moved somewhere else.

Is this useful for custom themes as well, or just for general purpose themes which will be open sourced?

Sure, it's useful for everything. If a theme is for a custom site, then you have your client, and if a theme is for Drupal.org, then anyone who downloads it is your "client", and their way, the client can screw up the styles if it hasn't been thorougly tested.

drupal-html's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.