Skip to content

Commit

Permalink
Update Bootstrap 3 themes
Browse files Browse the repository at this point in the history
  • Loading branch information
fu-sen committed Feb 28, 2021
1 parent 92a8a31 commit fc1543e
Show file tree
Hide file tree
Showing 21 changed files with 120 additions and 1,054 deletions.
15 changes: 5 additions & 10 deletions src/strapdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,28 +77,23 @@
linkEl.rel = 'stylesheet';
document.head.appendChild(linkEl);

var linkEl = document.createElement('link');
linkEl.href = originBase + '/themes/bootstrap-responsive.min.css';
linkEl.rel = 'stylesheet';
document.head.appendChild(linkEl);

//////////////////////////////////////////////////////////////////////
//
// <body> stuff
//

var markdown = markdownEl.textContent || markdownEl.innerText;

var newNode = document.createElement('div');
newNode.className = 'container';
var newNode = document.createElement('main');
newNode.className = 'container-fluid';
newNode.id = 'content';
document.body.replaceChild(newNode, markdownEl);

// Insert navbar if there's none
var newNode = document.createElement('div');
newNode.className = 'navbar navbar-fixed-top';
var newNode = document.createElement('nav');
newNode.className = 'navbar navbar-default navbar-fixed-top';
if (!navbarEl && titleEl) {
newNode.innerHTML = '<div class="navbar-inner"> <div class="container"> <div id="headline" class="brand"> </div> </div> </div>';
newNode.innerHTML = '<div class="container"> <div class="navbar-header"> <div id="headline" class="navbar-brand"> </div> </div> </div>';
document.body.insertBefore(newNode, document.body.firstChild);
var title = titleEl.innerHTML;
var headlineEl = document.getElementById('headline');
Expand Down
9 changes: 0 additions & 9 deletions vendor/themes/amelia.min.css

This file was deleted.

9 changes: 0 additions & 9 deletions vendor/themes/bootstrap-responsive.min.css

This file was deleted.

12 changes: 4 additions & 8 deletions vendor/themes/bootstrap.min.css

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions vendor/themes/cerulean.min.css

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions vendor/themes/cosmo.min.css

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions vendor/themes/cyborg.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions vendor/themes/darkly.min.css

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions vendor/themes/flatly.min.css

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions vendor/themes/journal.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions vendor/themes/lumen.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions vendor/themes/paper.min.css

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions vendor/themes/readable.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions vendor/themes/sandstone.min.css

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions vendor/themes/simplex.min.css

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions vendor/themes/slate.min.css

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions vendor/themes/spacelab.min.css

Large diffs are not rendered by default.

920 changes: 0 additions & 920 deletions vendor/themes/spruce.min.css

This file was deleted.

16 changes: 7 additions & 9 deletions vendor/themes/superhero.min.css

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions vendor/themes/united.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions vendor/themes/yeti.min.css

Large diffs are not rendered by default.

0 comments on commit fc1543e

Please sign in to comment.