Upgrade to Bootstrap 3
This commit is contained in:
parent
2a738c0e54
commit
ad584c1162
@ -1,5 +1,5 @@
|
|||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
# Wed 7 Aug 2013 23:32:48 IST
|
# Mon 19 Aug 2013 00:01:51 IST
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
index.html
|
index.html
|
||||||
|
@ -54,7 +54,7 @@ if(location.hostname.indexOf("benweet.github.io") === 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var THEME_LIST = {
|
var THEME_LIST = {
|
||||||
"": "Default",
|
"default": "Default",
|
||||||
"blue-gray": "Blue-Gray",
|
"blue-gray": "Blue-Gray",
|
||||||
"night": "Night"
|
"night": "Night"
|
||||||
};
|
};
|
||||||
|
@ -104,7 +104,7 @@ define([
|
|||||||
// Layout orientation
|
// Layout orientation
|
||||||
utils.setInputRadio("radio-layout-orientation", settings.layoutOrientation);
|
utils.setInputRadio("radio-layout-orientation", settings.layoutOrientation);
|
||||||
// Theme
|
// Theme
|
||||||
utils.setInputValue("#input-settings-theme", localStorage.theme);
|
utils.setInputValue("#input-settings-theme", localStorage.theme || 'default');
|
||||||
// Lazy rendering
|
// Lazy rendering
|
||||||
utils.setInputChecked("#input-settings-lazy-rendering", settings.lazyRendering);
|
utils.setInputChecked("#input-settings-lazy-rendering", settings.lazyRendering);
|
||||||
// Editor font family
|
// Editor font family
|
||||||
@ -550,8 +550,8 @@ define([
|
|||||||
// Load theme list
|
// Load theme list
|
||||||
var themeOptions = _.reduce(THEME_LIST, function(themeOptions, name, value) {
|
var themeOptions = _.reduce(THEME_LIST, function(themeOptions, name, value) {
|
||||||
return themeOptions + '<option value="' + value + '">' + name + '</option>';
|
return themeOptions + '<option value="' + value + '">' + name + '</option>';
|
||||||
}, "");
|
}, '');
|
||||||
$("#input-settings-theme").html(themeOptions);
|
document.getElementById('input-settings-theme').innerHTML = themeOptions;
|
||||||
|
|
||||||
var isModalShown = false;
|
var isModalShown = false;
|
||||||
$('.modal').on('show.bs.modal', function() {
|
$('.modal').on('show.bs.modal', function() {
|
||||||
|
14989
js/main-min.js
vendored
14989
js/main-min.js
vendored
File diff suppressed because one or more lines are too long
@ -84,6 +84,8 @@ if(location.search.match(/(\?|&)console/)) {
|
|||||||
logger = console;
|
logger = console;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var theme = localStorage.theme || 'default';
|
||||||
|
|
||||||
// RequireJS entry point. By requiring synchronizer, publisher and
|
// RequireJS entry point. By requiring synchronizer, publisher and
|
||||||
// media-importer, we are actually loading all the modules
|
// media-importer, we are actually loading all the modules
|
||||||
require([
|
require([
|
||||||
@ -93,7 +95,7 @@ require([
|
|||||||
"publisher",
|
"publisher",
|
||||||
"mediaImporter",
|
"mediaImporter",
|
||||||
"css",
|
"css",
|
||||||
"less!styles/main.less",
|
"less!styles/" + theme + ".less",
|
||||||
], function($, core) {
|
], function($, core) {
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
File diff suppressed because it is too large
Load Diff
1061
js/styles/main.less
1061
js/styles/main.less
File diff suppressed because it is too large
Load Diff
@ -1,55 +1,54 @@
|
|||||||
body,
|
@import "main.less"
|
||||||
.btn,
|
|
||||||
#preview-contents,
|
|
||||||
.modal-footer,
|
|
||||||
input[disabled],
|
|
||||||
select[disabled],
|
|
||||||
textarea[disabled],
|
|
||||||
.input-prepend .add-on {
|
|
||||||
background-color: #222;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
input,
|
@bg-light: #f2f2f2;
|
||||||
select,
|
@preview-bg-light: #444;
|
||||||
textarea,
|
@bg-navbar-hover: #333;
|
||||||
.input-prepend .btn,
|
@navbar-text-color: #999;
|
||||||
.input-prepend
|
@text-inv: #fff;
|
||||||
.add-on {
|
@text-light: #888;
|
||||||
border-color: #444 !important;
|
@error-border: #ff8661;
|
||||||
}
|
@panel-button-color: #999;
|
||||||
|
@panel-bg: #222;
|
||||||
|
@folder-color: #aaa;
|
||||||
|
|
||||||
|
|
||||||
|
/* Bootstrap */
|
||||||
|
@body-bg: #222;
|
||||||
|
@text-color: #fff;
|
||||||
|
@link-color: #f73;
|
||||||
|
@input-color: #fff;
|
||||||
|
@input-border: #444;
|
||||||
|
@input-bg: #111;
|
||||||
|
@dropdown-border: #ddd;
|
||||||
|
@pre-border-color: #ddd;
|
||||||
|
@navbar-bg: #444;
|
||||||
|
@nav-link-hover-bg: #444;
|
||||||
|
@nav-disabled-link-color: #ccc;
|
||||||
|
@nav-disabled-link-hover-color: #bbb;
|
||||||
|
@dropdown-link-hover-bg: #888;
|
||||||
|
@dropdown-link-active-color: #fff;
|
||||||
|
@list-group-link-color: #fff;
|
||||||
|
@list-group-active-bg: @dropdown-link-hover-bg;
|
||||||
|
@list-group-hover-bg: #444;
|
||||||
|
@list-group-bg: #333;
|
||||||
|
@input-color-placeholder: #ccc;
|
||||||
|
@btn-default-color: #fff;
|
||||||
|
@btn-primary-color: #fff;
|
||||||
|
@btn-primary-bg: #555;
|
||||||
|
@btn-success-color: #bbb;
|
||||||
|
@btn-info-bg: @body-bg;
|
||||||
|
@gray-lighter: @body-bg;
|
||||||
|
@modal-content-bg: #333;
|
||||||
|
@modal-content-separator-color: #444;
|
||||||
|
@modal-backdrop-bg: #000;
|
||||||
|
@blockquote-border-color: fade(#fff, 8%);
|
||||||
|
@close-color: #fff;
|
||||||
|
|
||||||
|
/*
|
||||||
input[readonly], select[readonly], textarea[readonly] {
|
input[readonly], select[readonly], textarea[readonly] {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wmd-input, input, .dropdown-menu, .modal {
|
|
||||||
background: #111;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-header, .modal-footer {
|
|
||||||
border-color: #222;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #f73;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover,
|
|
||||||
a:focus {
|
|
||||||
color: #ffab81;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
#file-title {
|
|
||||||
color: #bbb;
|
|
||||||
}
|
|
||||||
|
|
||||||
#file-title:hover {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
border-color: #333;
|
border-color: #333;
|
||||||
}
|
}
|
||||||
@ -70,10 +69,6 @@ blockquote {
|
|||||||
background-image: url("../../img/glyphicons-halflings-white.png");
|
background-image: url("../../img/glyphicons-halflings-white.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-inner {
|
|
||||||
background-color: #444 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-inner .btn,
|
.navbar-inner .btn,
|
||||||
#extension-preview-buttons .btn {
|
#extension-preview-buttons .btn {
|
||||||
background-color: #444;
|
background-color: #444;
|
||||||
@ -222,3 +217,4 @@ input[type="color"]:focus,
|
|||||||
background-color:rgba(80,80,80,0.75) !important;
|
background-color:rgba(80,80,80,0.75) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
@ -11,5 +11,13 @@
|
|||||||
indent_level: 1,
|
indent_level: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
excludeShallow: ['css/css-builder', 'less/lessc-server', 'less/lessc'],
|
include: [
|
||||||
|
'less!styles/default.less',
|
||||||
|
'less!styles/night.less',
|
||||||
|
],
|
||||||
|
excludeShallow: [
|
||||||
|
'css/css-builder',
|
||||||
|
'less/lessc-server',
|
||||||
|
'less/lessc'
|
||||||
|
],
|
||||||
})
|
})
|
Loading…
Reference in New Issue
Block a user