Skip to content

Commit 0ccc601

Browse files
committed
normalize font-sizes on 'Features' page
1 parent 488b394 commit 0ccc601

File tree

2 files changed

+64
-60
lines changed

2 files changed

+64
-60
lines changed

jekyll/assets/css/main.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ figure.highlight {
7777
border-radius: 2px;
7878
margin: 0;
7979
margin-bottom: 12pt;
80-
font-size: 120%;
80+
font-size: 110%;
8181
max-width: 100%;
8282
}
8383

@@ -331,7 +331,7 @@ a.pure-menu-link.pure-menu-heading {
331331

332332
// The left part of the main page jumbotron
333333
.main-block {
334-
padding-right: 15pt;
334+
padding-right: 25pt;
335335
}
336336

337337
.hljs {
@@ -770,6 +770,7 @@ div.image.right {
770770
}
771771

772772
div.code-align {
773+
padding-right: 15pt;
773774
h1:first-child, h2:first-child, h3:first-child {
774775
margin-top: 0;
775776
}

jekyll/features.html

Lines changed: 61 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1 class="text-centered page-title main-heading">Features</h1>
99
<section class="content">
1010
<div class="pure-g">
1111
<div class="pure-u-1">
12-
<h1>Intuitive and clean syntax.</h1>
12+
<h1>Intuitive and clean syntax</h1>
1313
</div>
1414
<div class="pure-u-1 pure-u-md-1-2 code-align">
1515
<h2>
@@ -69,13 +69,13 @@ <h2>Support for multiple operating systems</h2>
6969
<section class="content">
7070
<div class="pure-g">
7171
<div class="pure-u-1 pure-u-md-1-2">
72-
<h1 id="many-garbage-collector-options">Many garbage collector options.</h1>
73-
<h2>
74-
Choose from a deferred RC'ing garbage collector that is fast,
75-
incremental and pauseless; or a soft real-time garbage collector that
76-
is deterministic allowing you to specify its max pause time; and
77-
many others.
78-
</h2>
72+
<h1 id="many-garbage-collector-options">Many garbage collector options</h1>
73+
<p>
74+
Choose from a deferred RC'ing garbage collector that is fast,
75+
incremental and pauseless; or a soft real-time garbage collector that
76+
is deterministic allowing you to specify its max pause time; and
77+
many others.
78+
</p>
7979
</div>
8080
<div class="pure-u-1 pure-u-md-1-2">
8181
<div class="image right">
@@ -103,18 +103,18 @@ <h2>
103103
</div>
104104
<div class="pure-u-1 pure-u-md-1-2">
105105
<h2 id="native-performance-with-optimisations">Native performance with state of the art optimisations</h2>
106-
<h4>
107-
By compiling to C, Nim is able to take advantage of many
108-
features offered by modern C compilers. The primary benefits
109-
gained by this compilation model include incredible portability and
110-
optimisations, which have been implemented over more than 40 years
111-
by various individuals and influential companies.
112-
</h4>
113-
<h4>
114-
The binaries produced by Nim have zero dependencies and are
115-
typically very small. This makes their distribution easy
116-
and keeps your users happy.
117-
</h4>
106+
<p>
107+
By compiling to C, Nim is able to take advantage of many
108+
features offered by modern C compilers. The primary benefits
109+
gained by this compilation model include incredible portability and
110+
optimisations, which have been implemented over more than 40 years
111+
by various individuals and influential companies.
112+
</p>
113+
<p>
114+
The binaries produced by Nim have zero dependencies and are
115+
typically very small. This makes their distribution easy
116+
and keeps your users happy.
117+
</p>
118118
</div>
119119
</div>
120120
</section>
@@ -123,7 +123,7 @@ <h4>
123123
<section class="content">
124124
<div class="pure-g">
125125
<div class="pure-u-1">
126-
<h1 id="javascript-compilation">JavaScript compilation.</h1>
126+
<h1 id="javascript-compilation">JavaScript compilation</h1>
127127
</div>
128128
<div class="pure-u-1 pure-u-md-1-2 code-align">
129129
<h2>
@@ -196,22 +196,22 @@ <h2>
196196
<section class="content metaprogramming">
197197
<div class="pure-g">
198198
<div class="pure-u-1">
199-
<h1 id="small-core-with-extensibility">Small core with a rich prospect for extensibility</h1>
199+
<h2 id="small-core-with-extensibility">Small core with a rich prospect for extensibility</h2>
200200
</div>
201201
<div class="pure-u-1 pure-u-md-1-2">
202-
<h3>
203-
Nim implements a small core language with a powerful
204-
set of metaprogramming features.
205-
</h3>
206-
<h3>
207-
The metaprogramming features in Nim include support for generics,
208-
templates, and macros. This allows Nim to be extended with support
209-
for various programming paradigms and allows developers to avoid
210-
boilerplate. The standard library
211-
implements async await using these metaprogramming features and
212-
the Nim community has developed various packages implementing
213-
different programming paradigms.
214-
</h3>
202+
<p>
203+
Nim implements a small core language with a powerful
204+
set of metaprogramming features.
205+
</p>
206+
<p>
207+
The metaprogramming features in Nim include support for generics,
208+
templates, and macros. This allows Nim to be extended with support
209+
for various programming paradigms and allows developers to avoid
210+
boilerplate. The standard library
211+
implements async await using these metaprogramming features and
212+
the Nim community has developed various packages implementing
213+
different programming paradigms.
214+
</p>
215215
</div>
216216
<div class="pure-u-1 pure-u-md-1-2 center">
217217
{% highlight nim %}
@@ -235,7 +235,7 @@ <h3>
235235
<section class="content nimble">
236236
<div class="pure-g">
237237
<div class="pure-u-1 center">
238-
<h1 id="decentralised-package-management">Decentralised package management.</h1>
238+
<h1 id="decentralised-package-management">Decentralised package management</h1>
239239
</div>
240240
<div class="pure-u-1 center">
241241
<img height="150px" src="{{ site.baseurl }}/assets/img/nimble.svg"/>
@@ -246,18 +246,18 @@ <h2>
246246
are distributed via Git and Mercurial repositories, and tags are
247247
queried remotely to determine version information.
248248
</h2>
249-
<h3>
250-
A mapping between package names and repository URLs is defined in a
251-
<code>packages.json</code> file that is stored on
252-
<a href="https://github.com/nim-lang/packages">GitHub</a>.
253-
</h3>
254-
<h2>
255-
Packages are defined using a
256-
specially formatted <code>.nimble</code> file that is evaluated by the
257-
Nim compiler. This means that it supports a large subset of the
258-
Nim programming language, allowing various powerful features including
259-
the ability to determine the OS and specify external dependencies.
260-
</h2>
249+
<p>
250+
A mapping between package names and repository URLs is defined in a
251+
<code>packages.json</code> file that is stored on
252+
<a href="https://github.com/nim-lang/packages">GitHub</a>.
253+
</p>
254+
<p>
255+
Packages are defined using a
256+
specially formatted <code>.nimble</code> file that is evaluated by the
257+
Nim compiler. This means that it supports a large subset of the
258+
Nim programming language, allowing various powerful features including
259+
the ability to determine the OS and specify external dependencies.
260+
</p>
261261
</div>
262262
<div class="pure-u-1 pure-u-md-1-2 center">
263263
{% highlight nim %}
@@ -317,11 +317,11 @@ <h2 id="easy-c-obj-c-wrapping">Easy C, C++ <b>and</b> Objective C wrapping</h2>
317317
{% endhighlight %}
318318
</div>
319319
<div class="pure-u-1 pure-u-md-1-2 center">
320-
<h3>
321-
Nim makes it easy to bind to C, C++ and Objective C libraries.
322-
This allows developers to easily access a large ecosystem of
323-
mature and powerful libraries.
324-
</h3>
320+
<p>
321+
Nim makes it easy to bind to C, C++ and Objective C libraries.
322+
This allows developers to easily access a large ecosystem of
323+
mature and powerful libraries.
324+
</p>
325325
</div>
326326
<div class="pure-u-1 center">
327327
<a class="pure-button pure-button-primary" href="https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-importcpp-pragma">Learn more</a>
@@ -333,15 +333,18 @@ <h3>
333333
<section class="content">
334334
<div class="pure-g">
335335
<div class="pure-u-1">
336-
<h1 id="helpful-tracebacks">Helpful tracebacks.</h1>
336+
<h1 id="helpful-tracebacks">Helpful tracebacks</h1>
337337
</div>
338338
<div class="pure-u-1 pure-u-md-1-2 code-align">
339339
<h2>
340-
Inspired by Python. When a Nim application crashes with an exception,
341-
it will output a stack trace before terminating. The format of this
342-
stack trace is very easy to grasp and contains all the required
343-
information to debug the exception.
340+
Inspired by Python.
344341
</h2>
342+
<p>
343+
When a Nim application crashes with an exception,
344+
it will output a stack trace before terminating. The format of this
345+
stack trace is very easy to grasp and contains all the required
346+
information to debug the exception.
347+
</p>
345348
</div>
346349
<div class="pure-u-1 pure-u-md-1-2 center">
347350
{% highlight plain %}

0 commit comments

Comments
 (0)