Skip to content

Commit 28d510e

Browse files
Dave GamacheDave Gamache
authored andcommitted
removing nav on mobile, moving nav into mobile first query, changing the docs a bit, adding support section, testing out markdown IDs as links for README
1 parent 7e293bd commit 28d510e

File tree

5 files changed

+135
-150
lines changed

5 files changed

+135
-150
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ Skeleton is lightweight and simple. It styles only raw HTML elements (with a few
3333
- No compiling or installing...just vanilla CSS
3434

3535

36-
## Browser support
36+
## Browser support {#browserSupport}
3737

38-
- Chrome
39-
- Firefox 5+
40-
- Opera
41-
- Safari 6+
42-
- IE 8+
38+
- Chrome latest
39+
- Firefox latest
40+
- Opera latest
41+
- Safari latest
42+
- IE latest
4343

44+
The above list is non-exhaustive. Skeleton works perfectly with almost all older versions of the browsers above, though IE certainly has large degradation prior to IE9.
4445

4546
## Acknowledgement
4647

index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ <h2 class="title">A dead simple, responsive boilerplate.</h2>
100100
</div>
101101
</li>
102102
<li class="navbar-item"><a class="navbar-link" href="#examples">Examples</a></li>
103+
<li class="navbar-item"><a class="navbar-link" href="#support">Support</a></li>
103104
<li class="navbar-item"><a class="navbar-link" href="#license">License</a></li>
104105
<li class="navbar-item"><a class="navbar-link" href="#colophon">Colophon</a></li>
105106
</ul>
@@ -109,7 +110,7 @@ <h2 class="title">A dead simple, responsive boilerplate.</h2>
109110
<!-- Why use Skeleton -->
110111
<div class="docs-section" id="intro">
111112
<h6 class="docs-header">Is Skeleton for you?</h6>
112-
<p>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, <u>this site is built on Skeleton and has just over 100 lines of custom CSS.</u></p>
113+
<p>You should use Skeleton if you're overwhelmed by UI frameworks like Bootstrap and Foundation or if you're embarking on a smaller project. 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, <u>this site is built on Skeleton and has just over 100 lines of custom CSS.</u></p>
113114
<p>Love Skeleton and want to Tweet it, share it, or star it? Well, I appreciate that <3</p>
114115
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.getskeleton.com" data-text="Skeleton - A dead simple, responsive boilerplate." data-via="dhg" data-related="dhg">Tweet</a>
115116
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
@@ -617,6 +618,12 @@ <h6 class="docs-header">Utilities</h6>
617618
<h6 class="docs-header">Examples</h6>
618619
</div>
619620

621+
<!-- Support -->
622+
<div class="row docs-section" id="support">
623+
<h6 class="docs-header">Support</h6>
624+
<p>Skeleton supports all latest versions of major browsers (both on desktops and mobile devices). That said, it basically works with any version of Chrome, Firefox, Opera, or Safari and as far back as IE9.</p>
625+
</div>
626+
620627
<!-- License -->
621628
<div class="row docs-section" id="license">
622629
<h6 class="docs-header">License</h6>

scripts/site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $(document).ready(function() {
3434
$target = $(target);
3535
$('html, body').stop().animate({
3636
'scrollTop': $target.offset().top-40
37-
}, 500, 'swing', function () {
37+
}, 0, 'swing', function () {
3838
window.location.hash = target;
3939
$(document).on("scroll", onScroll);
4040
});

stylesheets/custom.css

Lines changed: 118 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
margin-top: 6rem;
55
text-align: center; }
66
.value-prop {
7-
margin-top: 1rem;
8-
}
7+
margin-top: 1rem; }
98
.value-props {
109
margin-top: 4rem;
1110
margin-bottom: 4rem; }
@@ -51,13 +50,15 @@
5150
letter-spacing: normal; }
5251
.code-example {
5352
margin-top: 1.5rem;
54-
margin-bottom: 0;
55-
}
53+
margin-bottom: 0; }
5654
.code-example-body {
5755
white-space: pre;
58-
word-wrap: break-word
56+
word-wrap: break-word }
57+
.navbar {
58+
display: none;
5959
}
6060

