Skip to content

Commit 8831b15

Browse files
author
Matthew McCullough
committed
Merge pull request #23 from mcastner/master
Slight usability change. Buttons are now CSS-styled arrows.
2 parents f381994 + de6236c commit 8831b15

File tree

6 files changed

+64
-5
lines changed

6 files changed

+64
-5
lines changed

basic/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,5 +747,5 @@ <h4>
747747
</div>
748748
</div>
749749

750-
<p><a href="/branching">On to Branching and Merging &#187;</a></p>
750+
<p><a class="page-button next-page" href="/branching">On to Branching and Merging &#187;</a></p>
751751

branching/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,5 +777,5 @@ <h2>
777777
</div>
778778
</div>
779779

780-
<p><a href="/remotes">On to Sharing and Updating Projects &#187;</a></p>
780+
<p><a class="page-button next-page" href="/remotes">On to Sharing and Updating Projects &#187;</a></p>
781781

creating/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ <h2>
134134
</div>
135135
</div>
136136

137-
<p><a href="/basic">On to Basic Snapshotting &#187;</a></p>
137+
<p><a class="page-button next-page" href="/basic">On to Basic Snapshotting &#187;</a></p>

css/layout.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,65 @@ a {
123123
a:hover {
124124
color:#333;
125125
}
126+
a.page-button {
127+
background: #e4eafa none 0 0 repeat-x;
128+
border: solid 1px #c9172e;
129+
color: #c9172e;
130+
cursor: pointer;
131+
display: inline-block;
132+
font-weight: bold;
133+
font-size: 12px;
134+
line-height: 100%;
135+
margin: 1px;
136+
padding: 0.8em 1em;
137+
position: relative;
138+
text-decoration: none;
139+
text-shadow: #fff 0 1px 0;
140+
vertical-align: middle;
141+
white-space: nowrap;
142+
float:right;
143+
background-image: -moz-linear-gradient(-90deg,
144+
#eeeeee 1%,
145+
#fdf6f7 5%,
146+
#fae9eb 70%,
147+
#f7dcdf 100%);
148+
background-image: -webkit-gradient(linear,left top,left bottom,
149+
color-stop(0.01, #eee),
150+
color-stop(0.05, #fdf6f7),
151+
color-stop(0.70, #fae9eb),
152+
color-stop(1, #f7dcdf));
153+
}
154+
a.next-page {
155+
border-right: none;
156+
margin-right: 26px;
157+
padding-right: 0;
158+
}
159+
a.next-page:after, a.prev-page:after {
160+
border: solid 1px #c9172e;
161+
content: '';
162+
display: block;
163+
position: absolute;
164+
top: .37em;
165+
width: 1.7em;
166+
height: 1.7em;
167+
text-shadow: none;
168+
z-index: -1;
169+
}
170+
a.next-page:after {
171+
right: -.97em;
172+
-moz-transform: rotate(-45deg);
173+
background-image: -moz-linear-gradient(-135deg,
174+
#eeeeee 1%,
175+
#fdf6f7 5%,
176+
#fae9eb 70%,
177+
#f7dcdf 100%);
178+
-webkit-transform:rotate(-45deg);
179+
background-image: -webkit-gradient(linear,100% 0%, 0% 100%,
180+
color-stop(0.01, #eee),
181+
color-stop(0.05, #fdf6f7),
182+
color-stop(0.70, #fae9eb),
183+
color-stop(1, #f7dcdf));
184+
}
126185

127186
/* headings
128187
----------------------------------------------- */

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ <h2>How to Think Like Git</h2>
109109
</div>
110110
</div>
111111

112-
<p><a href="/creating">On to Getting and Creating Projects &#187;</a></p>
112+
<p><a class="page-button next-page" href="/creating">On to Getting and Creating Projects &#187;</a></p>

remotes/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,4 +340,4 @@ <h2>
340340
</div>
341341
</div>
342342

343-
<p><a href="/inspect">On to Inspection and Comparison &#187;</a></p>
343+
<p><a class="page-button next-page" href="/inspect">On to Inspection and Comparison &#187;</a></p>

0 commit comments

Comments
 (0)