diff --git a/index.html b/index.html index b79177e..d2e0210 100644 --- a/index.html +++ b/index.html @@ -64,50 +64,50 @@ -
+
Is Skeleton for you?

You should use Skeleton if you're feeling like whole UI frameworks like Bootstrap and Foundation are overkill for your project and you just want the basics. Skeleton only styles a handful of standard HTML elements and includes a grid, but that's often more than enough to get started. In fact, this site is built on Skeleton and has just over 100 lines of custom CSS.

Love Skeleton and want to Tweet it, share it, or star it? Well, I appreciate that <3

@@ -119,7 +119,7 @@
-
+
The grid

The grid is a 12-column fluid grid with a max width of 960px, that shrinks with the browser/device at smaller sizes. The max width can be changed with one line of CSS and all columns will resize accordingly. The syntax is simple and it makes coding responsive much easier. Go ahead, resize the browser.

@@ -208,7 +208,7 @@
-
+
Typography

Type is all set with the rems, so font-sizes and spacial relationships can be responsively sized based on a single <html> font-size property. Out of the box, Skeleton never changes the <html> font-size, but it's there in case you need it for your project. All measurements are still base 10 though so, an <h1> with 5.0remfont-size just means 50px.

@@ -255,7 +255,7 @@
-
+
Buttons

Buttons come in two basic flavors in Skeleton. The standard <button> element is plain, whereas the .button-primary button is vibrant and prominent. Button styles are applied to a number of appropriate form elements, but can also be arbitrarily attached to anchors with a .button class.

@@ -295,7 +295,7 @@
-
+
Forms

Forms are a huge pain, but hopefully these styles make it a bit easier. All inputs, select, and buttons are normalized for a common height cross-browser so inputs can be stacked or placed alongside each other.

@@ -363,7 +363,7 @@
-
+
Lists
@@ -418,7 +418,7 @@
-
+
Code

Code styling is kept basic – just wrap anything in a <code> and it will appear like this. For blocks of code, wrap a <code> with a <pre>.

@@ -443,7 +443,7 @@
-
+
Tables

Be sure to use properly formed table markup with <thead> and <tbody> when building a table.

@@ -508,7 +508,7 @@
-
+
Media queries

Skeleton uses media queries to serve its scalable grid, but also has a list of queries for convenience of styling your site across devices. There are two sets of queries. The first set is mobile-first, meaning it targets min-width. The other set is desktop-first, meaning it targets max-width. Mobile-first queries are how Skeleton's grid is built and is a preferrable method of organizing CSS. The sizes for the queries are:

@@ -575,7 +575,7 @@ -
+
Utilities

Skeleton has a number of small utility classes that act as easy-to-use helpers. Sometimes it's better to use a utility class than create a whole new class just to float an element.

@@ -613,19 +613,19 @@
-
-
Examples of Skeleton sites
+
+
Examples
-
+
License

All parts of Skeleton are free to use and abuse under the open-source MIT license. More importantly, if you're into coding head over to the Github page and contribute or fork this bad boy.

Skeleton's version history is available on Github.

-
+
Colophon

Skeleton was built using Sublime Text 3 and designed with Sketch. The typeface Raleway was created by Matt McInerney and Pablo Impallari. Code highlighting by Google's Prettify library. Icons in the header are all derivative work of icon from The Noun Project. Feather by Zach VanDeHey, Pen (with cap) by Ed Harrison, Pen (with clicker) by Matthew Hall, and Watch by Julien Deveaux.

