Skip to content

Commit 224e1da

Browse files
author
Gervase Markham
committed
Add new LESS file for page, and use CSS counters for heading numbering.
1 parent 769f05d commit 224e1da

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

bedrock/mozorg/templates/mozorg/about/governance/policies/commit/requirements.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
{% block page_title %}{{ _('Commit Access Requirements') }}{% endblock %}
88
{% block body_id %}commit-access-requirements{% endblock %}
99

10+
{% block extrahead %}
11+
{{ super() }}
12+
{{ css('commit-access-requirements') }}
13+
{% endblock %}
14+
1015
{% block article %}
1116
<h1 class="title-shadow-box">{{ self.page_title() }}</h1>
1217

@@ -18,7 +23,7 @@ <h1 class="title-shadow-box">{{ self.page_title() }}</h1>
1823
<p>{{ _('For the avoidance of doubt: this document commits you to a set of
1924
good behaviours; it is not a copyright assignment.') }}</p>
2025

21-
<h2>{{ _('1. Treatment of Account') }}</h2>
26+
<h2>{{ _('Treatment of Account') }}</h2>
2227

2328
<p>{{ _('You will receive one or more sets of Mozilla project access credentials, and/or
2429
one or more sets of credentials you already have will be given the power to
@@ -34,7 +39,7 @@ <h2>{{ _('1. Treatment of Account') }}</h2>
3439
of it, may be attached to your contributions and so be visible worldwide via
3540
the Internet.') }}</p>
3641

37-
<h2>{{ _('2. License Terms') }}</h2>
42+
<h2>{{ _('License Terms') }}</h2>
3843

3944
<p>
4045
{% trans license_policy='https://www.mozilla.org/MPL/license-policy.html',
@@ -50,7 +55,7 @@ <h2>{{ _('2. License Terms') }}</h2>
5055
{% endtrans %}
5156
</p>
5257

53-
<h2>{{ _('3. Notices and Knowledge') }}</h2>
58+
<h2>{{ _('Notices and Knowledge') }}</h2>
5459

5560
<p>{{ _('By contributing Code, You confirm that, to the best of Your knowledge, the Code
5661
does not violate the rights of any person or entity.') }}</p>
@@ -60,7 +65,7 @@ <h2>{{ _('3. Notices and Knowledge') }}</h2>
6065
such Code in a Mozilla Repository and that it meets these
6166
requirements.') }}</p>
6267

63-
<h2>{{ _('4. Committing Code Created by Others') }}</h2>
68+
<h2>{{ _('Committing Code Created by Others') }}</h2>
6469

6570
<p>{{ _('You may check in Code to a Mozilla Foundation repository that was not written
6671
by You, provided that:') }}</p>

bedrock/settings/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def JINJA_CONFIG():
127127
'commit-access-policy': (
128128
'css/mozorg/commit-access-policy.less',
129129
),
130+
'commit-access-requirements': (
131+
'css/mozorg/commit-access-requirements.less',
132+
),
130133
'about-forums': (
131134
'css/mozorg/about-forums.less',
132135
),
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This Source Code Form is subject to the terms of the Mozilla Public
2+
// License, v. 2.0. If a copy of the MPL was not distributed with this
3+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
@import "../sandstone/lib.less";
6+
7+
h2 {
8+
counter-increment: step-counter;
9+
}
10+
11+
h2::before {
12+
content: counter(step-counter) ". ";
13+
}

0 commit comments

Comments
 (0)