home page CSS

This commit is contained in:
zzz
2012-03-22 19:49:48 +00:00
parent adcd1e8d9a
commit db42a46c71
2 changed files with 25 additions and 6 deletions

View File

@@ -45,6 +45,7 @@
</div> </div>
</div> </div>
<div id="homemain">
<jsp:useBean class="net.i2p.router.web.HomeHelper" id="homehelper" scope="request" /> <jsp:useBean class="net.i2p.router.web.HomeHelper" id="homehelper" scope="request" />
<jsp:setProperty name="homehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" /> <jsp:setProperty name="homehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
<% if (homehelper.shouldShowWelcome()) { %> <% if (homehelper.shouldShowWelcome()) { %>
@@ -77,7 +78,7 @@
if (newshelper.shouldShowNews()) { if (newshelper.shouldShowNews()) {
java.io.File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml"); java.io.File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml");
%> %>
<div class="news" id="news"> <div class="news" id="homenews">
<jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" /> <jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" />
<jsp:setProperty name="newshelper" property="maxLines" value="300" /> <jsp:setProperty name="newshelper" property="maxLines" value="300" />
<jsp:getProperty name="newshelper" property="content" /> <jsp:getProperty name="newshelper" property="content" />
@@ -111,4 +112,5 @@
<jsp:getProperty name="homehelper" property="services" /><br> <jsp:getProperty name="homehelper" property="services" /><br>
</div> </div>
</div> </div>
</div>
</body></html> </body></html>

View File

@@ -602,15 +602,32 @@ td {
/* begin home page */ /* begin home page */
#appsummary { #appsummary {
margin-top: 0; clear: none;
float: none;
left: 10px;
margin: 0;
position: absolute;
top: 10px;
}
#homemain {
left: 217px;
margin: 0 10px 10px 0;
position: absolute;
top: 10px;
}
#homenews {
margin: 0 10px 5px 0;
} }
h2.app { h2.app {
margin: 15px 10px 15px 207px !important; border-radius: 8px;
margin: 1px 10px 15px 0 !important;
} }
h4.app { h4.app {
margin: 0 4px 2px 0; margin: 0 10px 2px 10px;
padding: 10px 0 8px 0; padding: 10px 0 8px 0;
} }
@@ -621,7 +638,7 @@ h4.app2 {
} }
div.ag2 { div.ag2 {
margin: 0 0 0 207px; margin: 0;
} }
div.app { div.app {
@@ -638,7 +655,7 @@ div.appgroup {
} }
div.search { div.search {
margin: 10px 10px 0 207px; margin: 10px 10px 0 0;
padding: 8px 8px 0 8px; padding: 8px 8px 0 8px;
width: auto; width: auto;
} }