Created
March 10, 2023 15:23
-
-
Save vanbo/cb60ed268e883c1b7dd210db7ba760d5 to your computer and use it in GitHub Desktop.
paytrace-protect-js-theme
This file contains hidden or 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
add_filter( 'wc_paytrace_protect_form_theme', 'vanbo_paytrace_protect_js_theme', 10, 3 ); | |
function vanbo_paytrace_protect_js_theme( $theme_styles, $map, $id ) { | |
return array( | |
'iframe' => array( | |
'background' => '', | |
'padding' => '', | |
'margin' => '', | |
), | |
'code' => array( | |
'font_color' => '#6d6d6d', | |
'border_color' => '#e0e0e0', | |
'border_style' => 'solid', | |
'font_size' => '16px', | |
'input_border_radius' => '0', | |
'input_border_width' => '1px', | |
'input_font' => 'Times New Roman, arial, fantasy', | |
'input_font_weight' => '400', | |
'input_margin' => '5px 0px 5px 0px', | |
'input_padding' => '0px 10px 0px 10px', | |
'label_color' => 'rgba(26,26,26,.7)', | |
'label_size' => '16px', | |
'label_width' => '150px', | |
'label_font' => 'Times New Roman, sans-serif, serif', | |
'label_font_weight' => 'light', | |
'label_margin' => '5px 0px 0px 0px', | |
'label_padding' => '0px', | |
'label_border_style' => 'none', | |
'label_border_color' => '', | |
'label_border_radius' => '', | |
'label_border_width' => '', | |
'background_color' => '#ffffff', | |
'height' => '36px', | |
'width' => '100px', | |
'padding_bottom' => '0px', | |
), | |
'cc' => array( | |
'font_color' => '#6d6d6d', | |
'border_color' => '#e0e0e0', | |
'border_style' => 'solid', | |
'font_size' => '16px', | |
'input_border_radius' => '0px', | |
'input_border_width' => '1px', | |
'input_font' => 'Times New Roman, arial, fantasy', | |
'input_font_weight' => '400', | |
'input_margin' => '5px 0px 5px 0px', | |
'input_padding' => '0px 10px 0px 10px', | |
'label_color' => 'rgba(26,26,26,.7)', | |
'label_size' => '16px', | |
'label_width' => '150px', | |
'label_font' => 'Times New Roman, sans-serif, serif', | |
'label_font_weight' => 'light', | |
'label_margin' => '5px 0px 0px 0px', | |
'label_padding' => '0px', | |
'label_border_style' => 'none', | |
'label_border_color' => '', | |
'label_border_radius' => '', | |
'label_border_width' => '', | |
'background_color' => '#ffffff', | |
'height' => '36px', | |
'width' => 'calc(100% - 20px)', | |
'padding_bottom' => '0px', | |
), | |
'exp' => array( | |
'font_color' => '#6d6d6d', | |
'border_color' => '#e0e0e0', | |
'border_style' => 'solid', | |
'font_size' => '16px', | |
'input_border_radius' => '0px', | |
'input_border_width' => '1px', | |
'input_font' => 'Times New Roman, arial, fantasy', | |
'input_font_weight' => '400', | |
'input_margin' => '5px 0px 5px 0px', | |
'input_padding' => '0px 10px 0px 10px', | |
'label_color' => 'rgba(26,26,26,.7)', | |
'label_size' => '16px', | |
'label_width' => '150px', | |
'label_font' => 'Times New Roman, sans-serif, serif', | |
'label_font_weight' => 'light', | |
'label_margin' => '5px 0px 0px 0px', | |
'label_padding' => '0px', | |
'label_border_style' => 'none', | |
'label_border_color' => '', | |
'label_border_radius' => '', | |
'label_border_width' => '', | |
'background_color' => '#ffffff', | |
'height' => '36px', | |
'width' => '50px', | |
'padding_bottom' => '0px', | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment