Skip to content

Commit

Permalink
Add CSS File for Styling
Browse files Browse the repository at this point in the history
- #17
  • Loading branch information
aljawaid committed Jan 16, 2023
1 parent f93b5cd commit 8628304
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
48 changes: 48 additions & 0 deletions Assets/css/kanboard-email-history.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* KANBOARD PLUGIN - CSS FILE */

:root {
--pp-blue: #007AC9;
--pp-blue-alt: #00ADFF;
--pp-red: #B71234;
--pp-red-alt: #DA004C;
--pp-red-alt-2: #AE003D;
--pp-black: #000000;
--pp-light-grey: #8F8F8F;
--pp-grey: #4D4D4D;
--pp-white: #FFFFFF;
--pp-green: #2EA02E;
--pp-green-dark: #055D20;
--pp-orange: #FF6500;
--blue-icon-dark: #034CA6;
--button-blue-gradient: linear-gradient(to bottom, #7892c2 80%, #476e9e 100%);
--blue-border-gradient-match: #476E9E;
--button-background-delete: #D05C84;
--link-color-primary: #36C;
--header-page-margin-kbemailhistory: 5px 15px 10px 15px;
--page-margin-kbemailhistory: 0px 15px 0px 15px;
--title-margin-kbemailhistory: 0px 15px 0px 15px;
--border-radius-kbemailhistory: 3px;
--panel-background-kbemailhistory: #EEEEEE;
--transition-kbemailhistory: ease-in-out all .3s;
}

.pp-blue { color: var(--pp-blue); fill: var(--pp-blue); }
.pp-blue-alt { color: var(--pp-blue-alt); fill: var(--pp-blue-alt); }
.pp-red { color: var(--pp-red); fill: var(--pp-red); }
.pp-red-alt { color: var(--pp-red-alt); fill: var(--pp-red-alt); }
.pp-red-alt-2 { color: var(--pp-red-alt-2); fill: var(--pp-red-alt-2); }
.pp-black { color: var(--pp-black); fill: var(--pp-black); }
.pp-light-grey { color: var(--pp-light-grey); fill: var(--pp-light-grey); }
.pp-grey { color: var(--pp-grey); fill: var(--pp-grey); }
.pp-white { color: var(--pp-white); fill: var(--pp-white); }
.pp-green { color: var(--pp-green); fill: var(--pp-green); }
.pp-dark-green { color: var(--pp-green-dark); fill: var(--pp-green-dark); }
.pp-orange { color: var(--pp-orange); fill: var(--pp-orange); }

.display-none, .d-none { display: none !important; }

.font-weight-bold { font-weight: bold; }

.text-center { text-align: center; }

.relative { position: relative; }
4 changes: 4 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public function initialize()
// Template Override
// - Override name should be camelCase e.g. pluginNameExampleCamelCase
$this->template->setTemplateOverride('action_creation/event', 'kanboardEmailHistory:action_creation/event');

// CSS - Asset Hook
// - Keep filename lowercase
$this->hook->on('template:layout:css', array('template' => 'plugins/KanboardEmailHistory/Assets/css/kanboard-email-history.css'));
}

public function onStartup()
Expand Down

0 comments on commit 8628304

Please sign in to comment.