Skip to content

Commit cdab2ac

Browse files
committed
Update colors. Bootstrap 5.0.0-beta1, SVG Logo
1 parent 9885878 commit cdab2ac

File tree

8 files changed

+166
-104
lines changed

8 files changed

+166
-104
lines changed

_includes/logo.svg

Lines changed: 49 additions & 0 deletions
Loading

_includes/nav.html

Lines changed: 68 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,73 @@
1-
<header class="navbar">
2-
<div class="container">
3-
<nav class="navbar">
4-
<div class="container-fluid">
5-
<div class="navbar-header">
6-
<div>
7-
<a href="/" class="navbar-brand">
8-
<img src="/images/[email protected]" id="navbar-logo" alt="Neovim" />
9-
</a>
10-
</div>
11-
<div>
12-
<button
13-
type="button"
14-
class="navbar-toggle collapsed"
15-
data-toggle="collapse"
16-
data-target="#menu"
1+
<header class="container">
2+
<nav class="navbar navbar-expand-lg">
3+
<div class="container-fluid">
4+
<a href="/" class="navbar-brand">
5+
{% include logo.svg %}
6+
</a>
7+
8+
<button
9+
type="button"
10+
data-bs-toggle="collapse"
11+
data-bs-target="#neovim-navbar"
12+
class="navbar-toggler"
13+
aria-expanded="false"
14+
>
15+
<span class="navbar-toggler-icon">
16+
<svg
17+
xmlns="http://www.w3.org/2000/svg"
18+
width="24"
19+
height="24"
20+
viewBox="0 0 24 24"
21+
fill="none"
22+
stroke="currentColor"
23+
stroke-width="2"
24+
stroke-linecap="round"
25+
stroke-linejoin="round"
26+
class="feather feather-menu"
27+
>
28+
<line x1="3" y1="12" x2="21" y2="12"></line>
29+
<line x1="3" y1="6" x2="21" y2="6"></line>
30+
<line x1="3" y1="18" x2="21" y2="18"></line>
31+
</svg>
32+
</span>
33+
</button>
34+
<div
35+
class="collapse navbar-collapse justify-content-end"
36+
id="neovim-navbar"
37+
>
38+
<ul class="navbar-nav">
39+
{% for nav in site.data.nav %} {% assign active = include.active %} {%
40+
assign has_sections = nav.sections != null %} {% if has_sections %}
41+
<li class="nav-item dropdown">
42+
<a
43+
href="#"
44+
class="nav-link dropdown-toggle"
45+
data-bs-toggle="dropdown"
1746
aria-expanded="false"
47+
id="neovim-dropdown"
48+
role="button"
49+
>{{ nav.title }}</a
1850
>
19-
<span class="sr-only">Toggle navigation</span>
20-
<svg
21-
xmlns="http://www.w3.org/2000/svg"
22-
width="18"
23-
height="12"
24-
fill="currentColor"
25-
stroke="currentColor"
26-
>
27-
<path d="M0 0h18v2H0zM0 5h18v2H0zM0 10h18v2H0z" />
28-
</svg>
29-
</button>
30-
</div>
31-
</div>
32-
<div class="collapse navbar-collapse" id="menu">
33-
<ul class="nav navbar-nav navbar-right">
34-
{% for nav in site.data.nav %} {% if include.active == nav.title %}
35-
<li class="current">
36-
{% else %}
37-
</li>
51+
<ul class="dropdown-menu" aria-labelledby="neovim-dropdown">
52+
{% for section in nav.sections %}
53+
54+
<li>
55+
<a class="dropdown-item" href="{{ section.url }}">
56+
{{ section.title }}
57+
</a>
58+
</li>
59+
60+
{% endfor %}
61+
</ul>
62+
</li>
63+
{% endif %} {% unless has_sections %}
64+
<li class="nav-item">
65+
<a href="{{ nav.url }}" class="nav-link">{{ nav.title }}</a>
66+
</li>
3867

39-
<li>
40-
{% endif %} {% if nav.sections != null %}
41-
<a
42-
href="#"
43-
class="dropdown-toggle"
44-
data-toggle="dropdown"
45-
role="button"
46-
aria-haspopup="true"
47-
aria-expanded="false"
48-
>{{ nav.title }}</a
49-
>
50-
{% else %}
51-
<a href="{{ nav.url }}">{{ nav.title }}</a>
52-
{% endif %} {% if nav.sections != null %}
53-
<ul class="dropdown-menu">
54-
{% for section in nav.sections %}
55-
<li>
56-
<a href="{{ section.url }}">{{ section.title }}</a>
57-
</li>
58-
{% endfor %}
59-
</ul>
60-
{% endif %}
61-
</li>
62-
{% endfor %}
63-
</ul>
64-
</div>
68+
{% endunless %} {% endfor %}
69+
</ul>
6570
</div>
66-
</nav>
67-
</div>
71+
</div>
72+
</nav>
6873
</header>

