From 7eddb94fa67550d2b50843bd0c29d1a76c2e1076 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 18 Aug 2013 23:36:36 -0700 Subject: simpler customizer files section; adds glyphicons.less --- assets/css/docs.css | 8 +++++--- assets/js/customizer.js | 9 +++++---- 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'assets') diff --git a/assets/css/docs.css b/assets/css/docs.css index 9608fc457..da107292d 100644 --- a/assets/css/docs.css +++ b/assets/css/docs.css @@ -1032,13 +1032,15 @@ h3[id] { border-bottom: 1px solid #b94441; } .bs-customizer-alert .close { - margin-top: -2px; - color: #fff; - text-shadow: none; + margin-top: -4px; + font-size: 24px; } .bs-customizer-alert p { margin-bottom: 0; } +.bs-customizer-alert .glyphicon { + margin-right: 3px; +} /* diff --git a/assets/js/customizer.js b/assets/js/customizer.js index 039e10d94..9ecf52ee2 100644 --- a/assets/js/customizer.js +++ b/assets/js/customizer.js @@ -5,6 +5,7 @@ window.onload = function () { // wait for load in a dumb way because B-0 $('
\
\ ×\ +

' + msg + '

' + (err.extract ? '
' + err.extract.join('\n') + '
' : '') + '\
\ @@ -51,7 +52,7 @@ window.onload = function () { // wait for load in a dumb way because B-0 history.replaceState(false, document.title, window.location.origin + window.location.pathname + '?id=' + result.id) }) .error(function(err) { - showError('Error Could not save gist file, configuration not saved.', err) + showError('Ruh roh! Could not save gist file, configuration not saved.', err) }) } @@ -108,7 +109,7 @@ window.onload = function () { // wait for load in a dumb way because B-0 } function generateZip(css, js, complete) { - if (!css && !js) return showError('Error No Bootstrap files selected.', new Error('no Bootstrap')) + if (!css && !js) return showError('Ruh roh! No Bootstrap files selected.', new Error('no Bootstrap')) var zip = new JSZip() @@ -174,7 +175,7 @@ window.onload = function () { // wait for load in a dumb way because B-0 , filename: 'bootstrap.css' }).parse(css, function (err, tree) { if (err) { - return showError('Error Could not parse less files.', err) + return showError('Ruh roh! Could not parse less files.', err) } result = { 'bootstrap.css' : cw + tree.toCSS(), @@ -182,7 +183,7 @@ window.onload = function () { // wait for load in a dumb way because B-0 } }) } catch (err) { - return showError('Error Could not parse less files.', err) + return showError('Ruh roh! Could not parse less files.', err) } return result -- cgit v1.2.3