Code Monkey home page Code Monkey logo

kontext's People

Contributors

hakimel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kontext's Issues

Any ways to add nav arrows instead of bullets

Hey Hakim,

Kontext in one word is "AWESOME". I have been trying to integrate arrows instead of bullets for navigation. But keep running to the wall. Any assistance would be helpful :)

Problems integrating with Twitter Bootstrap

While Kontext is certifiably awesome, I'm having some problems integrating it with Bootstrap, mainly because of it's CSS. The animation for the previous slide doesn't seem to be working, and I can't actually understand why.

[enhancement] Add missing bower.json.

Hey, maintainer(s) of hakimel/kontext!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library hakimel/kontext is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "hakimel/kontext",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Bootstrap fixed navbar issue

Hi Hakim,

I found an issue with Bootstraps fixed navbar. Let's assume you have the following structure:

<div class="kontext">
  <div class="layer one show">
    <nav class="navbar navbar-default fixed" role="navigation">
      ...
    </nav>
  </div>
  <div class="layer two">
    ...
  </div>
</div

When using Kontext like this, the Navbar is fixed to top but won't scroll along with the page. It just stays at the top.

I found a solution for this though, you just need to comment out the following CSS:

.kontext.capable {
    -webkit-perspective: 1000px;
       -moz-perspective: 1000px;
            perspective: 1000px;

    -webkit-transform-style: preserve-3d;
       -moz-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.kontext.capable .layer {
    -webkit-transform: translateZ( -100px );
       -moz-transform: translateZ( -100px );
            transform: translateZ( -100px );
}

.kontext.capable .layer.show {
    -webkit-transform: translateZ( 0px );
       -moz-transform: translateZ( 0px );
            transform: translateZ( 0px );
}

I have no idea why the above code makes Bootstraps navbar behave like this. Hope you can help me with this.

EDIT: I've found a better solution by just overwriting those properties like this:

.kontext.capable {
  perspective: none;
  transform-style: flat;
}

.kontext.capable .layer { transform: none; }

.kontext.capable .layer.show { transform: none; }

This solves the navbar behavior before calling k.next(). After calling it the navbar is again fixed to the top of the page (not the top of the viewport like expected)

web content blocked

from chrome console:

Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343.

IE Issues

When you press the left arrow key, this appears.

image

Img tag bug in Safari

I've been using this on a responsive project and I've found that in Safari on the mac when using an img tag on the slide when it hits this line in kontext.js...

if( !el.querySelector( '.dimmer' ) ) el.innerHTML += '

';

it makes all the img tags height: 0. Not sure how to get it around it yet but it's a right pain!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.