diff --git a/FullEditorUpgrade/cs/FullEditorUpgrade.css b/FullEditorUpgrade/cs/FullEditorUpgrade.css new file mode 100644 index 0000000..bd3e1d1 --- /dev/null +++ b/FullEditorUpgrade/cs/FullEditorUpgrade.css @@ -0,0 +1,19 @@ + div { + background-color: #17a2b8; + } + + H4 { + background-color: red; + } + + p { + background-color: #3a17b8; + } + + button { + background-color: #1798b8; + } + + .test_cls { + background-color: green; + } \ No newline at end of file diff --git a/FullEditorUpgrade/js/FullEditorUpgrade.js b/FullEditorUpgrade/js/FullEditorUpgrade.js new file mode 100644 index 0000000..be2e802 --- /dev/null +++ b/FullEditorUpgrade/js/FullEditorUpgrade.js @@ -0,0 +1,55 @@ +tinymce.PluginManager.add('am_add_button10_CP', function (editor, url) { + // Add a button that opens a window + editor.addButton('am_add_button10_CP', { + text: 'am_add_button10_CP', + icon: false, + onclick: function () { + var content = tinymce.activeEditor.getContent(); + var btn = document.createElement("button"); + editor.insertContent('

'); + btn.className = "test_cls"; + btn.value = "from js"; + document.appendChild(btn); + + } + }); + + // Adds a menu item to the tools menu + editor.addMenuItem('am_add_button10_CP', { + text: 'AddButton4', + context: 'tools', + onclick: function () { + var btn = document.createElement("button"); + editor.insertContent('

'); + editor.insertContent('

'); + debugger; + btn.className = "test_cls"; + btn.value = "from js"; + + $("#breadcrumbs").html("") + } + }); + + editor.addMenuItem('am_add_button10_CP', { + text: 'AddButton5', + context: 'tools', + onclick: function () { + + + $("#breadcrumbs").html("") + } + }); + + return { + getMetadata: function () { + return { + name: "am_add_button10_CP" + }; + } + }; +}); +tinymce.init({ + selector: 'textarea', + plugins: 'am_add_button10_CP', + toolbar: 'am_add_button10_CP' +}); \ No newline at end of file diff --git a/README.md b/README.md index b2577ac..b449e71 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,74 @@ # T4-SDK The software development repository for Terminal Four in the CSO + +## Structure of Project + +**high_chart_fix** +: Solution to printing highcharts without truncating the side. +This fix replaces the interactive chart with an svg when printing by ctrl+p or when called explicitly by adding ?export2pdf to the end of the url + +**html2image** +: add a wrapper around a block of code (e.g. infobyte or mini visualisation) to add a download symbol which offers a download of jpg, png or svg + +**html2pdf** +: add a wrapper around a block of code to add a download symbol which offers a pdf download +After the chart has been fixed, 'export2pdf_completed' has been applied. This can be used from backend side to detect when process has been finished. + +**t4_media** +: this library contains the T4 assets of the website +| directory | assets | +| --------- | ------ | +| css | media library extracted js | +| - core | universal | +| - module | feature-specific | +| --------- | ------ | +| from_db | | +| - blank | | +| - html | | +| - html_old_ver | | +| - js | multi-use scripts extracted from page layouts | +| - non-automated | | +| --------- | ------ | +| html | | +| - content_type | extracted and synced content types | +| - layout | extracted and synced page layouts | +| -- landing pages | 1:1 layouts used for a single page | +| -- templates | layouts used for multiple pages | +| -- themes | themed areas of the site e.g. surveys and careers | +| - ManuallyAdded | Added after the initial extraction | +| -- Extracted | Refactoring assets | +| -- megaNav | Meganav POC assets | +| --------- | ------ | +| includes | reusable code included via navigation objects | +| - manually_edited | new includes for Refactor | +| --------- | ------ | +| js | media library extracted js files | + +**t4-sdk-bootstrap** +: local bootstrap assets create db using this method: +How to do prefix: +Notepad++ +find:(\.)([a-zA-Z]+[-][a-zA-Z]+[-]?[a-zA-Z]*) +replace:$1t4-sdk-$2 +It adds t4-sdk- prefix to .css class. +There is no local bootstrap.js , t4-sdk-megaNav.js is used to create meganav functionality + +**includes.html** +: Working file helps to create includes related with this project using VS Code formatting + +**megaNav** +: Changes related with content of megaNav, should be pasted here: +https://test-t4.cso.ie/terminalfour/page/content#edit/47688/360608 + +**FullEditorUpgrade** +:Custom TinyMCE plugin +https://test-t4.cso.ie/terminalfour/page/htmleditorconfig#htmleditors + +**https://dev-incubator.cso.ie/t4sdk/t4helper/client/t4_helper.html** + +ReadMe file : Z:\t4sdk\t4helper\readme\readme.txt +ReadMe file : Z:\t4sdk\t4helper\readme\readme.txt + + +**source code for C# for T4Helper** +Z:\t4sdk\T4_MetaData \ No newline at end of file diff --git a/html2image/js/html2image.library.js b/html2image/js/html2image.library.js index 778ec6e..8e33580 100644 --- a/html2image/js/html2image.library.js +++ b/html2image/js/html2image.library.js @@ -1,4 +1,3 @@ - //#region Add Namespace var t4Sdk = t4Sdk || {}; t4Sdk.html2image = t4Sdk.html2image || {}; @@ -17,26 +16,26 @@ t4Sdk.html2image.svg = "Download SVG"; //Executes export to image on user click -t4Sdk.html2image.download = function (e) { - var list = e.target.parentElement; - if (list.div2export) { - e.target.parentElement.icon.className = "fa fa-solid fa-spinner fa-pulse"; - t4Sdk.html2image.active_mode = false; - list.div2export.style.margin = "0"; - list.div2export.style.padding = "0"; - t4Sdk.html2image.fnExport(list.div2export, e.target.innerHTML, e.target.parentElement.icon); +t4Sdk.html2image.download = function(e) { + var list = e.target.parentElement; + if (list.div2export) { + e.target.parentElement.icon.className = "fa fa-solid fa-spinner fa-pulse"; + t4Sdk.html2image.active_mode = false; + list.div2export.style.margin = "0"; + list.div2export.style.padding = "0"; + t4Sdk.html2image.fnExport(list.div2export, e.target.innerHTML, e.target.parentElement.icon); - } else if (t4Sdk.html2image.active_mode) - alert("No Element with class:dashboard-snapshot to export as Image!"); -} -//Creates image from html -t4Sdk.html2image.fnExport = function (tgt, type, icon) { + } else if (t4Sdk.html2image.active_mode) + alert("No Element with class:dashboard-snapshot to export as Image!"); + } + //Creates image from html +t4Sdk.html2image.fnExport = function(tgt, type, icon) { tgt.style.backgroundColor = "white"; var opt = { "bgcolor": tgt.style.backgroundColor }; switch (type) { case t4Sdk.html2image.png: domtoimage.toPng(tgt, opt) - .then(function (dataUrl) { + .then(function(dataUrl) { const link = document.createElement('a'); link.href = dataUrl; t4Sdk.html2image.file_index += 1; @@ -49,13 +48,13 @@ t4Sdk.html2image.fnExport = function (tgt, type, icon) { tgt.style.margin = null; tgt.style.padding = null; }) - .catch(function (error) { + .catch(function(error) { console.error('oops, something went wrong!', error); }); break; case t4Sdk.html2image.svg: domtoimage.toSvg(tgt, opt) - .then(function (dataUrl) { + .then(function(dataUrl) { const link = document.createElement('a'); link.href = dataUrl; t4Sdk.html2image.file_index += 1; @@ -68,14 +67,14 @@ t4Sdk.html2image.fnExport = function (tgt, type, icon) { tgt.style.margin = null; tgt.style.padding = null; }) - .catch(function (error) { + .catch(function(error) { console.error('oops, something went wrong!', error); }); break; case t4Sdk.html2image.jpg: domtoimage.toJpeg(tgt, opt) - .then(function (dataUrl) { + .then(function(dataUrl) { const link = document.createElement('a'); link.href = dataUrl; t4Sdk.html2image.file_index += 1; @@ -88,7 +87,7 @@ t4Sdk.html2image.fnExport = function (tgt, type, icon) { tgt.style.margin = null; tgt.style.padding = null; }) - .catch(function (error) { + .catch(function(error) { console.error('oops, something went wrong!', error); }); break; @@ -96,64 +95,77 @@ t4Sdk.html2image.fnExport = function (tgt, type, icon) { }; //Converts Base64 to Blob- much slower t4Sdk.html2image.b64toBlob = (b64Data, contentType = '', sliceSize = 512) => { - const byteCharacters = window.atob(b64Data); - const byteArrays = []; - for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) { - const slice = byteCharacters.slice(offset, offset + sliceSize); - const byteNumbers = new Array(slice.length); - for (let i = 0; i < slice.length; i++) { - byteNumbers[i] = slice.charCodeAt(i); + const byteCharacters = window.atob(b64Data); + const byteArrays = []; + for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) { + const slice = byteCharacters.slice(offset, offset + sliceSize); + const byteNumbers = new Array(slice.length); + for (let i = 0; i < slice.length; i++) { + byteNumbers[i] = slice.charCodeAt(i); + } + const byteArray = new Uint8Array(byteNumbers); + byteArrays.push(byteArray); + } + const blob = new Blob(byteArrays, { type: contentType }); + return blob; + } + //Converts Base64 to Blob- much faster +t4Sdk.html2image.dataURItoBlob = function(dataURI) { + const byteString = window.atob(dataURI); + const arrayBuffer = new ArrayBuffer(byteString.length); + const int8Array = new Uint8Array(arrayBuffer); + for (let i = 0; i < byteString.length; i++) { + int8Array[i] = byteString.charCodeAt(i); } - const byteArray = new Uint8Array(byteNumbers); - byteArrays.push(byteArray); + const blob = new Blob([int8Array], { type: 'application/pdf' }); + return blob; } - const blob = new Blob(byteArrays, { type: contentType }); - return blob; -} -//Converts Base64 to Blob- much faster -t4Sdk.html2image.dataURItoBlob = function (dataURI) { - const byteString = window.atob(dataURI); - const arrayBuffer = new ArrayBuffer(byteString.length); - const int8Array = new Uint8Array(arrayBuffer); - for (let i = 0; i < byteString.length; i++) { - int8Array[i] = byteString.charCodeAt(i); + //Enumerates elements marked for export as images +t4Sdk.html2image.addListItem = function(div, item_text) { + var span = document.createElement("div"); + span.innerHTML = item_text; + span.className = "custom_dd"; + span.addEventListener("click", t4Sdk.html2image.download); + div.appendChild(span); } - const blob = new Blob([int8Array], { type: 'application/pdf' }); - return blob; -} -//Enumerates elements marked for export as images -t4Sdk.html2image.addListItem = function (div, item_text) { - var span = document.createElement("div"); - span.innerHTML = item_text; - span.className = "custom_dd"; - span.addEventListener("click", t4Sdk.html2image.download); - div.appendChild(span); -} -//shows context menu -t4Sdk.html2image.fnContextMenu = function (iDiv, el, icon) { - var list = document.createElement("div"); - list.div2export = el; - list.icon = icon; - list.style.position = "absolute"; - list.className = "custom_list"; - list.style.width = "130px"; - list.style.background = "white"; - list.style.display = "none"; - t4Sdk.html2image.addListItem(list, t4Sdk.html2image.jpg); - cnt++; - t4Sdk.html2image.addListItem(list, t4Sdk.html2image.png); - t4Sdk.html2image.addListItem(list, t4Sdk.html2image.svg); - var rct = iDiv.getBoundingClientRect(); - var lsty = T4SDK_HTML2IMAGE_FIX_Y_POSITION_PX + rct.y + rct.height + window.scrollY; - var lstx = rct.x + rct.width - T4SDK_HTML2IMAGE_FIX_X_POSITION_PX; - list.style.left = lstx + "px"; - list.style.top = lsty + "px"; - iDiv.exportList = list; - iDiv.addEventListener("click", t4Sdk.html2image.showContextMenu);; - document.body.appendChild(list); -} -//enumerates elements which needs to be converted -t4Sdk.html2image.enumSaveAsImage = function (e) { + //missed in refactoring 22/5/2023 +t4Sdk.html2image.showContextMenu = function(e) { + var tgt = e.target.parentElement; + var lst = tgt.exportList; + if (t4Sdk.html2image.openedList && lst != t4Sdk.html2image.openedList) { + t4Sdk.html2image.openedList.style.display = "none"; + } + t4Sdk.html2image.openedList = lst; + if (lst.style.display == "none") + lst.style.display = "block"; + else + lst.style.display = "none"; + } + //shows context menu +t4Sdk.html2image.fnContextMenu = function(iDiv, el, icon) { + var list = document.createElement("div"); + list.div2export = el; + list.icon = icon; + list.style.position = "absolute"; + list.className = "custom_list"; + list.style.width = "130px"; + list.style.background = "white"; + list.style.display = "none"; + t4Sdk.html2image.addListItem(list, t4Sdk.html2image.jpg); + //cnt++; + t4Sdk.html2image.addListItem(list, t4Sdk.html2image.png); + t4Sdk.html2image.addListItem(list, t4Sdk.html2image.svg); + var rct = iDiv.getBoundingClientRect(); + var lsty = T4SDK_HTML2IMAGE_FIX_Y_POSITION_PX + rct.y + rct.height + window.scrollY; + var lstx = rct.x + rct.width - T4SDK_HTML2IMAGE_FIX_X_POSITION_PX; + list.style.left = lstx + "px"; + list.style.top = lsty + "px"; + iDiv.exportList = list; + iDiv.addEventListener("click", t4Sdk.html2image.showContextMenu);; + document.body.appendChild(list); + } + //enumerates elements which needs to be converted +t4Sdk.html2image.enumSaveAsImage = function(e) { var children = document.getElementsByClassName("html2image_container"); for (var i = 0; i < children.length; i++) { var el = children[i]; @@ -163,8 +175,7 @@ t4Sdk.html2image.enumSaveAsImage = function (e) { if (el.children.length == 1) { ex_el = el.children[0]; - } - else { + } else { alert("The object number:" + (i + 1) + ", must have only one child!"); throw new Error("The object must have only one child!"); } @@ -202,4 +213,4 @@ t4Sdk.html2image.enumSaveAsImage = function (e) { if (t4Sdk.html2image.loadEventAttached == null) { t4Sdk.html2image.loadEventAttached = true; window.addEventListener("load", t4Sdk.html2image.enumSaveAsImage); -} +} \ No newline at end of file diff --git a/html2pdf/js/html2pdf.library.js b/html2pdf/js/html2pdf.library.js index 0c0ca0f..ea7baa6 100644 --- a/html2pdf/js/html2pdf.library.js +++ b/html2pdf/js/html2pdf.library.js @@ -14,6 +14,7 @@ t4Sdk.html2pdf.disableHrefs = function (e) { var ch = document.getElementById(T4SDK_HTML2PDF_MAIN_DIV_ID); t4Sdk.html2pdf.downloadSelectionUL = ch; if (ch) { + ch.style.backgroundColor = null; ch.classList.add("moduleBody"); for (var i = 0; i < ch.children.length; i++) { var cbox = ch.children[i]; @@ -83,6 +84,8 @@ t4Sdk.html2pdf.callApiRead = function (input, callback = t4Sdk.html2pdf.callApiR t4Sdk.html2pdf.fnExportPDF = function (inp) { var toSend = { "urls": inp, + "htmlIdForMasterHeader":"pageHeaderRow", + "htmlIdsToCut":["pageHeaderRow"], "chromeCommandLineOptions": [ "headless", "disable-gpu", @@ -96,6 +99,7 @@ t4Sdk.html2pdf.fnExportPDF = function (inp) { }, "returnType": "base64String" }; + var url = "https://pdf.cso.ie/api.jsonrpc"; var inp2 = { "jsonrpc": "2.0", "method": T4SDK_HTML2PDF_PDF_SERVICE_METHOD_NAME, "params": toSend }; t4Sdk.html2pdf.callApiRead(inp2, t4Sdk.html2pdf.callApiReadCallback, url); diff --git a/poc copy.html b/poc copy.html deleted file mode 100644 index de831a9..0000000 --- a/poc copy.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - - - - - -
-
Created with Highcharts 9.3.3Chart context menuSource: CSO Ireland18-2425-3435-4445-5455-6465 years and overHighcharts.com - Figure 4.2 Adult experience of non-consensual sexual intercourse by sex and age group1, 2022 - 1 Age group refers to the person's age when they responded to the survey. -
-
-
-
Male
-
Female
-
-
-
-
0 - 2 - 4 - 6 - 8 - 10 - 12 - 14 - 16 - 18 - 20 - 22 - 24 - 26 - 28 - 30 - 32 -
-
% of persons aged 18 years and over
- -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
X-axis labelMaleFemale
18-24321
25-34629
35-44322
45-54419
55-64313
65 years and over17
- - -
- - - - - - - - \ No newline at end of file diff --git a/poc.html b/poc.html deleted file mode 100644 index 3fad6f6..0000000 --- a/poc.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - -
-
-
-
- - Manufacturing: Foreign Sectors - -
-
- -
-
- -
-
-
- - - - - - - - - - - - \ No newline at end of file diff --git a/t4-sdk-bootstrap/megaNav.html b/t4-sdk-bootstrap/megaNav.html index 73e705f..063c157 100644 --- a/t4-sdk-bootstrap/megaNav.html +++ b/t4-sdk-bootstrap/megaNav.html @@ -1,667 +1,1013 @@ - - - - - - - - - - ver 4 +
+ + +
-
-
-
-
-
-
-
-
-
- +
+ + + + + + + + + + + + + + - - - - \ No newline at end of file + \ No newline at end of file diff --git a/t4_media/css/core/layout.css b/t4_media/css/core/layout.css index d0cffee..65c3421 100644 --- a/t4_media/css/core/layout.css +++ b/t4_media/css/core/layout.css @@ -242,10 +242,12 @@ a:active { padding-left: 6px; color: inherit; } - +/* all variations meet WCAG AA */ .btn.pink { background-color: #d3205c; } .btn.purple { background-color: #35456B; } .btn.blue-grey { background-color: #6a7884; } +.btn.teal-blue { background-color: #007a90; } +.btn.mid-purple { background-color: #4f6497; } /* style a standalone button */ .section-button { @@ -1191,6 +1193,13 @@ padding-bottom: 0px !important; color: #ffffff; } +.footer p a { + color: #fff; +} +.footer p a:hover { + text-decoration: none; +} + .footer h2 { margin: 20px 0px; color: #85dbda; @@ -1398,12 +1407,10 @@ form.general input[type="submit"] { } .copy h5 { - font-size: 14px; + font-size: 16px; font-weight: 700; margin: 10px 0 10px; color: #07101a; - text-transform: uppercase; - letter-spacing: 1px; } .copy h6 { @@ -2341,16 +2348,33 @@ margin-bottom: 20px; font-weight: 400; margin-top: 1.5rem; } - h3.pub-findings-header.heading--mint { - background-color: #daf2e9; + h3.pub-findings-header.heading--mint { + background-color: #E6F2F2; } - .release-key-findings > h3.pub-findings-header { - margin: -1rem -1rem 0; - } - .press-key-findings h3.pub-findings-header { - background-color: #006f74; - color: #fff; - padding: 1.25rem 1rem; + h3.pub-findings-header.heading--purple { + background-color: #dae0f2; + } + .release-key-findings > h3.pub-findings-header, + .press-key-findings > .pub-findings-header-block { + margin: -1rem -1rem 0; + } + .press-key-findings > h3.pub-findings-header, + .press-key-findings .pub-findings-header-block { + background-color: #006f74; + color: #fff; + padding: 1.25rem 1rem; + } + .press-key-findings .pub-findings-header-block h3 { + color: #fff; + font-size: 21px; + font-weight: 400; + margin: 0 0 0.25rem; + } + .press-key-findings .pub-findings-header-block h4 { + color: #fff; + font-size: 18px; + font-weight: 300; + margin: 0; } .pub-findings-block h3.pub-findings-header { background-color: #283F73; @@ -2508,37 +2532,93 @@ margin-bottom: 20px; /* -- end advisory notification styles -- */ -/* -- related visualisation card -- */ - .related-viz-card { - background: #EDF9F9; - padding: 15px; - margin: 1rem 0; - display: flex; - flex-direction: row; - justify-content: flex-start; - flex-wrap: wrap; - align-items: flex-end; +.related-viz-card { + background: #F2F7Fa; + padding: 1rem; + margin: 2rem 0; + display: grid; + grid-template-columns: 1fr; + row-gap: 0.5rem; + } + @media screen and (min-width: 768px) and (max-width: 1023px) { + .related-viz-card { + grid-template-columns: 1.5fr 1fr; + grid-template-rows: 3fr 2fr; + column-gap: 1rem; + row-gap: 0.5rem; + align-items: end; + justify-content: space-around; + } + } + @media screen and (min-width: 1024px) and (max-width: 1200px) { + .related-viz-card { + grid-template-columns: 1fr; + row-gap: 0.5rem; + } + } + @media screen and (min-width: 1200px) { + .related-viz-card { + grid-template-columns: auto 1fr; + grid-template-rows: 1fr auto; + column-gap: 1rem; + row-gap: 0.5rem; + align-items: end; + justify-content: space-around; + } + } + + @media screen and (min-width: 768px) and (max-width: 1023px) { + .related-viz-img { + grid-area: 1 / 1 / 3 / 2; + } + } + + @media screen and (min-width: 1200px) { + .related-viz-img { + grid-area: 1 / 1 / 3 / 2; + } + } + + @media screen and (min-width: 768px) and (max-width: 1023px) { + .related-viz-body { + grid-area: 1 / 2 / 2 / 3; } - .related-viz-img { - margin-right: 25px; + } + + @media screen and (min-width: 1200px) { + .related-viz-body { + grid-area: 1 / 2 / 2 / 3; } + } + + @media screen and (min-width: 768px) and (max-width: 1023px) { + .related-viz-cta { + grid-area: 2 / 2 / 3 / 3; + } + } + + @media screen and (min-width: 1200px) { + .related-viz-cta { + grid-area: 2 / 2 / 3 / 3; + } + } + h4.related-viz-label { font: bold normal 20px/130% 'Roboto Slab', Tahoma, Georgia, serif; } moduleBody p.related-viz-sub-head, p.related-viz-sub-head { - font: normal 300 18px/130% 'Roboto Slab', Tahoma, Georgia, serif; + font: normal 400 16px/130% 'Roboto', Arial, Helvetica, sans-serif; padding: 0; color: #384350; } a.related-viz-link { font: normal 400 16px/115% "Roboto", Arial, Helvetica, sans-serif; display: inline-block; - margin-top: 10px; padding: 10px; text-transform: lowercase; text-decoration: none; - background: #0099B4; + background: #008482; color: #fff; border-radius: 3px; } @@ -2585,14 +2665,22 @@ margin-bottom: 20px; margin: 0; } .int-pub-header.pub-header-press-statement h2 { + color: #006168; + font-size: 25px; +} + +.int-pub-header.pub-header-press-statement h4 { color: #1d345c; + font-weight: 400; + font-size: 18px; + text-transform: uppercase; + margin-bottom: 1rem; } + .int-pub-header.pub-header-press-statement h3 { color: #283f73; - font-weight: 800; - font-size: 20px; - text-transform: uppercase; - margin-bottom: 0.5rem; + font-weight: 400; + font-size: 22px; } .int-pub-body-block { @@ -3171,6 +3259,7 @@ text-decoration:none; -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; + justify-content: center; width: 100%; } @@ -3179,6 +3268,8 @@ text-decoration:none; display: -ms-flexbox; display: flex; margin-right: -1px; + flex: 2 1 0; + justify-content: flex-end; } .widget-toggle-input-group>.widget-toggle-input-group-prepend>.widget-toggle-input-group-text { @@ -3198,12 +3289,12 @@ text-decoration:none; /* font-size: 1.25rem; */ font-weight: 400; line-height: 1.5; - color: #3D454C; + color: #fff; font-weight: bold; text-align: center; white-space: nowrap; - background-color: #fff; - border: 1px solid #8697A6; + background-color: #35456B; + border: none; border-radius: 0.3rem; } @@ -3222,7 +3313,7 @@ position: relative; .widget-toggle-wrapper .select2-container { width: auto !important; - flex: 1 1 auto !important; + flex: 3 1 0 !important; } .widget-toggle-wrapper .select2-container .select2-selection--single { @@ -3245,10 +3336,23 @@ border: 1px solid #8697A6 !important; .widget-toggle-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 0px !important; } + +/* override the library styling to increase the dropdown arrow prominence */ +.select2-container--default .select2-selection--single .select2-selection__arrow b { + border-color: #5F6A73 transparent transparent transparent !important; + border-width: 8px 7px 0 7px !important; + margin-left: -9px !important; + margin-top: -4px !important; +} + +.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { + border-color: transparent transparent #5F6A73 transparent !important; + border-width: 0 7px 8px 7px !important; +} - .widget-toggle-wrapper .table { +.px-stat-widget .table { padding: 10px - } +} @media all and (max-width: 1023px) { .px-stat-widget .moduleBody { @@ -3340,7 +3444,8 @@ line-height: 1.4; } @media (min-width: 1200px) { - .px-stat-widget-chart .pxwidget .pxwidget-canvas-wrapper, .px-stat-widget-chart.px-stat-widget-chart-standard .pxwidget .pxwidget-canvas-wrapper { + .px-stat-widget-chart .pxwidget .pxwidget-canvas-wrapper, + .px-stat-widget-chart.px-stat-widget-chart-standard .pxwidget .pxwidget-canvas-wrapper { height: 50vh !important; } @@ -3449,6 +3554,68 @@ font-family: "FontAwesome" !important; /* end sidebar module */ +/* styling of table of content chapter lists */ + +.table-of-contents { + max-width: 600px; + margin: 1rem 0; +} + +.table-of-contents h3 { + padding: 1rem 1rem 1rem 1.5rem; + margin:0 0 0.5rem; + background: #9BBDBF; + color: #002b5b; +} + +.table-of-contents ul { + margin: 0.5rem 0 0; + padding: 0; +} + +.table-of-contents ul li { + list-style: none; + display: block; + margin: 0.25rem 0; + padding: 0; +} + +.table-of-contents ul li a { + display: block; + text-decoration: none; + padding: 0.5rem; + background-color: #ededed; + border-bottom: 2px solid #ededed; + font-weight: bold; + font-family: "Roboto Slab", Arial, sans-serif; + font-size: 1rem; + color: #30436A; +} +.table-of-contents ul li.chapter-link a::before{ +content: "\f061"; +font-family: FontAwesome; +font-style: normal; +font-weight: normal; +text-decoration: inherit; +font-size: 16px; +position: relative; +top: 0; +left: 0; + margin-right: 0.5rem; +} + +.table-of-contents ul li a:hover { + background-color: #E6F2F2; + border-bottom: 2px solid #1D345C; + color:#006168; +} + + + + + + + diff --git a/t4_media/css/core/pressReleasePrint.css b/t4_media/css/core/pressReleasePrint.css index e508412..9df809e 100644 --- a/t4_media/css/core/pressReleasePrint.css +++ b/t4_media/css/core/pressReleasePrint.css @@ -29,7 +29,8 @@ #breadcrumbs, #downloadPDF, .columnRightinner-rightcol, - .footer { + .footer, + .section-button { display: none; } @@ -81,14 +82,16 @@ text-transform: none; font-size: 18px; } - + .press-key-findings h3.pub-findings-header { + color: #384350; + } .editorsNote h5, .contactDetails h5 { text-transform: none; font-size: 18px; } - . .editorsNote, + .editorsNote, .contactDetails { margin-top: 40px; } @@ -98,7 +101,6 @@ font-weight: bold; } - .row { margin-top: 0px; } diff --git a/t4_media/css/core/publication_print.css b/t4_media/css/core/publication_print.css new file mode 100644 index 0000000..2a6961f --- /dev/null +++ b/t4_media/css/core/publication_print.css @@ -0,0 +1,478 @@ +/* ==== Publication-specific Print Styles ==== */ + +@page { + size: auto; + margin: 1cm; +} + + +@media print { + + /* don't display the header or footer on each chapter */ + + .col { + padding: 0 20px; + } + .header { + float:left; + } + .header .row { + padding:0; + margin: 0; + } + .header h1 { + margin:0 !important; + padding:0; + } + .header h1 img { + height: 40px; + max-height: 40px; + width: auto; + max-width: 164px; + /*filter: grayscale(100%);*/ + } + + /* co-brand logo positioning */ + #headerPrintHook { + display:block !important; + position: absolute; + top:0; + right:20px; + } + #headerPrintHook img { + height: 40px !important; + width: auto !important; + margin-bottom: 0.5rem; + } + + .footer { + display:none; + } + + .transcriptCollapse { + display: none; + } + + /*make the content column full width*/ + .columnLeftinner-rightcol { + width: 100%; + border-right: none; + } + + /* hide the right hand column */ + .columnRightinner-rightcol { + display:none; + } + + /* Add a margin to the bottom of the Chapter title */ + .pageHeader.row { + margin: 0; + padding: 0; + border-bottom: 4px solid #006168; + } + .pageHeader .col { + margin: 0; + padding: 0; + } + + /* remove margin on publication title which is hidden */ + #chapterTitleWrapper { + padding: 0; + } + #chapterTitle { + font-size:28px; + font-weight: 400; + color: #006168; + text-align: right; + margin: 0 0 1rem; + } + + /* Hides the publication title so it is not repeated on every chapter */ + h1#pageTitle { + color: #000; + text-align: right; + margin:0; + padding:0; + border: none; + max-width: unset; + } + + .pageHeader + .row { + padding: 0; + } + + .copy .moduleHeader { + padding: 1rem 0; + background: none; + } + + /* styles the chapter heading */ + .copy .moduleHeader h2 { + background: none; + padding: 0 0 0.75rem; + margin: 0; + font-size: 20px; + font-weight: 700; + border-bottom: none; + position: relative; + + } + .copy .moduleHeader h2::after { + content : ""; + position: absolute; + left : 0; + bottom : 0; + height : 1px; + width : 60px; + border-bottom: 5px solid #006168; + } + .copy .moduleHeader h2 a { + color: #006168; + } + + .copy .moduleHeader h2 { + line-height: normal; + } + + /* changes the link colour */ + .mainContent a { + color: #006bb6; + } + + /* New format styling */ + + .int-pub-header, + .int-pub-headline-block { + background: none !important; + padding: 0; + margin: 0; + } + + + + .int-pub-header h2 { + font-size: 24px; + font-weight: 700; + color: #000; + padding: 0 0 0.25rem; + margin: 0; + border: 0; + } + .copy .int-pub-header h3 { + font-size: 18px; + font-weight: 400; + padding: 0; + margin: 0; + color: #006168; + } + .int-pub-headline-block { + border-bottom: 3px solid #006168; + margin-bottom: 0.25rem; + padding-bottom: 0.5rem; + } + .pub-header-census-results-2022 .int-pub-headline-block { + border-bottom-color: #283F73; + } + + .pub-header-press-statement h3:first-child { + margin-top: 1rem; + } + + .int-pub-body-block { + font-size: 14px; + padding: 0 0 1rem; + margin: 1rem 0 0; + border-bottom: 1px solid #006168; + } + .pub-header-census-results-2022 .int-pub-body-block { + border-bottom: none; + } + + .pub-header-data { + display:block; + } + + .release-key-findings { + background: none; + padding: 1rem 0 0; + margin: 0.75em 0 1rem; + } + + .pub-comment { + background: none; + padding: 0 0 0.5rem 2rem; + margin: 2rem 0; + border-left: 0.5rem solid #579599; + } + .pub-comment.contact-details { + border: none; + } + + .release-key-findings h3.pub-findings-header, + .pub-comment h3, + .pub-comment h3:first-child { + background: none; + padding: 0 0 0.75rem; + margin: 0; + font-size: 20px; + font-weight: 700; + border-bottom: none; + position: relative; + } + .release-key-findings h3.pub-findings-header::after, + .pub-comment h3::after { + content : ""; + position: absolute; + left : 0; + bottom : 0; + height : 1px; + width : 60px; + border-bottom: 5px solid #006168; + } + + .copy h3, + h3.pub-findings-header { + font-size: 20px; + font-weight: 700; + position:relative; + padding: 1rem 0 0.75rem; + border: none; + } + h3.pub-findings-header::after { + content : ""; + position: absolute; + left : 0; + bottom : 0; + height : 1px; + width : 60px; + border-bottom: 3px solid #006168; + } + + .press-key-findings h3.pub-findings-header { + color:#283F73; + font-size:22px; + } + + .advisory-notification { + border-left: 10px solid #579599; + margin-left: 0; + background-color: #fdfdfd !important; + } + h3.pub-findings-header + .advisory-notification { + margin-left: 0; + } + + /* hide audio player */ + audio { display: none; } + + + /* Removes border from open/close tables */ + .pubOpenCloseTable { + border: none; + } + + /* Hides the 'show table' title of an open/close table */ + .pubOpenCloseTableTitle { + display:none; + } + + .indicatorHeadlineTable { + display:block !important; + } + + /* Hides the next chapter button */ + .next-chapter-btn, + .print-chapter-btn, + .section-button { + display:none; + } + + table { page-break-inside : avoid } + .indicatorHeadlineTable { page-break-inside: avoid;} + + .copy p, + .copy h3, + .copy h4, + .copy h5 { + orphans: 3; + widows: 4; + } + + /* controls responsive images */ + .copy img { + width: auto; + height: auto; + max-width: 100%; + max-height: 100%; + } + + .module-release-datasets .moduleHeader { + background: none; + padding: 0 0 0.75rem; + margin: 2rem 0 0; + + border-bottom: none; + position: relative; + } + .module-release-datasets .moduleHeader h2 { + font-size: 20px; + font-weight: 700; + color: #006168; + } + .module-release-datasets .moduleHeader h2 a { + color: #006168; + + } + + + +/* styling Widget tables */ + + .dt-buttons, + .dataTables_filter, + .dataTables_length, + .dataTables_paginate, + .px-stat-widget .moduleHeader .fa-plus-circle { + display:none; + } + + .px-stat-widget .moduleHeader { + font-size: 20px; + font-weight: 700; + font-family: 'Roboto Slab', Georgia, Times New Roman, serif; + padding: 0 0 0.75rem; + + } + + .px-stat-widget-chart, + .px-stat-widget-map, + .px-stat-widget-table, + .px-stat-widget, + .dataTable { + page-break-inside: avoid; + } + + .px-stat-widget-chart .px-stat-widget-heading { + font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif; + font-size: 14px; + } + + .px-stat-widget .moduleHeader { + border: none; + } + .px-stat-widget .moduleBody { + display:block !important; + border-top: 1px solid #000; + border-color: #000; + } + + + .px-stat-widget .dataTables_wrapper { + overflow: none; + width: 100%; + } + + table.dataTable { + table-layout: fixed; + width: 100%; + overflow: none; + } + + + + /* style infobytes v2 */ + + .infoByte_v2 { + margin: 2rem 0; + border: 1px solid #000; + box-shadow: 3px 3px 4px rgb(0 0 0 / 0.4); + } + .infoBytev2__source { + border-top: 1px solid #000; + } + + .html2image-download-icon { + display:none; + } + + + + /* ----- OPTIONALS ------*/ + + /* Next Chapter Link + hide next chapter plain text link (old format) - uncomment if required + .mainContent #columnLeft .copy p:last-child { + display:none; + } + */ + + /* For Background notes / reference chapters + print the full link url after the link text - uncomment if required + .mainContent p a[href^="/"]::after { + content: " (https://www.cso.ie" attr(href) ") "; + } + .mainContent p a[href^="http://"]::after, + .mainContent p a[href^="https://"]::after, + .mainContent .OpenInExcel a[href^="http://"]::after, + .mainContent .OpenInExcel a[href^="https://"]::after + { + content: " (" attr(href) ")"; + } + */ + + /* print out URL after external (non-cso.ie, non-relative) links + .mainContent a:not([href^="https://www.cso.ie"]):not([href^="/"]):not([name])::after { + content: " ("attr(href)")"; + } + */ + + /* to remove the appearance of links in the text + turn off the appending of link urls above + .mainContent p a { + text-decoration:none; + color: inherit; + } + */ + + /* append pxstat links after highcharts + .highchartText a::after { + content: " (" attr(href) ") "; + } + /* + + /* Open Close tables + Adds a page break after every table - uncomment where there are many tables in series + .pubOpenCloseTable { + page-break-after: always; + } + */ + + /* Open close tables - short tables + page break after every second table - uncomment as needed. previous option must not be used with this one + .pubOpenCloseTable:nth-child(even) { + page-break-after: always; + } + */ + + /* Hide Highcharts + Uncomment styles below if you want to hide highcharts and highmaps + .highchartBox { + display:none; + } + div[id$="mapContainer"] { + display:none; + } + */ + + + + + } + + + + + + + + + diff --git a/t4_media/css/core/survey-campaign.css b/t4_media/css/core/survey-campaign.css deleted file mode 100644 index 4ca5eef..0000000 --- a/t4_media/css/core/survey-campaign.css +++ /dev/null @@ -1,105 +0,0 @@ -/* Styles for Surveys Campaign pages */ - - -/* Last updated 16-8-19 -- RFS */ - -.featuredIntro { - padding-bottom: 1.33rem; - border-bottom: 10px solid #00b3c7; -} - -.featuredIntro.pink { - border-bottom-color: #C74673; -} - -@media all and (min-width: 768px) { - .featuredIntro { - display: flex; - flex-direction: row; - align-items: stretch; - } -} - -.featuredIntro .featuredIntro__img { - padding: 0; - margin-right: 2rem; - flex: 0 1 350px; -} - -.featuredIntro .featuredIntro__img.featuredIntro__img__square { - flex: 0 1 250px; -} - -.featuredIntro .featuredIntro__img img { - display: block; - height: auto; - width: 100%; - max-width: 100%; -} - -.featuredIntro .featuredIntro__lead { - color: #5b6670; - align-self: flex-end; - flex-grow: 1; - padding-top: 1rem; -} - -.featuredIntro .featuredIntro__lead .logo { - margin-bottom: 2rem; -} - -.featuredIntro .featuredIntro__lead h2 { - font-weight: bold; -} - -.featuredIntro.pink .featuredIntro__lead h2 { - color: #732857; -} - -.featuredIntro .featuredIntro__lead p { - font-size: 1.2rem; - font-family: Roboto Slab; -} - -hr.surveyPage__divider { - clear: both; - height: 0; - border: 0; - border-bottom: 10px solid #00b3c7; -} - -hr.page__divider.pink { - clear: both; - height: 0; - border: 0; - border-bottom: 10px solid #C74673; -} - -.surveyPage__highlight { - background-color: #daf0f2; - padding: 0.25rem 1rem; -} - -.contentPage__highlight, -.contentPage__highlight.purple { - background-color: #e6e9f2; - padding: 0.25rem 1rem; -} - -.contentPage__highlight.mint { - background-color: #daf2ed; -} - -.contentPage__highlight.bluegrey { - background-color: #f2f7fa; -} - -h2.surveyPage__surveyHeading, -h3.surveyPage__surveyHeading { - font-weight: bold; - color: #2E8D9C; -} - -h4.surveyPage__surveyHeading { - color: #5B6771; -} \ No newline at end of file diff --git a/t4_media/css/module/infoByte.css b/t4_media/css/module/infoByte.css index 3771ebe..38f7c0e 100644 --- a/t4_media/css/module/infoByte.css +++ b/t4_media/css/module/infoByte.css @@ -276,11 +276,11 @@ color: #fff; background-color: #1d345c; } -.infoByte_v2.infoBytev2_lfs_mint { +.infoByte_v2.infoBytev2_lfs_mint { /* not in use */ color: #07101a; background-color: #98d4c2; } -.infoByte_v2.infoBytev2_lfs_yellow { +.infoByte_v2.infoBytev2_lfs_yellow { /* not in use */ color: #07101a; background-color: #fbaa34; } @@ -291,7 +291,10 @@ .infoByte_v2.infoBytev2_neutral_grey { color: #3D454C; background-color: #e6edf2; - +} +.infoByte_v2.infoBytev2_census22_neutral { + color: #283F73; + background-color: #E6EDF2; } @media print { .infoByte_v2 { @@ -359,6 +362,9 @@ .infoByte_v2.infoBytev2_neutral_grey .infoBytev2__desc1 { color: #006168; } +.infoByte_v2.infoBytev2_census22_neutral .infoBytev2__desc1 { + color: #009F7A; +} @media screen and (min-width: 567px) { .infoBytev2__desc1 { grid-area: 2 / 1 / 3 / 2; @@ -394,6 +400,9 @@ .infoByte_v2.infoBytev2_neutral_teal .infoBytev2__desc2 { color: #35456b; } +.infoByte_v2.infoBytev2_census22_neutral .infoBytev2__desc2 { + color: #283F73; +} @media screen and (min-width: 567px) { .infoBytev2__desc2 { @@ -434,6 +443,9 @@ .infoByte_v2.infoBytev2_neutral_grey .infoBytev2__footnote { color: #35456b; } +.infoByte_v2.infoBytev2_census22_neutral .infoBytev2__footnote { + color: #283F73; +} @media screen and (min-width: 567px) { .infoBytev2__footnote { grid-area: 4 / 1 / 5 / 2; @@ -484,6 +496,10 @@ color: #fff; background-color: #3D454C; } +.infoByte_v2.infoBytev2_census22_neutral .infoBytev2__source { + color: #DAF2ED; + background-color: #35466C; +} @media screen and (min-width: 567px){ .infoBytev2__source { @@ -517,6 +533,7 @@ @media print { .prices-mini-viz { max-width: auto; + page-break-inside: avoid; } } @@ -691,6 +708,9 @@ font-weight: 700; padding: 0.25rem; } +.price-change-indicator.price-change-lowercase { + text-transform: none; +} .price-item-text { text-align: right; @@ -700,7 +720,270 @@ font-size: 28px; padding: 0.25rem; } +.price-item-text.price-item-thousands { + font-size: 24px; +} .prices-item-change.same .price-item-text { font-size: 20px; -} \ No newline at end of file +} + +/* ================== + +==== Dashboard Indicators ==== + +===================== */ + + .dashboard-grid-container { + background-color: #F2F7Fa; + padding: 0.25rem 0.5rem; + margin-bottom: 1rem; + font-family: Roboto, Arial, Helvetica, sans-serif; + font-weight: 400; + font-size: 16px; + color: #283F73; + } + @media print { + .dashboard-grid-container { + max-width: auto; + page-break-inside: avoid; + } + } + + .dashboard-grid-container h3 { + font-family: 'Roboto Slab', Georgia, 'Times New Roman', Times, serif; + font-weight: 600; + size: 20px; + color: #4463AA; + margin-bottom: 0; + padding-left: 1rem; +} + +.dashboard-grid-container h4 { + font-family: 'Roboto Slab', Georgia, 'Times New Roman', Times, serif; + font-weight: 400; + font-size: 17px; + color: #286B73; + margin-top: 0; + padding-left: 1rem; +} + +.dashboard-grid-container h6 { + font-family: 'Roboto Slab', Georgia, 'Times New Roman', Times, serif; + font-weight: 400; + font-size: 16px; + text-transform: none; + color: #4463AA; + margin: 0.5rem 0 0; + padding-left: 1rem; +} + +.dashboard-grid-container footer { + font-size: 15px; + font-style: italic; + margin: 0.5rem 0 0; + padding-left: 1rem; +} + +.dashboard-grid { + display: grid; + grid-gap: 1em; + padding: 1em 1em 1em; + grid-template-columns: 1fr; +} + +@media screen and (min-width: 567px) { + .dashboard-grid { + grid-template-columns: repeat(2, 1fr); + } +} + +@media screen and (min-width: 768px) { + .dashboard-grid { + grid-template-columns: repeat(2, 1fr); + } +} + +@media screen and (min-width: 992px) { + .dashboard-grid { + grid-template-columns: repeat(3, 1fr); + } +} + +@media print { + .dashboard-grid { + grid-template-columns: repeat(3, 1fr); + } +} + .dashboard-item header { + background: #5A6AB0; + border-top-left-radius: 5px; + border-top-right-radius: 5px; + padding: 0.75rem 0.25rem; + } + .dashboard-item header h4 { + font-family: 'Roboto Slab', Georgia, 'Times New Roman', Times, serif; + font-weight: 400; + font-size: 20px; + color: #fff; + margin: 0; + } + + .dashboard-item-body { + background: #fff; + border-bottom-left-radius: 5px; + border-bottom-right-radius: 5px; + padding: 0.25rem; + } + .dashboard-item-indicator { + text-align: right; + margin-bottom: 0.25rem; + padding: 0.5rem 0.25rem 0.25rem; + } + .dashboard-indicator-figure { + font-family: 'Roboto Slab', Georgia, 'Times New Roman', Times, serif; + font-size: 36px; + font-weight: bold; + } + .dashboard-indicator-descriptor { + font-size: 14px; + font-weight: bold; + text-transform: uppercase; + } + + .dashboard-indicator-period { + font-size: 14px; + font-weight: bold; + text-transform: uppercase; + } + +.dashboard-item-chart { + padding: 0.25rem; + } + + + /* Extra small devices (portrait phones, less than 576px) + No media query for `xs` since this is the default in Bootstrap + */ + /* Small devices (landscape phones, 576px and up) */ + @media (min-width: 576px) { + .dashboard-item-chart .pxwidget .pxwidget-canvas-wrapper { + height: 40vh + } + } + + /* Medium devices (tablets, 768px and up) */ +@media (min-width: 768px) { + .dashboard-item-chart .pxwidget .pxwidget-canvas-wrapper { + height: 70vh + } + } + + /* Large devices (desktops, 992px and up) */ +@media (min-width: 992px) { + .dashboard-item-chart .pxwidget .pxwidget-canvas-wrapper { + height: 32vh + } + } + + /* Extra large devices (large desktops, 1200px and up) */ +@media (min-width: 1200px) { + .dashboard-item-chart .pxwidget .pxwidget-canvas-wrapper { + height: 32vh + } + } + + +/* ============= + +SOLO GRID +Add a grid around other elements + + ============= */ + + .solo-grid { + display: grid; + grid-gap: 1em; + padding: 1em 1em 1em; + grid-template-columns: 1fr; + } + +/* .solo-grid-2up = 2 cols at desktop */ + + @media screen and (min-width: 567px) { + .solo-grid.solo-grid-2up { + grid-template-columns: repeat(1, 1fr); + } + } + + @media screen and (min-width: 768px) { + .solo-grid.solo-grid-2up { + grid-template-columns: repeat(1, 1fr); + } + } + + @media screen and (min-width: 992px) { + .solo-grid.solo-grid-2up { + grid-template-columns: repeat(2, 1fr); + } + } + + @media print { + .solo-grid.solo-grid-2up { + grid-template-columns: repeat(2, 1fr); + } + } + + +/* .solo-grid-3up = 3 cols at desktop */ + +@media screen and (min-width: 567px) { + .solo-grid.solo-grid-3up { + grid-template-columns: repeat(2, 1fr); + } + } + + @media screen and (min-width: 768px) { + .solo-grid.solo-grid-3up { + grid-template-columns: repeat(2, 1fr); + } + } + + @media screen and (min-width: 992px) { + .solo-grid.solo-grid-3up { + grid-template-columns: repeat(3, 1fr); + } + } + + @media print { + .solo-grid.solo-grid-3up { + grid-template-columns: repeat(3, 1fr); + } + } + +/* .solo-grid-4up = 4 cols at desktop */ + +@media screen and (min-width: 567px) { + .solo-grid.solo-grid-4up { + grid-template-columns: repeat(2, 1fr); + } + } + + @media screen and (min-width: 768px) { + .solo-grid.solo-grid-4up { + grid-template-columns: repeat(2, 1fr); + } + } + + @media screen and (min-width: 992px) { + .solo-grid.solo-grid-4up { + grid-template-columns: repeat(4, 1fr); + } + } + + @media print { + .solo-grid.solo-grid-4up { + grid-template-columns: repeat(4, 1fr); + } + } + diff --git a/t4_media/css/module/survey-campaign.css b/t4_media/css/module/survey-campaign.css new file mode 100644 index 0000000..f5359d5 --- /dev/null +++ b/t4_media/css/module/survey-campaign.css @@ -0,0 +1,138 @@ +/* Styles for Theme layouts - surveys, careers, about areas */ +/* Last updated 28-26-23 -- RFS */ + +.featuredIntro { + padding-bottom: 1.33rem; + border-bottom: 10px solid #00b3c7; +} +.featuredIntro.pink { + border-bottom-color: #C74673; + } + .featuredIntro.purple { + border-bottom-color: #4f6497; + } + .featuredIntro.teal { + border-bottom-color: #0099B4; + } + .featuredIntro.yellow { + border-bottom-color: #FBAA34; + } + .featuredIntro.bluegrey { + border-bottom-color: #ADBECC; + } + @media all and (min-width: 768px) { + .featuredIntro { + display: flex; + flex-direction: row; + align-items: stretch; + } +} +.featuredIntro .featuredIntro__img { + padding: 0; + margin-right: 2rem; + flex: 0 1 350px; +} +.featuredIntro .featuredIntro__img.featuredIntro__img__square { + flex: 0 1 250px; +} +.featuredIntro .featuredIntro__img img { + display: block; + height: auto; + width: 100%; + max-width: 100%; +} + +.featuredIntro .featuredIntro__lead { + color: #5b6670; + align-self: flex-end; + flex-grow: 1; + padding-top: 1rem; +} + +.featuredIntro .featuredIntro__lead .logo { + margin-bottom: 2rem; +} + +.featuredIntro .featuredIntro__lead h2 { + font-weight: bold; +} + +.featuredIntro.pink .featuredIntro__lead h2 { + color: #732857; +} + +.featuredIntro.aboutus .featuredIntro__lead h2 { + color: #007a90; +} + +.featuredIntro .featuredIntro__lead p { + font-size: 1.2rem; + font-family: Roboto Slab; +} + +hr.surveyPage__divider { + clear: both; + height: 0; + border: 0; + border-bottom: 10px solid #00b3c7; +} + +hr.page__divider { + clear: both; + height: 0; + border: 0; + } + + hr.page__divider.pink { + border-bottom: 10px solid #C74673; + } + hr.page__divider.yellow { + border-bottom: 10px solid #FABD52; + } + hr.page__divider.purple { + border-bottom: 10px solid #4f6497; + } + hr.page__divider.teal { + border-bottom: 10px solid #0099B4; + } + + .surveyPage__highlight { + background-color: #daf0f2; + padding: 0.25rem 1rem; +} + +.contentPage__highlight, .contentPage__highlight.purple { + background-color: #e6e9f2; + padding: 0.25rem 1rem; +} +.contentPage__highlight.mint { + background-color: #daf2ed; +} +.contentPage__highlight.bluegrey { + background-color: #f2f7fa; + } + .contentPage__highlight.teal { + background-color: #DAF0F2; + } + .contentPage__highlight.yellow { + background-color: #FCF0DC; + } + + h2.surveyPage__surveyHeading, +h3.surveyPage__surveyHeading { + font-weight: bold; + color: #2E8D9C; +} +h4.surveyPage__surveyHeading { + color: #5B6771; +} + + + + + + + + + + diff --git a/t4_media/from_db/html/Visualisations_122143_hdr.html b/t4_media/from_db/html/Visualisations_122143_hdr.html index 358b4da..85eac4c 100644 --- a/t4_media/from_db/html/Visualisations_122143_hdr.html +++ b/t4_media/from_db/html/Visualisations_122143_hdr.html @@ -109,23 +109,24 @@

CSO Interactive Data Visualisation Apps

-
+
- @@ -158,26 +159,25 @@

-
@@ -186,30 +186,23 @@

Baby - -
-
+ @@ -217,6 +210,8 @@

+ +
@@ -244,33 +239,30 @@

House -
@@ -299,24 +291,26 @@

Agrimap - Census of + +
-
+
-

">Brexit Indicators: Ireland - and the UK in - Numbers

+

Key Economic Indicators + Dashboard +

- ">" alt="Brexit Indicators: Ireland and the UK - in Numbers"> + " alt="Key + Economic Indicators Dashboard on CSO + Visual">
- -
- ">Brexit - Indicators +
@@ -324,29 +318,59 @@

">Brexit Indicators: Ireland

+
+ + + + + +
-

Consumer Price - Index Inflation Calculator

+

">Brexit Indicators: Ireland + and the UK in + Numbers

- " alt="Consumer - Price Index Inflation - Calculator"> + ">" alt="Brexit Indicators: Ireland and the UK + in Numbers">
- visit CSO Visual + ">Brexit + Indicators
@@ -382,13 +406,13 @@

">CSO Infographics Gallery diff --git a/t4_media/html/content_type/Highcharts_-_Headline_Image_text_homepage_261.html b/t4_media/html/content_type/Highcharts_-_Headline_Image_text_homepage_261.html index 28748f7..d5bd170 100644 --- a/t4_media/html/content_type/Highcharts_-_Headline_Image_text_homepage_261.html +++ b/t4_media/html/content_type/Highcharts_-_Headline_Image_text_homepage_261.html @@ -1,3 +1,4 @@ +<<<<<<< HEAD +<<<<<<< HEAD +======= + +>>>>>>> T4-asset
+<<<<<<< HEAD

+======= + +
+

+ +

+>>>>>>> T4-asset
+<<<<<<< HEAD
" class="highchartBox">
@@ -51,6 +92,22 @@

+======= +
" class="highchartBox"> +
+ +

+ + + + +
datatable"> + + +
+ + +>>>>>>> T4-asset - \ No newline at end of file + +======= + +>>>>>>> T4-asset diff --git a/t4_media/html/content_type/Infographic_Transcript_(open___close)_text_html_474.html b/t4_media/html/content_type/Infographic_Transcript_(open___close)_text_html_474.html index 0b4e39f..b0226b4 100644 --- a/t4_media/html/content_type/Infographic_Transcript_(open___close)_text_html_474.html +++ b/t4_media/html/content_type/Infographic_Transcript_(open___close)_text_html_474.html @@ -2,13 +2,21 @@
_description"> +<<<<<<< HEAD _openClose">View Infographic Transcript +======= + _openClose"> View Transcript +>>>>>>> T4-asset
_text" style="display: none"> +<<<<<<< HEAD
+======= +
+>>>>>>> T4-asset
@@ -20,10 +28,27 @@
//$(document).ready(function(){ $("#_description").click(function(){ +<<<<<<< HEAD $("#_text").slideToggle(1000); }); +======= + $("#_text").slideToggle(1000, function() { + + if($("#_text").is(":visible")) { + $("#_description").find("[name=open-close-icon]").removeClass().addClass("fa fa-minus-circle") + } + else { + $("#_description").find("[name=open-close-icon]").removeClass().addClass("fa fa-plus-circle") + } + }); + +}); + + + +>>>>>>> T4-asset //}); \ No newline at end of file diff --git a/t4_media/html/content_type/Press_Statement_Headline_and_Bullets_text_html_502.html b/t4_media/html/content_type/Press_Statement_Headline_and_Bullets_text_html_502.html index 14289e1..23616de 100644 --- a/t4_media/html/content_type/Press_Statement_Headline_and_Bullets_text_html_502.html +++ b/t4_media/html/content_type/Press_Statement_Headline_and_Bullets_text_html_502.html @@ -1,4 +1,5 @@
+<<<<<<< HEAD

    @@ -20,6 +21,32 @@

+======= +
+

+ +
+ +
    + + + + + + + + + + + + + + + + + +
+>>>>>>> T4-asset
diff --git a/t4_media/html/layout/Babies_Names_PDF_149288_hdr.html b/t4_media/html/layout/Babies_Names_PDF_149288_hdr.html index a2959b9..be17d0e 100644 --- a/t4_media/html/layout/Babies_Names_PDF_149288_hdr.html +++ b/t4_media/html/layout/Babies_Names_PDF_149288_hdr.html @@ -1,5 +1,6 @@ +<<<<<<< HEAD + + + + +Title of the document +>>>>>>> T4-asset - _hdr.html \ No newline at end of file +<<<<<<< HEAD + _hdr.html +======= +>>>>>>> T4-asset diff --git a/t4_media/html/layout/Blank_page_layout_101273_ftr.html b/t4_media/html/layout/Blank_page_layout_101273_ftr.html index 3d16baa..595535c 100644 --- a/t4_media/html/layout/Blank_page_layout_101273_ftr.html +++ b/t4_media/html/layout/Blank_page_layout_101273_ftr.html @@ -1,4 +1,8 @@ +<<<<<<< HEAD _hdr.html - \ No newline at end of file + +======= +_hdr.html +>>>>>>> T4-asset diff --git a/t4_media/html/layout/Blog_328_hdr.html b/t4_media/html/layout/Blog_328_hdr.html index 6df8728..7f3698e 100644 --- a/t4_media/html/layout/Blog_328_hdr.html +++ b/t4_media/html/layout/Blog_328_hdr.html @@ -1,5 +1,6 @@ +<<<<<<< HEAD @@ -207,4 +208,158 @@ <h1><a href="<t4 type=" navigation " id="7 " />">TERMINALFOUR <t4 type="lang-var <div id="breadcrumb"><strong><t4 type="lang-var" default-language="en" en="You are here" es="Usted está aquí" ar="??? ???" />:</strong> <!-- navigation object : Breadcrumb --> <t4 type="navigation" id="4" /> - </div>_hdr.html \ No newline at end of file + </div>_hdr.html +======= +<head> +<title><t4 type="title"/> - TERMINALFOUR <t4 type="lang-var" default-language="en" en="Intranet" es="Intranet" ar="???????" /> + + + + + +"/> + + + + + + + + + + + + + + + + + + + +, TERMINALFOUR Solutions Ltd." /> + + + + + + + + +, TERMINALFOUR Solutions Ltd." /> +" /> +" /> + + + + + + +
+ +
+ +
+
+
+
+
+
+
+ +
+ +_hdr.html +>>>>>>> T4-asset diff --git a/t4_media/html/layout/DR_Style_1065_ftr.html b/t4_media/html/layout/DR_Style_1065_ftr.html index 19e6b18..809ce9b 100644 --- a/t4_media/html/layout/DR_Style_1065_ftr.html +++ b/t4_media/html/layout/DR_Style_1065_ftr.html @@ -1,3 +1,4 @@ +<<<<<<< HEAD @@ -31,4 +32,36 @@ +======= + + + +
+
+
+ +
+
+
+ +
+Top Content +
+ +
+
+
+ + + + +>>>>>>> T4-asset _hdr.html \ No newline at end of file diff --git a/t4_media/html/layout/landing_pages/About_Us_Home_139542_ftr.html b/t4_media/html/layout/landing_pages/About_Us_Home_139542_ftr.html new file mode 100644 index 0000000..eb258ca --- /dev/null +++ b/t4_media/html/layout/landing_pages/About_Us_Home_139542_ftr.html @@ -0,0 +1,2 @@ + + _hdr.html \ No newline at end of file diff --git a/t4_media/html/layout/landing_pages/About_Us_Home_139542_hdr.html b/t4_media/html/layout/landing_pages/About_Us_Home_139542_hdr.html new file mode 100644 index 0000000..0b5d7d5 --- /dev/null +++ b/t4_media/html/layout/landing_pages/About_Us_Home_139542_hdr.html @@ -0,0 +1,266 @@ + + + + + + + + + + <t4 type="title" /> - CSO - Central Statistics Office + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ +
+

">Who we are

+

Find out more about the CSO

+ + ">Go to who we are +
+ +
+ +
+ +
+

">Careers

+

Want to work in the CSO?

+ + ">Go to Careers +
+ +
+ +
+ +
+

">Contact Us

+

Get in contact with the CSO

+ + ">Go to Contact Us +
+ +
+ +
+ +
+

">Corporate Publications

+

CSO Strategy Documents

+ + ">Go to Corporate Publications +
+ +
+ +
+ + +
+
+
+ +
+
    + +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • + + +
+
+
+ + + +
+
+ + +
+ +
+
    + +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • + + +
+
+
+ + + + + +
+ +
+ + + + +
+ + + + _hdr.html \ No newline at end of file diff --git a/t4_media/html/layout/not_in_use/About_Us_Listing_126497_ftr.html b/t4_media/html/layout/not_in_use/About_Us_Listing_126497_ftr.html new file mode 100644 index 0000000..f1b2f78 --- /dev/null +++ b/t4_media/html/layout/not_in_use/About_Us_Listing_126497_ftr.html @@ -0,0 +1 @@ + _hdr.html \ No newline at end of file diff --git a/t4_media/html/layout/not_in_use/About_Us_Listing_126497_hdr.html b/t4_media/html/layout/not_in_use/About_Us_Listing_126497_hdr.html new file mode 100644 index 0000000..6382e78 --- /dev/null +++ b/t4_media/html/layout/not_in_use/About_Us_Listing_126497_hdr.html @@ -0,0 +1,245 @@ + + + + + + + + + + + + + <t4 type="title" /> - CSO - Central Statistics Office + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + _hdr.html \ No newline at end of file diff --git a/t4_media/html/megaNav/megaNav.html b/t4_media/html/megaNav/megaNav.html new file mode 100644 index 0000000..f6a0dda --- /dev/null +++ b/t4_media/html/megaNav/megaNav.html @@ -0,0 +1,1066 @@ + + + + + meganav + + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/t4_media/includes/GAFooter.html b/t4_media/includes/GAFooter.html new file mode 100644 index 0000000..eb6cacc --- /dev/null +++ b/t4_media/includes/GAFooter.html @@ -0,0 +1,64 @@ + + + + + \ No newline at end of file diff --git a/t4_media/includes/GAHeader.html b/t4_media/includes/GAHeader.html new file mode 100644 index 0000000..d19d404 --- /dev/null +++ b/t4_media/includes/GAHeader.html @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+

">" alt="Central Statistics Office" >

+ +" title="Gaeilge">English +
+ +
    +
  • + +
  • + + +
  • + +
  • + +
+ +
+
+ +
+ + +
+ +
+ + +
+
+
+

 Skip navigation

+ + diff --git a/t4_media/includes/globalFooter.html b/t4_media/includes/globalFooter.html index d6a2749..ade35bf 100644 --- a/t4_media/includes/globalFooter.html +++ b/t4_media/includes/globalFooter.html @@ -1,74 +1,67 @@