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

Initial porting from builtin CSS

parent 7433cfc1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
PLUGIN_NAME = Theme
PLUGIN_NAME = MittelTheme

all:
	@ git archive HEAD --prefix=${PLUGIN_NAME}/ --format=zip -o ${PLUGIN_NAME}.zip
+4 −4
Original line number Diff line number Diff line
<?php

namespace Kanboard\Plugin\Theme;
namespace Kanboard\Plugin\MittelTheme;
use Kanboard\Core\Plugin\Base;

class Plugin extends Base
{
    public function initialize()
    {
        $this->template->hook->attach('template:layout:head', 'theme:layout/head');
        $this->template->hook->attach('template:layout:top', 'theme:layout/top');
        $this->template->setTemplateOverride('header', 'theme:layout/header');
        $this->template->hook->attach('template:layout:head', 'MittelTheme:layout/head');
        # $this->template->hook->attach('template:layout:top', 'MittelTheme:layout/top');
        # $this->template->setTemplateOverride('header', 'mitteltheme:layout/header');
    }
}
+37 −11
Original line number Diff line number Diff line
<style>
    #top-bar {
        background: #666;
body {
    color: #fff;
        text-align: center;
        line-height: 30px;
    background-color: #222;
}

    header nav {
        color: red;
        font-weight: bold;
a, table th a {
    color: #0ce3ac;
}

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>
 No newline at end of file