Permalink
Browse files

tweaked style and quicknav.

  • Loading branch information...
1 parent 5ea166b commit d214dafb64c811ad1a376dc392133031f150ddd0 @mmorton mmorton committed Jun 7, 2012
Showing with 22 additions and 9 deletions.
  1. +16 −3 content/css/app.css
  2. +4 −4 index-dev.html
  3. +2 −2 src/Views/QuickNav.js
View
19 content/css/app.css
@@ -1434,10 +1434,23 @@ td.entry-table-description {
.quick-nav > button
{
- width: 30px;
+ width: 34px;
+ height: 34px;
background-position: 50% 50%;
background-repeat: no-repeat;
margin: 6px auto 6px auto;
}
-.quick-nav-back { background-image: url(../images/icons/Back_24.png); }
-.quick-nav-home { background-image: url(../images/icons/home_24.png); margin-top: 16px !important; }
+
+.quick-nav > button > span
+{
+ display: inline-block;
+ background-repeat: no-repeat;
+ background-position: center center;
+ margin-top: 4px;
+ width: 24px;
+ height: 24px;
+}
+
+.quick-nav-back span { background-image: url(../images/icons/Back_24.png); }
+.quick-nav-home { margin-top: 10px !important; }
+.quick-nav-home span { background-image: url(../images/icons/home_24.png); }
View
8 index-dev.html
@@ -50,7 +50,7 @@
<!-- FIGURE OUT WHY LOAD EVENT IS NOT FIRING -->
<script type="text/javascript">
(function() {
- window.addEventListener('load', function() { console.log('onload'); });
+ //window.addEventListener('load', function() { console.log('onload'); });
/*
require(['dojo/domReady!'], function(ready) {
console.log('domReady');
@@ -65,16 +65,16 @@
'localization/en',
'localization/saleslogix/en'
];
- require(['dojo/ready'].concat(localization), function(ready) {
- ready(function() {
+ require(['dojo/domReady!'].concat(localization), function(ready) {
+ //ready(function() {
console.log('domReady!');
var instance = new application(configuration);
instance.activate();
instance.startup();
instance.run();
- });
+ //});
});
});
})();
View
4 src/Views/QuickNav.js
@@ -23,8 +23,8 @@ define('Mobile/SalesLogix/Views/QuickNav', [
},
baseClass: 'quick-nav',
components: [
- {name: 'back', tag: 'button', attrs: {'class': 'button quick-nav-back', 'data-action': 'navigateBack'}},
- {name: 'home', tag: 'button', attrs: {'class': 'button quick-nav-home', 'data-action': 'navigateToHomeView'}}
+ {name: 'back', content: '<button class="button quick-nav-back" data-action="navigateBack"><span></span></button>'},
+ {name: 'home', content: '<button class="button quick-nav-home" data-action="navigateToHomeView"><span></span></button>'}
],
homeView: 'home',
navigateBack: function() {

0 comments on commit d214daf

Please sign in to comment.