Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Print styles #77

Merged
merged 11 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ export default function applyConfig(config) {
// ...config.portlets,
// };

config.editForms = {
...config.editForms,
};

config.settings.slate = config.settings.slate || {};
config.settings.slate.styleMenu = config.settings.slate.styleMenu || {};
config.settings.slate.styleMenu.inlineStyles = [
Expand Down
3 changes: 3 additions & 0 deletions src/localconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,5 +245,8 @@ export function applyConfig(config) {
// 'templated_country_factsheet',
// 'basic_data_factsheet',
// ];

Object.preventExtensions(config);

return config;
}
240 changes: 217 additions & 23 deletions theme/site/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -2265,6 +2265,8 @@ main {

blockquote {
page-break-inside: avoid;
box-shadow: none !important;
border: none !important;
}

h1,
Expand Down Expand Up @@ -2296,9 +2298,7 @@ main {
.thematic-areas {
page-break-before: always;
}
}

#main.print {
.ui.container {
position: relative !important;
display: block !important;
Expand All @@ -2307,6 +2307,29 @@ main {
padding: 0 !important;
margin: 0 !important;
float: none !important;

p {
text-align: left !important;
}
}

.ui.secondary.vertical.segment.breadcrumbs,
.ui.secondary.vertical.segment.breadcrumbs:not(aside .ui.vertical.segment.breadcrumbs) {
display: inline !important;
width: 100vw !important;
padding: 0 !important;

.breadcrumb {
display: inline !important;
background: transparent !important;

.section {
color: #cd4200 !important;
}
.active.section {
font-weight: 700;
}
}
}

.columns-view {
Expand Down Expand Up @@ -2359,16 +2382,58 @@ main {
background: #fff;
}

.header-bg {
display: none;
}

.slider-wrapper, .extra-header {
display: none;
}

.header-image-big {
height: auto !important;
padding: 40px 10px 10px 10px !important;
}

.logo-nav-wrapper .logoImage.tablet,
.logo-nav-wrapper .logoImageSm.tablet {
display: none !important;
}

.sticky-outer-wrapper.active .sticky-inner-wrapper .logo .logoImageSm {
height: 80px !important;
}

.logoImage {
@media (max-width: 600px) {
height: 80px !important;
}
}

.sticky-outer-wrapper .logo {
display: flex;
margin: 1rem 0 !important;
}

.sticky-outer-wrapper .logo-nav-wrapper .logo:after,
.sticky-outer-wrapper.active .logo-nav-wrapper .logo:after {
content: 'Forest Information System for Europe';
color: #058373;
font-size: 20px;
font-weight: 700;
margin: 1.5rem 0 0 1rem;
max-width: 210px;
}

.header-bg.contentpage,
.ui.breadcrumbs,
.placeholder.header-image {
display: none !important;
}

.header-image-wrapper {
height: auto;
align-items: start;
padding: 0 10px;
padding: 40px 10px !important;

.header-image {
width: 756px;
Expand All @@ -2380,30 +2445,26 @@ main {
}

.header-image-content {
h1 {
margin: 0 !important;
color: #000 !important;
text-align: left !important;
h1, p {
margin: 0;
color: #464b0b;
text-align: left;
}
}

p {
margin: 0 !important;
color: #000 !important;
text-align: left !important;
}
.header-meta-data {
display: none;
}
}

.sticky-outer-wrapper,
.sticky-inner-wrapper {
position: relative !important;
width: 100% !important;
width: auto !important;
height: auto !important;
background: transparent;
box-shadow: none;
@media (max-width: 1200px) {
top: 75px !important;
}
background: transparent !important;
box-shadow: none !important;
transform: none !important;
}

.sticky-inner-wrapper {
Expand All @@ -2420,10 +2481,33 @@ main {
}
}
}
}

.header-navigation-lead {
display: none;
}

.lead-mobile-nav {

.lead-nav-item {
background: transparent;
box-shadow: none;
border: none;
overflow: initial;
text-overflow: initial;
padding: 0;
width: auto !important;
font-size: 20px;

.lead-nav-icon {
display: none;
}
}
}

}

.footerWrapper {
display: none !important;
display: none;
}

.react-grid-layout {
Expand Down Expand Up @@ -2459,20 +2543,130 @@ main {
}
}

.homepage-button {
display: none;
}

.thematic-areas {
width: 756px !important;
padding: 0 !important;
margin: 0 !important;
background: #fff !important;
}

.svg-container {
width: 100%;
.simple-data-table {
display: block;
padding: 0 1em;
overflow-x: visible;
margin-left: -30px;
}

.image, img {
width: 80% !important;
height: auto;
}

.ui.table {
thead, thead th {
background-color: transparent !important;
color: #000000 !important;
}

tr {
th {
border-bottom: none !important;

&:not(:first-child) {
border-right: 1px solid #e8e8e8 !important;
}

&.right:last-child {
border-right: none !important;
}

}

td {
border-top: 1px solid #e8e8e8 !important;
border-bottom: none !important;

&:not(:first-child) {
border-right: 1px solid #e8e8e8 !important;
}

&.right:last-child {
border-right: none !important;
}
}
}
}

#page-document {
.styled-with-bg {
background-color: transparent !important;
.styled-columnsBlock {
padding: 0 !important;
}
}
}

.simple-data-table .colored-table table tbody:after {
display: none;
}

.drop-shadow-block,
.drop-shadow-tile {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}

body:not(.has-toolbar):not(.has-sidebar):not(.has-toolbar-collapsed):not(.has-sidebar-collapsed) .content-area main {
padding: 1rem 40px !important;
}

.margin-block-10 {
margin: 0 !important;
}

.padding-block-10 {
padding: 0 !important;
}

.print-button {
display: none;
}

.embed-visualization {
page-break-inside: avoid !important;
//page-break-after: always !important;

.svg-container {
display: block;
width: 100%;
}

.download-button {
display: none;
}
}

.connected-chart-wrapper {
overflow: initial !important;
}

.privacy-protection-wrapper {
min-height: 100% !important;
width: 100% !important;
}

.columns-view > .grid.column-grid > .column.column-blocks-wrapper {
display: block !important;
}

.columns-view > .grid.column-grid > .column.column-blocks-wrapper > div {
display: block !important;
}
}

.print-button {
Expand Down