Skip to content

Instantly share code, notes, and snippets.

@emjayess
Created February 27, 2013 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emjayess/5052039 to your computer and use it in GitHub Desktop.
Save emjayess/5052039 to your computer and use it in GitHub Desktop.
hello world drupal module exercise
body.node-type-article .field-name-body p:first-child:before {
content: "Content starts here! ";
font-style: italic;
display: block;
}
body.node-type-article #content:after {
content: "Hello World!";
font-weight: bold;
font-size: 150%;
position: fixed;
top: 50%;
right: 10px;
-webkit-transform: rotate(90deg);
writing-mode: tb-rl;
}
name = hello world
description = prints "hello world" and "content starts here" on article pages (mc module challenge)
core = 7.x
package = Module Challenge
stylesheets[all][] = hello_world.css
<?php
/**
* Nothing to see here, this is a css-only module
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment