Browse Source

* make lightweight copy of original design

master
Alex "AdUser" Z 10 years ago
parent
commit
cb5c3b8486
  1. 69
      public/css/default.css
  2. 2
      public/css/zerobin.css
  3. BIN
      public/img/headbg.jpg
  4. 88
      templates/layouts/default.html.ep

69
public/css/default.css

@ -0,0 +1,69 @@
html, body {
margin: 0px;
padding: 0px;
border: 0px;
font-family: sans-serif;
font-size: 10pt;
}
body {
background-color: #F9F9F9;
background-image: url('/img/headbg.jpg');
background-clip: border-box;
background-attachment: scroll;
background-repeat: no-repeat;
}
div#main {
position: relative;
width: 100%;
padding: 10px 0px;
}
div#sidebar {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
width: 150px;
max-width: 170px;
padding: 2px;
overflow: hidden;
}
div#content {
position: relative;
margin-left: 175px;
margin-top: 10px;
padding: 10px 10px;
}
.ui-block {
background-color: #FFFFFF;
border: 1px solid #AAAAAA;
}
/* headers */
h1, h2, h3, h4, h5 {
margin: 0px;
font-weight: normal;
margin-bottom: 0.6em;
}
h1 {
font-size: 160%;
border-bottom: 1px solid #AAAAAA;
}
h2 { font-size: 130%; }
ul {
margin: 0px;
padding: 3px 20px;
list-style: square;
color: #999999;
}
a {
text-decoration: none;
color: #002BB8;
}

2
public/css/zerobin.css

@ -2,7 +2,7 @@ span.cblock {
border-radius: 4px;
background-color: #F3F3F3;
padding: 6px 8px;
margin: 0px 5px;
margin: 5px 5px;
}
span.cblock input[type=submit] {

BIN
public/img/headbg.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

88
templates/layouts/default.html.ep

@ -1,14 +1,16 @@
<!DOCTYPE html>
<html>
<head>
% my @styles = qw(monobook.screen monobook.print);
% push @styles, split(/\s+/, stash('styles'));
% my @scripts = ();
% push @scripts, split(/\s+/, stash('scripts'));
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%= title %> - Linux во Владивостоке</title>
<meta name="generator" content="mojolicious" />
<meta name="robots" content="noindex,nofollow"/>
<title><%= title %> - Linux во Владивостоке</title>
% my @styles = qw(default);
% push @styles, split(/\s+/, stash('styles'));
%
% my @scripts = ();
% push @scripts, split(/\s+/, stash('scripts'));
%
% foreach my $style (@styles) {
<%= stylesheet "/css/$style.css" %>
% }
@ -16,66 +18,34 @@
<%= javascript "/js/$script.js" %>
% }
</head>
<body class="mediawiki ns-0 ltr">
<div id="globalWrapper">
<div id="column-content">
<div id="content">
<a name="top" id="top"></a>
<a name="dokuwiki__top" id="dokuwiki__top"></a>
<div id="bodyContent">
<div class="dokuwiki">
<!-- start main content area -->
%= content
<!-- end main content area -->
<div class="visualClear"></div>
</div>
</div>
</div>
</div>
<div id="column-one" class="noprint">
<div class="portlet" id="p-logo">
<a href="/wiki/index" style="background-image:url(/img/logo.png);" accesskey="h" title="[ALT+H]"></a>
</div>
<body>
<div id="main">
<div id="p-personal" class="portlet">
<div class="pBody">
<ul>
<li id="pt-login"><a href="/user/login" rel="nofollow">Войти</a></li>
<div id="sidebar">
<a href="/wiki/index" id="home">
<img src="/img/logo.png" style="border: 0px; margin: 2px 10px;">
</a>
<h5>Навигация:</h5>
<ul id="sidebar" class="ui-block">
<li><a href="/wiki/index">Главная</a></li>
<li><a href="/wiki/articles/index">Статьи</a></li>
<li><a href="/wiki/projects/index">Проекты</a></li>
<li><a href="/wiki/events/index">События</a></li>
<li><a href="/wiki/links">Ссылки</a></li>
<li><a href="/wiki/wiki/index">Служебные</a></li>
<li><a href="/forum/">Форум</a></li>
</ul>
</div>
</div>
<div class="portlet" id="p-x-navigation">
<h5>Навигация</h5>
<div class="pBody">
<div class="dokuwiki">
<ul>
<li class="level1"><div class="li"> <span class="curid"><a href="/wiki/index" class="wikilink1" title="index">Главная</a></span></div> </li>
<li class="level1"><div class="li"> <a class="wikilink1" href="/wiki/articles/index">Статьи</a></div></li>
<li class="level1"><div class="li"> <a class="wikilink1" href="/wiki/projects/index">Проекты</a></div></li>
<li class="level1"><div class="li"> <a class="wikilink1" href="/wiki/events/index">События</a></div></li>
<li class="level1"><div class="li"> <a class="wikilink1" href="/wiki/links">Ссылки</a></div></li>
<li class="level1"><div class="li"> <a class="wikilink1" href="/wiki/wiki/index">Служебные</a></div></li>
<li class="level1"><div class="li"> <a class="wikilink1" href="/forum/">Форум</a></div></li>
<ul class="ui-block">
<li><a href="/user/login" rel="nofollow">Войти</a></li>
</ul>
</div>
</div>
</div>
</div> <!-- end of the left (by default at least) column -->
<div class="visualClear"></div>
<div id="footer" class="noprint">
<div id="footer-buttons">
<div id="content" class="ui-block">
%= content
</div>
<ul id="f-list">
<li id="usermod">
<br />
</li>
</ul>
</div>
</div> <!-- end of global wrap -->
<div id="footer" class="ui-block">
</div>
</html>

Loading…
Cancel
Save