Skip to content

Commit cad86a5

Browse files
committed
theme: update styling to match the furo documentation theme
1 parent 14a6d76 commit cad86a5

File tree

5 files changed

+181
-187
lines changed

5 files changed

+181
-187
lines changed

_includes/download-box.html

Lines changed: 10 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,33 @@
1-
<style>
2-
.downloads-box {
3-
-moz-border-radius: 8px;
4-
border-radius: 8px;
5-
padding-top: 3px;
6-
padding-bottom: 3px;
7-
color: #fff;
8-
background-color: #111;
9-
text-align: center;
10-
max-width: 310px;
11-
}
12-
13-
.downloads {
14-
-moz-border-radius: 8px;
15-
border-radius: 8px;
16-
padding: 6px;
17-
font-size: 0.8em;
18-
margin: 6px;
19-
color: #000;
20-
background-color: #ffe9b7;
21-
position: relative;
22-
z-index: 3;
23-
}
24-
25-
.downloads img {
26-
border: none;
27-
}
28-
29-
.downloads a:link {
30-
text-decoration: underline;
31-
background-color: transparent;
32-
}
33-
34-
.downloads a:visited {
35-
text-decoration: underline;
36-
background-color: transparent;
37-
}
38-
39-
.downloads a:hover {
40-
text-decoration: underline;
41-
background-color: transparent;
42-
color: black;
43-
}
44-
</style>
45-
461
<div class="downloads-box">
47-
Download git-cola
2+
Download Git Cola
483

494
<div class="downloads">
505
The latest stable git-cola release is<br />
516
<span style="font-size: 20pt;">
527
<strong>v{{ site.cola_version }}</strong>
538
</span>
549
<br />
55-
<a href="{{ page.prefix }}share/doc/git-cola/html/relnotes.html">release notes</a>
10+
<a href="{{ page.prefix }}share/doc/git-cola/html/relnotes.html">
11+
Release Notes
12+
</a>
5613
({{ site.cola_release_date }})
5714
<br />
5815
<br />
5916

6017
<table width="100%">
6118
<tbody>
6219
<tr>
63-
<td width="33%">
20+
<td width="33%" class="imglink">
6421
<a href="{{ site.cola_downloads }}/v{{ site.cola_version }}/git-cola-{{ site.cola_version }}.windows.zip"
65-
><img src="images/windows_big.png" alt="windows logo"/></a>
22+
><img src="images/windows_big.png" alt="windows logo"></a>
6623
</td>
67-
<td width="33%">
24+
<td width="33%" class="imglink">
6825
<a href="https://github.com/git-cola/git-cola#macos"
69-
><img src="images/osx_big.png" alt="mac logo"/></a>
26+
><img src="images/osx_big.png" alt="mac logo"></a>
7027
</td>
71-
<td width="33%">
28+
<td width="33%" class="imglink">
7229
<a href="{{ site.cola_archive }}/v{{ site.cola_version }}.tar.gz"
73-
><img src="images/tux_big.png" alt="tarball logo"/></a>
30+
><img src="images/tux_big.png" alt="tarball logo"></a>
7431
</td>
7532

7633
</tr>

cola.css

Lines changed: 121 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,48 @@
11
* {box-sizing: border-box;}
22

33
body {
4-
font-size: 1.3em;
4+
font-size: 16pt;
55
font-family: "Helvetica", "Ubuntu", "Droid Sans", sans-serif;
66
text-decoration: none;
7-
color: #333;
8-
background-color: #fff;
9-
padding: 0;
7+
color: #d0d0d0;
8+
background-color: #202020;
109
margin: 0;
1110
}
1211

12+
a {
13+
font-weight: bold;
14+
text-decoration: none;
15+
color: #368ce2;
16+
padding: 0.2em;
17+
padding-bottom: 0.1em;
18+
}
19+
20+
a:hover {
21+
color: white;
22+
}
23+
24+
img {
25+
border: 0;
26+
}
27+
28+
ul {
29+
list-style-type: none;
30+
}
31+
1332
.headerbar {
1433
background: #000;
1534
height: 3em;
1635
display: flex;
1736
justify-content: space-between;
1837
align-items: center;
1938
box-shadow: 0 1px 2px #000;
20-
margin-bottom: 2em;
39+
margin-bottom: 1em;
2140
}
2241

2342
.headerbar > :first-child {
2443
margin-left: 1em;
2544
}
2645

