Commit d3b4b1c9 authored by Sean Madsen's avatar Sean Madsen

Material cust - branding: colors/logo

parent c9a9c61f
......@@ -3,17 +3,45 @@ header.md-header {
height: auto;
}
header.md-header .civi-logo {
float: left;
padding: 5px;
}
header.md-header .civi-logo a {
margin: 0;
padding: 0;
}
.md-main__inner {
margin-top: 0;
padding-top: 1rem;
}
header .org-header {
header .civi-header {
padding-top: 0.8rem;
padding-left: 2rem;
font-size: 1.4rem;
font-style: italic;
}
header .org-header span {
header .civi-header span {
color: white;
}
\ No newline at end of file
}
/* Custom colors */
button[data-md-color-primary=indigo]{background-color:#3387ac}
[data-md-color-primary=indigo] .md-typeset a{color:#3387ac}
[data-md-color-primary=indigo] .md-header{background-color:#3387ac}
[data-md-color-primary=indigo] .md-nav__link--active,[data-md-color-primary=indigo] .md-nav__link:active{color:#3387ac}
button[data-md-color-accent=green]{background-color:#81c459}
[data-md-color-accent=green] .md-typeset a:active,[data-md-color-accent=green] .md-typeset a:hover{color:#81c459}
[data-md-color-accent=green] .md-typeset .codehilite::-webkit-scrollbar-thumb:hover,[data-md-color-accent=green] .md-typeset pre::-webkit-scrollbar-thumb:hover{background-color:#81c459}
[data-md-color-accent=green] .md-nav__link:hover,[data-md-color-accent=green] .md-typeset .footnote li:hover .footnote-backref:hover,[data-md-color-accent=green] .md-typeset .footnote li:target .footnote-backref,[data-md-color-accent=green] .md-typeset [id] .headerlink:focus,[data-md-color-accent=green] .md-typeset [id]:hover .headerlink:hover,[data-md-color-accent=green] .md-typeset [id]:target .headerlink{color:#81c459}
[data-md-color-accent=green] .md-search__scrollwrap::-webkit-scrollbar-thumb:hover{background-color:#81c459}
[data-md-color-accent=green] .md-search-result__link:hover{background-color:rgba(129,196,89,.1)}
[data-md-color-accent=green] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover{background-color:#81c459}
@media only screen and (max-width:59.9375em){[data-md-color-primary=indigo] .md-nav__source{background-color:rgba(51,135,172,.9675)}}
@media only screen and (max-width:76.1875em){html [data-md-color-primary=indigo] .md-nav--primary .md-nav__title--site{background-color:#3387ac}}
@media only screen and (min-width:60em){[data-md-color-primary=indigo] .md-nav--secondary{border-left:.4rem solid #3387ac}}
<header class="md-header">
<nav class="md-header-nav md-grid">
<div class="md-flex org-header">
<div class="md-flex civi-logo">
<div class="md-flex__cell md-flex__cell--shrink">
<a class="md-logo md-header-nav__button" href="https://civicrm.org" title="CiviCRM home">
<img src="/static/images/logo.svg" height="60" alt="logo" />
</a>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--menu md-header-nav__button" for="drawer"></label>
</div>
</div>
<div class="md-flex civi-header">
<div class="md-flex__cell md-flex__cell--stretch">
<span class="md-header-nav__parent">
<a href="https://civicrm.org">CiviCRM</a>
......@@ -14,6 +24,7 @@
</div>
</div>
<div class="md-flex">
<!--
<div class="md-flex__cell md-flex__cell--shrink">
<a href="{{ nav.homepage.url }}" title="{{ config.site_name }}" class="{% if config.extra.logo %} md-logo {% else %} md-icon md-icon--home {% endif %} md-header-nav__button">
{% if config.extra.logo %}
......@@ -21,9 +32,7 @@
{% endif %}
</a>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--menu md-header-nav__button" for="drawer"></label>
</div>
-->
<div class="md-flex__cell md-flex__cell--stretch">
<span class="md-flex__ellipsis md-header-nav__title">
{% block site_name %}
......
......@@ -85,6 +85,12 @@ class MkDocs {
$config['theme_dir'] = $this->themeCustomPath;
}
// Set up custom colors in Material
if ($theme == 'material') {
$config['extra']['palette']['primary'] = 'indigo';
$config['extra']['palette']['accent'] = 'green';
}
// Dump config out
$dumper = new Dumper();
$this->configFile = dirname($this->destinationPath) . "/"
......
This diff is collapsed.
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