From b1d21731adfc04adb654133988f3c8e444d8b240 Mon Sep 17 00:00:00 2001 From: fat Date: Sun, 4 Aug 2013 15:45:27 -0700 Subject: remove js anchor interference --- assets/css/docs.css | 1 - assets/js/application.js | 8 -------- 2 files changed, 9 deletions(-) (limited to 'assets') diff --git a/assets/css/docs.css b/assets/css/docs.css index 56b5d1f39..154596b3e 100644 --- a/assets/css/docs.css +++ b/assets/css/docs.css @@ -878,7 +878,6 @@ input.focused { width: 330px !important; min-height: 132px; } - } /* Large desktops and up */ diff --git a/assets/js/application.js b/assets/js/application.js index 54f9455f7..48c32681e 100644 --- a/assets/js/application.js +++ b/assets/js/application.js @@ -20,14 +20,6 @@ e.preventDefault() }) - $body.on('click', '.bs-sidenav [href^=#]', function (e) { - var $target = $(this.getAttribute('href')) - - e.preventDefault() // prevent browser scroll - - $window.scrollTop($target.offset().top - navHeight + 5) - }) - // back to top setTimeout(function () { var $sideBar = $('.bs-sidebar') -- cgit v1.2.3 From 550493a87e268e3ab2971daa5c2be258bf611cec Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 5 Aug 2013 08:33:15 -0700 Subject: Fixes #9073: add note to homepage about download differences --- assets/css/docs.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/css/docs.css b/assets/css/docs.css index 154596b3e..4a92fa2a2 100644 --- a/assets/css/docs.css +++ b/assets/css/docs.css @@ -123,7 +123,7 @@ body { /* Download button */ .bs-masthead .btn-outline { - margin-top: 5px; + margin-top: 20px; margin-bottom: 5px; padding: 18px 24px; font-size: 21px; @@ -833,7 +833,7 @@ input.focused { .bs-masthead h1 { font-size: 100px; } - .bs-masthead p { + .bs-masthead .lead { margin-left: 15%; margin-right: 15%; font-size: 30px; -- cgit v1.2.3 From 443ff0cc32bce946b43e0f0670efe82810324dac Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 6 Aug 2013 17:29:41 -0700 Subject: Pull from GitHub downloads for latest v3-wip on homepage /cc @cv --- assets/css/docs.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets') diff --git a/assets/css/docs.css b/assets/css/docs.css index 4a92fa2a2..d0222097d 100644 --- a/assets/css/docs.css +++ b/assets/css/docs.css @@ -124,7 +124,7 @@ body { /* Download button */ .bs-masthead .btn-outline { margin-top: 20px; - margin-bottom: 5px; + margin-bottom: 20px; padding: 18px 24px; font-size: 21px; } -- cgit v1.2.3 From 75b0e92bc4f6c0e5dd4506ac4f6970427b5854f8 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 6 Aug 2013 18:29:18 -0700 Subject: little better spacing between major sections in le docs for jump to nav --- assets/css/docs.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/css/docs.css b/assets/css/docs.css index d0222097d..84087e82f 100644 --- a/assets/css/docs.css +++ b/assets/css/docs.css @@ -208,8 +208,8 @@ body { position: relative; } -.bs-docs-section + .bs-docs-section { - margin-top: 80px; +.bs-docs-section h1[id] { + padding-top: 80px; } /* Ads in page headers */ -- cgit v1.2.3 From b35b65d0b3689f7999be998411e632046548af6e Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Wed, 7 Aug 2013 23:06:29 -0700 Subject: first prototype of new customizer --- assets/js/application.js | 82 --- assets/js/jszip.js | 1425 ++++++++++++++++++++++++++++++++++++++++++++++ assets/js/less.js | 9 + assets/js/uglify.js | 14 + 4 files changed, 1448 insertions(+), 82 deletions(-) create mode 100644 assets/js/jszip.js create mode 100644 assets/js/less.js create mode 100644 assets/js/uglify.js (limited to 'assets') diff --git a/assets/js/application.js b/assets/js/application.js index 48c32681e..e581fab70 100644 --- a/assets/js/application.js +++ b/assets/js/application.js @@ -73,88 +73,6 @@ // carousel demo $('.bs-docs-carousel-example').carousel() - - // javascript build logic - var inputsComponent = $("#less input") - , inputsPlugin = $("#plugins input") - , inputsVariables = $("#less-variables input") - - // toggle all plugin checkboxes - $('#less .toggle').on('click', function (e) { - e.preventDefault() - inputsComponent.prop('checked', !inputsComponent.is(':checked')) - }) - - $('#plugins .toggle').on('click', function (e) { - e.preventDefault() - inputsPlugin.prop('checked', !inputsPlugin.is(':checked')) - }) - - $('#less-variables .toggle').on('click', function (e) { - e.preventDefault() - inputsVariables.val('') - }) - - // request built javascript - $('.bs-customize-download .btn').on('click', function (e) { - e.preventDefault() - - var css = $("#less input:checked") - .map(function () { return this.value }) - .toArray() - , js = $("#plugins input:checked") - .map(function () { return this.value }) - .toArray() - , vars = {} - - $("#less-variables input") - .each(function () { - $(this).val() && (vars[ $(this).prev().text() ] = $(this).val()) - }) - - $.ajax({ - type: 'POST' - , url: /localhost/.test(window.location) ? 'http://localhost:9001' : 'http://bootstrap.herokuapp.com' - , dataType: 'jsonpi' - , params: { - js: js - , css: css - , vars: vars - } - }) - }) - }) - -// Modified from the original jsonpi https://github.com/benvinegar/jquery-jsonpi -$.ajaxTransport('jsonpi', function(opts, originalOptions, jqXHR) { - var url = opts.url; - - return { - send: function(_, completeCallback) { - var name = 'jQuery_iframe_' + jQuery.now() - , iframe, form - - iframe = $('