A lightweight responsive framework for the www

Overview

Skel

DEPRECATED! Use Responsive Tools instead thx

Skel is a lightweight framework for building responsive sites and web apps.

(Looking for the previous version of Skel? Go here: github.com/ajlkn/skel.old)

Modules

Previous versions of Skel were basically monolithic (ie. skel.min.js contained all of Skel's functionality, even if you didn't need all of it). As of version 3, Skel uses a modular approach to give you more flexibility in how you use it. Here's how it (currently) breaks down:

  • Skel (skel.min.js)

    (Main framework) Provides JS access to CSS breakpoints, events, and other tools.

  • Layout (skel-layout.min.js)

    (Module) Adds CSS and page layout tools, including a CSS grid system, browser resets and more.

  • Viewport (skel-viewport.min.js)

    (Module) Adds simplified viewport management (including support for multiple viewport <meta> tags).

  • Skel.scss (_skel.scss)

    (Sass framework) A Sass-based implementation of Skel. Merges certain aspects of Skel and its Layout module (while adding some handy new mixins). Designed to work independently or in conjunction with Skel for added effect.

Credits

License

Skel, Layout, Viewport, and Skel.scss are released under the MIT license.

Copyright (c) skel.io

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Comments
  • Sassc compatibility

    Sassc compatibility

    Are there plans to support the libsass-based sassc compiler?

    Currently (libsass 3.2.1) there is an error:

    Error: invalid selector after 25
            on line 221 of src/_skel.scss
    >>          .container.\31 25\25        { width: 100%; max-width: $width * 1.25; min-width: $
       ------------------^
    

    I am not familiar with this backslash syntax so I don't really know how to help. Can you point me to a resource to learn about this?

    Thanks!

    opened by normanrz 19
  • Accordions in panel

    Accordions in panel

    Hey.

    I've been trying to build in a way to handle multiple levels of navigation in panels. My solution is to make parent links accordions which then reveal the child links when clicked / tapped. However, no matter which accordion plugin I use, they all fail. I can get them all to work fine in the main body of a page but as soon as I copy & paste the code into a panel, they don't work. The accordions stay closed and do not open when clicked.

    I also had an issue of links, even #, closing the panels. I tried adding skel-panels-ignore (as suggested in another issue) to the links which stopped the panels closing but did not help with the accordions issue.

    Any ideas?

    My config is as follows:

    // Init skelJS 
    window._skel_config = {
        prefix: 'wp-content/themes/ckd-reset/style',
        preloadStyleSheets: true,
        resetCSS: true,
        boxModel: 'border',
        preloadStyleSheets: true,
        grid: { gutters: 40 },
        breakpoints: {
            desktop: { range: '1020-', containers: 960 },
            tablet: { range: '681-1019', containers: 640 },
            mobile: { range: '-680', containers: 300, lockViewport: true, grid: { collapse: true, gutters: 20 } }
        }
    };
    
    // Init skelJS panels plugin
    window._skel_panels_config = {
        panels: {
            leftPanel: {
                breakpoints: 'tablet,mobile',
                useTransform: false,
                position: 'left',
                size: "75%",
                html: '<div data-action="copyHTML" data-args="mobileNav"></div>'
            }
        }
    };
    
    opened by nathobson 14
  • skeljs don`t  change breakpoints

    skeljs don`t change breakpoints

    I have a tablet with 1200*800 resolution. When I chage tablet orientation the breakpoints are not changing, why?

    And second question: window.innerWidth=800px in portrain orientation, why I have tablet brakepoint instead of shortdesktop?

    Here my config: window._skel_config = { prefix: '/sites/main/themes/ag/css/style', preloadStyleSheets: true, resetCSS: true, // boxModel: 'border', grid: { gutters: 30 }, breakpoints: { desktop: {range: '1000-', containers: 'fluid', grid: { gutters: 50 } }, shortdesk: {range: '785-999', containers: 'fluid', grid: { gutters: 50 } }, tablet: { range: '600-784', containers: 'fluid', lockViewport: true }, mobile: { range: '-599', containers: 'fluid', lockViewport: true, grid: { collapse: true, gutters: 20 } } } };

    opened by maxjust 13
  • skel.min.js issue - node not found

    skel.min.js issue - node not found

    I am using Prologue template in MVC-4 project. Following skel.min.js error occured when i load page; also it does not render mobile menu when i run it on mobile simulator. Your help will be much appreciated.

    "Uncaught NotFoundError: An attempt was made to reference a Node in a context where it does not exist."

    snap attached: skelminjs error

    opened by syedaliaziz 13
  • Define base path for css?

    Define base path for css?

    Can I define a base path for the CSS files?

    On the main path it works... for example: http://example.com/index.html

    But breaks if I get further up, for example: http://example.com/products/software.html

    Looking in chrome it now tries to load: http://example.com/products/css/style.css

    Can I tell it to stick to: http://example.com/css/style.css ?

    opened by JPG-Consulting 13
  • Conflicting with PrototypeJS

    Conflicting with PrototypeJS

    First of all, skelJS is a great framework. Would it be possible to ensure that it does not conflict with PrototypeJS, which comes as standard with Magento?

    I tend to work solely with jQuery which can be forced into noConflict mode; is there a similar feature within skelJS?

    At the moment, the only information that I possess is the following error message which is being reported by prototype.js:

    Uncaught TypeError: Cannot call method 'call' of undefined

    Has anyone had any success with using skelJS and PrototypeJS within the same page?

    opened by davidandrewsmith90 12
  • skel.on('change') doesn't work in WP

    skel.on('change') doesn't work in WP

    I setup Skel on a simple page and it works just fine. I can ask to alert something like this:

    skel.on('change', function() { alert('Breakpoint state changed!'); });

    When I load the exact same script into my WP-blog (with the wp_enqueue_scripts action), it works fine regarding changing the layout with every breakpoint (so it works, it finds the script and the css and so on), but the function

    skel.on('change', function() { alert('Breakpoint state changed!'); });

    does nothing, nothing gets alerted (yet it does change, as the layout changes, so I know the skel script works and detects changes). I need to change some dynamically set heights when the breakpoints change, so I do feel like I need that event :-/

    Any idea on what this is and how I can get it to work?

    question 
    opened by redanser 11
  • nav ul li href error

    nav ul li href error

    I am using skeljs and prologue template. I am facing this issue with menus (nav) - when i put a url like "http://google.com" or "/account/login" it throws this error. The menu is using "#" urls by default - it scrolls sections.

    Plese help me in this regards.

    jquery nav li a href error url in this menu.

    opened by syedaliaziz 11
  • Scroll-to-top compatability

    Scroll-to-top compatability

    Hi AJ.

    I've now tried 2 scroll-to-top plugins and neither seem to work with Skel. When I remove Skel they both work fine.

    Have you managed to get any to work?

    The 2 I've tried are:

    1. http://mattvarone.com/web-design/uitotop-jquery-plugin/
    2. http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm

    Cheers,

    Mark

    opened by mfread 10
  • Jquery Mobile select data-native-menu inside panel doesn't work

    Jquery Mobile select data-native-menu inside panel doesn't work

    When using a jquery mobile select element with data-native-menu set to false to use jqm's inbuilt custom menu. inside skel-js panel - it doesn't work.

    clicking on it simply closes the panel.

    thanks

    opened by mmjamal 10
  • Google Page Speed performance

    Google Page Speed performance

    Hello,

    This is great framework without any doubt but when we talk about responsive websites for mobile devices speed must be a major factor. If you run html4up.net website on Google page speed this is showing very low page rank. Please have a look.

    http://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fhtml5up.net%2F

    I think things can be improve if SkelJS framework loads dynamic CSS files into single