Skip to content

Commit

Permalink
basic fixes, some jbot overrides, styling
Browse files Browse the repository at this point in the history
  • Loading branch information
santonelli committed Dec 9, 2020
1 parent 30bd111 commit 000717f
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="page-footer text-white bg-secondary">

<div class="text-center py-3">
Munich Theme for Plone
</div>

</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div id="portal-header" class="d-flex justify-content-between">
<div tal:replace="structure provider:plone.portalheader" />
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<div id="portal-searchbox" class="align-self-center" i18n:domain="plone" tal:define="navigation_root_url view/navigation_root_url;">

<form id="searchGadget_form" action="@@search" role="search" tal:attributes="action string:${navigation_root_url}/@@search;
data-pat-livesearch string:ajaxUrl:${navigation_root_url}/@@ajax-search;
class python: view.livesearch and 'pat-livesearch row gy-2 gx-3 align-items-center' or 'row gy-2 gx-3 align-items-center'">

<div class="LSBox"></div>

<label class="visually-hidden" for="autoSizingInputGroup">Username</label>
<div class="input-group">
<div class="input-group-text">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-search" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M10.442 10.442a1 1 0 0 1 1.415 0l3.85 3.85a1 1 0 0 1-1.414 1.415l-3.85-3.85a1 1 0 0 1 0-1.415z"/>
<path fill-rule="evenodd" d="M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"/>
</svg>
</div>
<input type="text" class="form-control" id="autoSizingInputGroup" value="" placeholder="Search Site" i18n:attributes="placeholder title_search_site" tal:attributes="value request/form/SearchableText|nothing;">
<button type="submit" class="btn btn-primary text-light" value="Search" i18n:attributes="value label_search;">Search</button>
</div>

</form>

</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<tal:sections
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
tal:define="portal_tabs view/portal_tabs"
tal:condition="portal_tabs"
i18n:domain="plone">

<div class="bg-primary">

<div class="container">

<nav class="navbar navbar-expand navbar-dark bg-primary">

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item" tal:repeat="item portal_tabs">
<a class="nav-link" href="${item/url}">${item/name}</a>
</li>
</ul>
</div>

</nav>

</div>

</div>

</tal:sections>
36 changes: 35 additions & 1 deletion src/plonetheme/munich/theme/css/munich.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/plonetheme/munich/theme/css/munich.min.css

Large diffs are not rendered by default.

38 changes: 37 additions & 1 deletion src/plonetheme/munich/theme/scss/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,43 @@
html {

body {


#portal-header {
margin: 1.75em 0 2em 0;
}

#portal-mainnavigation {
margin-bottom: 2em;
}

.breadcrumb {
padding: 0;
margin-bottom: 2em;
background-color: transparent;
}

#global-statusmessage {
margin-bottom: 2em;
}

#content {
margin-bottom: 2em;

#section-byline {
margin-bottom: 1em;
}

#content-core {
.autotoc-nav {
margin: 1em 0;
}
}
}

.portlet {
margin-bottom: 1em;
}

}

}

0 comments on commit 000717f

Please sign in to comment.