Changeset 3426200
- Timestamp:
- 12/23/2025 12:41:26 PM (2 months ago)
- Location:
- adjust-accessibility/trunk
- Files:
-
- 3 edited
-
adjust-accessibility.php (modified) (3 diffs)
-
assets/css/accessibility.tailwind.css (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
adjust-accessibility/trunk/adjust-accessibility.php
r3425921 r3426200 4 4 * Plugin URI: 5 5 * Description: Adds front-end accessibility controls: brightness, saturation, font size, line height, letter spacing, dark/light mode, and highlight links/titles. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Techlogica 8 8 * Author URI: https://techlogica.com … … 90 90 * Front-end main CSS (Tailwind compiled). 91 91 */ 92 93 94 // public function adjst_acsiblty_enqueue_styles() { 95 // $css_file = plugin_dir_path( __FILE__ ) . 'assets/css/accessibility.tailwind.css'; 96 97 // wp_enqueue_style( 98 // 'adjst_acsiblty_front', 99 // plugin_dir_url( __FILE__ ) . 'assets/css/accessibility.tailwind.css', 100 // [], 101 // file_exists( $css_file ) ? filemtime( $css_file ) : '1.0.0' 102 // ); 103 // } 104 105 92 106 public function adjst_acsiblty_enqueue_styles() { 93 $css_file = plugin_dir_path( __FILE__ ) . 'assets/css/accessibility.tailwind.css'; 94 95 wp_enqueue_style( 96 'adjst_acsiblty_front', 97 plugin_dir_url( __FILE__ ) . 'assets/css/accessibility.tailwind.css', 98 [], 99 file_exists( $css_file ) ? filemtime( $css_file ) : '1.0.0' 100 ); 101 } 107 $css_file = plugin_dir_path(__FILE__) . 'assets/css/accessibility.tailwind.css'; 108 109 wp_enqueue_style( 110 'adjst_acsiblty_front', 111 plugin_dir_url(__FILE__) . 'assets/css/accessibility.tailwind.css', 112 [], 113 filemtime( $css_file ) 114 ); 115 116 // ✅ INLINE CSS MUST BE HERE 117 $primary = get_option( 'adjst_acsiblty_primary_color', '#0073aa' ); 118 wp_add_inline_style( 119 'adjst_acsiblty_front', 120 ":root { --aa-primary-color: " . esc_attr( $primary ) . "; }" 121 ); 122 } 123 102 124 103 125 /** … … 125 147 $primary = get_option( 'adjst_acsiblty_primary_color', '#0073aa' ); 126 148 127 wp_add_inline_style(128 'adjst_acsiblty_front',129 ':root { --aa-primary-color: ' . esc_attr( $primary ) . '; }'130 );149 // wp_add_inline_style( 150 // 'adjst_acsiblty_front', 151 // ':root { --aa-primary-color: ' . esc_attr( $primary ) . '; }' 152 // ); 131 153 132 154 // Pass enabled features & device flags to JS; defaults if none saved. -
adjust-accessibility/trunk/assets/css/accessibility.tailwind.css
r3425921 r3426200 209 209 210 210 button#aa-toggle img{ 211 width: 32px !important;212 height: 32px !important;213 max-width: 32px !important;214 max-height: 32px !important;211 width:42px !important; 212 height:42px !important; 213 max-width:42px !important; 214 max-height:42px !important; 215 215 transform:none !important; 216 216 margin:auto; … … 230 230 pointer-events:auto !important; 231 231 } 232 233 234 /* FIX ICON SIZE */ 235 button#aa-toggle img { 236 width: 42px !important; 237 height: 42px !important; 238 max-width: 42px !important; 239 max-height: 42px !important; 240 transform: none !important; 241 } -
adjust-accessibility/trunk/readme.txt
r3425921 r3426200 4 4 Requires at least: 4.5 5 5 Tested up to: 6.9 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.