Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
first.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Jan 25, 2012
0 parents commit 2443c73
Show file tree
Hide file tree
Showing 17 changed files with 668 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@




# GZIP HTML, CSS, JS
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
</IfModule>
179 changes: 179 additions & 0 deletions _css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
/* app CSS */

.ui-header form {
float: right;
margin: .3em;
width: 50%;
}
.ui-header form input {
padding: 0;
}
.ui-header form .ui-btn {
right: .4em;
}
.ui-header .ui-btn-inner {
border-top: none;
}
.tools {
position: absolute;
left: 15px;
top: .3em;
opacity: .7;
}
.tools a {
padding: .4em .5em;
border: 0;
}
.ui-page {
height: auto !important;
}
.nav-primary {
position: relative;
font-size: 90%;
}


/* email */
.ui-content {
margin: 5px 0;
}
.ui-content .ui-listview {
margin: 0;
}
.ui-listview li.email-content {
padding: 0;
}
.email-breadcrumb .ui-btn {
position: relative;
}
.email-meta {
overflow: hidden;
margin: 2%;
padding: .5em;
font-size: .9em;
}
.email-meta dt {
clear: left;
font-weight: bold;
width: 50px;
text-align: right;
margin: .4em 0 .2em;
}
.email-meta dt,
.email-meta dd {
float: left;
padding: .4em .6em;
}
.email-meta dd {
font-weight: normal;
padding-right: 28px;
position: relative;
line-height: 1.1;
margin: .4em .6em 0 0;
}
.email-meta dd .ui-select {
margin: 0;
position: absolute;
right: -.8em;
top: -.6em;
}

.email-body {
margin: 2%;
padding: 0 .5em;
}
.ui-listview .email-body p.ui-li-desc {
margin: .6em 0;
font-weight: normal;
font-size: 1.1em;
line-height: 1.4;
overflow: visible;
text-overflow: none;
white-space: normal;
}
.ui-collapsible,
.ui-collapsible-content {
margin: 0 0;
padding: 0;
}
.ui-content {
padding: 0;
}

/* use collapsible to toggle sub-content */

.ui-collapsible .ui-collapsible-heading {
display: none;
}
.ui-collapsible-content-collapsed,
.ui-collapsible-collapsed .ui-collapsible-heading {
display: block;
}
.ui-collapsible-heading .ui-icon {
left: 1em;
}


.nav-primary {
display: block;
}
.email-primary {
display: none;
}
.ui-collapsible-content-collapsed .nav-primary {
display: none;
}
.ui-collapsible-content-collapsed .email-primary {
display: block;
}





@media screen and (min-width: 600px) and (min-height: 20em) {
.ui-collapsible-content-collapsed .nav-primary,
.email-primary {
display: block;
}
.email-primary {
left: auto;
position: relative;
display: block;
}
.ui-collapsible-collapsed .ui-collapsible-heading,
.ui-collapsible-heading {
display: none;
}
.nav-primary {
position: absolute;
left: 0;
display: block;
width: 35%;
border-width: 1px 1px 0 0;
margin-top: 10px;
}
.ui-mobile-supported-fixed .nav-primary {
position: fixed;
}
.nav-primary ul,
.nav-primary li:first-child {
border-top: 0;
}
.nav-primary .ui-li-divider {
background: none;
}
.ui-content {
margin-left: 35%;
border-left-width: 1px;
}
}

@media screen and (min-width: 800px) and (min-height: 20em) {
.nav-primary {
width: 25%;
}
.ui-content {
margin-left: 25%;
}
}
Binary file added _css/images/ajax-loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _css/images/ajax-loader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _css/images/icons-18-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _css/images/icons-18-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _css/images/icons-36-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _css/images/icons-36-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions _css/jqm.css

Large diffs are not rendered by default.

Binary file added _images/ajax-loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/bookmark-114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/jqmlogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/logo-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions _js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
(function($){
$( document ).bind( "mobileinit", function(){
//Disable tap toggle on fixed toolbars
$.mobile.fixedtoolbar.prototype.options.tapToggle = false;

// listview divider theme default
$.mobile.listview.prototype.options.dividerTheme = "d";

//if fixed support is a go, add a class to HTML
if( !$.mobile.fixedtoolbar.prototype.options.supportBlacklist() ){
$( document.documentElement ).addClass( "ui-mobile-supported-fixed" );
}
});

//ghetto message open
$( document ).bind( "vclick", function( e ){
if( $(e.target).closest( ".email-primary li.ui-btn" ).length ){
$(".email-content").insertBefore( $(e.target).closest( "li.ui-btn" ) );
$(".email-content")[0].scrollIntoView();
window.scrollBy(0,-45)
}
});

// ghetto icon change
$( document ).one( "collapsiblecreate", function(){
$( ".ui-collapsible-heading .ui-icon" ).removeClass( "ui-icon-plus" ).addClass( "ui-icon-arrow-l" );
} );

// domready
$(function(){
//ghetto collapsible toggle
$(".nav-primary a").bind( "vclick", function(){
$(this).parents(".ui-collapsible").trigger( "collapse" );
event.preventDefault();
});
});

$(window).bind("scroll", function(){
$(".ui-li-divider").each(function(){
if($(this).offset().top < $(window).scrollTop()){
$(this).addClass("fixed")
}
})

})


})( jQuery );
162 changes: 162 additions & 0 deletions _js/jqm.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions _js/jquery.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2443c73

Please sign in to comment.