Browse Source

removing the components js for now

pull/249/head
connors 11 years ago
parent
commit
f77b30b50a
  1. 4
      components.html
  2. 2
      docs-assets/css/docs.css
  3. 18
      docs-assets/js/docs.js
  4. 4
      index.html
  5. 2
      lib/sass/docs.scss

4
components.html

@ -8,9 +8,9 @@ base_url: "../"
<div class="container column-group">
<div class="column units-2">
<header class="docs-nav">
<a class="icon icon-list pull-right" href="/components" data-ignore="push"></a>
<a class="version" href="https://github.com/maker/ratchet">v2.0.0</a>
<h1 class="docs-title">Ratchet</h1>
<a data-ignore="push" class="icon icon-list" href="/components"></a>
<a data-ignore="push" class="version" href="/">Home</a>
</header>
</div>
</div>

2
docs-assets/css/docs.css

@ -881,7 +881,7 @@ body {
.platform-toggle {
padding-top: 15px;
padding-bottom: 80px;
padding-bottom: 90px;
}
.platform-toggle.fixed {
position: fixed;

18
docs-assets/js/docs.js

@ -8,7 +8,6 @@ $(function() {
var pageHeight;
var contentPadding;
var footerHeight;
var noticeBanner;
var componentsList;
var navComponentLinks;
var contentSection;
@ -24,7 +23,6 @@ $(function() {
bod = $(document.body)
device = device || $('.device');
platformToggle = $('.platform-toggle');
noticeBanner = $('.notice-banner');
navComponentLinks = $('.docs-nav');
componentsList = $('.components-list');
componentLinks = $('.component-example a');
@ -40,8 +38,6 @@ $(function() {
device.initialTop = device.initialTop || device.offset().top;
device.dockingOffset = ($(window).height() - device.height())/2;
console.log(device.dockingOffset);
// Toggle placment
toggleTop = platformToggle.offset().top;
toggleHeight = platformToggle.outerHeight();
@ -55,19 +51,15 @@ $(function() {
var addEventListeners = function () {
eventListeners = true;
noticeBanner.on('click', function () {
$(this).hide();
});
device.on('click', function (e) {
e.preventDefault();
});
navComponentLinks.click(function(e) {
e.stopPropagation();
e.preventDefault();
componentsList.toggleClass('active');
})
// navComponentLinks.click(function(e) {
// e.stopPropagation();
// e.preventDefault();
// componentsList.toggleClass('active');
// })
doc.on('click', function () {
componentsList.removeClass('active');

4
index.html

@ -8,9 +8,9 @@ base_url: "./"
<div class="container column-group">
<div class="column units-2">
<header class="docs-nav">
<a class="icon icon-list pull-right" href="/components" data-ignore="push"></a>
<a class="version" href="https://github.com/maker/ratchet">v2.0.0</a>
<h1 class="docs-title">Ratchet</h1>
<a class="icon icon-list" href="/components" data-ignore="push"></a>
<a class="version" href="https://github.com/maker/ratchet" data-ignore="push">v2.0.0</a>
</header>
</div>
</div>

2
lib/sass/docs.scss

@ -294,7 +294,7 @@ body {
.platform-toggle {
padding-top: 15px;
padding-bottom: 80px;
padding-bottom: 90px;
&.fixed {
position: fixed;

Loading…
Cancel
Save