Commit 552fcc0c authored by Aljaž Srebrnič's avatar Aljaž Srebrnič

Initial porting from builtin CSS

parent 7433cfc1
PLUGIN_NAME = Theme PLUGIN_NAME = MittelTheme
all: all:
@ git archive HEAD --prefix=${PLUGIN_NAME}/ --format=zip -o ${PLUGIN_NAME}.zip @ git archive HEAD --prefix=${PLUGIN_NAME}/ --format=zip -o ${PLUGIN_NAME}.zip
<?php <?php
namespace Kanboard\Plugin\Theme; namespace Kanboard\Plugin\MittelTheme;
use Kanboard\Core\Plugin\Base; use Kanboard\Core\Plugin\Base;
class Plugin extends Base class Plugin extends Base
{ {
public function initialize() public function initialize()
{ {
$this->template->hook->attach('template:layout:head', 'theme:layout/head'); $this->template->hook->attach('template:layout:head', 'MittelTheme:layout/head');
$this->template->hook->attach('template:layout:top', 'theme:layout/top'); # $this->template->hook->attach('template:layout:top', 'MittelTheme:layout/top');
$this->template->setTemplateOverride('header', 'theme:layout/header'); # $this->template->setTemplateOverride('header', 'mitteltheme:layout/header');
} }
} }
<style> <style>
#top-bar { body {
background: #666;
color: #fff; color: #fff;
text-align: center; background-color: #222;
line-height: 30px; }
}
a, table th a {
header nav { color: #0ce3ac;
color: red; }
font-weight: bold;
} table th {
background-color: #375a7f;
border-color: #375a7f;
}
table td {
border-color: #375a7f;
}
table#board td a:hover {
color: #000;
}
table.table-striped tr:nth-child(2n+1) {
background-color: #444;
}
.accordion-title > h3, .views-switcher-component, .task-board-icons, .dropdown-submenu-open {
color: #000;
}
#popover-content, #popover-content h2 {
color: #000;
}
.sidebar > ul a:hover, .dropdown-menu-link-text, .dropdown-menu-link-icon, .action-menu, a:hover, .sidebar > ul li.active a, .sidebar > ul li.active a:focus, .sidebar > ul li.active a:hover, .page-header h2 a, h1, h2, h3, .dashboard-table-link {
color: #fff;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment