This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is bad and we don't want it: | |
html { | |
font-size: 62.5%; | |
} | |
// So we create this variable... | |
$root-font-size-hack-active: true; | |
// ...and this Sass function: | |
@function rem($size) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$font-sizes: ( | |
"xs": [0.89em, clamp(0.89em, calc(0.87em + 0.07vw), 0.96em)], | |
"sm": [1.00em, clamp(1.00em, calc(0.96em + 0.20vw), 1.20em)], | |
"md": [1.13em, clamp(1.13em, calc(1.05em + 0.38vw), 1.50em)], | |
"lg": [1.27em, clamp(1.27em, calc(1.14em + 0.61vw), 1.88em)], | |
"h6": [1.42em, clamp(1.42em, calc(1.24em + 0.92vw), 2.34em)], | |
"h5": [1.60em, clamp(1.60em, calc(1.34em + 1.33vw), 2.93em)], | |
"h4": [1.80em, clamp(1.80em, calc(1.43em + 1.86vw), 3.66em)], | |
"h3": [2.03em, clamp(2.03em, calc(1.52em + 2.55vw), 4.58em)], | |
"h2": [2.28em, clamp(2.28em, calc(1.59em + 3.44vw), 5.72em)], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function gravity_forms_remove_theme_css() | |
{ | |
// remove Gravity Forms CSS | |
// wp_dequeue_style('gforms_reset_css'); | |
// wp_dequeue_style('gforms_datepicker_css'); // Ugly datepicker > broken illegible datepicker | |
// wp_dequeue_style('gforms_formsmain_css'); | |
wp_dequeue_style('gform_theme'); | |
wp_dequeue_style('gform_theme_ie11'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.block-accordion { | |
// Generic styles | |
@if ($is-editor == true) { | |
// Styles you need for editing, like opening this accordion so you can access the content | |
} | |
@if ($is-editor == false) { | |
// Or maybe some other styles that disagree with the editor for whatever reason | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace DisableComments; | |
// Removes from sidebar | |
function remove_sidebar_link() | |
{ | |
remove_menu_page('edit-comments.php'); | |
} | |
add_action('admin_menu', __NAMESPACE__ . '\remove_sidebar_link', 9999); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2020-07-12T08:40:51.370892</Date> | |
<Author>CORY-PC\cory</Author> | |
<URI>\Switch to Dark Theme</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<CalendarTrigger> | |
<StartBoundary>2020-07-12T20:00:00</StartBoundary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os, sys, stat, string | |
import json | |
import csv | |
import requests | |
# global utility variables | |
bitium_api_url = 'https://www.bitium.com/api/v2/organizations/' | |
current_directory = os.path.dirname(sys.argv[0]) |