Skip to content

Instantly share code, notes, and snippets.

View jonathanstegall's full-sized avatar

Jonathan Stegall jonathanstegall

View GitHub Profile
/* html changes for body:
- use .ds-l-container on the main element
- add a wrapping .ds-l-row element directly inside the main element
- use .ds-l-col--12 ds-l-md-col--4 ds-l-lg-col--3 on #leftNav
- use .ds-l-col--12 ds-l-md-col--8 ds-l-lg-col--9 on #main-content
*/
.header--content-wrapper {
display: flex;
align-items: center;
/* main.css */
.result {
max-width: 1024px;
}
@media (min-width: 1024px) {
.search-page #searchApp.search-view {
/* padding: 0 var(--grid-margin-lg); */
/* add this element as the first child of header__row header__row--first and header__row header__row--second */
.header--content-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
max-width: 1440px;
margin: 0 auto;
}
/* main.css */
main.about {
/* max-width: 53rem; */
}
@media (min-width: 1280px) {
.site-container {
/* padding: 32px; */
/* html changes for body:
- use .ds-l-container on the #statuteApp element
- add a wrapping .ds-l-row element wrapping around .nav-container and inside .statute__container
- use .ds-l-col--12 ds-l-md-col--4 ds-l-lg-col--3 on .content__selector
- use .content inside the row
- use .ds-l-col--12 ds-l-md-col--8 ds-l-lg-col--9 on .table__parent
- add a main element around statuteApp
*/
@jonathanstegall
jonathanstegall / subject-page-changes.css
Last active October 1, 2024 18:09
subject-page-changes.css
#app-container > main:nth-child(3) {
padding: 24px 0;
}
/* main.css */
@media (min-width: 1024px) {
.site-homepage--update #main-content .top-container {
/* padding: 40px; */
@jonathanstegall
jonathanstegall / reg-page-css-changes.css
Last active October 1, 2024 18:07
draft of design changes to add a max-width to regulation pages that we could also use across the site
/* html changes for body:
- use .ds-l-container on the .content class
- use .ds-l-col--12 ds-l-md-col--4 ds-l-lg-col--3 on .left-sidebar
- use .ds-l-col--12 ds-l-md-col--4 ds-l-lg-col--6 on .reg-text
- use .ds-l-col--12 ds-l-md-col--4 ds-l-lg-col--3 on .right-sidebar
*/
.header--content-wrapper {
display: flex;
align-items: center;
@jonathanstegall
jonathanstegall / reset-metabox-order.php
Created September 19, 2022 14:30
Allow WordPress users to reset the metabox order for the post edit screen.
<?php
/*
Plugin Name: Reset Metabox Order
Description: Allow WordPress users to reset the metabox order for the post edit screen.
Version: 0.0.1
Author: Jonathan Stegall
Author URI: https://code.minnpost.com
Text Domain: reset-metabox-order
License: GPL2+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
isFollow|fbclid|icid|fr|hilite|etype|_hsmi|redirect_to|unapproved|link_id|replytocom|embedded_webview|force_isolation|mc_cid|fs|src|emci|adlt|utm_name|lctg|utm_c|sc_wbt|_x_tr_sl|_x_tr_tl|_x_tr_hl|_x_tr_pto|page|ref|is_install_whatsapp|linkId|back|client|share|msclkid|fb_action_ids|sfmc_sub|ct=|url=|hl=|presentid|ocid|nstoken|fireglass_rsn|blm_aid|platform|RelatedContentIds|hss_channel|stream=|apcid|bxns|cldee|geo|p2=
<?php
/**
* Plugin Name: Environment Files
* Description: Load environment-specific config files
*
*/
if ( 'local' !== VIP_GO_ENV ) {
if ( file_exists( WPCOM_VIP_PRIVATE_DIR . '/' . VIP_GO_ENV . '-config.php' ) ) {
require_once( WPCOM_VIP_PRIVATE_DIR . '/' . VIP_GO_ENV . '-config.php' );