diff --git a/scripts/site.js b/scripts/site.js index 09877b2..59f8c65 100644 --- a/scripts/site.js +++ b/scripts/site.js @@ -5,7 +5,9 @@ $(document).ready(function() { $nav = $('.navbar'), $body = $('body'), $window = $(window), + $popoverLink = $('[data-popover]'), navOffsetTop = $nav.offset().top, + $document = $(document), entityMap = { "&": "&", "<": "<", @@ -18,9 +20,45 @@ $(document).ready(function() { function init() { $window.on('scroll', onScroll) $window.on('resize', resize) + $popoverLink.on('click', openPopover) + $document.on('click', closePopover) + $('a[href^="#"]').on('click', smoothScroll) buildSnippets(); } + function smoothScroll(e) { + e.preventDefault(); + $(document).off("scroll"); + var target = this.hash, + menu = target; + $target = $(target); + $('html, body').stop().animate({ + 'scrollTop': $target.offset().top-40 + }, 500, 'swing', function () { + window.location.hash = target; + $(document).on("scroll", onScroll); + }); + } + + function openPopover(e) { + e.preventDefault() + var popover = $($(this).data('popover')); + popover.toggleClass('open') + e.stopImmediatePropagation(); + } + + function closePopover(e) { + if($('.popover.open').length > 0) { + $('.popover').removeClass('open') + } + } + + $("#button").click(function() { + $('html, body').animate({ + scrollTop: $("#elementtoScrollToID").offset().top + }, 2000); +}); + function resize() { navOffsetTop = $nav.offset().top } diff --git a/stylesheets/custom.css b/stylesheets/custom.css index 55743f4..04a4c19 100644 --- a/stylesheets/custom.css +++ b/stylesheets/custom.css @@ -114,7 +114,7 @@ text-transform: uppercase; font-size: 11px; font-weight: 600; - letter-spacing: .1rem; + letter-spacing: .2rem; margin-right: 50px; text-decoration: none; line-height: 6.3rem; @@ -128,11 +128,20 @@ top: 0; left: 0; } + .has-docked-nav .navbar-spacer { display: block; } +/* Re-overiding the width 100% declaration to match size of % based container */ +.has-docked-nav .navbar > .container { + width: 80%; +} + +.popover.open { + display: block; +} .popover { display: none; position: absolute; @@ -143,9 +152,35 @@ border-radius: 4px; top: 92%; left: -50%; + -webkit-filter: drop-shadow(0 0 6px rgba(0,0,0,.1)); + -moz-filter: drop-shadow(0 0 6px rgba(0,0,0,.1)); + filter: drop-shadow(0 0 6px rgba(0,0,0,.1)); +} +.popover-item:first-child .popover-link:after, +.popover-item:first-child .popover-link:before { + bottom: 100%; + left: 50%; + border: solid transparent; + content: " "; + height: 0; + width: 0; + position: absolute; + pointer-events: none; +} +.popover-item:first-child .popover-link:after { + border-color: rgba(255, 255, 255, 0); + border-bottom-color: #fff; + border-width: 10px; + margin-left: -10px; +} +.popover-item:first-child .popover-link:before { + border-color: rgba(238, 238, 238, 0); + border-bottom-color: #eee; + border-width: 11px; + margin-left: -11px; } .popover-list { - padding: 10px 0; + padding: 0; margin: 0; list-style: none; } @@ -154,9 +189,11 @@ margin: 0; } .popover-link { - color: #999; + position: relative; + color: #222; display: block; - padding: 5px 20px; + padding: 8px 20px; + border-bottom: 1px solid #eee; text-decoration: none; text-transform: uppercase; font-size: 1.0rem; @@ -164,7 +201,18 @@ text-align: center; letter-spacing: .1rem; } +.popover-item:first-child .popover-link { + border-radius: 4px 4px 0 0; +} +.popover-item:last-child .popover-link { + border-radius: 0 0 4px 4px; + border-bottom-width: 0; +} .popover-link:hover { color: #fff; background: #33C3F0; +} +.popover-link:hover, +.popover-item:first-child .popover-link:hover:after { + border-bottom-color: #33C3F0; } \ No newline at end of file diff --git a/stylesheets/skeleton.css b/stylesheets/skeleton.css index cbe037d..1d6020b 100644 --- a/stylesheets/skeleton.css +++ b/stylesheets/skeleton.css @@ -118,8 +118,7 @@ h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; } –––––––––––––––––––––––––––––––––––––––––––––––––– */ a { color: #1EAEDB; } -a:hover, -a:focus { +a:hover { color: #0FA0CE; }