Skip to content

Commit 11fd95d

Browse files
authored
Site template repairs (#73)
* Added columnization to package category and tag pages: - Added `columns-grouping-heading` class to section header - Added div tag with `columns-grouping` class around each section header and unordered list - Added div tag with `columns` class around all sections - Added CSS rules * Added top margin to `unit-foot` class. * Fixed template background full height. * Removed aberrant shadow under footer section. * Update style from `zoom` to `transform`. * Added missing CSS rule properties. * Added missing blank lines under front matter.
1 parent ed3af15 commit 11fd95d

File tree

20 files changed

+95
-46
lines changed

20 files changed

+95
-46
lines changed

_drafts/jekyll-introduction-draft.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ category : lessons
44
tagline: "Supporting tagline"
55
tags : [intro, beginner, jekyll, tutorial]
66
---
7+
78
{% include JB/setup %}
89

910

_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
theme :
33
name : the-program
44
---
5+
56
{% include JB/setup %}
67
{% include themes/the-program/default.html %}

_layouts/page.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: default
33
---
4+
45
{% include JB/setup %}
56
{% include themes/the-program/page.html %}

_layouts/post.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: default
33
---
4+
45
{% include JB/setup %}
56
{% include themes/the-program/post.html %}

archive/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
header : Post Archive
55
group: navigation
66
---
7+
78
{% include JB/setup %}
89

910
{% assign posts_collate = site.posts %}

assets/custom.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,15 @@ tr:hover td {
8787
.meta .list-tag a:hover {
8888
color: white;
8989
}
90+
91+
.columns {
92+
column-width: 20em;
93+
}
94+
.columns-grouping {
95+
margin-bottom: 2em;
96+
orphans: 4;
97+
}
98+
.columns-grouping-heading {
99+
column-span: all;
100+
margin-bottom: 0.25em;
101+
}

assets/themes/the-program/css/_base.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ No styleguide reference.
55
*/
66

77
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
8-
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
8+
audio, canvas, video { display: inline-block; *display: inline; transform: scale(1); }
99
audio:not([controls]) { display: none; }
1010
[hidden] { display: none; }
1111

@@ -21,7 +21,7 @@ Base from [HTML5 Boilerplate](http://j.mp/rP0wmY)
2121
No styleguide reference.
2222
*/
2323

24-
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
24+
html { height: 100%; font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
2525
body { min-height: 100%; height: 100%; margin: 0; font-size: 1em; line-height: 1.4; -webkit-tap-highlight-color: rgba(255,0,0, 0.62); }
2626
body, button, input, select, textarea { font-family: sans-serif; }
2727
::-moz-selection { background: #073642; color: #fff; text-shadow: none; }
@@ -123,13 +123,13 @@ button, input { line-height: normal; }
123123
* 2. Allow styling of clickable form elements in iOS
124124
* 3. Correct inner spacing displayed oddly in IE7 (doesn't effect IE6)
125125
*/
126-
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
126+
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; -moz-appearance: button; appearance: button; *overflow: visible; }
127127
/*
128128
* Consistent box sizing and appearance
129129
*/
130130
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
131-
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
132-
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
131+
input[type="search"] { -webkit-appearance: textfield; -moz-appearance: textfield; appearance: textfield; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; }
132+
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
133133
/*
134134
* Remove inner padding and border in FF3/4: h5bp.com/l
135135
*/

assets/themes/the-program/css/_helper.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ hr { -moz-box-sizing: content-box; }
4242
.hasGrid,
4343
.unit-inner,
4444
.tag_box,
45-
#page { *zoom: 1; }
45+
#page { transform: scale(1); }
4646
.left {
4747
*display: inline;
4848
float: left;

assets/themes/the-program/css/_less-base.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ No styleguide reference.
186186
li {
187187
display: inline-block;
188188
*display: inline;
189-
zoom: 1;
189+
transform: scale(1);
190190
line-height: normal;
191191
letter-spacing: normal;
192192
margin-right: 16px;

assets/themes/the-program/css/_mediaqueries.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,22 +200,22 @@
200200

201201
.body {
202202
border-left: 1px solid rgba(0,0,0,0.2);
203-
-webkit-box-shadow: rgba(255,255,255,1.0) 0px 0px 2px;
204-
-moz-box-shadow: rgba(255,255,255,1.0) 0px 0px 2px;
205-
-o-box-shadow: rgba(255,255,255,1.0) 0px 0px 2px;
206203
float: left;
207204
width: calc(~"81% - 1px");
208205
margin-right: -450px;
209206
min-height: 100%;
207+
height: 100%;
210208
.unit-body {
211209
border-right: 1px solid rgba(0,0,0,0.2);
212210
-webkit-box-shadow: rgba(255,255,255,1.0) 0px 0px 2px;
213211
-moz-box-shadow: rgba(255,255,255,1.0) 0px 0px 2px;
214212
-o-box-shadow: rgba(255,255,255,1.0) 0px 0px 2px;
213+
box-shadow: rgba(255,255,255,1.0) 0px 0px 2px;
215214
margin-right: 450px;
216215
padding: (@line-height * 1px) ((@line-height * 2) * 1px);
217216
@padding-vertical: ((@line-height * 1px) * 2);
218217
min-height: calc(~"100% -" @padding-vertical);
218+
height: calc(~"100% -" @padding-vertical);
219219
}
220220
}
221221

0 commit comments

Comments
 (0)