Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98f5617

Browse files
committed
Added sponsor banner to Trac.
1 parent53c19ab commit98f5617

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

‎scss/trachacks.scss‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,46 @@ h1, h2, h3, h4, h5, h6, span {
3434
}
3535
}
3636

37+
// Sponsorship banner
38+
div.sub-banner {
39+
font-family:Arial,Verdana,sans-serif;
40+
padding:1px10px;
41+
display:flex;
42+
flex-direction:row;
43+
border-bottom:2px;
44+
border-color:$gray-line;
45+
}
46+
p.sub-banner-content {
47+
width:70%;
48+
padding-right:1em;
49+
}
50+
div.sub-banner-cta {
51+
display:flex;
52+
align-items:center;
53+
border-radius:0.3em;
54+
55+
a {
56+
border:1pxsolid$green-medium;
57+
padding:0.7em1em;
58+
font-size:16px;
59+
font-weight:normal;
60+
border-radius:0.3em;
61+
62+
i {
63+
color:$red-medium;
64+
}
65+
66+
&:hover,
67+
&:focus,
68+
&:active {
69+
border:1pxsolid$green-dark;
70+
color:$green-dark;
71+
outline:none;
72+
background:$green-very-light;
73+
}
74+
}
75+
}
76+
3777
div.trac-content {
3878
border:0;
3979
}
@@ -417,4 +457,15 @@ div[role="main"]{
417457
min-width:inherit;
418458
overflow:scroll;
419459
}
460+
// Sponsorship banner
461+
div.sub-banner {
462+
display:block;
463+
}
464+
p.sub-banner-content {
465+
width:100%;
466+
padding-right:0;
467+
}
468+
div.sub-banner-cta {
469+
padding-bottom:10px;
470+
}
420471
}

‎trac-env/templates/site.html‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@ <h3>Useful links</h3>
9696
</div>
9797
</py:if>
9898
<py:iftest="req.environ['PATH_INFO'] != '/'">
99+
<divclass="sub-banner container">
100+
<pclass="sub-banner-content">
101+
Thank you for your interest in Django's development - the community relies on people like you!
102+
Have you interacted with one of our fantastic
103+
<ahref="https://www.djangoproject.com/fundraising/#who-are-the-django-fellows">Fellows?</a>
104+
By donating to the Django Software Foundation you fund the Fellowship Program, and therefore the
105+
<b>continued maintenance and development of Django</b>.
106+
</p>
107+
<divclass="sub-banner-cta">
108+
<aclass="btn btn-lg btn-primary"href="https://www.djangoproject.com/fundraising/">
109+
<iclass="icon icon-heart"></i> Donate
110+
</a>
111+
</div>
112+
</div>
99113
<divclass="container full-width">
100114
<divrole="main">
101115
<py:iftest="req.authname != 'anonymous' and not req.session.email">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp