Commit 81ee8e7a by Aleksandar Hristov

Changes in styles.css, footer and header templates

1 parent 85262474
......@@ -14,15 +14,15 @@ class MyDB extends SQLite3
if(!$db) echo $db->lastErrorMsg();
$pass = md5('initpass');
$query = $db->exec('CREATE TABLE admin (username varchar(255), password varchar(255))');
$query = $db->exec('CREATE TABLE admin (username varchar(255), password VARCHAR (255))');
if(!$query) echo $db->lastErrorMsg();
$query = $db->exec('CREATE TABLE pages (id INTEGER PRIMARY KEY AUTOINCREMENT, title varchar(250), text string, sections integer)');
$query = $db->exec('CREATE TABLE pages (id INTEGER PRIMARY KEY AUTOINCREMENT, title varchar(250) NULL, text STRING NULL)');
if(!$query) echo $db->lastErrorMsg();
$query = $db->exec('CREATE TABLE sections (id INTEGER PRIMARY KEY AUTOINCREMENT, page_id INTEGER, title varchar(250), text string)');
$query = $db->exec('CREATE TABLE sections (id INTEGER PRIMARY KEY AUTOINCREMENT, page_id INTEGER NULL, title VARCHAR (250) NULL, text STRING NULL )');
if(!$query) echo $db->lastErrorMsg();
?>
\ No newline at end of file
......@@ -11,6 +11,7 @@ html
min-height:100%;
}
/* Copyright; Positioned as a <li></li> in the sidebar-nav list */
#copyright
{
......@@ -58,7 +59,7 @@ html
#container2-header
{
color:#484e53;
margin-bottom:20px;
margin-bottom:30px;
}
......@@ -195,7 +196,7 @@ html
{
text-decoration: none;
color: #fff;
background-color: #f8a20f;
background-color: #0066a1;
}
......@@ -203,14 +204,14 @@ html
.sidebar-nav li a:focus
{
color: #fff;
background-color: #f8a20f;
background-color: #0066a1;
}
#active > a
{
color: #fff !important;
background-color: #f8a20f;
background-color: #0066a1;
}
#sub-active a
......@@ -293,92 +294,77 @@ html
@media(min-width:1025px)
{
#wrapper
{
padding-left: 250px;
background-color: #6d7171;
@media(min-width:1025px) {
#wrapper {
padding-left: 250px;
background-color: #6d7171;
}
#wrapper.toggled {
padding-left: 0;
}
#sidebar-wrapper {
width: 250px;
position: static;
}
.sidebar-nav {
background-color: #6d7171;
min-height: 100%;
}
#wrapper.toggled #sidebar-wrapper {
width: 0;
}
#page-content-wrapper {
padding: 20px;
min-height: 100%;
}
#wrapper.toggled
{
padding-left: 0;
}
#sidebar-wrapper
{
width: 250px;
position:static;
}
.sidebar-nav
{
background-color: #6d7171;
min-height:100%;
}
#wrapper.toggled #sidebar-wrapper
{
width: 0;
}
#page-content-wrapper
{
padding: 20px;
min-height:100%;
}
#wrapper.toggled #page-content-wrapper
{
margin-right: 0;
opacity: 1;
#wrapper.toggled #page-content-wrapper {
margin-right: 0;
opacity: 1;
filter: alpha(opacity=100); /* For IE8 and earlier */
overflow-y:auto;
overflow-y: auto;
overflow-x: hidden;
pointer-events:all;
}
#wrapper.toggled #search-container
{
margin-right: 0;
opacity: 1;
pointer-events: all;
}
#wrapper.toggled #search-container {
margin-right: 0;
opacity: 1;
filter: alpha(opacity=100); /* For IE8 and earlier */
overflow-y:auto;
overflow-y: auto;
overflow-x: hidden;
pointer-events:all;
}
#date-container
{
background-color:#0066a1;
color:white;
font-size:large;
pointer-events: all;
}
#date-container {
background-color: #0066a1;
color: white;
font-size: large;
text-align: left;
padding-left:5px;
padding-left: 5px;
}
/* ADDED 16.12.2014 */
#datetime
{
display:table;
#datetime {
display: table;
}
#time-container
{
background-color:white;
color:#3ac1e1;
font-size:50px;
#time-container {
background-color: white;
color: #3ac1e1;
font-size: 50px;
}
}
@media(max-width:1260px)
{
......@@ -402,14 +388,7 @@ html
{
padding-top:100px;
}
{
padding-top:100px;
}
h1
{
font-size:20px;
......
<!-- Bootstrap Core JavaScript -->
<script src="static/bootstrap/js/bootstrap.min.js"></script>
<!-- Update time JavaScript -->
<script src="static/js/main.js"></script>
<script src="static/js/updatetime.js"></script>
<script src="static/js/new_fields.js"></script>
<script>
var ToC =
"<nav role='navigation' class='table-of-contents'>" +
"<b><?php echo $page_title; ?></b>" +
"<ul>";
var newLine, el, title, link;
$("article h3").each(function() {
el = $(this);
title = el.text();
link = "#" + el.attr("id");
newLine =
"<li>" +
"<a href='" + link + "'>" +
title +
"</a>" +
"</li>";
ToC += newLine;
});
ToC +=
"</ul>" +
"</nav>";
$(".all-chapters").prepend(ToC);
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Slimspots Wiki</title>
<!-- Bootstrap Core CSS -->
<link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="static/css/slimspots-wiki.css" rel="stylesheet">
<link href="static/css/styles.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<!-- FontAwesome -->
<link rel="stylesheet" href="static/font-awesome/css/font-awesome.min.css">
<script src="static/bootstrap/js/jquery-1.11.0.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!