Upgrade to Bootstrap 3

This commit is contained in:
benweet 2013-09-03 11:37:59 +01:00
parent 18eb63732a
commit 92d3baeb83
23 changed files with 798 additions and 218 deletions

View File

@ -5,6 +5,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-string-replace');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-bower-requirejs');
grunt.loadNpmTasks('grunt-bump');
/***************************************************************************
* Configuration
@ -78,6 +79,19 @@ module.exports = function(grunt) {
]
}
},
'config': {
files: {
'res/config.js': 'res/config.js'
},
options: {
replacements: [
{
pattern: /(var VERSION = ).*/,
replacement: 'var VERSION = "<%= pkg.version %>";'
},
]
}
},
'cache-manifest': {
files: {
'cache.manifest': 'cache.manifest'
@ -94,7 +108,7 @@ module.exports = function(grunt) {
},
]
}
}
},
},
copy: {
resources: {
@ -134,6 +148,17 @@ module.exports = function(grunt) {
target: {
rjsConfig: 'res/main.js'
}
},
bump: {
options: {
files: [
'package.json',
'bower.json'
],
updateConfigs: [
'pkg'
]
}
}
});
@ -192,9 +217,6 @@ module.exports = function(grunt) {
});
/***************************************************************************
* Other tasks
*/
grunt.registerTask('list-res', function() {
var resourceList = [];
grunt.util.recurse(arguments, function(arg) {
@ -206,14 +228,22 @@ module.exports = function(grunt) {
grunt.config.set('resources', resourceList.join('\n'));
});
function getResources(folder) {
return result;
}
/***************************************************************************
* Default task
*/
grunt.registerTask('default', function() {
grunt.task.run('clean');
grunt.task.run('build-js');
grunt.task.run('build-css');
grunt.task.run('build-res');
});
/***************************************************************************
* Deploy task
*/
grunt.registerTask('deploy', function() {
grunt.task.run('bump-only:patch');
grunt.task.run('string-replace:config');
grunt.task.run('default');
});
};

View File

@ -1,5 +1,7 @@
{
"name": "stackedit",
"version": "2.0.0",
"description": "StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.",
"dependencies": {
"bootstrap": "3.0.0",
"jquery": "2.0.3",
@ -16,6 +18,7 @@
"css_browser_selector": "*",
"FileSaver": "*",
"stacktrace": "~0.5.3",
"requirejs-text": "~2.0.10"
"requirejs-text": "~2.0.10",
"bootstrap-tour": "~0.6.0"
}
}

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
#Date Sat Aug 31 2013 00:28:38
#Date Tue Sep 03 2013 11:36:31
CACHE:
index.html

View File

@ -6,10 +6,6 @@
"directories": {
"doc": "doc"
},
"dependencies": {
"less": "~1.4.2",
"requirejs": "~2.1.8"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-requirejs": "~0.4.1",
@ -18,7 +14,8 @@
"grunt-contrib-copy": "~0.4.1",
"bower": "~1.2.5",
"grunt-bower-requirejs": "~0.7.1",
"grunt-bower-task": "~0.3.1"
"grunt-bower-task": "~0.3.1",
"grunt-bump": "0.0.11"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"

File diff suppressed because one or more lines are too long

View File

@ -1210,7 +1210,7 @@ body.modal-open,.modal-open .navbar-fixed-top,.modal-open .navbar-fixed-bottom{m
.tooltip.right{margin-left:3px;padding:0 5px}
.tooltip.bottom{margin-top:3px;padding:5px 0}
.tooltip.left{margin-left:-3px;padding:0 5px}
.tooltip-inner{max-width:220px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;border-radius:4px}
.tooltip-inner{max-width:240px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;border-radius:4px}
.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}
.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000000}
.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000000}
@ -1220,24 +1220,24 @@ body.modal-open,.modal-open .navbar-fixed-top,.modal-open .navbar-fixed-bottom{m
.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000000}
.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000000}
.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000000}
.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;background-color:#ffffff;background-clip:padding-box;border:1px solid #cccccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);white-space:normal}
.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;background-color:#edf1f3;background-clip:padding-box;border:1px solid #cccccc;border:1px solid #edf1f3;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);white-space:normal}
.popover.top{margin-top:-10px}
.popover.right{margin-left:10px}
.popover.bottom{margin-top:10px}
.popover.left{margin-left:-10px}
.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}
.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:normal;line-height:18px;background-color:rgba(0,0,0,0);border-bottom:1px solid rgba(0,0,0,0);border-radius:5px 5px 0 0}
.popover-content{padding:9px 14px}
.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}
.popover .arrow{border-width:11px}
.popover .arrow:after{border-width:10px;content:""}
.popover.top .arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999999;border-top-color:rgba(0,0,0,0.25);bottom:-11px}
.popover.top .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#ffffff}
.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999999;border-right-color:rgba(0,0,0,0.25)}
.popover.right .arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#ffffff}
.popover.bottom .arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999999;border-bottom-color:rgba(0,0,0,0.25);top:-11px}
.popover.bottom .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#ffffff}
.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999999;border-left-color:rgba(0,0,0,0.25)}
.popover.left .arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#ffffff;bottom:-10px}
.popover.top .arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999999;border-top-color:#edf1f3;bottom:-11px}
.popover.top .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#edf1f3}
.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999999;border-right-color:#edf1f3}
.popover.right .arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#edf1f3}
.popover.bottom .arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999999;border-bottom-color:#edf1f3;top:-11px}
.popover.bottom .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#edf1f3}
.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999999;border-left-color:#edf1f3}
.popover.left .arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#edf1f3;bottom:-10px}
.carousel{position:relative}
.carousel-inner{position:relative;overflow:hidden;width:100%}
.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}
@ -1300,7 +1300,19 @@ th.hidden-lg,td.hidden-lg{display:table-cell !important}
@media (max-width:767px){.hidden-lg.hidden-xs{display:none !important} tr.hidden-lg.hidden-xs{display:none !important} th.hidden-lg.hidden-xs,td.hidden-lg.hidden-xs{display:none !important}}@media (min-width:768px) and (max-width:991px){.hidden-lg.hidden-sm{display:none !important} tr.hidden-lg.hidden-sm{display:none !important} th.hidden-lg.hidden-sm,td.hidden-lg.hidden-sm{display:none !important}}@media (min-width:992px) and (max-width:1199px){.hidden-lg.hidden-md{display:none !important} tr.hidden-lg.hidden-md{display:none !important} th.hidden-lg.hidden-md,td.hidden-lg.hidden-md{display:none !important}}@media (min-width:1200px){.hidden-lg{display:none !important} tr.hidden-lg{display:none !important} th.hidden-lg,td.hidden-lg{display:none !important}}.visible-print{display:none !important}
tr.visible-print{display:none !important}
th.visible-print,td.visible-print{display:none !important}
@media print{.visible-print{display:block !important} tr.visible-print{display:table-row !important} th.visible-print,td.visible-print{display:table-cell !important} .hidden-print{display:none !important} tr.hidden-print{display:none !important} th.hidden-print,td.hidden-print{display:none !important}}body{tab-size:4}
@media print{.visible-print{display:block !important} tr.visible-print{display:table-row !important} th.visible-print,td.visible-print{display:table-cell !important} .hidden-print{display:none !important} tr.hidden-print{display:none !important} th.hidden-print,td.hidden-print{display:none !important}}.tour-backdrop{position:absolute;z-index:1009;background:#000;opacity:0.8;top:0;left:0;width:100%}
.tour-step-backdrop{position:relative;z-index:1011}
.tour-step-background{position:absolute;z-index:1010;background:#fff;border-radius:6px}
.popover[class*="tour-"] .popover-navigation{padding:9px 14px}
.popover[class*="tour-"] .popover-navigation *[data-role=end]{float:right}
.popover[class*="tour-"] .popover-navigation *[data-role=prev],.popover[class*="tour-"] .popover-navigation *[data-role=next],.popover[class*="tour-"] .popover-navigation *[data-role=end]{cursor:pointer}
.popover[class*="tour-"] .popover-navigation *[data-role=prev].disabled,.popover[class*="tour-"] .popover-navigation *[data-role=next].disabled,.popover[class*="tour-"] .popover-navigation *[data-role=end].disabled{cursor:default}
.popover[class*="tour-"].orphan{position:fixed;margin-top:0}
.popover[class*="tour-"].orphan .arrow{display:none}
.popover{max-width:400px;padding:20px;-webkit-box-shadow:0 5px 30px rgba(0,0,0,0.4);box-shadow:0 5px 30px rgba(0,0,0,0.4)}
.popover .popover-title{font-weight:500;font-size:24px;padding:5px 15px 10px}
.popover .disabled{display:none}
body{tab-size:4}
#preview-contents{padding:15px;margin-bottom:50px;background-color:#edf1f3}
.ui-layout-east #preview-contents{padding-left:5px}
.working{cursor:progress}
@ -1339,7 +1351,7 @@ th.visible-print,td.visible-print{display:none !important}
.navbar{position:static;padding:0;border:0;border-radius:0}
.navbar .left-space{width:30px;height:38px}
.navbar .right-space{width:20px;height:38px}
.navbar .nav{float:left;margin:6px 10px}
.navbar .nav{float:left;margin:6px 10px 0}
.navbar .nav>li{display:inline-block}
.navbar .nav.pull-right{float:right}
.navbar .nav.pull-right>li>.dropdown-menu{right:0;left:auto}
@ -1351,7 +1363,7 @@ th.visible-print,td.visible-print{display:none !important}
.navbar .working-indicator{width:50px;height:17px;background-position:0 0;margin-top:12px}
.navbar .working-indicator.show{background-image:url("../img/loader-default.gif")}
@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min--moz-device-pixel-ratio:2),only screen and (-o-min-device-pixel-ratio:2/1),only screen and (min-device-pixel-ratio:2),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.navbar .working-indicator.show{background-image:url("../img/loader-default2x.gif");background-size:50px 17px}}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min--moz-device-pixel-ratio:2),only screen and (-o-min-device-pixel-ratio:2/1),only screen and (min-device-pixel-ratio:2),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.navbar .working-indicator.show{background-image:url("../img/loader-default2x.gif");background-size:50px 17px}}.menu-panel,.document-panel{display:block;position:absolute;top:0;height:100%;z-index:10;overflow:initial}
.menu-panel .collapse-button i,.document-panel .collapse-button i{color:#666666;font-size:19px}
.menu-panel .collapse-button i,.document-panel .collapse-button i{color:#666666;font-size:14px}
.menu-panel .panel-content,.document-panel .panel-content{-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);overflow:auto;padding-bottom:30px;height:100%}
.menu-panel .panel-content a>i,.document-panel .panel-content a>i{margin-right:3px;color:inherit}
.menu-panel{width:280px !important;margin-left:-315px;-webkit-transition:margin-left .35s ease;-moz-transition:margin-left .35s ease;-o-transition:margin-left .35s ease;transition:margin-left .35s ease}
@ -1433,16 +1445,16 @@ th.visible-print,td.visible-print{display:none !important}
.ui-layout-resizer .btn i{color:rgba(84,84,84,0.3)}
.ui-layout-resizer .btn:hover,.ui-layout-resizer .btn:focus,.ui-layout-resizer .btn:active,.ui-layout-resizer .btn.active{background-color:rgba(213,221,227,0.5)}
.ui-layout-resizer .btn:hover i,.ui-layout-resizer .btn:focus i,.ui-layout-resizer .btn:active i,.ui-layout-resizer .btn.active i{color:#545454}
.ui-layout-resizer .ui-layout-toggler{font-size:21px !important;background-color:transparent}
.ui-layout-resizer .ui-layout-toggler{font-size:22px !important;background-color:transparent}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east{line-height:55px}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-open i:before{content:'\e950'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-closed i:before{content:'\e94f'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-open i:before{content:'\e94d'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-closed i:before{content:'\e94e'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-open i:before{content:'\e87e'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-closed i:before{content:'\e87d'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-open i:before{content:'\e880'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-closed i:before{content:'\e87f'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north{left:0 !important;line-height:0}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north i{margin-top:-5px}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-open i:before{content:'\e94e'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-closed i:before{content:'\e94d'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-open i:before{content:'\e87f'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-closed i:before{content:'\e880'}
.ui-layout-resizer.ui-layout-resizer-east .ui-layout-toggler-north{width:35px !important;height:60px !important}
.ui-layout-resizer.ui-layout-resizer-south .ui-layout-toggler-north{height:35px !important}
a code{color:inherit}
@ -1468,9 +1480,9 @@ div.dropdown-menu textarea{width:250px;height:150px;resize:none}
.footnote{vertical-align:top;position:relative;top:-0.5em;font-size:0.8em}
[class^="icon-"],[class*=" icon-"]{display:inline-block;line-height:14px;vertical-align:middle;background-repeat:no-repeat}
[class^="icon-"].icon-white,[class*=" icon-"].icon-white{color:#fff}
.icon-code{font-size:80%;margin-left:-1px;margin-right:5px}
.icon-folder-open{font-size:80%;margin-left:-1px;margin-right:5px}
.icon-chart-bar{font-size:90%;margin-right:2px}
.icon-code{font-size:80%;padding-right:5px}
.icon-folder-open{font-size:80%;padding-right:5px}
.icon-chart-bar{font-size:90%;padding-right:2px}
.icon-trash{font-size:95%}
.icon-folder{margin-top:-2px}
[class^="icon-provider-"],[class*=" icon-provider-"]{background-image:url("../img/icons.png");width:18px;height:16px;margin-top:-2px}

View File

@ -1210,7 +1210,7 @@ body.modal-open,.modal-open .navbar-fixed-top,.modal-open .navbar-fixed-bottom{m
.tooltip.right{margin-left:3px;padding:0 5px}
.tooltip.bottom{margin-top:3px;padding:5px 0}
.tooltip.left{margin-left:-3px;padding:0 5px}
.tooltip-inner{max-width:220px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;border-radius:4px}
.tooltip-inner{max-width:240px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;border-radius:4px}
.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}
.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000000}
.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000000}
@ -1220,24 +1220,24 @@ body.modal-open,.modal-open .navbar-fixed-top,.modal-open .navbar-fixed-bottom{m
.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000000}
.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000000}
.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000000}
.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;background-color:#ffffff;background-clip:padding-box;border:1px solid #cccccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);white-space:normal}
.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;background-color:#f1f1f1;background-clip:padding-box;border:1px solid #cccccc;border:1px solid #f1f1f1;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);white-space:normal}
.popover.top{margin-top:-10px}
.popover.right{margin-left:10px}
.popover.bottom{margin-top:10px}
.popover.left{margin-left:-10px}
.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}
.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:normal;line-height:18px;background-color:rgba(0,0,0,0);border-bottom:1px solid rgba(0,0,0,0);border-radius:5px 5px 0 0}
.popover-content{padding:9px 14px}
.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}
.popover .arrow{border-width:11px}
.popover .arrow:after{border-width:10px;content:""}
.popover.top .arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999999;border-top-color:rgba(0,0,0,0.25);bottom:-11px}
.popover.top .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#ffffff}
.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999999;border-right-color:rgba(0,0,0,0.25)}
.popover.right .arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#ffffff}
.popover.bottom .arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999999;border-bottom-color:rgba(0,0,0,0.25);top:-11px}
.popover.bottom .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#ffffff}
.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999999;border-left-color:rgba(0,0,0,0.25)}
.popover.left .arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#ffffff;bottom:-10px}
.popover.top .arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999999;border-top-color:#f1f1f1;bottom:-11px}
.popover.top .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#f1f1f1}
.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999999;border-right-color:#f1f1f1}
.popover.right .arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#f1f1f1}
.popover.bottom .arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999999;border-bottom-color:#f1f1f1;top:-11px}
.popover.bottom .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#f1f1f1}
.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999999;border-left-color:#f1f1f1}
.popover.left .arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#f1f1f1;bottom:-10px}
.carousel{position:relative}
.carousel-inner{position:relative;overflow:hidden;width:100%}
.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}
@ -1300,7 +1300,19 @@ th.hidden-lg,td.hidden-lg{display:table-cell !important}
@media (max-width:767px){.hidden-lg.hidden-xs{display:none !important} tr.hidden-lg.hidden-xs{display:none !important} th.hidden-lg.hidden-xs,td.hidden-lg.hidden-xs{display:none !important}}@media (min-width:768px) and (max-width:991px){.hidden-lg.hidden-sm{display:none !important} tr.hidden-lg.hidden-sm{display:none !important} th.hidden-lg.hidden-sm,td.hidden-lg.hidden-sm{display:none !important}}@media (min-width:992px) and (max-width:1199px){.hidden-lg.hidden-md{display:none !important} tr.hidden-lg.hidden-md{display:none !important} th.hidden-lg.hidden-md,td.hidden-lg.hidden-md{display:none !important}}@media (min-width:1200px){.hidden-lg{display:none !important} tr.hidden-lg{display:none !important} th.hidden-lg,td.hidden-lg{display:none !important}}.visible-print{display:none !important}
tr.visible-print{display:none !important}
th.visible-print,td.visible-print{display:none !important}
@media print{.visible-print{display:block !important} tr.visible-print{display:table-row !important} th.visible-print,td.visible-print{display:table-cell !important} .hidden-print{display:none !important} tr.hidden-print{display:none !important} th.hidden-print,td.hidden-print{display:none !important}}body{tab-size:4}
@media print{.visible-print{display:block !important} tr.visible-print{display:table-row !important} th.visible-print,td.visible-print{display:table-cell !important} .hidden-print{display:none !important} tr.hidden-print{display:none !important} th.hidden-print,td.hidden-print{display:none !important}}.tour-backdrop{position:absolute;z-index:1009;background:#000;opacity:0.8;top:0;left:0;width:100%}
.tour-step-backdrop{position:relative;z-index:1011}
.tour-step-background{position:absolute;z-index:1010;background:#fff;border-radius:6px}
.popover[class*="tour-"] .popover-navigation{padding:9px 14px}
.popover[class*="tour-"] .popover-navigation *[data-role=end]{float:right}
.popover[class*="tour-"] .popover-navigation *[data-role=prev],.popover[class*="tour-"] .popover-navigation *[data-role=next],.popover[class*="tour-"] .popover-navigation *[data-role=end]{cursor:pointer}
.popover[class*="tour-"] .popover-navigation *[data-role=prev].disabled,.popover[class*="tour-"] .popover-navigation *[data-role=next].disabled,.popover[class*="tour-"] .popover-navigation *[data-role=end].disabled{cursor:default}
.popover[class*="tour-"].orphan{position:fixed;margin-top:0}
.popover[class*="tour-"].orphan .arrow{display:none}
.popover{max-width:400px;padding:20px;-webkit-box-shadow:0 5px 30px rgba(0,0,0,0.4);box-shadow:0 5px 30px rgba(0,0,0,0.4)}
.popover .popover-title{font-weight:500;font-size:24px;padding:5px 15px 10px}
.popover .disabled{display:none}
body{tab-size:4}
#preview-contents{padding:15px;margin-bottom:50px;background-color:#f1f1f1}
.ui-layout-east #preview-contents{padding-left:5px}
.working{cursor:progress}
@ -1339,7 +1351,7 @@ th.visible-print,td.visible-print{display:none !important}
.navbar{position:static;padding:0;border:0;border-radius:0}
.navbar .left-space{width:30px;height:38px}
.navbar .right-space{width:20px;height:38px}
.navbar .nav{float:left;margin:6px 10px}
.navbar .nav{float:left;margin:6px 10px 0}
.navbar .nav>li{display:inline-block}
.navbar .nav.pull-right{float:right}
.navbar .nav.pull-right>li>.dropdown-menu{right:0;left:auto}
@ -1351,7 +1363,7 @@ th.visible-print,td.visible-print{display:none !important}
.navbar .working-indicator{width:50px;height:17px;background-position:0 0;margin-top:12px}
.navbar .working-indicator.show{background-image:url("../img/loader-default.gif")}
@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min--moz-device-pixel-ratio:2),only screen and (-o-min-device-pixel-ratio:2/1),only screen and (min-device-pixel-ratio:2),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.navbar .working-indicator.show{background-image:url("../img/loader-default2x.gif");background-size:50px 17px}}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min--moz-device-pixel-ratio:2),only screen and (-o-min-device-pixel-ratio:2/1),only screen and (min-device-pixel-ratio:2),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.navbar .working-indicator.show{background-image:url("../img/loader-default2x.gif");background-size:50px 17px}}.menu-panel,.document-panel{display:block;position:absolute;top:0;height:100%;z-index:10;overflow:initial}
.menu-panel .collapse-button i,.document-panel .collapse-button i{color:#666666;font-size:19px}
.menu-panel .collapse-button i,.document-panel .collapse-button i{color:#666666;font-size:14px}
.menu-panel .panel-content,.document-panel .panel-content{-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);overflow:auto;padding-bottom:30px;height:100%}
.menu-panel .panel-content a>i,.document-panel .panel-content a>i{margin-right:3px;color:inherit}
.menu-panel{width:280px !important;margin-left:-315px;-webkit-transition:margin-left .35s ease;-moz-transition:margin-left .35s ease;-o-transition:margin-left .35s ease;transition:margin-left .35s ease}
@ -1433,16 +1445,16 @@ th.visible-print,td.visible-print{display:none !important}
.ui-layout-resizer .btn i{color:rgba(84,84,84,0.3)}
.ui-layout-resizer .btn:hover,.ui-layout-resizer .btn:focus,.ui-layout-resizer .btn:active,.ui-layout-resizer .btn.active{background-color:rgba(221,221,221,0.5)}
.ui-layout-resizer .btn:hover i,.ui-layout-resizer .btn:focus i,.ui-layout-resizer .btn:active i,.ui-layout-resizer .btn.active i{color:#545454}
.ui-layout-resizer .ui-layout-toggler{font-size:21px !important;background-color:transparent}
.ui-layout-resizer .ui-layout-toggler{font-size:22px !important;background-color:transparent}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east{line-height:55px}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-open i:before{content:'\e950'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-closed i:before{content:'\e94f'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-open i:before{content:'\e94d'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-closed i:before{content:'\e94e'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-open i:before{content:'\e87e'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-closed i:before{content:'\e87d'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-open i:before{content:'\e880'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-closed i:before{content:'\e87f'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north{left:0 !important;line-height:0}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north i{margin-top:-5px}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-open i:before{content:'\e94e'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-closed i:before{content:'\e94d'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-open i:before{content:'\e87f'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-closed i:before{content:'\e880'}
.ui-layout-resizer.ui-layout-resizer-east .ui-layout-toggler-north{width:35px !important;height:60px !important}
.ui-layout-resizer.ui-layout-resizer-south .ui-layout-toggler-north{height:35px !important}
a code{color:inherit}
@ -1468,9 +1480,9 @@ div.dropdown-menu textarea{width:250px;height:150px;resize:none}
.footnote{vertical-align:top;position:relative;top:-0.5em;font-size:0.8em}
[class^="icon-"],[class*=" icon-"]{display:inline-block;line-height:14px;vertical-align:middle;background-repeat:no-repeat}
[class^="icon-"].icon-white,[class*=" icon-"].icon-white{color:#fff}
.icon-code{font-size:80%;margin-left:-1px;margin-right:5px}
.icon-folder-open{font-size:80%;margin-left:-1px;margin-right:5px}
.icon-chart-bar{font-size:90%;margin-right:2px}
.icon-code{font-size:80%;padding-right:5px}
.icon-folder-open{font-size:80%;padding-right:5px}
.icon-chart-bar{font-size:90%;padding-right:2px}
.icon-trash{font-size:95%}
.icon-folder{margin-top:-2px}
[class^="icon-provider-"],[class*=" icon-provider-"]{background-image:url("../img/icons.png");width:18px;height:16px;margin-top:-2px}

View File

@ -1210,7 +1210,7 @@ body.modal-open,.modal-open .navbar-fixed-top,.modal-open .navbar-fixed-bottom{m
.tooltip.right{margin-left:3px;padding:0 5px}
.tooltip.bottom{margin-top:3px;padding:5px 0}
.tooltip.left{margin-left:-3px;padding:0 5px}
.tooltip-inner{max-width:220px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;border-radius:4px}
.tooltip-inner{max-width:240px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;border-radius:4px}
.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}
.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000000}
.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000000}
@ -1220,24 +1220,24 @@ body.modal-open,.modal-open .navbar-fixed-top,.modal-open .navbar-fixed-bottom{m
.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000000}
.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000000}
.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000000}
.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;background-color:#ffffff;background-clip:padding-box;border:1px solid #cccccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);white-space:normal}
.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;background-color:#232323;background-clip:padding-box;border:1px solid #cccccc;border:1px solid #232323;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);white-space:normal}
.popover.top{margin-top:-10px}
.popover.right{margin-left:10px}
.popover.bottom{margin-top:10px}
.popover.left{margin-left:-10px}
.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}
.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:normal;line-height:18px;background-color:rgba(0,0,0,0);border-bottom:1px solid rgba(0,0,0,0);border-radius:5px 5px 0 0}
.popover-content{padding:9px 14px}
.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}
.popover .arrow{border-width:11px}
.popover .arrow:after{border-width:10px;content:""}
.popover.top .arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999999;border-top-color:rgba(0,0,0,0.25);bottom:-11px}
.popover.top .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#ffffff}
.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999999;border-right-color:rgba(0,0,0,0.25)}
.popover.right .arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#ffffff}
.popover.bottom .arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999999;border-bottom-color:rgba(0,0,0,0.25);top:-11px}
.popover.bottom .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#ffffff}
.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999999;border-left-color:rgba(0,0,0,0.25)}
.popover.left .arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#ffffff;bottom:-10px}
.popover.top .arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999999;border-top-color:#232323;bottom:-11px}
.popover.top .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#232323}
.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999999;border-right-color:#232323}
.popover.right .arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#232323}
.popover.bottom .arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999999;border-bottom-color:#232323;top:-11px}
.popover.bottom .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#232323}
.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999999;border-left-color:#232323}
.popover.left .arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#232323;bottom:-10px}
.carousel{position:relative}
.carousel-inner{position:relative;overflow:hidden;width:100%}
.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}
@ -1300,7 +1300,19 @@ th.hidden-lg,td.hidden-lg{display:table-cell !important}
@media (max-width:767px){.hidden-lg.hidden-xs{display:none !important} tr.hidden-lg.hidden-xs{display:none !important} th.hidden-lg.hidden-xs,td.hidden-lg.hidden-xs{display:none !important}}@media (min-width:768px) and (max-width:991px){.hidden-lg.hidden-sm{display:none !important} tr.hidden-lg.hidden-sm{display:none !important} th.hidden-lg.hidden-sm,td.hidden-lg.hidden-sm{display:none !important}}@media (min-width:992px) and (max-width:1199px){.hidden-lg.hidden-md{display:none !important} tr.hidden-lg.hidden-md{display:none !important} th.hidden-lg.hidden-md,td.hidden-lg.hidden-md{display:none !important}}@media (min-width:1200px){.hidden-lg{display:none !important} tr.hidden-lg{display:none !important} th.hidden-lg,td.hidden-lg{display:none !important}}.visible-print{display:none !important}
tr.visible-print{display:none !important}
th.visible-print,td.visible-print{display:none !important}
@media print{.visible-print{display:block !important} tr.visible-print{display:table-row !important} th.visible-print,td.visible-print{display:table-cell !important} .hidden-print{display:none !important} tr.hidden-print{display:none !important} th.hidden-print,td.hidden-print{display:none !important}}body{tab-size:4}
@media print{.visible-print{display:block !important} tr.visible-print{display:table-row !important} th.visible-print,td.visible-print{display:table-cell !important} .hidden-print{display:none !important} tr.hidden-print{display:none !important} th.hidden-print,td.hidden-print{display:none !important}}.tour-backdrop{position:absolute;z-index:1009;background:#000;opacity:0.8;top:0;left:0;width:100%}
.tour-step-backdrop{position:relative;z-index:1011}
.tour-step-background{position:absolute;z-index:1010;background:#fff;border-radius:6px}
.popover[class*="tour-"] .popover-navigation{padding:9px 14px}
.popover[class*="tour-"] .popover-navigation *[data-role=end]{float:right}
.popover[class*="tour-"] .popover-navigation *[data-role=prev],.popover[class*="tour-"] .popover-navigation *[data-role=next],.popover[class*="tour-"] .popover-navigation *[data-role=end]{cursor:pointer}
.popover[class*="tour-"] .popover-navigation *[data-role=prev].disabled,.popover[class*="tour-"] .popover-navigation *[data-role=next].disabled,.popover[class*="tour-"] .popover-navigation *[data-role=end].disabled{cursor:default}
.popover[class*="tour-"].orphan{position:fixed;margin-top:0}
.popover[class*="tour-"].orphan .arrow{display:none}
.popover{max-width:400px;padding:20px;-webkit-box-shadow:0 5px 30px rgba(0,0,0,0.4);box-shadow:0 5px 30px rgba(0,0,0,0.4)}
.popover .popover-title{font-weight:500;font-size:24px;padding:5px 15px 10px}
.popover .disabled{display:none}
body{tab-size:4}
#preview-contents{padding:15px;margin-bottom:50px;background-color:#232323}
.ui-layout-east #preview-contents{padding-left:5px}
.working{cursor:progress}
@ -1339,7 +1351,7 @@ th.visible-print,td.visible-print{display:none !important}
.navbar{position:static;padding:0;border:0;border-radius:0}
.navbar .left-space{width:30px;height:38px}
.navbar .right-space{width:20px;height:38px}
.navbar .nav{float:left;margin:6px 10px}
.navbar .nav{float:left;margin:6px 10px 0}
.navbar .nav>li{display:inline-block}
.navbar .nav.pull-right{float:right}
.navbar .nav.pull-right>li>.dropdown-menu{right:0;left:auto}
@ -1351,7 +1363,7 @@ th.visible-print,td.visible-print{display:none !important}
.navbar .working-indicator{width:50px;height:17px;background-position:0 0;margin-top:12px}
.navbar .working-indicator.show{background-image:url("../img/loader-default.gif")}
@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min--moz-device-pixel-ratio:2),only screen and (-o-min-device-pixel-ratio:2/1),only screen and (min-device-pixel-ratio:2),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.navbar .working-indicator.show{background-image:url("../img/loader-default2x.gif");background-size:50px 17px}}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min--moz-device-pixel-ratio:2),only screen and (-o-min-device-pixel-ratio:2/1),only screen and (min-device-pixel-ratio:2),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.navbar .working-indicator.show{background-image:url("../img/loader-default2x.gif");background-size:50px 17px}}.menu-panel,.document-panel{display:block;position:absolute;top:0;height:100%;z-index:10;overflow:initial}
.menu-panel .collapse-button i,.document-panel .collapse-button i{color:#cccccc;font-size:19px}
.menu-panel .collapse-button i,.document-panel .collapse-button i{color:#cccccc;font-size:14px}
.menu-panel .panel-content,.document-panel .panel-content{-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);overflow:auto;padding-bottom:30px;height:100%}
.menu-panel .panel-content a>i,.document-panel .panel-content a>i{margin-right:3px;color:inherit}
.menu-panel{width:280px !important;margin-left:-315px;-webkit-transition:margin-left .35s ease;-moz-transition:margin-left .35s ease;-o-transition:margin-left .35s ease;transition:margin-left .35s ease}
@ -1433,16 +1445,16 @@ th.visible-print,td.visible-print{display:none !important}
.ui-layout-resizer .btn i{color:rgba(222,222,222,0.3)}
.ui-layout-resizer .btn:hover,.ui-layout-resizer .btn:focus,.ui-layout-resizer .btn:active,.ui-layout-resizer .btn.active{background-color:rgba(68,68,68,0.5)}
.ui-layout-resizer .btn:hover i,.ui-layout-resizer .btn:focus i,.ui-layout-resizer .btn:active i,.ui-layout-resizer .btn.active i{color:#dedede}
.ui-layout-resizer .ui-layout-toggler{font-size:21px !important;background-color:transparent}
.ui-layout-resizer .ui-layout-toggler{font-size:22px !important;background-color:transparent}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east{line-height:55px}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-open i:before{content:'\e950'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-closed i:before{content:'\e94f'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-open i:before{content:'\e94d'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-closed i:before{content:'\e94e'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-open i:before{content:'\e87e'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-east.ui-layout-toggler-east-closed i:before{content:'\e87d'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-open i:before{content:'\e880'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-south.ui-layout-toggler-south-closed i:before{content:'\e87f'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north{left:0 !important;line-height:0}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north i{margin-top:-5px}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-open i:before{content:'\e94e'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-closed i:before{content:'\e94d'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-open i:before{content:'\e87f'}
.ui-layout-resizer .ui-layout-toggler.ui-layout-toggler-north.ui-layout-toggler-north-closed i:before{content:'\e880'}
.ui-layout-resizer.ui-layout-resizer-east .ui-layout-toggler-north{width:35px !important;height:60px !important}
.ui-layout-resizer.ui-layout-resizer-south .ui-layout-toggler-north{height:35px !important}
a code{color:inherit}
@ -1468,9 +1480,9 @@ div.dropdown-menu textarea{width:250px;height:150px;resize:none}
.footnote{vertical-align:top;position:relative;top:-0.5em;font-size:0.8em}
[class^="icon-"],[class*=" icon-"]{display:inline-block;line-height:14px;vertical-align:middle;background-repeat:no-repeat}
[class^="icon-"].icon-white,[class*=" icon-"].icon-white{color:#fff}
.icon-code{font-size:80%;margin-left:-1px;margin-right:5px}
.icon-folder-open{font-size:80%;margin-left:-1px;margin-right:5px}
.icon-chart-bar{font-size:90%;margin-right:2px}
.icon-code{font-size:80%;padding-right:5px}
.icon-folder-open{font-size:80%;padding-right:5px}
.icon-chart-bar{font-size:90%;padding-right:2px}
.icon-trash{font-size:95%}
.icon-folder{margin-top:-2px}
[class^="icon-provider-"],[class*=" icon-provider-"]{background-image:url("../img/icons.png");width:18px;height:16px;margin-top:-2px}

View File

@ -1,3 +1,5 @@
var VERSION = "2.0.0";
var MAIN_URL = "http://benweet.github.io/stackedit/";
var GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1";
var GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw";

View File

@ -31,6 +31,7 @@ define([
"extensions/buttonStat",
"extensions/buttonHtmlCode",
"extensions/buttonViewer",
"extensions/welcomeTour",
"bootstrap",
"jquery-waitforimages"
], function($, _, crel, utils, Extension, settings, settingsExtensionsAccordionHTML) {

View File

@ -55,7 +55,8 @@ define([
buttonSync.onCreateButton = function() {
var button = crel('button', {
class: 'btn btn-success'
class: 'btn btn-success',
title: 'Synchronize all'
}, crel('i', {
class: 'icon-refresh'
}));

View File

@ -2,14 +2,15 @@ define([
"underscore",
"utils",
"classes/Extension",
"text!../../version",
"text!html/dialogAbout.html",
], function(_, utils, Extension, version, dialogAboutHTML) {
"config"
], function(_, utils, Extension, dialogAboutHTML) {
var dialogAbout = new Extension("dialogAbout", 'Dialog "About"');
var libraries = {
"Bootstrap": "http://getbootstrap.com/",
"Bootstrap Tour": "http://bootstraptour.com/",
"crel": "https://github.com/KoryNunn/crel",
"CSS Browser Selector": "https://github.com/rafaelp/css_browser_selector/",
"Dropbox-js": "https://github.com/dropbox/dropbox-js",
@ -50,7 +51,7 @@ define([
utils.addModal('modal-about', _.template(dialogAboutHTML, {
libraries: libraries,
projects: projects,
version: version
version: VERSION
}));
};

View File

@ -94,7 +94,7 @@ define([
function buildToc() {
var anchorList = {};
function createAnchor(element) {
var id = element.id || utils.slugify(element.textContent);
var id = element.id || utils.slugify(element.textContent) || 'title';
var anchor = id;
var index = 0;
while (_.has(anchorList, anchor)) {

View File

@ -0,0 +1,89 @@
define([
"jquery",
"classes/Extension",
"bootstrap-tour"
], function($, Extension) {
var welcomeTour = new Extension("welcomeTour", "Welcome tour", false, true);
welcomeTour.onReady = function() {
var tour = new Tour({
storage: {
getItem: function() {
},
setItem: function() {
},
removeItem: function() {
}
},
onEnd: function(tour) {
localStorage.welcomeTour = "done";
},
template: [
"<div class='popover tour'>",
" <div class='arrow'></div>",
" <h3 class='popover-title'></h3>",
" <div class='popover-content'></div>",
" <nav class='popover-navigation'>",
" <button class='btn btn-primary' data-role='next'>Next</button>",
" <button class='btn btn-default' data-role='end'>Got it!</button>",
" </nav>",
"</div>"
].join('')
});
tour.addSteps([
{
element: ".ui-layout-resizer-north",
title: "Welcome to StackEdit 2.0!",
content: "Please click <code>Next</code> to start a small tour...",
placement: "bottom",
},
{
element: ".navbar .action-create-file",
title: "New document",
content: "Click the <i class='icon-file'></i> <code>New document</code> button to create a new document.",
placement: "left",
reflex: true,
},
{
element: ".document-panel .collapse-button",
title: "Toggle document",
content: [
"<p>Click the <i class='icon-folder-open'></i> <code>Select document</code> button to switch to another document.</p>",
"<b>NOTE: </b>Use <code>Ctrl+[</code> and <code>Ctrl+]</code> shortcuts to toggle quickly."
].join(''),
placement: "left",
reflex: true,
},
{
element: ".menu-panel .collapse-button",
title: "Menu",
content: [
"<p>Use the <i class='icon-provider-stackedit'></i> menu to synchronize your document on <i class='icon-provider-gdrive'></i> <code>Google Drive</code> or <i class='icon-provider-dropbox'></i> <code>Dropbox</code>.</p>",
"Use also this menu to publish your document on <i class='icon-provider-github'></i> <code>GitHub</code>, <i class='icon-provider-blogger'></i> <code>Blogger</code>..."
].join(''),
placement: "right",
reflex: true,
},
{
element: "#extension-buttons button:first",
title: "Synchronize/publish",
content: [
"<p>Once imported/exported, use the <i class='icon-refresh'></i> <code>Synchronize</code> button to force the synchronization (this is done automatically every 3 minutes).</p>",
"Use also the <i class='icon-share'></i> <code>Publish</code> button to update your publications."
].join(''),
placement: "bottom",
reflex: true,
},
]);
if(!_.has(localStorage, 'welcomeTour')) {
tour.start();
}
$('.action-welcome-tour').click(function() {
tour.restart();
});
};
return welcomeTour;
});

View File

@ -16,8 +16,7 @@
</ul>
<ul class="nav pull-right">
<li class="btn-group"><button
class="btn btn-success action-create-file"
title="New local document">
class="btn btn-success action-create-file" title="New document">
<i class="icon-file"></i>
</button>
<button class="btn btn-success" title="Delete current document"
@ -48,7 +47,7 @@
<div class="menu-panel collapse width">
<button class="btn btn-success collapse-button" data-toggle="collapse"
data-target=".menu-panel" title="Menu">
<i class="icon-left-dir"></i> <img
<i class="icon-left-open"></i> <img
data-stackedit-src="stackedit-64.png" width="32" height="32" />
</button>
<div class="panel-content">
@ -60,6 +59,8 @@
class="icon-hdd"></i> Open from...</a>
<div class="sub-menu collapse collapse-open-from clearfix">
<ul class="nav">
<li><a data-toggle="modal" data-target=".modal-import-url"
class="action-reset-input" href="#">Open from URL</a></li>
<li><a data-toggle="modal"
data-target=".modal-import-harddrive-markdown"
class="action-reset-input" href="#">Import from hard drive</a></li>
@ -138,7 +139,7 @@
<div class="document-panel collapse width">
<button class="btn btn-success collapse-button" data-toggle="collapse"
data-target=".document-panel" title="Select document">
<i class="icon-folder-open"></i> <i class="icon-right-dir"></i>
<i class="icon-folder-open"></i> <i class="icon-right-open"></i>
</button>
<div class="search-bar clearfix">
<div class="input-group">
@ -343,6 +344,37 @@
</div>
<div class="modal modal-import-url">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-hidden="true">&times;</button>
<h3 class="modal-title">Open from URL</h3>
</div>
<div class="modal-body">
<p>Please provide a link to a Markdown document.</p>
<div class="form-horizontal">
<div class="form-group">
<label class="col-lg-3 control-label" for="input-import-url">URL</label>
<div class="col-lg-8">
<input type="text" id="input-import-url"
placeholder="http://www.abc.com/xyz.md" class="form-control">
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-default" data-dismiss="modal">Cancel</a>
<a href="#" data-dismiss="modal"
class="btn btn-primary action-import-url">OK</a>
</div>
</div>
</div>
</div>
<div class="modal modal-import-harddrive-markdown">
<div class="modal-dialog">
<div class="modal-content">
@ -780,16 +812,23 @@
</div>
</div>
</div>
<div class="form-group collapse publish-custom-template-collapse">
<div class="col-lg-4"></div>
<div class="col-lg-7">
<div class="checkbox">
<label> <input type="checkbox"
id="checkbox-publish-custom-template"> Custom template
</label> <a href="#" class="tooltip-template">(?)</a>
<div class="collapse publish-custom-template-collapse">
<div class="form-group">
<div class="col-lg-4"></div>
<div class="col-lg-7">
<div class="checkbox">
<label> <input type="checkbox"
id="checkbox-publish-custom-template"> Custom template
</label> <a href="#" class="tooltip-template">(?)</a>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-4"></div>
<div class="col-lg-7">
<textarea class="form-control"
id="textarea-publish-custom-template"></textarea>
</div>
<textarea class="form-control"
id="textarea-publish-custom-template"></textarea>
</div>
</div>
</div>
@ -969,7 +1008,13 @@
<div class="tab-pane-button-container">
<a href="#" class="btn btn-block btn-primary action-welcome-file"
data-dismiss="modal"><i class="icon-help-circled icon-white"></i>
Welcome document</a> <a href="#" class="btn btn-block btn-primary"
Welcome document</a> <a href="#"
class="btn btn-block btn-primary action-welcome-tour"
data-dismiss="modal" data-dismiss="modal"><i
class="icon-help-circled icon-white"></i> Welcome tour</a>
</div>
<div class="tab-pane-button-container">
<a href="#" class="btn btn-block btn-primary"
data-dismiss="modal" data-toggle="modal"
data-target=".modal-app-reset"><i
class="icon-fire icon-white"></i> Reset application</a>

View File

@ -1,4 +1,4 @@
<p>Builds the "Open document" dropdown menu.</p>
<p>Allows toggling document with keyboard shortcuts.</p>
<div class="form-horizontal">
<div class="form-group">
<label class="col-lg-5 control-label" for="select-document-selector-orderby">Order

View File

@ -20,4 +20,7 @@ print(documentMarkdown);<br />
<br />
<br />
<a target="_blank" href="http://underscorejs.org/#template">More
info</a>
info</a>
<br />
<br />
<b class="text-danger"><i class="icon-attention"></i> Careful! Template is subject to malicious code. Don't copy/paste untrusted content.</b>

View File

@ -13,4 +13,7 @@ userCustom.onPreviewFinished = function() {
<br />
<a target="_blank"
href="https://github.com/benweet/stackedit/blob/master/doc/developer-guide.md#architecture">More
info</a>
info</a>
<br />
<br />
<b class="text-danger"><i class="icon-attention"></i> Careful! This is subject to malicious code. Don't copy/paste untrusted content.</b>

View File

@ -39,7 +39,8 @@ requirejs.config({
css_browser_selector: 'bower-libs/css_browser_selector/css_browser_selector',
FileSaver: 'bower-libs/FileSaver/FileSaver',
stacktrace: 'bower-libs/stacktrace/stacktrace',
'requirejs-text': 'bower-libs/requirejs-text/text'
'requirejs-text': 'bower-libs/requirejs-text/text',
'bootstrap-tour': 'bower-libs/bootstrap-tour/build/js/bootstrap-tour'
},
shim: {
underscore: {
@ -60,6 +61,9 @@ requirejs.config({
],
exports: 'toMarkdown'
},
'bootstrap-tour': [
'bootstrap'
],
bootstrap: [
'jquery'
],

View File

@ -1,8 +1,11 @@
define([
"jquery",
"eventMgr",
"utils",
"fileMgr",
"classes/Provider",
"classes/AsyncTask"
], function($, Provider, AsyncTask) {
], function($, eventMgr, utils, fileMgr, Provider, AsyncTask) {
var downloadProvider = new Provider("download");
downloadProvider.sharingAttributes = [
@ -42,5 +45,22 @@ define([
task.enqueue();
};
eventMgr.addListener("onReady", function() {
$('.action-import-url').click(function(e) {
var url = utils.getInputTextValue('#input-import-url', e);
if(url) {
downloadProvider.importPublic({
url: url
}, function(error, title, content) {
if(error) {
return;
}
var fileDesc = fileMgr.createFile(title, content);
fileMgr.selectFile(fileDesc);
});
}
});
});
return downloadProvider;
});

View File

@ -1,6 +1,7 @@
@import "../bower-libs/bootstrap/less/bootstrap.less";
@import "../bower-libs/google-code-prettify/src/prettify.css";
@import "../bower-libs/highlightjs/styles/default.css";
@import "../bower-libs/bootstrap-tour/src/less/bootstrap-tour.less";
@import "../libs/fontello/css/fontello.css";
@import "jquery.jgrowl.css";
@ -72,8 +73,13 @@
@blockquote-border-color: fade(#000, 5%);
@code-color: @primary-color;
@code-bg: fade(#000, 5%);
@tooltip-max-width: 220px;
@tooltip-max-width: 240px;
@close-color: @primary-color;
@popover-bg: @primary-bg-lighter;
@popover-border-color: @primary-bg-lighter;
@popover-arrow-color: @primary-bg-lighter;
@popover-arrow-outer-color: @primary-bg-lighter;
@popover-title-bg: @transparent;
// Copied from Bootstrap in order to have correct urls
.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
@ -91,6 +97,26 @@
}
}
/*********************
* Bootstrap tour
*********************/
.popover {
max-width: 400px;
padding: 20px;
.box-shadow(0 5px 30px rgba(0,0,0,.4));
.popover-title {
font-weight: @headings-font-weight;
font-size: 24px;
padding: 5px 15px 10px;
}
.disabled {
display: none;
}
}
body {
tab-size: 4;
}
@ -250,7 +276,7 @@ body {
}
.nav {
float: left;
margin: 6px 10px;
margin: 6px 10px 0;
& > li {
display: inline-block;
}
@ -321,7 +347,7 @@ body {
overflow: initial;
.collapse-button i {
color: @panel-button-color;
font-size: 19px;
font-size: 14px;
}
.panel-content {
.box-shadow(0 6px 12px rgba(0,0,0,.175));
@ -738,23 +764,23 @@ body {
}
}
.ui-layout-toggler {
font-size: 21px !important;
font-size: 22px !important;
background-color: transparent;
&.ui-layout-toggler-east {
line-height: 55px;
&.ui-layout-toggler-east-open i:before {
content: '\e950';
content: '\e87e';
}
&.ui-layout-toggler-east-closed i:before {
content: '\e94f';
content: '\e87d';
}
}
&.ui-layout-toggler-south {
&.ui-layout-toggler-south-open i:before {
content: '\e94d';
content: '\e880';
}
&.ui-layout-toggler-south-closed i:before {
content: '\e94e';
content: '\e87f';
}
}
&.ui-layout-toggler-north {
@ -764,10 +790,10 @@ body {
margin-top: -5px;
}
&.ui-layout-toggler-north-open i:before {
content: '\e94e';
content: '\e87f';
}
&.ui-layout-toggler-north-closed i:before {
content: '\e94d';
content: '\e880';
}
}
}
@ -905,19 +931,17 @@ div.dropdown-menu textarea {
// Custom icons (not from Font Awesome)
.icon-code {
font-size: 80%;
margin-left: -1px;
margin-right: 5px;
padding-right: 5px;
}
.icon-folder-open {
font-size: 80%;
margin-left: -1px;
margin-right: 5px;
padding-right: 5px;
}
.icon-chart-bar {
font-size: 90%;
margin-right: 2px;
padding-right: 2px;
}
.icon-trash {

View File

@ -14,7 +14,7 @@ define([
try {
return decodeURIComponent(regex.exec(location.search)[1]);
}
catch (e) {
catch(e) {
return undefined;
}
};
@ -78,7 +78,7 @@ define([
}
return value;
};
// Return input value and check that it's a valid RegExp
utils.getInputRegExpValue = function(element, event) {
element = jqElt(element);
@ -112,7 +112,7 @@ define([
}
return value;
};
// Return checkbox boolean value
utils.getInputChecked = function(element) {
element = jqElt(element);
@ -148,8 +148,11 @@ define([
// Slug function
utils.slugify = function(text) {
return text.toLowerCase().replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
return text.toLowerCase().replace(/\s/g, '-') // Replace spaces with -
.replace(/![\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}]/g, '') // Remove
// all
// non-word
// chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
@ -168,7 +171,7 @@ define([
}
return url;
};
// Create the modal element and add to the body
utils.addModal = function(id, content) {
var modal = crel('div', {
@ -188,7 +191,7 @@ define([
document.body.appendChild(result);
return result;
};
// Create an centered popup window
utils.popupWindow = function(url, title, width, height) {
var left = (screen.width / 2) - (width / 2);
@ -245,7 +248,7 @@ define([
storedAttributes.provider = attributes.provider.providerId;
localStorage[storeIndex] = JSON.stringify(storedAttributes);
};
// Retrieve/parse an index array from localStorage
utils.retrieveIndexArray = function(storeIndex) {
try {
@ -256,12 +259,12 @@ define([
return [];
}
};
// Append an index to an array in localStorage
utils.appendIndexToArray = function(storeIndex, index) {
localStorage[storeIndex] += index + ";";
};
// Remove an index from an array in localStorage
utils.removeIndexFromArray = function(storeIndex, index) {
localStorage[storeIndex] = localStorage[storeIndex].replace(";" + index + ";", ";");
@ -276,7 +279,7 @@ define([
return undefined;
}
};
var eventList = [];
utils.logValue = function(value) {
eventList.unshift(value);
@ -304,7 +307,7 @@ define([
});
return result.join("");
};
// Base64 conversion
utils.encodeBase64 = function(str) {
if(str.length === 0) {

View File

@ -1 +0,0 @@
2.0 beta-1