Skip to content
This repository was archived by the owner on Mar 25, 2019. It is now read-only.

Commit 1c6973e

Browse files
committed
Merge branch 'master' into modularize_menu
Conflicts: docs/css/docs.css
2 parents f7b983e + 8068d05 commit 1c6973e

File tree

8 files changed

+189
-34
lines changed

8 files changed

+189
-34
lines changed

_default_settings.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ $select-focus-border-color: $color-success !default;
173173
// Breakpoints
174174

175175
$breakpoint-small: 32em !default;
176-
$breakpoint-medium: 50em !default;
176+
$breakpoint-medium: 48em !default;
177177
$breakpoint-large: 75em !default;
178178

179179

docs/css/docs.css

Lines changed: 66 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro);
21
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
32
margin: 0;
43
padding: 0;
@@ -364,7 +363,7 @@ main address, main audio, main embed, main object, main map, main svg, main vide
364363
margin-bottom: 1.7em; }
365364

366365
.container {
367-
max-width: 50em;
366+
max-width: 48em;
368367
padding: 3.4em;
369368
margin-left: auto;
370369
margin-right: auto; }
@@ -404,7 +403,8 @@ pre {
404403
padding: 0.85em;
405404
white-space: pre-wrap;
406405
max-height: 80vh;
407-
overflow: scroll; }
406+
overflow-x: hidden;
407+
overflow-y: scroll; }
408408

409409
details {
410410
margin-bottom: 1.7em; }
@@ -464,30 +464,30 @@ math {
464464
.grid-module-container {
465465
padding: 1.7em 1.275em;
466466
margin: 0 auto;
467-
max-width: 52.55em; }
467+
max-width: 50.55em; }
468468
.grid-module-container:before, .grid-module-container:after {
469469
content: "";
470470
display: table; }
471471
.grid-module-container:after {
472472
clear: both; }
473-
@media screen and (min-width: 28.825em) {
473+
@media screen and (min-width: 27.825em) {
474474
.grid-module-container {
475-
max-width: 26.275em;
475+
max-width: 25.275em;
476476
padding: 3.4em 1.275em; }
477477
.grid-module-container .grid-module {
478-
width: 26.275em; } }
479-
@media screen and (min-width: 55.1em) {
478+
width: 25.275em; } }
479+
@media screen and (min-width: 53.1em) {
480480
.grid-module-container {
481-
max-width: 52.55em; } }
482-
@media screen and (min-width: 81.375em) {
481+
max-width: 50.55em; } }
482+
@media screen and (min-width: 78.375em) {
483483
.grid-module-container {
484-
max-width: 78.825em; } }
485-
@media screen and (min-width: 107.65em) {
484+
max-width: 75.825em; } }
485+
@media screen and (min-width: 103.65em) {
486486
.grid-module-container {
487-
max-width: 105.1em; } }
488-
@media screen and (min-width: 133.925em) {
487+
max-width: 101.1em; } }
488+
@media screen and (min-width: 128.925em) {
489489
.grid-module-container {
490-
max-width: 131.375em; } }
490+
max-width: 126.375em; } }
491491

492492
.absolute-full-height, .absolute-top-left, .absolute-top-right, .fixed-full-height, .fixed-top-left, .fixed-top-right {
493493
top: 0; }
@@ -819,13 +819,11 @@ select {
819819
select:hover {
820820
color: #5694bd;
821821
background-color: #d6e6ef;
822-
border-color: #5694bd;
823-
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path fill=\"#5694bd\" d=\"M8 12l8 8 8-8z\" /></svg>"); }
822+
border-color: #5694bd; }
824823
select:focus {
825824
color: #91ce3b;
826825
background-color: #e2f2ca;
827-
border-color: #91ce3b;
828-
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path fill=\"#91ce3b\" d=\"M8 12l8 8 8-8z\" /></svg>"); }
826+
border-color: #91ce3b; }
829827
select[multiple] {
830828
background-image: none; }
831829

@@ -834,7 +832,9 @@ select {
834832
-moz-appearance: none;
835833
text-indent: 0.01px;
836834
text-overflow: '';
837-
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path d=\"M8 12l8 8 8-8z\" /></svg>"); } }
835+
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path d=\"M8 12l8 8 8-8z\" /></svg>"); }
836+
select:hover, select:focus {
837+
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path d=\"M8 12l8 8 8-8z\" /></svg>"); } }
838838

