/* Theme Name: Meta Write Theme URI: https://github.com/TorontoDigits/meta-write Author: TorontoDigits Author URI: https://www.torontodigits.com/ Description: Meta Write is a modern, customizable WordPress theme for news portals, blogs, and magazine-style websites. Version: 1.0.0 Requires at least: 5.0 Tested up to: 6.8 Requires PHP: 7.4 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html Text Domain: meta-write Tags: blog, news, grid-layout, translation-ready, threaded-comments, rtl-language-support Copyright: (c) 2025 Toronto Digits */ /*-------------------------------------------------------------- >>> TABLE OF CONTENTS: ---------------------------------------------------------------- # Generic - Normalize - Box sizing # Base - Typography - Elements - Links - Forms # Layouts # Components - Navigation - Posts and pages - Comments - Widgets - Media - Captions - Galleries # Plugins - Jetpack infinite scroll # Utilities - Accessibility - Alignments --------------------------------------------------------------*/ /*-------------------------------------------------------------- # Layout: Blog Container --------------------------------------------------------------*/ .meta-blog-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; } .meta-blog-header .page-title { font-size: 2.5rem; margin-bottom: 30px; text-align: start; margin-top: 30px; } /*-------------------------------------------------------------- # Layout: Blog Grid --------------------------------------------------------------*/ .meta-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; } .meta-blog-grid article { background: #fff; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; } .meta-blog-grid article:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); } /*-------------------------------------------------------------- # Components: Post Thumbnail --------------------------------------------------------------*/ .post-thumbnail { height: 200px; overflow: hidden; } .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; } /*-------------------------------------------------------------- # Components: Entry Content --------------------------------------------------------------*/ .entry-title { font-size: 1.25rem; color: #222; padding: 25px 20px 5px 20px; } .entry-excerpt { font-size: 0.95rem; color: #555; padding: 5px 20px 20px 20px; } /*-------------------------------------------------------------- # Components: Pagination --------------------------------------------------------------*/ .nav-links { text-align: center; margin-top: 40px; } .nav-links .page-numbers { display: inline-block; margin: 0 8px; padding: 10px 16px; background: #f5f5f5; border-radius: 6px; color: #222; text-decoration: none; } .nav-links .current, .nav-links .page-numbers:hover { background: #0073aa; color: #fff; } .mw-blog-card { display: flex; flex-direction: row; align-items: center; gap: 20px; width: 100%; margin-bottom: 30px; padding-bottom: 40px !important; } .mw-news-button:hover, .mw-news-button:active { background-color: #0073e6 !important; color: white !important; border-color:#0073e6 !important; } .meta-blog-pagination { display: flex; justify-content: center; /* centers pagination horizontally */ align-items: center; margin: 40px 0; padding: 5px 20px 20px 20px; flex-wrap: wrap; /* ensures responsiveness */ } ul.pagination.justify-content-center{ list-style: none !important; } .meta-blog-pagination .page-numbers { display: inline-block; margin: 0 5px; padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #333; font-weight: 500; transition: all 0.3s ease; } .meta-blog-pagination .page-numbers:hover { background-color: #0073e6; color: #fff; border-color: #0073e6; } .meta-blog-pagination .page-numbers.current { background-color: #0073e6; color: #fff; border-color: #0073e6; } #customDropdownMenu { list-style: none !important; } /*-------------------------------------------------------------- # Components: Code Blocks --------------------------------------------------------------*/ pre code { display: block; padding: 1em; border-radius: 8px; overflow-x: auto; font-family: 'Courier New', monospace; font-size: 14px; line-height: 1.5; background-color: #2d2d2d; color: #f8f8f2; } pre.line-numbers { position: relative; padding-left: 3.8em; } .list-unstyled { list-style: none !important; margin-left: 0px !important; } /*------------------------------------ # Responsive --------------------------------------*/ @media (max-width: 1024px) { .mw-recently-categories-box { display: none; } .mw-post.container { width: 100%; } } footer.site-footer { width: 100%; max-width: 100%; margin: 0; padding: 40px 0; background-color: #f8f9fa; } /* ================================ Custom Sidebar Widget Area start ================================ */ form.wp-block-search__button-outside.wp-block-search__text-button.wp-block-search{ display: none !important; } .mw-custom-widgets { display: none !important; background: #ffffff; border: 1px solid #eaeaea; border-radius: 12px; padding: 20px; margin-bottom: 30px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); } .mw-custom-widgets .widget { margin-bottom: 25px; } .mw-custom-widgets .widget-title { font-size: 18px; font-weight: 600; color: #222; margin-bottom: 12px; border-bottom: 2px solid #f4f4f4; padding-bottom: 6px; display: block; } .mw-custom-widgets .widget ul { list-style: none; margin: 0; padding: 0; } .mw-custom-widgets .widget ul li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; } .mw-custom-widgets .widget ul li a { text-decoration: none; color: #333; transition: color 0.2s ease; } .mw-custom-widgets .widget ul li a:hover { color: #007bff; } .mw-custom-widgets .widget_search input[type="search"] { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; } .mw-custom-widgets .widget_search input[type="submit"] { margin-top: 10px; padding: 10px 15px; background: #007bff; border: none; color: #fff; border-radius: 8px; font-size: 14px; cursor: pointer; transition: background 0.2s ease; } .mw-custom-widgets .widget_search input[type="submit"]:hover { background: #0056b3; } .mw-custom-widgets .widget_calendar table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; } .mw-custom-widgets .widget_calendar th, .mw-custom-widgets .widget_calendar td { padding: 6px; border: 1px solid #eaeaea; } /* ================================ Custom Sidebar Widget Area end ================================ */ /* HTML Tags */ html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100% } body { overflow-x: hidden; } article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block } audio, canvas, progress, video { display: inline-block; vertical-align: baseline } audio:not([controls]) { display: none; height: 0 } [hidden] { display: none } abbr[title] { border-bottom: 1px dotted } b, strong { font-weight: bold } dfn { font-style: italic } mark { background: #ff0; color: #000 } small { font-size: 80% } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline } sup { top: -0.5em } sub { bottom: -0.25em } img { border: 0 } svg:not(:root) { overflow: hidden } figure { margin: 1em 40px } hr { box-sizing: content-box; height: 0 } pre { overflow: auto } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0 } button { overflow: visible } button, select { text-transform: none } button, html input[type=button], input[type=reset], input[type=submit] { -webkit-appearance: button; cursor: pointer } button[disabled], html input[disabled] { cursor: default } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0 } input { line-height: normal } input[type=checkbox], input[type=radio] { box-sizing: border-box; padding: 0 } figure.alignleft ul { padding: 0 10px 0 0 !important; } input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { height: auto } input[type=search] { -webkit-appearance: textfield; box-sizing: content-box } input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none } fieldset { border: 1px solid silver; margin: 0 2px; padding: .35em .625em .75em } legend { border: 0; padding: 0 } textarea { overflow: auto } optgroup { font-weight: bold } td, th { padding: 0 } body { -ms-word-wrap: break-word; word-wrap: break-word } body, button, input, textarea { font-family: "Manrope", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; line-height: 1.618; text-rendering: optimizeLegibility; } select { color: initial; font-family: "Source Sans Pro", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; max-width: 100%; background-color: #FFFFFF; } summary { display: list-item } h1, h2, h3, h4, h5, h6, .metawrite-page-content-container, .post-nav-links { clear: both; } .bypostauthor { display: block } hr { background-color: #ccc; border: 0; height: 1px; margin: 0 0 1.41575em } ul { margin: 0 0 1.41575em 1.5em; padding: 0; list-style-type: disc !important; list-style-position: outside !important; } ol { margin: 0 0 1.41575em 1.5em; padding: 0; list-style-type: decimal !important; list-style-position: outside !important; } li::marker { font-size: inherit; color: inherit; } .metawrite-visible-on-load { display: none !important; } .metawrite-widget ul, .metawrite-widget ol { padding: 0; } ul { list-style: disc !important; } ol { list-style: decimal !important; } li>ul, li>ol { margin-bottom: 0; margin-left: 20px; } dt { font-weight: 600 } dd { margin: 0 0 1.618em } dfn, cite, em, i { font-style: italic } blockquote { padding: 0 1em; border-left: 3px solid rgba(0, 0, 0, .05); font-style: italic } address { margin: 0 0 1.41575em } pre { background: rgba(0, 0, 0, .1); font-family: "Source Sans Pro", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; margin-bottom: 1.618em; padding: 1.618em; overflow: auto; max-width: 100% } code, kbd, tt, var { font-family: "Source Sans Pro", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; background-color: rgba(0, 0, 0, .05); padding: .202em .5407911001em } abbr, acronym { border-bottom: 1px dotted #666; cursor: help } mark, ins { text-decoration: none; font-weight: 600; background: rgba(0, 0, 0, 0) } sup, sub { font-size: 75%; height: 0; line-height: 0; position: relative; vertical-align: baseline } sup { bottom: 1ex } sub { top: .5ex } small { font-size: 75% } big { font-size: 125% } figure { margin: 0 } .navbar-brand { max-width: 200px; } .alignleft { float: left; margin-right: 1em } .alignright { float: right; margin-left: 1em } .aligncenter { clear: both; margin: 0 auto } .screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important } .screen-reader-text.skip-link:focus { clip-path: none } .clear::before, .clear::after, .entry-content::before, .entry-content::after, .comment-content::before, .comment-content::after, .site-header::before, .site-header::after, .site-content::before, .site-content::after, .site-footer::before, .site-footer::after { content: ""; display: table } .clear::after, .entry-content::after, .comment-content::after, .site-header::after, .site-content::after, .site-footer::after { clear: both } table { border-spacing: 0; width: 100%; margin: 0 0 1.41575em; border-collapse: collapse; } table caption { padding: 1em 0; font-weight: 600 } table td, table th { padding: 1em 1.41575em; text-align: left; vertical-align: top; border: 1px solid #e3e3e3; border-collapse: collapse; } table td p:last-child, table th p:last-child { margin-bottom: 0 } table th { font-weight: 600 } table tr { border-bottom: 1px solid #ddd; } table thead th { padding: 1.41575em; vertical-align: middle } table tbody h2 { font-size: 1em; letter-spacing: normal; font-weight: 400 } table tbody h2 a { font-weight: 400 } .cat-links, .tags-links { font-size: .875em } .cat-links a, .tags-links a { color: #727272; font-weight: 600; text-decoration: underline } .byline, .updated:not(.published) { display: none } .single .byline, .group-blog .byline { display: inline } .post-nav-links { margin: 0 0 1em } button, input, select, textarea { font-size: 100%; margin: 0 } input[type=button], input[type=reset], input[type=submit] { border-radius: var(--border-radius); background-color: var(--primary-color); border: 1px solid var(--primary-color); color: var(--primary-font-color); cursor: pointer; padding: .6180469716em 1.41575em; text-decoration: none; font-weight: 600; text-shadow: none; display: inline-block; -webkit-appearance: none } input[type=button]:hover, input[type=reset]:hover, input[type=submit]:hover { background-color: var(--primary-font-color); color: var(--primary-color); } input[type=checkbox], input[type=radio] { padding: 0 } input[type=search]::-webkit-search-decoration { -webkit-appearance: none } input[type=search] { box-sizing: border-box } input[type=search]::placeholder { color: #616161 } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0 } textarea { overflow: auto; padding-left: .875em; vertical-align: top; width: 100% } label { font-weight: 400 } label.inline input { width: auto } fieldset { padding: 1em 1.618em 1.618em; border: 0; margin: 1.618em 0; } fieldset legend { font-weight: 600; padding: .6180469716em 1em; margin-left: -1em } [placeholder]:focus::-webkit-input-placeholder { -webkit-transition: opacity .5s .5s ease; -moz-transition: opacity .5s .5s ease; transition: opacity .5s .5s ease; opacity: 0 } .wp-caption { margin-bottom: 1em; max-width: 100% } .wp-caption img[class*=wp-image-] { display: block; margin: 0 auto } .wp-block-paragraph.custom-style { font-style: italic; } .wp-caption .wp-caption-text { text-align: center; font-style: italic; border-bottom: 2px solid rgba(0, 0, 0, .05); padding: 1em 0 } .gallery { margin-bottom: 1em } .gallery::before, .gallery::after { content: ""; display: table } .gallery::after { clear: both } .gallery .gallery-item { display: inline-block; text-align: center; vertical-align: top; width: 100%; margin: 0 0 10px 0; } .gallery .gallery-item .gallery-icon a { display: block } .gallery .gallery-item .gallery-icon img { border: none; height: auto; margin: 0 auto } .gallery .gallery-item .gallery-caption { margin: 5px 0 0 0; text-align: center } .gallery.gallery-columns-1 .gallery-item { width: 100% } .gallery.gallery-columns-2 .gallery-item { width: 50% } .gallery.gallery-columns-3 .gallery-item { width: 33.3% } .gallery.gallery-columns-4 .gallery-item { width: 25% } .gallery.gallery-columns-5 .gallery-item { width: 20% } .gallery.gallery-columns-6 .gallery-item { width: 16.666666667% } .gallery.gallery-columns-7 .gallery-item { width: 14.285714286% } .gallery.gallery-columns-8 .gallery-item { width: 12.5% } .gallery.gallery-columns-9 .gallery-item { width: 11.111111111% } embed, iframe, object, video { max-width: 100% } .widget { margin: 0 0 3.706325903em } .widget select { max-width: 100% } .widget .widget-search .search-submit { border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important } .widget .widget-title, .widget .widgettitle { font-size: 1.41575em; letter-spacing: 0; border-bottom: 1px solid rgba(0, 0, 0, .05); padding: 0 0 1em; margin-bottom: 1em; font-weight: 300 } .widget ul { margin-left: 0; } .widget ul ul { margin-left: 1.618em } .widget-area .widget { font-size: .875em; font-weight: 400 } .widget-area .widget h1.widget-title { font-size: 1.41575em } .widget-area .widget a { font-weight: 600; text-decoration: underline } .widget-area .widget a:hover { text-decoration: none } .widget-area .widget a.button, .widget-area .widget a.components-button:not(.is-link), .widget-area .widget a.wp-block-button__link { text-decoration: none } .widget-area .widget a.button { font-weight: 600 !important } .widget_search form:not(.wp-block-search), .widget_product_search form:not(.wp-block-search) { position: relative } .widget_search form:not(.wp-block-search) input[type=text], .widget_search form:not(.wp-block-search) input[type=search], .widget_product_search form:not(.wp-block-search) input[type=text], .widget_product_search form:not(.wp-block-search) input[type=search] { width: 100% } .widget_search form:not(.wp-block-search) input[type=submit], .widget_search form:not(.wp-block-search) button[type=submit], .widget_product_search form:not(.wp-block-search) input[type=submit], .widget_product_search form:not(.wp-block-search) button[type=submit] { border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; top: 0; left: 0 } .wp-block-cover-text { color: var(--white-700) !important; } .widget_recent_entries ul, .widget_pages ul, .widget_categories ul, .widget_archive ul, .widget_recent_comments ul, .widget_nav_menu ul, .widget_links ul, .widget_product_categories ul, .widget_layered_nav ul, .widget_layered_nav_filters ul { margin: 0 } .widget_recent_entries ul li, .widget_pages ul li, .widget_categories ul li, .widget_archive ul li, .widget_recent_comments ul li, .widget_nav_menu ul li, .widget_links ul li, .widget_product_categories ul li, .widget_layered_nav ul li, .widget_layered_nav_filters ul li { margin-bottom: 1em; line-height: 1.41575em } .widget_recent_entries ul .children, .widget_pages ul .children, .widget_categories ul .children, .widget_archive ul .children, .widget_recent_comments ul .children, .widget_nav_menu ul .children, .widget_links ul .children, .widget_product_categories ul .children, .widget_layered_nav ul .children, .widget_layered_nav_filters ul .children { margin-left: 0; margin-top: 1em } #wp-calendar th, #wp-calendar td, .wp-calendar-table th, .wp-calendar-table td { padding: .236em; text-align: center } .widget_recent_entries ul ul.children, .widget_pages ul ul.children { margin: .6180469716em 0 0 1.41575em } .error404-content { display: flex; flex-direction: column; justify-content: center; align-items: center; max-width: 500px; margin: 0 auto; text-align: center; } .error404-content .entry-title { margin: 0 0 10px 0; } .error404-content .intro-text { margin: 0 0 15px 0; } .page:not(.elementor-page) .metawrite-page-content-container>* { margin-bottom: 20px; } .page:not(.elementor-page) .metawrite-page-content-container>p { font-size: 1.0625rem; } .metawrite-single-post-content-container>* { margin-bottom: 20px; } .metawrite-single-post-content-container>p { font-size: 1.0625rem; } .metawrite-page-content-container:before, .metawrite-page-content-container:after { content: ''; display: table; clear: both; } .search-form { display: flex; justify-content: center; align-items: center; } .search-form>label { width: 100%; margin-bottom: 0; } .search-form .search-field { margin: 0 0 0 0; height: 33px; padding: 5px 10px; line-height: 33px; width: 100%; } .search-form .search-submit { margin-top: 0; margin-left: 5px; } ul{ margin-left:0px !important; padding-left:0px !important; } ul li{ list-style:none; } .metawrite-hide-no-content-section { display: none; } .wp-block-latest-comments__comment-excerpt p { font-size: .875em !important; } .wp-block-query-is-layout-flow ul.wp-block-post-template li.wp-block-post { margin-bottom: 15px; } .metawrite-single-post-pagination .post-nav-links a.post-page-numbers .p-lg { color: #fff !important; } .wp-block-latest-posts.wp-block-latest-posts__list li { margin-bottom: 10px; } @media (min-width: 768px) { .col-full { max-width: 66.4989378333em; margin-left: auto; margin-right: auto; padding: 0 2.617924em; box-sizing: content-box } .col-full::before, .col-full::after { content: ""; display: table } .col-full::after { clear: both } .col-full:after { content: " "; display: block; clear: both } .site-content::before, .site-content::after { content: ""; display: table } .site-content::after { clear: both } .content-area, .widget-area { margin-bottom: 2.617924em } } @media (max-width: 66.4989378333em) { .col-full { margin-left: 2.617924em; margin-right: 2.617924em; padding: 0 } } @media (max-width: 568px) { .col-full { margin-left: 1.41575em; margin-right: 1.41575em; padding: 0 } }