Permalink
Browse files

Add new LESS file for page, and use CSS counters for heading numbering.

  • Loading branch information...
1 parent 769f05d commit 224e1da967bdaafb8f7a9c29f2891c5d78a3e28f Gervase Markham committed Jan 22, 2015
@@ -7,6 +7,11 @@
{% block page_title %}{{ _('Commit Access Requirements') }}{% endblock %}
{% block body_id %}commit-access-requirements{% endblock %}
+{% block extrahead %}
+ {{ super() }}
+ {{ css('commit-access-requirements') }}
+{% endblock %}
+
{% block article %}
<h1 class="title-shadow-box">{{ self.page_title() }}</h1>
@@ -18,7 +23,7 @@ <h1 class="title-shadow-box">{{ self.page_title() }}</h1>
<p>{{ _('For the avoidance of doubt: this document commits you to a set of
good behaviours; it is not a copyright assignment.') }}</p>
-<h2>{{ _('1. Treatment of Account') }}</h2>
+<h2>{{ _('Treatment of Account') }}</h2>
<p>{{ _('You will receive one or more sets of Mozilla project access credentials, and/or
one or more sets of credentials you already have will be given the power to
@@ -34,7 +39,7 @@ <h1 class="title-shadow-box">{{ self.page_title() }}</h1>
of it, may be attached to your contributions and so be visible worldwide via
the Internet.') }}</p>
-<h2>{{ _('2. License Terms') }}</h2>
+<h2>{{ _('License Terms') }}</h2>
<p>
{% trans license_policy='https://www.mozilla.org/MPL/license-policy.html',
@@ -50,7 +55,7 @@ <h1 class="title-shadow-box">{{ self.page_title() }}</h1>
{% endtrans %}
</p>
-<h2>{{ _('3. Notices and Knowledge') }}</h2>
+<h2>{{ _('Notices and Knowledge') }}</h2>
<p>{{ _('By contributing Code, You confirm that, to the best of Your knowledge, the Code
does not violate the rights of any person or entity.') }}</p>
@@ -60,7 +65,7 @@ <h1 class="title-shadow-box">{{ self.page_title() }}</h1>
such Code in a Mozilla Repository and that it meets these
requirements.') }}</p>
-<h2>{{ _('4. Committing Code Created by Others') }}</h2>
+<h2>{{ _('Committing Code Created by Others') }}</h2>
<p>{{ _('You may check in Code to a Mozilla Foundation repository that was not written
by You, provided that:') }}</p>
@@ -127,6 +127,9 @@ def JINJA_CONFIG():
'commit-access-policy': (
'css/mozorg/commit-access-policy.less',
),
+ 'commit-access-requirements': (
+ 'css/mozorg/commit-access-requirements.less',
+ ),
'about-forums': (
'css/mozorg/about-forums.less',
),
@@ -0,0 +1,13 @@
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+@import "../sandstone/lib.less";
+
+h2 {
+ counter-increment: step-counter;
+}
+
+h2::before {
+ content: counter(step-counter) ". ";
+}

0 comments on commit 224e1da

Please sign in to comment.