@@ -249,9 +291,7 @@ class Navigation extends Component {
pointing
secondary
className={
- this.state.isMobileMenuOpen
- ? 'open firstLevel'
- : 'computer large screen widescreen only'
+ this.state.isMobileMenuOpen ? "open firstLevel" : "mobile hidden"
}
>
{navigation.map((item) =>
@@ -259,8 +299,8 @@ class Navigation extends Component {
@@ -292,9 +332,9 @@ class Navigation extends Component {
className="firstLevel"
to={
item.items && item.items.length
- ? ''
- : item.url === ''
- ? '/'
+ ? ""
+ : item.url === ""
+ ? "/"
: item.url
}
key={item.url}
@@ -309,8 +349,8 @@ class Navigation extends Component {
className={`${item.title}--section ${
this.state.isMobileMenuOpen &&
this.state.tappedMenu === item.url
- ? 'hovered'
- : ''
+ ? "hovered"
+ : ""
}`}
>
{item.items.map((subitem) => (
@@ -319,13 +359,13 @@ class Navigation extends Component {
id={subitem.title}
key={subitem.url}
>
- {item.title === 'Countries' &&
- subitem.title === 'Regions' ? (
+ {item.title === "Countries" &&
+ subitem.title === "Regions" ? (
{subitem.title}
@@ -336,29 +376,29 @@ class Navigation extends Component {
key={subitem.url}
className={
this.isActive(subitem.url)
- ? 'item secondLevel menuActive'
- : 'item secondLevel'
+ ? "item secondLevel menuActive"
+ : "item secondLevel"
}
>
{subitem.title}
)}
{subitem.items &&
- subitem.title.toLowerCase() === 'regions' && (
+ subitem.title.toLowerCase() === "regions" && (
{subitem.items.map((subsubitem) => (
{subsubitem.title}
@@ -371,24 +411,24 @@ class Navigation extends Component {
))}
) : (
- ''
+ ""
)}
) : (
{item.title}
- ),
+ )
)}
diff --git a/src/customizations/volto/components/theme/Search/Search.jsx b/src/customizations/volto/components/theme/Search/Search.jsx
index 527c94f..587c6a5 100644
--- a/src/customizations/volto/components/theme/Search/Search.jsx
+++ b/src/customizations/volto/components/theme/Search/Search.jsx
@@ -13,10 +13,9 @@ import { FormattedMessage } from 'react-intl';
import { Portal } from 'react-portal';
import { Container, Pagination } from 'semantic-ui-react';
import qs from 'query-string';
-//import moment from 'moment';
import { isArray, isObject } from 'lodash';
import config from '@plone/volto/registry';
-import { Helmet } from '@plone/volto/helpers';
+import { Helmet, flattenToAppURL } from '@plone/volto/helpers';
import { searchContent } from '@plone/volto/actions';
import { Toolbar, Icon } from '@plone/volto/components';
import Highlighter from 'react-highlight-words';
@@ -412,7 +411,7 @@ export default compose(
items: state.search.items.map((item) => {
return {
...item,
- '@id': item['@id'].replace(config.settings.apiPath, ''),
+ '@id': flattenToAppURL(item['@id']),
summary: getSummary(
item,
qs.parse(props.location.search).SearchableText,
diff --git a/src/customizations/volto/components/theme/Unauthorized/Unauthorized.jsx b/src/customizations/volto/components/theme/Unauthorized/Unauthorized.jsx
index 0d8f444..e85e53f 100644
--- a/src/customizations/volto/components/theme/Unauthorized/Unauthorized.jsx
+++ b/src/customizations/volto/components/theme/Unauthorized/Unauthorized.jsx
@@ -1,4 +1,4 @@
-import React, { Component } from 'react';
+import React, { Component, Fragment } from 'react';
import { Portal } from 'react-portal';
import { Route } from 'react-router-dom';
/**
diff --git a/src/customizations/volto/components/theme/View/ListingView.jsx b/src/customizations/volto/components/theme/View/ListingView.jsx
index 211cca5..0032042 100644
--- a/src/customizations/volto/components/theme/View/ListingView.jsx
+++ b/src/customizations/volto/components/theme/View/ListingView.jsx
@@ -1,27 +1,24 @@
-import React, { Component } from 'react';
-import PropTypes from 'prop-types';
-import { Helmet } from '@plone/volto/helpers';
-// import { Link } from 'react-router-dom';
-import { getLocalnavigation } from '@eeacms/volto-forests-theme/actions';
-import { connect } from 'react-redux';
-import { compose } from 'redux';
-import { getBaseUrl } from '@plone/volto/helpers'; // , flattenToAppURL
+import React, { Component } from "react";
+import PropTypes from "prop-types";
+import { Helmet } from "@plone/volto/helpers";
+import { getLocalnavigation } from "@eeacms/volto-forests-theme/actions";
+import { connect } from "react-redux";
+import { compose } from "redux";
+import { getBaseUrl } from "@plone/volto/helpers"; // , flattenToAppURL
-// import { injectIntl } from 'react-intl'; // defineMessages,
+import { Container, Image } from "semantic-ui-react"; // , Grid
+import { map } from "lodash";
-import { Container, Image } from 'semantic-ui-react'; // , Grid
-import { map } from 'lodash';
-
-import config from '@plone/volto/registry';
-import { asyncConnect } from 'redux-connect';
+import config from "@plone/volto/registry";
+import { asyncConnect } from "redux-connect";
import {
getBlocksFieldname,
getBlocksLayoutFieldname,
hasBlocksData,
-} from '@plone/volto/helpers';
-import { samePath } from '../../../../../helpers';
-import { Dimmer, Loader } from 'semantic-ui-react';
+} from "@plone/volto/helpers";
+import { samePath } from "../../../../../helpers";
+import { Dimmer, Loader } from "semantic-ui-react";
class ListingView extends Component {
static propTypes = {
@@ -36,59 +33,32 @@ class ListingView extends Component {
}),
items: PropTypes.arrayOf(
PropTypes.shape({
- '@id': PropTypes.string,
- '@type': PropTypes.string,
+ "@id": PropTypes.string,
+ "@type": PropTypes.string,
description: PropTypes.string,
review_state: PropTypes.string,
title: PropTypes.string,
url: PropTypes.string,
- }),
+ })
),
}).isRequired,
};
- // constructor(props) {
- // super(props);
- //
- // const url = props.content['@id']
- // .replace(settings.apiPath, '')
- // .replace(settings.internalApiPath, '');
- //
- // // this.props.getLocalnavigation(url);
- // }
-
- // componentDidMount() {
- // const url = this.props.content['@id']
- // .replace(settings.apiPath, '')
- // .replace(settings.internalApiPath, '');
- //
- // this.props.getLocalnavigation(url);
- // }
- //
- // componentDidUpdate(prevProps) {
- // if (prevProps.pathname !== this.props.pathname) {
- // const url = this.props.pathname;
- // this.props.getLocalnavigation(url);
- // }
- // }
-
render() {
- // console.log('asynclocalnav prop', this.props);
const content = this.props.content;
- // const intl = this.props.intl;
const blocksFieldname = getBlocksFieldname(content);
const blocksLayoutFieldname = getBlocksLayoutFieldname(content);
const localNavigation =
(this.props.localNavigation &&
this.props.localNavigation.items &&
this.props.localNavigation.items.filter(
- (item) => item.title !== 'Home',
+ (item) => item.title !== "Home"
)) ||
[];
- const currentUrl = this.props.content?.['@id'];
+ const currentUrl = this.props.content?.["@id"];
const shouldRenderRoutes =
- typeof currentUrl !== 'undefined' &&
+ typeof currentUrl !== "undefined" &&
samePath(currentUrl, this.props.pathname)
? true
: false;
@@ -105,10 +75,10 @@ class ListingView extends Component {
{map(content[blocksLayoutFieldname].items, (block) => {
const Block =
config.blocks.blocksConfig[
- content[blocksFieldname]?.[block]?.['@type']
- ]?.['view'] || null;
+ content[blocksFieldname]?.[block]?.["@type"]
+ ]?.["view"] || null;
return Block !== null &&
- content[blocksFieldname][block]['@type'] !== 'title' ? (
+ content[blocksFieldname][block]["@type"] !== "title" ? (
) : (
- //
- // {intl.formatMessage(messages.unknownBlock, {
- // block: content[blocksFieldname]?.[block]?.['@type'],
- // })}
- //
- ''
+ ""
);
})}
) : (
- {/* {content.title}
- {content.description && (
- {content.description}
- )} */}
{content.image && (
@@ -164,10 +125,10 @@ class ListingView extends Component {
{map(content[blocksLayoutFieldname].items, (block) => {
const Block =
config.blocks.blocksConfig[
- content[blocksFieldname]?.[block]?.['@type']
- ]?.['view'] || null;
+ content[blocksFieldname]?.[block]?.["@type"]
+ ]?.["view"] || null;
return Block !== null &&
- content[blocksFieldname][block]['@type'] !== 'title' ? (
+ content[blocksFieldname][block]["@type"] !== "title" ? (
) : (
- //
- // {intl.formatMessage(messages.unknownBlock, {
- // block: content[blocksFieldname]?.[block]?.['@type'],
- // })}
- //
- ''
+ ""
);
})}
@@ -208,7 +164,7 @@ class ListingView extends Component {
dangerouslySetInnerHTML={{
__html: content.text.data.replace(
/a href="([^"]*\.[^"]*)"/g,
- `a href="${config.settings.apiPath}$1/download/file"`,
+ `a href="${config.settings.apiPath}$1/download/file"`
),
}}
/>
@@ -223,7 +179,7 @@ class ListingView extends Component {
export default compose(
asyncConnect([
{
- key: 'localnavigation',
+ key: "localnavigation",
promise: ({ location, store: { content, dispatch } }) =>
__SERVER__ &&
dispatch(getLocalnavigation(getBaseUrl(location.pathname))),
@@ -235,6 +191,6 @@ export default compose(
pathname: props.location.pathname,
// localnavigation: state.localnavigation,
}),
- { getLocalnavigation },
- ),
+ { getLocalnavigation }
+ )
)(ListingView);
diff --git a/src/customizations/volto/components/theme/View/View.jsx b/src/customizations/volto/components/theme/View/View.jsx
index 510f150..7ed0ecc 100644
--- a/src/customizations/volto/components/theme/View/View.jsx
+++ b/src/customizations/volto/components/theme/View/View.jsx
@@ -9,18 +9,26 @@ import { connect } from 'react-redux';
import { compose } from 'redux';
import { Portal } from 'react-portal';
import { injectIntl } from 'react-intl';
-import { Helmet } from '@plone/volto/helpers';
import qs from 'query-string';
-import config from '@plone/volto/registry';
import { Dimmer, Loader } from 'semantic-ui-react';
+import { trackEvent } from '@eeacms/volto-matomo/utils';
-import { Comments, Tags, Toolbar, Icon } from '@plone/volto/components';
+import {
+ ContentMetadataTags,
+ Comments,
+ Tags,
+ Toolbar,
+ Icon,
+} from '@plone/volto/components';
import { listActions, getContent } from '@plone/volto/actions';
import {
BodyClass,
getBaseUrl,
getLayoutFieldname,
} from '@plone/volto/helpers';
+
+import config from '@plone/volto/registry';
+
import printer from '@plone/volto/icons/printer.svg';
/**
@@ -235,6 +243,11 @@ class View extends Component {
// this.sortHtmlCollectionByPosition(mosaicView, [
// { class: 'react-grid-item', requirement: 'has' },
// ]);
+ trackEvent({
+ category: 'Print',
+ action: 'Click',
+ name: document.title,
+ });
document.getElementById('main').classList.add('print');
setTimeout(() => {
window.print();
@@ -249,7 +262,6 @@ class View extends Component {
*/
render() {
const { views } = config;
-
if (this.props.error && !this.props.connectionRefused) {
let FoundView;
if (this.props.error.status === undefined) {
@@ -277,13 +289,7 @@ class View extends Component {
return (
-
- {this.props.content.language && (
-
- )}
-
{this.props.content.title}
-
-
+
{/* Body class if displayName in component is set */}
{
@@ -60,9 +57,7 @@ export function getLocation(href) {
export function samePath(url, path) {
// returns true if the router path is equal to the given url path
const parsed = getLocation(url);
- const clean = url
- .replace(config.settings.apiPath, '')
- .replace(config.settings.internalApiPath, '')
+ const clean = getBasePath(url)
.replace(parsed.hash, '')
.replace(parsed.search, '')
.replace(/\/$/, '');
diff --git a/src/plugins/index.js b/src/plugins/index.js
index ad97875..0af503a 100644
--- a/src/plugins/index.js
+++ b/src/plugins/index.js
@@ -1,10 +1,10 @@
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer');
module.exports = function myRazzlePlugin(config, env, webpack, options) {
- const { dev } = env;
+ const { target, dev } = env;
- //const stats = `bundle-stats-${target}`.json;
- // report = `bundle-stats-${target}`.html;
+ const stats = `bundle-stats-${target}`.json;
+ const report = `bundle-stats-${target}`.html;
const webpackConfig = !dev
? {
diff --git a/src/reducers/current_version.js b/src/reducers/current_version.js
index c583d66..b646d41 100644
--- a/src/reducers/current_version.js
+++ b/src/reducers/current_version.js
@@ -3,7 +3,7 @@
* @module reducers/frontpage_slides
*/
-import { SET_CURRENT_VERSION } from '@eeacms/volto-forests-theme/constants/ActionTypes';
+import { SET_CURRENT_VERSION } from "@eeacms/volto-forests-theme/constants/ActionTypes";
const initialState = {
error: null,
diff --git a/src/reducers/default_header_image.js b/src/reducers/default_header_image.js
index 95a8ee0..e0a1738 100644
--- a/src/reducers/default_header_image.js
+++ b/src/reducers/default_header_image.js
@@ -3,9 +3,9 @@
* @module reducers/frontpage_slides
*/
-import { map } from 'lodash';
+import { map } from "lodash";
-import { GET_DEFAULT_HEADER_IMAGE } from '@eeacms/volto-forests-theme/constants/ActionTypes';
+import { GET_DEFAULT_HEADER_IMAGE } from "@eeacms/volto-forests-theme/constants/ActionTypes";
const initialState = {
error: null,
@@ -23,7 +23,7 @@ const initialState = {
*/
export default function default_header_image(
state = initialState,
- action = {},
+ action = {}
) {
switch (action.type) {
case `${GET_DEFAULT_HEADER_IMAGE}_PENDING`:
diff --git a/src/reducers/folder_header.js b/src/reducers/folder_header.js
index 83ed16a..7808d53 100644
--- a/src/reducers/folder_header.js
+++ b/src/reducers/folder_header.js
@@ -3,7 +3,7 @@
* @module reducers/frontpage_slides
*/
-import { SET_FOLDER_HEADER } from '@eeacms/volto-forests-theme/constants/ActionTypes';
+import { SET_FOLDER_HEADER } from "@eeacms/volto-forests-theme/constants/ActionTypes";
const initialState = {
error: null,
@@ -33,7 +33,7 @@ export default function folder_header(state = initialState, action = {}) {
(action.result.image && action.result.image.download) || null;
const title = action.result.title || null;
const description = action.result.description || null;
- const url = action.result['@id'] || null;
+ const url = action.result["@id"] || null;
return {
...state,
error: null,
diff --git a/src/reducers/folder_tabs.js b/src/reducers/folder_tabs.js
index 68190e7..41fc15a 100644
--- a/src/reducers/folder_tabs.js
+++ b/src/reducers/folder_tabs.js
@@ -1,4 +1,4 @@
-import { SET_FOLDER_TABS } from '@eeacms/volto-forests-theme/constants/ActionTypes';
+import { SET_FOLDER_TABS } from "@eeacms/volto-forests-theme/constants/ActionTypes";
const initialState = {
error: null,
diff --git a/src/reducers/frontpage_slides.js b/src/reducers/frontpage_slides.js
index 7e675f0..bbfdfe0 100644
--- a/src/reducers/frontpage_slides.js
+++ b/src/reducers/frontpage_slides.js
@@ -3,9 +3,9 @@
* @module reducers/frontpage_slides
*/
-import { map } from 'lodash';
+import { map } from "lodash";
-import { GET_FRONTPAGESLIDES } from '@eeacms/volto-forests-theme/constants/ActionTypes';
+import { GET_FRONTPAGESLIDES } from "@eeacms/volto-forests-theme/constants/ActionTypes";
const initialState = {
error: null,
diff --git a/src/reducers/index.js b/src/reducers/index.js
index ebb27f4..70ef2e7 100644
--- a/src/reducers/index.js
+++ b/src/reducers/index.js
@@ -3,15 +3,15 @@
* @module reducers/root
*/
-import defaultReducers from '@plone/volto/reducers';
-import frontpage_slides from '@eeacms/volto-forests-theme/reducers/frontpage_slides';
-import folder_header from '@eeacms/volto-forests-theme/reducers/folder_header';
-import folder_tabs from '@eeacms/volto-forests-theme/reducers/folder_tabs';
-import default_header_image from '@eeacms/volto-forests-theme/reducers/default_header_image';
-import parent_folder_data from '@eeacms/volto-forests-theme/reducers/parent_folder_data';
-import localnavigation from '@eeacms/volto-forests-theme/reducers/localnavigation';
-import navSiteMap from '@eeacms/volto-forests-theme/reducers/sitemap';
-import current_version from '@eeacms/volto-forests-theme/reducers/current_version';
+import defaultReducers from "@plone/volto/reducers";
+import frontpage_slides from "@eeacms/volto-forests-theme/reducers/frontpage_slides";
+import folder_header from "@eeacms/volto-forests-theme/reducers/folder_header";
+import folder_tabs from "@eeacms/volto-forests-theme/reducers/folder_tabs";
+import default_header_image from "@eeacms/volto-forests-theme/reducers/default_header_image";
+import parent_folder_data from "@eeacms/volto-forests-theme/reducers/parent_folder_data";
+import localnavigation from "@eeacms/volto-forests-theme/reducers/localnavigation";
+import navSiteMap from "@eeacms/volto-forests-theme/reducers/sitemap";
+import current_version from "@eeacms/volto-forests-theme/reducers/current_version";
/**
* Root reducer.
diff --git a/src/reducers/localnavigation.js b/src/reducers/localnavigation.js
index 771f4ea..db97d63 100644
--- a/src/reducers/localnavigation.js
+++ b/src/reducers/localnavigation.js
@@ -1,4 +1,4 @@
-import { GET_LOCALNAVIGATION } from '@eeacms/volto-forests-theme/constants/ActionTypes';
+import { GET_LOCALNAVIGATION } from "@eeacms/volto-forests-theme/constants/ActionTypes";
const initialState = {
error: null,
diff --git a/src/reducers/parent_folder_data.js b/src/reducers/parent_folder_data.js
index 7460f03..fda5e91 100644
--- a/src/reducers/parent_folder_data.js
+++ b/src/reducers/parent_folder_data.js
@@ -3,7 +3,7 @@
* @module reducers/frontpage_slides
*/
-import { GET_PARENT_FOLDER_DATA } from '@eeacms/volto-forests-theme/constants/ActionTypes';
+import { GET_PARENT_FOLDER_DATA } from "@eeacms/volto-forests-theme/constants/ActionTypes";
const initialState = {
error: null,
diff --git a/src/reducers/set_folder_header.js b/src/reducers/set_folder_header.js
index bd8c81e..73a6314 100644
--- a/src/reducers/set_folder_header.js
+++ b/src/reducers/set_folder_header.js
@@ -3,7 +3,7 @@
* @module reducers/frontpage_slides
*/
-import { SET_FOLDER_HEADER } from '@eeacms/volto-forests-theme/constants/ActionTypes';
+import { SET_FOLDER_HEADER } from "@eeacms/volto-forests-theme/constants/ActionTypes";
const initialState = {
error: null,
diff --git a/src/reducers/sitemap.js b/src/reducers/sitemap.js
index 2baec88..a1ed85e 100644
--- a/src/reducers/sitemap.js
+++ b/src/reducers/sitemap.js
@@ -4,7 +4,7 @@
*/
import { map } from 'lodash';
-import config from '@plone/volto/registry';
+import { flattenToAppURL } from '@plone/volto/helpers';
//import { GET_NAVIGATION } from '../../constants/ActionTypes';
import { GET_NAVSITEMAP } from '../constants/ActionTypes';
@@ -26,7 +26,7 @@ const initialState = {
function getRecursiveItems(items) {
return map(items, (item) => ({
title: item.title,
- url: item['@id'].replace(config.settings.apiPath, ''),
+ url: flattenToAppURL(item['@id']),
...(item.items && { items: getRecursiveItems(item.items) }),
}));
}
diff --git a/theme/site/collections/menu.overrides b/theme/site/collections/menu.overrides
index 45cd772..1e7555b 100644
--- a/theme/site/collections/menu.overrides
+++ b/theme/site/collections/menu.overrides
@@ -58,7 +58,7 @@
// }
// }
- @media(max-width:1200px) {
+ @media(max-width:800px) {
border-color : transparent !important;
border-radius: 0 !important;
@@ -106,7 +106,7 @@
border-bottom: 1px solid transparent !important;
&:hover {
- @media(min-width: 1200px) {
+ @media(min-width: 800px) {
border-color: #eee !important;
@@ -231,7 +231,7 @@
.item.thirdLevel {
- @media (max-width: 1200px) {
+ @media (max-width: 800px) {
padding-left: 2.5rem;
font-weight : 400;
}
@@ -247,7 +247,7 @@
border-bottom-style: none;
- @media (max-width: 1200px) {
+ @media (max-width: 800px) {
font-weight: 400;
}
@@ -255,7 +255,7 @@
border: none;
}
- @media(min-width: 1200px) {
+ @media(min-width: 800px) {
&:hover {
background: #cc4400;
color : #fff !important;
@@ -305,7 +305,7 @@
display : block;
column-span: all; // ignore two column layout by default
- @media(min-width: 1200px) {
+ @media(min-width: 800px) {
&:hover {
color : @darkOrange !important;
@@ -330,7 +330,7 @@
.navigation .menu>.dropdown.item>.menu {
box-shadow: none;
- @media(min-width: 1200px) {
+ @media(min-width: 800px) {
margin-top: -3px !important;
}
@@ -383,18 +383,26 @@
}
}
-.sticky-outer-wrapper.active .sticky-inner-wrapper .navigation .ui.secondary.pointing.menu>.item.firstLevel {
- margin: 0 12px;
-}
-
.sticky-inner-wrapper {
- z-index: 2;
+ z-index: 10;
}
.logoImageSm {
display: none !important;
}
+@media(max-width: 600px) {
+ .logoImage {
+ height: 65px !important;
+ }
+}
+
+@media(max-width: 450px) {
+ .logoImage {
+ height: 55px !important;
+ }
+}
+
.sticky-outer-wrapper.active {
.logoImage {
display: none !important;
@@ -411,7 +419,7 @@
.sticky-inner-wrapper {
background: @stickyMenuColor;
- @media (max-width: 1200px) {
+ @media (max-width: 800px) {
background: white;
}
@@ -449,18 +457,12 @@
}
.navigation .ui.secondary.pointing.menu>.item {
- &.firstLevel {
- @media(min-width: 1200px) {
- margin: 0 .5rem;
- }
- }
-
>a {
padding: 0;
}
}
- @media(max-width: 1200px) {
+ @media(max-width: 800px) {
.ui.pointing.secondary.stackable.open.menu {
margin-top: 0 !important;
@@ -481,6 +483,16 @@
.logoImageSm {
height: 63px !important;
}
+ @media(max-width: 600px) {
+ .logoImageSm {
+ height: 51px !important;
+ }
+ }
+ @media(max-width: 450px) {
+ .logoImageSm {
+ height: 45px !important;
+ }
+ }
}
}
@@ -488,6 +500,8 @@
+
+
.ui.form .searchbox.field {
display : flex;
align-items: center;
@@ -527,7 +541,7 @@
}
-@media(min-width: 1200px) {
+@media(min-width: 800px) {
.firstLevel:active {
a.firstLevel {
pointer-events: none;
@@ -541,7 +555,7 @@
}
body {
- @media(max-width: 1200px) {
+ @media(max-width: 800px) {
.ui.pointing.secondary.stackable.open.firstLevel.menu {
z-index: 100;
}
diff --git a/theme/site/extras/blocks.less b/theme/site/extras/blocks.less
index 0cd8297..bdc4e4d 100644
--- a/theme/site/extras/blocks.less
+++ b/theme/site/extras/blocks.less
@@ -139,17 +139,17 @@
body .ui.wrapper > .block.align.full,
body.has-toolbar.has-sidebar .ui.wrapper > .ui.inner .block.align.full,
body.has-toolbar-collapsed.has-sidebar
-.ui.wrapper
-> .ui.inner
-.block.align.full,
+ .ui.wrapper
+ > .ui.inner
+ .block.align.full,
body.has-toolbar-collapsed.has-sidebar-collapsed
-.ui.wrapper
-> .ui.inner
-.block.align.full,
+ .ui.wrapper
+ > .ui.inner
+ .block.align.full,
body.has-toolbar.has-sidebar-collapsed
-.ui.wrapper
-> .ui.inner
-.block.align.full {
+ .ui.wrapper
+ > .ui.inner
+ .block.align.full {
width: 100% !important;
iframe {
@@ -164,8 +164,8 @@ body.has-toolbar.has-sidebar-collapsed
body.has-toolbar.has-sidebar .ui.wrapper > .ui.inner.block.full,
body.has-toolbar-collapsed.has-sidebar .ui.wrapper > .ui.inner.block.full,
body.has-toolbar-collapsed.has-sidebar-collapsed
-.ui.wrapper
-> .ui.inner.block.full,
+ .ui.wrapper
+ > .ui.inner.block.full,
body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full {
width: 100% !important;
@@ -373,8 +373,8 @@ body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full {
// margin-top: -21px;
top: -2px;
padding: 0;
- margin-bottom: 0;
border: none;
+ margin-bottom: 0;
-webkit-box-shadow: none;
box-shadow: none;
color: #b8c6c8 !important;
@@ -455,8 +455,8 @@ body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full {
.callout {
padding: 1em;
- margin: 1rem 0;
border: 1px solid rgba(34, 36, 38, 0.15);
+ margin: 1rem 0;
border-radius: 0.28571429rem;
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
}
@@ -471,8 +471,8 @@ body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full {
.separator {
display: inline-block;
height: 24px;
- margin: 0 0 4px 4px;
border-right: 1px solid #ddd;
+ margin: 0 0 4px 4px;
vertical-align: bottom;
}
diff --git a/theme/site/extras/toolbar.less b/theme/site/extras/toolbar.less
index 67f3787..2ecaac6 100644
--- a/theme/site/extras/toolbar.less
+++ b/theme/site/extras/toolbar.less
@@ -235,7 +235,7 @@
}
.toolbar-content {
- z-index: 3;
+ z-index: 12;
box-shadow: 0 1px 2px 0 #c7d5d8;
overflow-y: auto;
}
diff --git a/theme/site/globals/site.overrides b/theme/site/globals/site.overrides
index 39d61bd..c5386d6 100644
--- a/theme/site/globals/site.overrides
+++ b/theme/site/globals/site.overrides
@@ -116,6 +116,90 @@ body.has-toolbar {
}
}
+.header-image-big {
+ height: 600px !important;
+}
+
+.lead-mobile-nav {
+ z-index: 1;
+ position: absolute;
+ left: 0;
+ bottom: 2px;
+ width: 95%;
+ left: auto;
+
+ .nav-items-container{
+ display: flex;
+ flex-direction: column;
+ }
+
+ .active-mobile-nav{
+ color:#cd4200 !important;
+ background: white !important;
+ }
+
+ .lead-nav-item{
+ text-decoration: none;
+ text-align: center;
+ color:#554535;
+ font-size: 16px;
+ font-weight: bold;
+ padding: 12px 20px;
+ background-color: #f7f7f5;
+ margin: 2px 0;
+ border-radius: 3px;
+
+ cursor: pointer;
+ }
+
+ .lead-nav-item:hover{
+ color:#cd4200;
+ background: white;
+ box-shadow: 0 0 10px 0 #cd4200;
+ }
+}
+
+.header-navigation-lead {
+ z-index: 1;
+ position: absolute;
+ left: 5px;
+ bottom: 0;
+ color: white;
+ display: flex;
+
+ .active-lead-nav{
+ color:#cd4200 !important;
+ background: white !important;
+
+ box-shadow: 0 -1px 10px 0 #cd4200;
+ }
+
+ .lead-navigation-item{
+ text-decoration: none;
+
+ color:#554535;
+ font-size: 16px;
+ font-weight: bold;
+
+ padding: 12px 20px;
+
+ background-color: #f7f7f5;
+
+ margin: 0 2px;
+ border-radius: 3px 3px 0 0;
+
+ border: 2px solid #f7f7f5;
+ cursor: pointer;
+}
+
+ .lead-navigation-item:hover{
+ color:#cd4200;
+ background: white;
+
+ box-shadow: 0 -1px 10px 0 #cd4200;
+ }
+}
+
.header-image-wrapper {
position: relative;
height: 280px;
@@ -125,6 +209,15 @@ body.has-toolbar {
align-items: center;
flex-direction: column;
+ .header-meta-data {
+ z-index: 1;
+ position: absolute;
+ top: 35px;
+ right: 20px;
+ background: #f7f7f5;
+ padding: 5px 15px;
+}
+
.header-image {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
@@ -172,7 +265,7 @@ body.has-toolbar {
}
}
-.search {
+.search-widget {
display: flex;
justify-content: flex-end;
&.mobileSearch {
@@ -187,8 +280,43 @@ body.has-toolbar {
> div {
width: 100%;
}
+
+ @media(min-width: @largestMobileScreen){
+ margin-top: 75px;
+ }
+ }
+ }
+
+ &.bigSearch {
+ padding-top:20px;
+ @media(max-width: 1300px) {
+ display: none !important;
+ }
+ }
+
+ &.smallSearch {
+ float:right;
+
+ > svg {
+ border: 0;
+ background-color: transparent;
+ cursor: pointer;
+ position: relative;
+ margin-top: 10px;
+ @media (max-width: 1200px) {
+ margin-top: 15px;
+ }
+ }
+
+ @media(min-width: 1300px) {
+ display: none !important;
+ }
+
+ @media(max-width: @largestMobileScreen) {
+ display: none !important;
}
}
+
.searchbox {
.floating_search_results {
padding: 1rem 0.5rem;
@@ -1574,6 +1702,10 @@ span.float-right {
margin-top: auto;
}
+ a:nth-of-type(1) span.discreet {
+ color: #047a79 !important;
+ }
+
.map-wrapper {
border: 1px solid @darkGreen;
border-radius: 5px;
@@ -2298,6 +2430,11 @@ main {
border: none;
}
+ .article-header {
+ display: flex;
+ justify-content: space-between;
+ }
+
.article-headline {
display: inline-block;
align-items: center;
@@ -2353,6 +2490,16 @@ main {
}
}
+ &:not(.portlet) {
+ article {
+ padding: 2rem 0;
+
+ .article-body .meta-data {
+ margin-bottom: 1rem;
+ }
+ }
+ }
+
.ui.pagination.menu {
max-width: 800px;
margin: 0 auto;