diff --git a/src/css/general.css b/src/css/general.css new file mode 100644 index 0000000..6215eae --- /dev/null +++ b/src/css/general.css @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2015 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. + */ +.general .features .pricing-table { + cursor: pointer; } + .general .features .pricing-table.columns { + padding: 0; } + .general .features .pricing-table .title { + background-color: #282828; + box-shadow: 0 4px 0 #e61718; + font-size: 1.2rem; } + .general .features .pricing-table .description { + margin-top: 4px; + font-size: 1rem; } +.general .features .small-6 { + width: 48%; } + +/*# sourceMappingURL=general.css.map */ diff --git a/src/css/general.css.map b/src/css/general.css.map new file mode 100644 index 0000000..a1fce91 --- /dev/null +++ b/src/css/general.css.map @@ -0,0 +1,7 @@ +{ +"version": 3, +"mappings": "AAAA;;GAEG;AAIC,iCAAe;EACb,MAAM,EAAE,OAAO;EACf,yCAAU;IACR,OAAO,EAAE,CAAC;EAEZ,wCAAM;IACJ,gBAAgB,EAAE,OAAO;IACzB,UAAU,EAAE,eAAe;IAC3B,SAAS,EAAE,MAAM;EAEnB,8CAAa;IACX,UAAU,EAAE,GAAG;IACf,SAAS,EAAE,IAAI;AAGnB,2BAAS;EACP,KAAK,EAAC,GAAG", +"sources": ["../scss/general.scss"], +"names": [], +"file": "general.css" +} diff --git a/src/css/panel.css b/src/css/panel.css index fad7ba8..8836ccc 100644 --- a/src/css/panel.css +++ b/src/css/panel.css @@ -29,6 +29,8 @@ html, body { color: #f2f2f2; } #menu a:hover { background-color: #0e0e0e; } + #menu img#sugar-cube { + height: 22px; } #main { width: inherit; diff --git a/src/css/panel.css.map b/src/css/panel.css.map index 8a1eb3f..7b46805 100644 --- a/src/css/panel.css.map +++ b/src/css/panel.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AAAA;;GAEG;AACH,UAAW;EACT,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;EACV,KAAK,EAAE,IAAI;EACX,MAAM,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M,EAAE,CAAC;EACT,UAAU,EAAE,MAAM;EAClB,UAAU,EAAE,IAAI;;AAGlB,eAAgB;EACd,KAAK,EAAC,IAAI;EACV,YAAY,EAAE,IAAI;EAClB,WAAW,EAAE,GAAG;;AAGlB,QAAS;EACL,SAAS,EAAE,KAAK;EAChB,WAAW,EAAE,KAAK;;AAGtB,sCAAuC;EACrC,KAAK,EAAE,KAAK;EACZ,UAAU,EAAE,GAAG;;AAGjB,YAAa;EACX,YAAY,EAAE,IAAI;EAClB,kBAAQ;IACN,KAAK,EAAE,OAAO;EAEhB,iBAAO;IACL,KAAK,EAAE,OAAO;;AAIlB,IAAK;EACH,KAAK,EAAE,OAAO;;AAGhB,yBAA0B;EACxB,SAAS,EAAE,GAAG;EACd,WAAW,EAAE,KAAK", "sources": ["../scss/panel.scss"], "names": [], "file": "panel.css" diff --git a/src/html/panel.html b/src/html/panel.html index 1d2df98..da52847 100644 --- a/src/html/panel.html +++ b/src/html/panel.html @@ -9,6 +9,7 @@ + diff --git a/src/js/views/general.js b/src/js/views/general.js index 1b11c3b..fbdbc6b 100644 --- a/src/js/views/general.js +++ b/src/js/views/general.js @@ -11,6 +11,7 @@ template: BDT.templates['general'], events: { + 'click ul[data-menu]': 'selectItem', 'change [name="tooltips"]': 'toggleTooltips', 'change [name="timeout"]': 'updateTimeout' }, @@ -40,6 +41,11 @@ var seconds = parseFloat(this.$(evt.currentTarget).val()); var ms = Math.round(seconds * 1000); BDT.page.eval('updateTimeout', [ms]); + }, + + selectItem: function(evt) { + var itemId = $(evt.currentTarget).data('menu'); + $('nav a[href=' + itemId + ']').click(); } }); diff --git a/src/js/views/navbar.js b/src/js/views/navbar.js index 8a0edc7..11ad593 100644 --- a/src/js/views/navbar.js +++ b/src/js/views/navbar.js @@ -8,11 +8,12 @@ BDT.views.Navbar = Backbone.View.extend({ template: BDT.templates['navbar'], + defaultView: '#general', render: function() { this.$el.empty().append(this.template()); this.$el.attr('tabindex', 0); - this.trigger('select', '#general'); + this.selectItem(); return this; }, @@ -25,8 +26,11 @@ if (isException) { } else { BDT.debugMode = result; - evt.preventDefault(); - var anchor = $(evt.currentTarget); + let anchor = this.$('[href=' + this.defaultView + ']'); + if (evt) { + evt.preventDefault(); + anchor = $(evt.currentTarget); + } anchor.addClass('selected').siblings().removeClass('selected'); this.trigger('select', anchor.attr('href')); } diff --git a/src/scss/general.scss b/src/scss/general.scss new file mode 100644 index 0000000..1928d4e --- /dev/null +++ b/src/scss/general.scss @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2015 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. + */ + +.general { + .features { + .pricing-table { + cursor: pointer; + &.columns { + padding: 0; + } + .title{ + background-color: #282828; + box-shadow: 0 4px 0 #e61718; + font-size: 1.2rem; + } + .description { + margin-top: 4px; + font-size: 1rem; + } + } + .small-6 { + width:48%; + } + } +} diff --git a/src/scss/panel.scss b/src/scss/panel.scss index cdab7c8..8c506a5 100644 --- a/src/scss/panel.scss +++ b/src/scss/panel.scss @@ -33,6 +33,9 @@ html, body { background-color: #0e0e0e; } } + img#sugar-cube { + height: 22px; + } } #main { diff --git a/src/templates/appstream.handlebars b/src/templates/appstream.handlebars index 7854496..c05c433 100644 --- a/src/templates/appstream.handlebars +++ b/src/templates/appstream.handlebars @@ -9,7 +9,7 @@
{{else}} -* Requires page reload
- -* Requires page reload
\n\n