Skip to content

Commit f9e7c52

Browse files
ahornaceVladimir Kotal
authored andcommitted
Use font instead of png for logo
1 parent c8e9457 commit f9e7c52

File tree

7 files changed

+39
-87
lines changed

7 files changed

+39
-87
lines changed

dev/img_combine.sh

Lines changed: 0 additions & 59 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

opengrok-web/src/main/webapp/default/print-1.0.0.css renamed to opengrok-web/src/main/webapp/default/print-1.0.1.css

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -494,23 +494,13 @@ a.xsr { /* subroutine */ color: #00f; font-weight: bold;
494494
text-align: center;
495495
}
496496

497-
#fti { /* servedby.png */
498-
display: inline-block;
499-
width: 208px;
500-
height: 45px;
501-
vertical-align: middle;
502-
background-image: url(./img/combined.png);
503-
background-repeat: no-repeat;
504-
background-position: -171px 0;
505-
}
506497
#rssi { /* rss.png */
507498
display: inline-block;
508499
width: 80px;
509500
height: 15px;
510501
vertical-align: middle;
511-
background-image: url(./img/combined.png);
502+
background-image: url(./img/rss.png);
512503
background-repeat: no-repeat;
513-
background-position: -379px 0;
514504
}
515505
/* ############### end of footer ############## */
516506

opengrok-web/src/main/webapp/default/style-1.0.0.css renamed to opengrok-web/src/main/webapp/default/style-1.0.1.css

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,8 @@ html.diff #whole_header {
287287
width: 171px;
288288
height: 40px;
289289
float: left;
290-
background-image: url(./img/combined.png);
290+
background-image: url(./img/Logo.png);
291291
background-repeat: no-repeat;
292-
background-position: 0 0;
293292
margin: 0 0 0.5ex 0;
294293
}
295294

@@ -1072,23 +1071,43 @@ a.scope { /* scope */ color: steelblue; font-weight: bol
10721071
text-align: center;
10731072
}
10741073

1075-
#fti { /* servedby.png */
1076-
display: inline-block;
1077-
width: 208px;
1078-
height: 45px;
1074+
@font-face {
1075+
font-family: SunSans;
1076+
src: url('./font/SunSansRegular.woff2');
1077+
}
1078+
1079+
.link-no-decoration {
1080+
text-decoration: none !important;
1081+
}
1082+
1083+
.logo {
1084+
font-family: SunSans, sans-serif;
1085+
font-size: 1.6153846153846154em;
10791086
vertical-align: middle;
1080-
background-image: url(./img/combined.png);
1081-
background-repeat: no-repeat;
1082-
background-position: -171px 0;
10831087
}
1088+
1089+
.logo-gray-color {
1090+
color: #656664;
1091+
}
1092+
1093+
.logo-blue-color {
1094+
color: #4783A3;
1095+
}
1096+
1097+
#served-by {
1098+
color: #B8BAB7;
1099+
font-family: SunSans, sans-serif;
1100+
font-size: 1.1538461538461537em;
1101+
vertical-align: middle;
1102+
}
1103+
10841104
#rssi { /* rss.png */
10851105
display: inline-block;
10861106
width: 80px;
10871107
height: 15px;
10881108
vertical-align: middle;
1089-
background-image: url(./img/combined.png);
1109+
background-image: url(./img/rss.png);
10901110
background-repeat: no-repeat;
1091-
background-position: -379px 0;
10921111
}
10931112
/* ############### end of footer ############## */
10941113

opengrok-web/src/main/webapp/foot.jspf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ org.opengrok.indexer.web.Prefix"
4242

4343
%>
4444
<div id="footer">
45-
<p><a href="https://oracle.github.io/opengrok/"
46-
title="Served by OpenGrok (<%= Info.getVersion() %> - <%= Info.getShortRevision() %>)"><span id="fti"></span></a></p>
45+
<p><a href="https://oracle.github.io/opengrok/" class="link-no-decoration"
46+
title="Served by OpenGrok (<%= Info.getVersion() %> - <%= Info.getShortRevision() %>)">
47+
<span id="served-by">served&nbsp;by&nbsp;</span><span class="logo logo-gray-color">{</span><span class="logo logo-blue-color">Open</span><span class="logo logo-gray-color">Grok</span>
48+
</a></p>
4749
<% if(dateForLastIndexRun != null) { %>
48-
<p>Last Index update <%= dateForLastIndexRun %></p>
50+
<p>Last Index Update: <%= dateForLastIndexRun %></p>
4951
<%}%>
5052
<%= cfg.getEnv().getIncludeFiles().getFooterIncludeFileContent(false) %>
5153
<%

opengrok-web/src/main/webapp/httpheader.jspf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ information: Portions Copyright [yyyy] [name of copyright owner]
1818

1919
CDDL HEADER END
2020

21-
Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
21+
Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2222
Portions Copyright 2011 Jens Elkner.
2323
Portions Copyright (c) 2017-2018, 2020, Chris Fraire <[email protected]>.
2424
Portions Copyright (c) 2020, Aleksandr Kirillov <[email protected]>.
@@ -45,8 +45,8 @@ org.opengrok.web.Scripts"
4545
PageConfig cfg = PageConfig.get(request);
4646
String styleDir = cfg.getCssDir();
4747
String ctxPath = request.getContextPath();
48-
String dstyle = styleDir + '/' + "style-1.0.0.min.css";
49-
String pstyle = styleDir + '/' + "print-1.0.0.min.css";
48+
String dstyle = styleDir + '/' + "style-1.0.1.min.css";
49+
String pstyle = styleDir + '/' + "print-1.0.1.min.css";
5050
String mstyle = styleDir + '/' + "mandoc-1.0.0.min.css";
5151
%><!DOCTYPE html>
5252
<html lang="en"

0 commit comments

Comments
 (0)