Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
5,522 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
/.lein-failures | ||
/checkouts | ||
/.lein-deps-sum | ||
/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: lein run -m jimmyapi.core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
(defproject jimmyapi "1.0.0-SNAPSHOT" | ||
:description "FIXME: write description" | ||
:dependencies [[org.clojure/clojure "1.3.0"]]) | ||
(defproject jimmyapi "0.0.1" | ||
:description "Funny picture API" | ||
:dependencies [[org.clojure/clojure "1.3.0"] | ||
[compojure "1.0.1"] | ||
[ring/ring-jetty-adapter "1.0.1"] | ||
[hiccup "0.3.8"] | ||
[org.clojure/java.jdbc "0.1.1"] | ||
[postgresql/postgresql "8.4-702.jdbc4"]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// ALERT STYLES | ||
// ------------ | ||
|
||
// Base alert styles | ||
.alert { | ||
position: relative; | ||
padding: 8px 35px 8px 14px; | ||
margin-bottom: @baseLineHeight; | ||
text-shadow: 0 1px 0 rgba(255,255,255,.5); | ||
background-color: #fcf8e3; | ||
border: 1px solid #f3edd2; | ||
.border-radius(4px); | ||
} | ||
.alert, | ||
.alert-heading { | ||
color: #c09853; | ||
} | ||
|
||
// Adjust close link position | ||
.alert > .close { | ||
*margin-top: 3px; /* IE7 spacing */ | ||
margin-right: -21px; | ||
} | ||
|
||
// Alternate styles | ||
// ---------------- | ||
|
||
.alert-success { | ||
background-color: #dff0d8; | ||
border-color: #cfe8c4; | ||
} | ||
.alert-success, | ||
.alert-success .alert-heading { | ||
color: #468847; | ||
} | ||
.alert-danger, | ||
.alert-error { | ||
background-color: #f2dede; | ||
border-color: #e9c7c7; | ||
} | ||
.alert-danger, | ||
.alert-error, | ||
.alert-danger .alert-heading, | ||
.alert-error .alert-heading { | ||
color: #B94A48; | ||
} | ||
.alert-info { | ||
background-color: #d9edf7; | ||
border-color: #bfe1f2; | ||
} | ||
.alert-info, | ||
.alert-info .alert-heading { | ||
color: #3a87ad; | ||
} | ||
|
||
|
||
// Block alerts | ||
// ------------------------ | ||
.alert-block { | ||
padding-top: 14px; | ||
padding-bottom: 14px; | ||
} | ||
.alert-block > p, | ||
.alert-block > ul { | ||
margin-bottom: 0; | ||
} | ||
.alert-block p + p { | ||
margin-top: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/*! | ||
* Bootstrap @VERSION | ||
* | ||
* Copyright 2012 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 variables and mixins | ||
@import "variables.less"; // Modify this for custom colors, font-sizes, etc | ||
@import "mixins.less"; | ||
|
||
// Grid system and page structure | ||
@import "scaffolding.less"; | ||
|
||
// Base CSS | ||
@import "type.less"; | ||
@import "forms.less"; | ||
@import "tables.less"; | ||
|
||
// Patterns | ||
@import "patterns.less"; | ||
|
||
// Components: common | ||
@import "sprites.less"; | ||
@import "dropdowns.less"; | ||
@import "wells.less"; | ||
@import "component-animations.less"; | ||
@import "close.less"; | ||
|
||
// Components: Nav | ||
@import "navbar.less"; | ||
@import "navs.less"; | ||
@import "breadcrumbs.less"; | ||
@import "pagination.less"; | ||
@import "pager.less"; | ||
|
||
// Components: Popovers | ||
@import "modals.less"; | ||
@import "tooltip.less"; | ||
@import "popovers.less"; | ||
|
||
// Components: Buttons & Alerts | ||
@import "buttons.less"; | ||
@import "button-groups.less"; | ||
@import "alerts.less"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less | ||
|
||
// Components: Misc | ||
@import "thumbnails.less"; | ||
@import "labels.less"; | ||
@import "progress-bars.less"; | ||
|
||
// Utility classes | ||
@import "utilities.less"; // Has to be last to override when necessary | ||
|
||
// Responsive | ||
@import "responsive.less"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// BREADCRUMBS | ||
// ----------- | ||
|
||
.breadcrumb { | ||
padding: 7px 14px; | ||
margin: 0 0 @baseLineHeight; | ||
#gradient > .vertical(#ffffff, #f5f5f5); | ||
border: 1px solid #ddd; | ||
.border-radius(3px); | ||
.box-shadow(inset 0 1px 0 @white); | ||
li { | ||
display: inline; | ||
text-shadow: 0 1px 0 @white; | ||
} | ||
.divider { | ||
padding: 0 5px; | ||
color: @grayLight; | ||
} | ||
.active a { | ||
color: @grayDark; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
// BUTTON GROUPS | ||
// ------------- | ||
|
||
|
||
// Make the div behave like a button | ||
.btn-group { | ||
position: relative; | ||
.clearfix(); // clears the floated buttons | ||
} | ||
|
||
// Space out series of button groups | ||
.btn-group + .btn-group { | ||
margin-left: 5px; | ||
} | ||
|
||
// Optional: Group multiple button groups together for a toolbar | ||
.btn-toolbar { | ||
.btn-group { | ||
display: inline-block; | ||
} | ||
} | ||
|
||
// Float them, remove border radius, then re-add to first and last elements | ||
.btn-group .btn { | ||
position: relative; | ||
float: left; | ||
margin-left: -1px; | ||
.border-radius(0); | ||
} | ||
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match | ||
.btn-group .btn:first-child { | ||
margin-left: 0; | ||
-webkit-border-top-left-radius: 4px; | ||
-moz-border-radius-topleft: 4px; | ||
border-top-left-radius: 4px; | ||
-webkit-border-bottom-left-radius: 4px; | ||
-moz-border-radius-bottomleft: 4px; | ||
border-bottom-left-radius: 4px; | ||
} | ||
.btn-group .btn:last-child, | ||
.btn-group .dropdown-toggle { | ||
-webkit-border-top-right-radius: 4px; | ||
-moz-border-radius-topright: 4px; | ||
border-top-right-radius: 4px; | ||
-webkit-border-bottom-right-radius: 4px; | ||
-moz-border-radius-bottomright: 4px; | ||
border-bottom-right-radius: 4px; | ||
} | ||
// Reset corners for large buttons | ||
.btn-group .btn.large:first-child { | ||
margin-left: 0; | ||
-webkit-border-top-left-radius: 6px; | ||
-moz-border-radius-topleft: 6px; | ||
border-top-left-radius: 6px; | ||
-webkit-border-bottom-left-radius: 6px; | ||
-moz-border-radius-bottomleft: 6px; | ||
border-bottom-left-radius: 6px; | ||
} | ||
.btn-group .btn.large:last-child, | ||
.btn-group .large.dropdown-toggle { | ||
-webkit-border-top-right-radius: 6px; | ||
-moz-border-radius-topright: 6px; | ||
border-top-right-radius: 6px; | ||
-webkit-border-bottom-right-radius: 6px; | ||
-moz-border-radius-bottomright: 6px; | ||
border-bottom-right-radius: 6px; | ||
} | ||
|
||
// On hover/focus/active, bring the proper btn to front | ||
.btn-group .btn:hover, | ||
.btn-group .btn:focus, | ||
.btn-group .btn:active { | ||
z-index: 2; | ||
} | ||
|
||
|
||
// Split button dropdowns | ||
// ---------------------- | ||
|
||
// Give the line between buttons some depth | ||
.btn-group .dropdown-toggle { | ||
padding-left: 8px; | ||
padding-right: 8px; | ||
@shadow: inset 1px 0 0 rgba(255,255,255,.125), 0 1px 2px rgba(0,0,0,.05); | ||
.box-shadow(@shadow); | ||
} | ||
|
||
// Reposition menu on open and round all corners | ||
.btn-group.open .dropdown-menu { | ||
display: block; | ||
top: 30px; | ||
.border-radius(5px); | ||
&.large { top: 40px; } | ||
} | ||
.btn-group.open .dropdown-toggle { | ||
background-image: none; | ||
@shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); | ||
.box-shadow(@shadow); | ||
} | ||
|
||
// Reposition the caret | ||
.btn .caret { | ||
margin-top: 6px; | ||
margin-left: 0; | ||
} | ||
|
||
// Account for other colors | ||
.primary, | ||
.danger, | ||
.info, | ||
.success { | ||
.caret { | ||
border-top-color: #fff; | ||
.opacity(75); | ||
} | ||
} | ||
|
Oops, something went wrong.