Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
sclasen committed Sep 14, 2011
0 parents commit 4a7731b
Show file tree
Hide file tree
Showing 15 changed files with 2,254 additions and 0 deletions.
49 changes: 49 additions & 0 deletions build.xml
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="twitter_bootstrap" default="build" basedir=".">

<target name="check" unless="play.path">
<fail message="Please specify Play framework path using -Dplay.path=/path/to/framework/home" />
</target>

<path id="project.classpath">
<pathelement path="${play.path}/framework/classes"/>
<fileset dir="${play.path}/framework/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${play.path}/framework">
<include name="*.jar"/>
</fileset>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>

<target name="build" depends="compile">
<mkdir dir="lib" />
<copy todir="tmp/classes">
<fileset dir="src">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
<include name="**/play.plugins"/>
<include name="**/play.static"/>
</fileset>
</copy>
<jar destfile="lib/play-twitter_bootstrap.jar" basedir="tmp/classes">
<manifest>
<section name="Play-module">
<attribute name="Specification-Title" value="twitter_bootstrap"/>
</section>
</manifest>
</jar>
<delete dir="tmp" />
</target>

<target name="compile" depends="check">
<mkdir dir="tmp/classes" />
<javac srcdir="src" destdir="tmp/classes" target="1.5" debug="true">
<classpath refid="project.classpath" />
</javac>
</target>

</project>
35 changes: 35 additions & 0 deletions commands.py
@@ -0,0 +1,35 @@
# Here you can create play commands that are specific to the module, and extend existing commands

MODULE = 'twitter_bootstrap'

# Commands that are specific to your module

COMMANDS = ['twitter_bootstrap:hello']

def execute(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kargs.get("env")

if command == "twitter_bootstrap:hello":
print "~ Hello"


# This will be executed before any command (new, run...)
def before(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kargs.get("env")


# This will be executed after any command (new, run...)
def after(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kargs.get("env")

if command == "new":
pass
4 changes: 4 additions & 0 deletions conf/dependencies.yml
@@ -0,0 +1,4 @@
self: play -> twitter_bootstrap 0.1

require:
- play
5 changes: 5 additions & 0 deletions conf/messages
@@ -0,0 +1,5 @@
# Default twitter_bootstrap messages
# You can specialize this file for each language.
# For exemple, for french create a messages.fr file

#twitter_bootstrap.name=twitter_bootstrap
8 changes: 8 additions & 0 deletions conf/routes
@@ -0,0 +1,8 @@
# This file defines all module routes (Higher priority routes first)
#
# import these routes in the main app as :
# * / module:twitter_bootstrap
#
# ~~~~

GET /? staticDir:public/
57 changes: 57 additions & 0 deletions public/adaptive.less
@@ -0,0 +1,57 @@
/* Responsive.less
* Adjusted grid styles to handle some common screen sizes
* ------------------------------------------------------- */


// MOBILE PORTRAIT & LANDSCAPE
// ---------------------------
// For devices narrower than 480px
@media only screen and (max-width: 480px) {

// Remove fixed width of containers
.container {
width: auto;
padding: 0 10px;
}

// Undo the floating of columns
.row {
margin-left: 0;
}
.row [class^="span"] {
float: none;
width: 100%;
display: block;
margin-left: 0;
}

// Stack form elements instead of floating them
fieldset legend {
margin-left: 0;
}
label {
float: none;
width: auto;
text-align: left;
}
div.input {
margin-left: 0;
width: 100%;
}
.input-xxlarge,
input.xxlarge,
textarea.xxlarge,
select.xxlarge {
width: 80%;
}

// Adjust modal
.modal-backdrop {
padding: 10px;
}
.modal {
width: 100%;
margin: 0;
left: auto;
}
}
23 changes: 23 additions & 0 deletions public/bootstrap.less
@@ -0,0 +1,23 @@
/*!
* Bootstrap v1.2.0
*
* Copyright 2011 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: @DATE
*/

// CSS Reset
@import "reset.less";

// Core
@import "preboot.less";
@import "scaffolding.less";

// Styled patterns and elements
@import "type.less";
@import "forms.less";
@import "tables.less";
@import "patterns.less";

0 comments on commit 4a7731b

Please sign in to comment.