839839
input[type='text'], input[type='search'], input[type='tel'], input[type='email'], input[type='password'], input[type='url'], input[type='date'], input[type='datetime'], input[type='time'], input[type='number'], input[list], textarea {
840840
-webkit-appearance: none;
@@ -1259,7 +1259,7 @@ input[type="file"]::-webkit-file-upload-button {
12591259
.fixed-left-nav-all-breaks.nav-hide {
12601260
left: -100%; } }
12611261

1262-
@media screen and (max-width: 50em) {
1262+
@media screen and (max-width: 48em) {
12631263
.fixed-left-nav-only-medium-break {
12641264
position: fixed;
12651265
top: 0;
@@ -1713,7 +1713,7 @@ article header {
17131713
.show-html:before {
17141714
content: '</>';
17151715
margin-right: 0.5em; }
1716-
@media screen and (max-width: 50em) {
1716+
@media screen and (max-width: 48em) {
17171717
.show-html {
17181718
text-indent: -9999px;
17191719
width: 3em; }
@@ -1765,7 +1765,7 @@ article header {
17651765
-webkit-transition: all 0.3s ease;
17661766
transition: all 0.3s ease; }
17671767

1768-
@media screen and (max-width: 50em) {
1768+
@media screen and (max-width: 48em) {
17691769
.nav-menu {
17701770
position: fixed; }
17711771
.nav-toggle {
@@ -1799,3 +1799,46 @@ article header {
17991799
.menu-push-toright .nav-toggle {
18001800
left: 100%;
18011801
margin-left: -3.5em; } } }
1802+
1803+
footer {
1804+
background: whitesmoke; }
1805+
footer .social-share {
1806+
text-align: right; }
1807+
1808+
.hideshare-wrap {
1809+
position: relative;
1810+
display: inline-block;
1811+
width: auto !important;
1812+
height: auto !important; }
1813+
1814+
.hideshare-list {
1815+
position: absolute;
1816+
right: 0;
1817+
left: auto !important;
1818+
bottom: 100% !important;
1819+
top: auto !important;
1820+
margin: 0;
1821+
padding: 0;
1822+
list-style: none;
1823+
text-align: center;
1824+
background: white;
1825+
width: auto !important;
1826+
margin-bottom: 0.75em;
1827+
white-space: nowrap; }
1828+
.hideshare-list:after {
1829+
content: '';
1830+
position: absolute;
1831+
border: 0.5em solid transparent;
1832+
border-top-color: white;
1833+
bottom: -1em;
1834+
right: 1.5em; }
1835+
.hideshare-list li {
1836+
display: inline-block;
1837+
zoom: 1;
1838+
*display: inline; }
1839+
.hideshare-list li a {
1840+
display: block;
1841+
padding: 0.25em 0.5em;
1842+
border-left: thin solid #eeeeee; }
1843+
.hideshare-list li:first-child a {
1844+
border-left-width: 0; }

docs/css/docs.scss

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro);
21

32
// Settings
43

@@ -268,3 +267,59 @@ article header {
268267
}
269268
}
270269
}
270+
271+
272+
footer {
273+
background: whitesmoke;
274+
275+
.social-share { text-align: right; }
276+
}
277+
278+
279+
.hideshare-wrap {
280+
position: relative;
281+
display: inline-block;
282+
width: auto !important;
283+
height: auto !important;
284+
}
285+
286+
.hideshare-list {
287+
position: absolute;
288+
right: 0;
289+
left: auto !important;
290+
bottom: 100% !important;
291+
top: auto !important;
292+
margin: 0;
293+
padding: 0;
294+
list-style: none;
295+
text-align: center;
296+
background: white;
297+
width: auto !important;
298+
margin-bottom: 0.75em;
299+
white-space: nowrap;
300+
301+
&:after {
302+
content: '';
303+
position: absolute;
304+
border: 0.5em solid transparent;
305+
border-top-color: white;
306+
bottom: -1em;
307+
right: 1.5em;
308+
}
309+
310+
li {
311+
display: inline-block;
312+
zoom: 1;
313+
*display: inline;
314+
315+
a {
316+
display: block;
317+
padding: 0.25em .5em;
318+
border-left: thin solid #eee;
319+
}
320+
321+
&:first-child a {
322+
border-left-width: 0;
323+
}
324+
}
325+
}

docs/index.html

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,22 @@
2121
<meta content="http://www.terrain.io" property="og:url">
2222
<meta content="A collection of structural stylesheets for your projects." property="og:description">
2323

24-
<meta name="description" content="A collection of structural stylesheets for your projects.">
24+
<meta name="description" content="A collection of structural stylesheets for your web projects.">
25+
<meta name="keywords" content="css, stylesheets, sass, scss, front-end, design, responsive">
26+
2527
<meta name="viewport" content="width = device-width, initial-scale = 1">
2628

2729
<link rel="icon" href="favicon.ico">
30+
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,400italic' rel='stylesheet' type='text/css'>
31+
2832
<link rel="stylesheet" href="css/docs.css">
2933
</head>
3034

3135
<body class="menu-push">
3236
<header class="hero">
3337
<div class="hero-background">
3438
<img id="heroImage" class="hero-image" src="images/mountain.jpg" />
39+
<!-- Photo by Uwe Gille - http://commons.wikimedia.org/wiki/File:Nuptse-fromLobuche.jpg -->
3540
<svg id='triangleGrid' preserveaspectratio='xMidYMin slice' version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000">
3641
<rect x="-17.678" y="-17.678" transform="matrix(0.7071 -0.7071 0.7071 0.7071 0 0)" fill="none" width="35.355" height="35.355"/>
3742
<rect x="32.322" y="-17.678" transform="matrix(0.7071 -0.7071 0.7071 0.7071 14.6447 35.3553)" fill="none" width="35.355" height="35.355"/>
@@ -1594,22 +1599,47 @@ <h2>Menus</h2>
15941599
</main>
15951600

15961601

1597-
<footer>
1602+
<div id="comments">
15981603
<div class="container">
1599-
Made by <a href="https://triggerapp.com">Trigger</a>.
1604+
<div id="disqus_thread"></div>
1605+
<script type="text/javascript">
1606+
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
1607+
var disqus_shortname = 'terraincss'; // required: replace example with your forum shortname
1608+
1609+
/* * * DON'T EDIT BELOW THIS LINE * * */
1610+
(function() {
1611+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
1612+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
1613+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
1614+
})();
1615+
</script>
1616+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
1617+
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
1618+
</div>
1619+
</div>
16001620

1601-
&nbsp;&nbsp;&nbsp;
16021621

1603-
<span>Contact us: <a href="https://twitter.com/terraincss">@terraincss</a></span>
1622+
<footer>
1623+
<div class="container">
1624+
<div class="grid-container">
1625+
<div class='one-half'>
1626+
Made by <a href="https://triggerapp.com">Trigger</a>.
1627+
<span>Contact us: <a href="https://twitter.com/terraincss">@terraincss</a></span>
1628+
</div>
1629+
<div class='one-half social-share'>
1630+
<a class="button submit share-button" href="#">Share</a>
1631+
</div>
1632+
</div>
16041633
</div>
16051634
</footer>
16061635

16071636
<div id="nav-toggle-overlay" class="nav-toggle-overlay"></div>
16081637

16091638
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
16101639
<script type="text/javascript" src="js/jquery.sticky-kit.js"></script>
1611-
1640+
<script type="text/javascript" src="js/share.min.js"></script>
16121641
<script type="text/javascript" src="js/color-sampler.js"></script>
1642+
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.0/fastclick.min.js"></script>
16131643
<script type="text/javascript" src="js/main.js"></script>
16141644

16151645
<script>

docs/js/main.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
(function (global) {
22

3+
$(".share-button").hideshare({
4+
media: "http://triggerapp.s3.amazonaws.com/images/terrain/avatar.jpg",
5+
description: "A collection of structural stylesheets for your projects.",
6+
position: "top",
7+
facebook: true,
8+
twitter: true,
9+
googleplus: true,
10+
pinterest: false,
11+
linkedin: false
12+
});
13+
314
$("#nav-menu").stick_in_parent();
415

16+
setTimeout(function() {
17+
$(document.body).trigger("sticky_kit:recalc");
18+
}, 7500);
19+
520
$('[href=' + window.location.hash + ']').addClass('active')
621

722
$("#nav-menu a").on('click', function(e) {
@@ -120,3 +135,8 @@
120135
});
121136
})();
122137
})(window || this);
138+
139+
140+
$(function() {
141+
FastClick.attach(document.body);
142+
});

docs/js/share.min.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terrain/interactive/_selects.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ select {
3232
color: $select-hover-foreground-color;
3333
background-color: $select-hover-background-color;
3434
border-color: $select-hover-border-color;
35-
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path fill=\"#{ $select-hover-foreground-color }\" d=\"M8 12l8 8 8-8z\" /></svg>");
3635
}
3736

3837
&:focus {
3938
color: $select-focus-foreground-color;
4039
background-color: $select-focus-background-color;
4140
border-color: $select-focus-border-color;
42-
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path fill=\"#{ $select-focus-foreground-color }\" d=\"M8 12l8 8 8-8z\" /></svg>");
4341
}
4442

4543
&[multiple] { background-image: none; }
@@ -56,5 +54,9 @@ select {
5654
text-indent: 0.01px;
5755
text-overflow: '';
5856
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path d=\"M8 12l8 8 8-8z\" /></svg>");
57+
58+
&:hover, &:focus {
59+
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path d=\"M8 12l8 8 8-8z\" /></svg>");
60+
}
5961
}
6062
}

terrain/layout/_blocks.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ pre {
4949
padding: $line-height / 2;
5050
white-space: pre-wrap;
5151
max-height: 80vh;
52-
overflow: scroll;
52+
overflow-x: hidden;
53+
overflow-y: scroll;
5354
}
5455

5556
details {

0 commit comments

Comments
 (0)