_layouts/default.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,20 @@
88
{% feed_meta %}
99
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
1010
<link href="/css/normalize.min.css" rel="stylesheet">
11-
<link rel="stylesheet" href="/css/bootstrap.min.css">
11+
<link href="/css/bootstrap.css" rel="stylesheet">
1212
<link href="/css/main.css" rel="stylesheet">
1313
<link rel="canonical" href="{{ site.url }}{% if page.canonical_url %}{{ page.canonical_url }}{% else %}{{ page.url }}{% endif %}" />
14-
<!--[if lt IE 9]>
15-
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
16-
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
17-
<![endif]-->
1814
</head>
1915

2016
<body>
2117
{{ content }}
2218

2319
{% include footer.html %}
2420

25-
<script src="/js/jquery.min.js"></script>
21+
{%- comment -%}Only used in bountysource{%- endcomment -%}
22+
<script src="/js/jquery.js"></script>
2623
<script src="/js/sponsors-override.js"></script>
2724
<script src="/js/sponsors.js"></script>
28-
<script src="/js/bootstrap.min.js"></script>
25+
<script src="/js/bootstrap.js"></script>
2926
</body>
3027
</html>

css/bootstrap.css

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

css/main.css

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@
2525

2626
@media (prefers-color-scheme: dark) {
2727
:root {
28-
--fg-color: #c7d6d0;
29-
--bg-color: #202823;
30-
31-
--accent-bg-color: #1c231e;
32-
/* --link-color:#81e771; */
33-
--link-color: #b2e7aa;
34-
--accent-color: #85dbef;
35-
36-
--border-color: #353e39;
37-
}
28+
--fg-color: #c7d6d0;
29+
--bg-color: #0f191f;
30+
--accent-bg-color: #0b151b;
31+
--link-color:#8ec77e;
32+
--accent-color: #8fff6d;
33+
--border-color: #203f57;
34+
}
3835
}
3936

4037
body {
@@ -49,7 +46,8 @@ body {
4946
a {
5047
color: var(--link-color);
5148
transition: all ease-in 96ms;
52-
text-decoration: underline var(--link-color);
49+
/* text-decoration: underline var(--link-color); */
50+
text-decoration: underline var(--accent-color);
5351
}
5452

5553
a:focus,
@@ -74,7 +72,7 @@ h5{
7472
font-weight: bold;
7573
}
7674

77-
h2 {
75+
h2, h4 {
7876
color: var(--accent-color);
7977
}
8078

@@ -186,20 +184,20 @@ code, pre, kbd, samp {
186184
}
187185

188186
#navbar-logo {
189-
height: 50px;
187+
height: 2.5em;
190188
}
191189

192-
.navbar-top-align {
193-
margin-top: 1em;
194-
}
190+
/* .navbar-top-align { */
191+
/* margin-top: 1em; */
192+
/* } */
195193

196-
.navbar-brand {
197-
float: none;
198-
height: auto;
199-
padding: 0;
200-
font-size: inherit;
201-
line-height: inherit;
202-
}
194+
/* .navbar-brand { */
195+
/* float: none; */
196+
/* height: auto; */
197+
/* padding: 0; */
198+
/* font-size: inherit; */
199+
/* line-height: inherit; */
200+
/* } */
203201

204202
/**
205203
* Menu dropdown
@@ -278,7 +276,7 @@ code, pre, kbd, samp {
278276
*/
279277

280278
.btn {
281-
background-color: var(--link-color);
279+
background-color: var(--accent-color);
282280
color: var(--bg-color);
283281
border-radius: 0.3em;
284282
padding: 1em 2em;
@@ -288,6 +286,7 @@ code, pre, kbd, samp {
288286

289287
vertical-align: initial;
290288
text-align: initial;
289+
transition: all 96ms ease-in;
291290
}
292291

293292
.btn:hover, .btn:focus {
@@ -431,24 +430,17 @@ footer {
431430
*/
432431

433432
.light {
434-
color: var(--fg-light-color);
435-
}
436-
437-
.light a {
438-
color: var(--accent-color);
433+
opacity: .9;
439434
}
440435

441436
.small {
442-
font-size: 70%;
437+
font-size: .8em;
443438
}
444439

445440
/*
446441
* Newsletter CSS
447442
*/
448443

449-
.newsletter {
450-
}
451-
452444
.newsletter img {
453445
width: 100%;
454446
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ <h3>Bitcoin</h3>
182182
<input class="donate" type="text" value="1Evu6wPrzjsjrNPdCYbHy3HT6ry2EzXFyQ" readonly="readonly">
183183
</div>
184184

185-
<p>
185+
<p class="light small">
186186
View the address at
187187
<a href="https://blockchain.info/address/1Evu6wPrzjsjrNPdCYbHy3HT6ry2EzXFyQ">Blockchain.info</a>.
188188
</p>

js/bootstrap.js

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

js/jquery.js

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

0 commit comments

Comments
 (0)