61+
/* Larger than phone */
6162
@media (min-width: 550px) {
6263
.header {
6364
margin-top: 18rem; }
@@ -77,142 +78,117 @@
7778
}
7879
}
7980

81+
/* Larger than tablet */
82+
@media (min-width: 750px) {
83+
/* Navbar */
84+
.navbar + .docs-section {
85+
border-top-width: 0; }
86+
.navbar,
87+
.navbar-spacer {
88+
display: block;
89+
width: 100%;
90+
height: 6.5rem;
91+
background: #fff;
92+
z-index: 99;
93+
border-top: 1px solid #eee;
94+
border-bottom: 1px solid #eee; }
95+
.navbar-spacer {
96+
display: none; }
97+
.navbar > .container {
98+
width: 100%; }
99+
.navbar-list {
100+
list-style: none;
101+
margin-bottom: 0; }
102+
.navbar-item {
103+
position: relative;
104+
float: left;
105+
margin-bottom: 0; }
106+
.navbar-link {
107+
text-transform: uppercase;
108+
font-size: 11px;
109+
font-weight: 600;
110+
letter-spacing: .2rem;
111+
margin-right: 35px;
112+
text-decoration: none;
113+
line-height: 6.3rem;
114+
color: #222; }
115+
.navbar-link.active {
116+
color: #33C3F0; }
117+
.has-docked-nav .navbar {
118+
position: fixed;
119+
top: 0;
120+
left: 0; }
121+
.has-docked-nav .navbar-spacer {
122+
display: block; }
123+
/* Re-overiding the width 100% declaration to match size of % based container */
124+
.has-docked-nav .navbar > .container {
125+
width: 80%; }
80126

81-
82-
83-
84-
85-
86-
.navbar + .docs-section {
87-
border-top-width: 0;
88-
}
89-
.navbar,
90-
.navbar-spacer {
91-
width: 100%;
92-
height: 6.5rem;
93-
background: #fff;
94-
z-index: 99;
95-
border-top: 1px solid #eee;
96-
border-bottom: 1px solid #eee;
97-
}
98-
.navbar-spacer {
99-
display: none;
100-
}
101-
.navbar > .container {
102-
width: 100%;
103-
}
104-
.navbar-list {
105-
list-style: none;
106-
margin-bottom: 0;
107-
}
108-
.navbar-item {
109-
position: relative;
110-
float: left;
111-
margin-bottom: 0;
112-
}
113-
.navbar-link {
114-
text-transform: uppercase;
115-
font-size: 11px;
116-
font-weight: 600;
117-
letter-spacing: .2rem;
118-
margin-right: 50px;
119-
text-decoration: none;
120-
line-height: 6.3rem;
121-
color: #222;
122-
}
123-
.navbar-link.active {
124-
color: #33C3F0;
125-
}
126-
.has-docked-nav .navbar {
127-
position: fixed;
128-
top: 0;
129-
left: 0;
130-
}
131-
132-
.has-docked-nav .navbar-spacer {
133-
display: block;
134-
}
135-
/* Re-overiding the width 100% declaration to match size of % based container */
136-
.has-docked-nav .navbar > .container {
137-
width: 80%;
138-
}
139-
140-
141-
142-
.popover.open {
143-
display: block;
144-
}
145-
.popover {
146-
display: none;
147-
position: absolute;
148-
top: 0;
149-
left: 0;
150-
background: #fff;
151-
border: 1px solid #eee;
152-
border-radius: 4px;
153-
top: 92%;
154-
left: -50%;
155-
-webkit-filter: drop-shadow(0 0 6px rgba(0,0,0,.1));
156-
-moz-filter: drop-shadow(0 0 6px rgba(0,0,0,.1));
157-
filter: drop-shadow(0 0 6px rgba(0,0,0,.1));
158-
}
159-
.popover-item:first-child .popover-link:after,
160-
.popover-item:first-child .popover-link:before {
161-
bottom: 100%;
162-
left: 50%;
163-
border: solid transparent;
164-
content: " ";
165-
height: 0;
166-
width: 0;
167-
position: absolute;
168-
pointer-events: none;
169-
}
170-
.popover-item:first-child .popover-link:after {
171-
border-color: rgba(255, 255, 255, 0);
172-
border-bottom-color: #fff;
173-
border-width: 10px;
174-
margin-left: -10px;
175-
}
176-
.popover-item:first-child .popover-link:before {
177-
border-color: rgba(238, 238, 238, 0);
178-
border-bottom-color: #eee;
179-
border-width: 11px;
180-
margin-left: -11px;
181-
}
182-
.popover-list {
183-
padding: 0;
184-
margin: 0;
185-
list-style: none;
186-
}
187-
.popover-item {
188-
padding: 0;
189-
margin: 0;
190-
}
191-
.popover-link {
192-
position: relative;
193-
color: #222;
194-
display: block;
195-
padding: 8px 20px;
196-
border-bottom: 1px solid #eee;
197-
text-decoration: none;
198-
text-transform: uppercase;
199-
font-size: 1.0rem;
200-
font-weight: 600;
201-
text-align: center;
202-
letter-spacing: .1rem;
203-
}
204-
.popover-item:first-child .popover-link {
205-
border-radius: 4px 4px 0 0;
206-
}
207-
.popover-item:last-child .popover-link {
208-
border-radius: 0 0 4px 4px;
209-
border-bottom-width: 0;
210-
}
211-
.popover-link:hover {
212-
color: #fff;
213-
background: #33C3F0;
214-
}
215-
.popover-link:hover,
216-
.popover-item:first-child .popover-link:hover:after {
217-
border-bottom-color: #33C3F0;
127+
/* Popover */
128+
.popover.open {
129+
display: block;
130+
}
131+
.popover {
132+
display: none;
133+
position: absolute;
134+
top: 0;
135+
left: 0;
136+
background: #fff;
137+
border: 1px solid #eee;
138+
border-radius: 4px;
139+
top: 92%;
140+
left: -50%;
141+
-webkit-filter: drop-shadow(0 0 6px rgba(0,0,0,.1));
142+
-moz-filter: drop-shadow(0 0 6px rgba(0,0,0,.1));
143+
filter: drop-shadow(0 0 6px rgba(0,0,0,.1)); }
144+
.popover-item:first-child .popover-link:after,
145+
.popover-item:first-child .popover-link:before {
146+
bottom: 100%;
147+
left: 50%;
148+
border: solid transparent;
149+
content: " ";
150+
height: 0;
151+
width: 0;
152+
position: absolute;
153+
pointer-events: none; }
154+
.popover-item:first-child .popover-link:after {
155+
border-color: rgba(255, 255, 255, 0);
156+
border-bottom-color: #fff;
157+
border-width: 10px;
158+
margin-left: -10px; }
159+
.popover-item:first-child .popover-link:before {
160+
border-color: rgba(238, 238, 238, 0);
161+
border-bottom-color: #eee;
162+
border-width: 11px;
163+
margin-left: -11px; }
164+
.popover-list {
165+
padding: 0;
166+
margin: 0;
167+
list-style: none; }
168+
.popover-item {
169+
padding: 0;
170+
margin: 0; }
171+
.popover-link {
172+
position: relative;
173+
color: #222;
174+
display: block;
175+
padding: 8px 20px;
176+
border-bottom: 1px solid #eee;
177+
text-decoration: none;
178+
text-transform: uppercase;
179+
font-size: 1.0rem;
180+
font-weight: 600;
181+
text-align: center;
182+
letter-spacing: .1rem; }
183+
.popover-item:first-child .popover-link {
184+
border-radius: 4px 4px 0 0; }
185+
.popover-item:last-child .popover-link {
186+
border-radius: 0 0 4px 4px;
187+
border-bottom-width: 0; }
188+
.popover-link:hover {
189+
color: #fff;
190+
background: #33C3F0; }
191+
.popover-link:hover,
192+
.popover-item:first-child .popover-link:hover:after {
193+
border-bottom-color: #33C3F0; }
218194
}

stylesheets/skeleton.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
.row .columns:first-child {
4747
margin-left: 0; }
4848

49+
/* For devices larger than 550px */
4950
@media (min-width: 550px) {
5051

5152
.container .column,

0 commit comments

Comments
 (0)