forked from ipython/ipython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ipython#3393 from minrk/bootstrap
[WIP] bootstrapify
- Loading branch information
Showing
66 changed files
with
1,284 additions
and
779 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
// Custom styles for login.html | ||
// Custom styles for login.html | ||
.center-nav { | ||
display: inline-block; | ||
// pull the lower margin back | ||
margin-bottom: -4px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
//---------------------------------------------------------------------------- | ||
// Copyright (C) 2013 The IPython Development Team | ||
// | ||
// Distributed under the terms of the BSD License. The full license is in | ||
// the file COPYING, distributed as part of this software. | ||
//---------------------------------------------------------------------------- | ||
|
||
//============================================================================ | ||
// Utility for modal dialogs with bootstrap | ||
//============================================================================ | ||
|
||
IPython.namespace('IPython.dialog'); | ||
|
||
IPython.dialog = (function (IPython) { | ||
|
||
var modal = function (options) { | ||
var dialog = $("<div/>").addClass("modal").attr("role", "dialog"); | ||
dialog.append( | ||
$("<div/>") | ||
.addClass("modal-header") | ||
.append($("<button>") | ||
.addClass("close") | ||
.attr("data-dismiss", "modal") | ||
.html("×") | ||
).append( | ||
$("<h3/>").text(options.title || "") | ||
) | ||
).append( | ||
$("<div/>").addClass("modal-body").append( | ||
options.body || $("<p/>") | ||
) | ||
); | ||
|
||
var footer = $("<div/>").addClass("modal-footer"); | ||
|
||
for (var label in options.buttons) { | ||
var btn_opts = options.buttons[label]; | ||
var button = $("<button/>") | ||
.addClass("btn") | ||
.attr("data-dismiss", "modal") | ||
.text(label); | ||
if (btn_opts.click) { | ||
button.click($.proxy(btn_opts.click, dialog)); | ||
} | ||
if (btn_opts.class) { | ||
button.addClass(btn_opts.class); | ||
} | ||
footer.append(button); | ||
} | ||
dialog.append(footer); | ||
// hook up on-open event | ||
dialog.on("shown", function() { | ||
setTimeout(function() { | ||
footer.find("button").last().focus(); | ||
if (options.open) { | ||
$.proxy(options.open, dialog)(); | ||
} | ||
}, 0); | ||
}); | ||
|
||
// destroy dialog on hide, unless explicitly asked not to | ||
if (options.destroy == undefined || options.destroy) { | ||
dialog.on("hidden", function () { | ||
dialog.remove(); | ||
}); | ||
} | ||
|
||
return dialog.modal(options); | ||
} | ||
|
||
return { | ||
modal : modal, | ||
}; | ||
|
||
}(IPython)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-180 Bytes
...ml/notebook/static/jquery/css/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png
Binary file not shown.
Binary file removed
BIN
-178 Bytes
...l/notebook/static/jquery/css/themes/base/images/ui-bg_flat_75_ffffff_40x100.png
Binary file not shown.
Binary file removed
BIN
-120 Bytes
...l/notebook/static/jquery/css/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png
Binary file not shown.
Binary file removed
BIN
-105 Bytes
...l/notebook/static/jquery/css/themes/base/images/ui-bg_glass_65_ffffff_1x400.png
Binary file not shown.
Binary file removed
BIN
-111 Bytes
...l/notebook/static/jquery/css/themes/base/images/ui-bg_glass_75_dadada_1x400.png
Binary file not shown.
Binary file removed
BIN
-110 Bytes
...l/notebook/static/jquery/css/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png
Binary file not shown.
Binary file removed
BIN
-119 Bytes
...l/notebook/static/jquery/css/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png
Binary file not shown.
Binary file removed
BIN
-101 Bytes
...k/static/jquery/css/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
Binary file not shown.
Binary file removed
BIN
-4.27 KB
.../html/notebook/static/jquery/css/themes/base/images/ui-icons_222222_256x240.png
Binary file not shown.
Binary file removed
BIN
-4.27 KB
.../html/notebook/static/jquery/css/themes/base/images/ui-icons_2e83ff_256x240.png
Binary file not shown.
Binary file removed
BIN
-4.27 KB
.../html/notebook/static/jquery/css/themes/base/images/ui-icons_454545_256x240.png
Binary file not shown.
Binary file removed
BIN
-4.27 KB
.../html/notebook/static/jquery/css/themes/base/images/ui-icons_888888_256x240.png
Binary file not shown.
Binary file removed
BIN
-4.27 KB
.../html/notebook/static/jquery/css/themes/base/images/ui-icons_cd0a0a_256x240.png
Binary file not shown.
1 change: 0 additions & 1 deletion
1
IPython/frontend/html/notebook/static/jquery/css/themes/base/jquery-ui.min.css
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
IPython/frontend/html/notebook/static/jquery/js/jquery-1.7.1.min.js
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
IPython/frontend/html/notebook/static/jquery/js/jquery-ui.min.js
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
IPython/frontend/html/notebook/static/jquery/js/jquery.autogrow.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.