27-
28-
2946
.headerbar-logo-container {
3047
max-height: 3em;
3148
position: relative;
@@ -66,33 +83,16 @@ body {
6683
color: #e0dfdb;
6784
}
6885
.headerbar-nav a:hover {
69-
background-color: #ef5033;
70-
color: #fff;
71-
}
72-
73-
ul {
74-
list-style-type: none;
75-
}
76-
77-
a {
78-
font-weight: bold;
79-
text-decoration: none;
80-
color: #333;
81-
padding: 0.2em;
82-
padding-bottom: 0.1em;
83-
}
84-
85-
a:hover {
8686
color: white;
87-
background-color: #ef5033;
87+
background-color: #368ce2;
8888
}
8989

90-
a.button {
90+
.button a {
91+
border-radius: 0.7em;
9192
color: white;
92-
background-color: #ef5033;
93-
font-size: 2em;
93+
background-color: #368ce2;
94+
font-size: 1.5em;
9495
font-weight: bold;
95-
color: white;
9696
white-space: nowrap;
9797
padding: 0.5ex;
9898
padding-left: 1ex;
@@ -101,9 +101,86 @@ a.button {
101101
z-index: 3;
102102
}
103103

104-
a.button:hover {
105-
background-color: #ef5033;
106-
text-decoration: underline;
104+
.button {
105+
margin: 1.5em;
106+
}
107+
108+
.button a:hover {
109+
color: #368ce2;
110+
background-color: white;
111+
}
112+
113+
.code {
114+
font-family: monospace;
115+
}
116+
117+
.screenshot {
118+
clear: both;
119+
text-align: center;
120+
overflow: hidden;
121+
}
122+
123+
.screenshot img {
124+
width: 60%;
125+
}
126+
127+
.screenshot a:hover {
128+
background-color: transparent;
129+
}
130+
131+
.page {
132+
text-align: left;
133+
}
134+
135+
.top-margin {
136+
margin-top: 2em;
137+
}
138+
139+
.center {
140+
text-align: center;
141+
}
142+
143+
.caption {
144+
font-variant: small-caps;
145+
margin-bottom: 4em;
146+
text-align: left;
147+
margin-left: 20%;
148+
}
149+
150+
.downloads-box {
151+
font-weight: bold;
152+
color: #d0d0d0;
153+
background-color: #368ce2;
154+
text-align: center;
155+
border-radius: 8px;
156+
padding-top: 3px;
157+
padding-bottom: 3px;
158+
max-width: 310px;
159+
}
160+
161+
.downloads {
162+
font-weight: normal;
163+
background-color: #d0d0d0;
164+
color: #373737;
165+
border-radius: 8px;
166+
padding: 6px;
167+
font-size: 0.8em;
168+
margin: 6px;
169+
position: relative;
170+
z-index: 3;
171+
}
172+
173+
.downloads a {
174+
text-decoration: none;
175+
}
176+
177+
.downloads a:hover {
178+
background-color: #368ce2;
179+
border-radius: 0.5em;
180+
}
181+
182+
.imglink a:hover {
183+
background-color: transparent;
107184
}
108185

109186
@media screen and (max-width: 1080px) {
@@ -113,13 +190,24 @@ a.button:hover {
113190
.headerbar > :last-child {
114191
margin-right: 0;
115192
}
193+
.caption {
194+
margin-left: 10%;
195+
}
196+
.screenshot img {
197+
width: 80%;
198+
}
116199
}
117200

118201
@media screen and (max-width: 767px) {
119202
.headerbar {
120203
height: auto;
121204
}
122-
205+
.caption {
206+
margin-left: 5%;
207+
}
208+
.screenshot img {
209+
width: 90%;
210+
}
123211
}
124212

125213
@media screen and (max-width: 767px) and (orientation: portrait) {

downloads.html

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,39 @@
33
layout: headerbar
44
---
55
<style>
6-
img.title { border: 0; }
76
h1.title { margin-bottom: 0.5em; }
87
h2.title { margin-bottom: 0.5em; }
98

109
.cmd {
11-
font-family: monospace;
12-
font-size: 20pt;
13-
display: inline-block;
14-
padding: 3px;
10+
font-family: monospace;
11+
display: inline-block;
12+
font-size: 20pt;
13+
padding: 3px;
1514
}
1615

1716
.page {
18-
margin: 1em;
19-
float: left;
20-
padding-right: 300px;
17+
padding-right: 310px;
2118
}
22-
2319
</style>
2420

2521
<div style="
2622
margin-right: 1em;
2723
margin-top: 1em;
28-
margin-left: -330px;
29-
position: relative;
24+
position: absolute;
25+
right: 0;
3026
float: right;
3127
clear: right;">
3228
{% include download-box.html %}
3329
</div>
3430

35-
<div class="page">
31+
<div class="page" style="margin-left: 2em">
3632

3733
<h2 class="title">
3834
<img class="title" src="images/logo-tar.png"/>
3935
Source Releases
40-
</h2><ul>
36+
</h2>
4137

38+
<ul>
4239
<li>
4340
<a href="{{ site.cola_archive }}/v{{ site.cola_version }}.tar.gz">
4441
Git Cola v{{ site.cola_version }}</a> (latest stable release)

0 commit comments

Comments
 (0)