Skip to content

Commit a31021f

Browse files
committed
ribbon for irc
1 parent b98b459 commit a31021f

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

root/inc/release-info.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<div><a href="http://cpants.charsbar.org/dist/overview/<% release.distribution %>">Kwalitee</a></div>
5050
</li>
5151
<% IF irc.web %>
52-
<li>
52+
<li class="irc-chat">
5353
<div><a href="<% irc.web %>">Chat with Maintainers</a></div>
5454
</li>
5555
<% END %>

root/static/images/noise.png

561 Bytes
Loading

root/static/less/nav-list.less

+67
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,70 @@
125125
text-shadow: 0 1px 0 rgba(255,255,255,.5);
126126
text-transform: uppercase;
127127
}
128+
129+
.irc-chat {
130+
@width: 155px;
131+
@height: 36px;
132+
@left: 10px;
133+
@border-margin: 5px;
134+
@background: #b80000;
135+
136+
position: relative;
137+
top: 0px;
138+
height: @height;
139+
width: @width;
140+
left: 0 - @left;
141+
142+
display: inline-block;
143+
margin-bottom: 10px;
144+
border-radius: 4px 0px 0px;
145+
box-shadow: 0px 2px 2px -2px #000;
146+
147+
a {
148+
color: #fff;
149+
font-weight: bold;
150+
}
151+
152+
/* dotted border */
153+
div {
154+
display: inline-block;
155+
margin: @border-margin 0;
156+
padding-left: @left;
157+
border-style: dotted;
158+
border-color: darken(@background, 12.7%);
159+
border-width: 1px 0;
160+
width: @width - ( @border-margin / 2 );
161+
line-height: @height - ( @border-margin * 2 ) - 1;
162+
}
163+
164+
/* right triangle on ribbon */
165+
&:after {
166+
@sides: @height / sqrt(2);
167+
168+
content: '';
169+
position: absolute;
170+
top: (@height - @sides) / 2;
171+
left: @width - (@sides / 2);
172+
width: @sides;
173+
height: @sides;
174+
.rotate(45deg);
175+
z-index: -1;
176+
}
177+
178+
/* lower ribbon */
179+
&:before {
180+
content: '';
181+
position: absolute;
182+
top: @height;
183+
left: 1px;
184+
border-top: 9px solid darken(@background, 8%);
185+
border-left: 9px solid transparent;
186+
.scale(1.2, 1);
187+
z-index: -1;
188+
}
189+
190+
&, &:after {
191+
background-color: @background;
192+
background-image: data-uri('../images/noise.png');
193+
}
194+
}

0 commit comments

Comments
 (0)