/** * Custom icons for this theme. * * @package WordPress * @subpackage Twenty_Twenty * @since Twenty Twenty 1.0 */ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { /** * SVG ICONS CLASS * Retrieve the SVG code for the specified icon. Based on a solution in Twenty Nineteen. * * @since Twenty Twenty 1.0 */ class TwentyTwenty_SVG_Icons { /** * GET SVG CODE * Get the SVG code for the specified icon * * @since Twenty Twenty 1.0 * * @param string $icon Icon name. * @param string $group Icon group. * @param string $color Color. */ public static function get_svg( $icon, $group = 'ui', $color = '#1A1A1B' ) { if ( 'ui' === $group ) { $arr = self::$ui_icons; } elseif ( 'social' === $group ) { $arr = self::$social_icons; } else { $arr = array(); } /** * Filters Twenty Twenty's array of icons. * * The dynamic portion of the hook name, `$group`, refers to * the name of the group of icons, either "ui" or "social". * * @since Twenty Twenty 1.5 * * @param array $arr Array of icons. */ $arr = apply_filters( "twentytwenty_svg_icons_{$group}", $arr ); /** * Filters an SVG icon's color. * * @since Twenty Twenty 1.5 * * @param string $color The icon color. * @param string $icon The icon name. * @param string $group The icon group. */ $color = apply_filters( 'twentytwenty_svg_icon_color', $color, $icon, $group ); if ( array_key_exists( $icon, $arr ) ) { $repl = '\s*<', $svg ); // Remove whitespace between SVG tags. return $svg; } return null; } /** * GET SOCIAL LINK SVG * Detects the social network from a URL and returns the SVG code for its icon. * * @since Twenty Twenty 1.0 * * @param string $uri The URL to retrieve SVG for. */ public static function get_social_link_svg( $uri ) { static $regex_map; // Only compute regex map once, for performance. if ( ! isset( $regex_map ) ) { $regex_map = array(); /** * Filters Twenty Twenty's array of domain mappings for social icons. * * By default, each Icon ID is matched against a .com TLD. To override this behavior, * specify all the domains it covers (including the .com TLD too, if applicable). * * @since Twenty Twenty 1.5 * * @param array $social_icons_map Array of default social icons. */ $map = apply_filters( 'twentytwenty_social_icons_map', self::$social_icons_map ); /** * Filters Twenty Twenty's array of social icons. * * @since Twenty Twenty 1.5 * * @param array $social_icons Array of default social icons. */ $social_icons = apply_filters( 'twentytwenty_svg_icons_social', self::$social_icons ); foreach ( array_keys( $social_icons ) as $icon ) { $domains = array_key_exists( $icon, $map ) ? $map[ $icon ] : array( sprintf( '%s.com', $icon ) ); $domains = array_map( 'trim', $domains ); // Remove leading/trailing spaces, to prevent regex from failing to match. $domains = array_map( 'preg_quote', $domains ); $regex_map[ $icon ] = sprintf( '/(%s)/i', implode( '|', $domains ) ); } } foreach ( $regex_map as $icon => $regex ) { if ( preg_match( $regex, $uri ) ) { return twentytwenty_get_theme_svg( $icon, 'social' ); } } return null; } /** * ICON STORAGE * Store the code for all SVGs in an array. * * @since Twenty Twenty 1.0 * @var array */ public static $ui_icons = array( 'arrow-down' => ' ', 'arrow-down-circled' => ' ', 'bookmark' => ' ', 'calendar' => ' ', 'chevron-down' => ' ', 'comment' => ' ', 'cross' => ' ', 'ellipsis' => ' ', 'edit' => ' ', 'folder' => ' ', 'link' => ' ', 'search' => ' ', 'tag' => ' ', 'user' => ' ', ); /** * Social Icons – domain mappings. * * By default, each Icon ID is matched against a .com TLD. To override this behavior, * specify all the domains it covers (including the .com TLD too, if applicable). * * @since Twenty Twenty 1.0 * @var array */ public static $social_icons_map = array( 'amazon' => array( 'amazon.com', 'amazon.cn', 'amazon.in', 'amazon.fr', 'amazon.de', 'amazon.it', 'amazon.nl', 'amazon.es', 'amazon.co', 'amazon.ca', ), 'behance' => array( 'behance.net', ), 'codepen' => array( 'codepen.io', ), 'facebook' => array( 'facebook.com', 'fb.me', ), 'feed' => array( 'feed', ), 'google' => array( 'g.page', ), 'lastfm' => array( 'last.fm', ), 'mail' => array( 'mailto:', ), 'mastodon' => array( 'mastodon.social', 'pawoo.net', 'mstdn.jp', 'mastodon.cloud', 'mastodon.online', 'counter.social', 'mstdn.social', 'mas.to', 'mastodon.world', 'gc2.jp', ), 'pocket' => array( 'getpocket.com', ), 'tiktok' => array( 'tiktok.com', ), 'twitch' => array( 'twitch.tv', ), 'whatsapp' => array( 'wa.me', 'whatsapp.com', ), 'wordpress' => array( 'wordpress.com', 'wordpress.org', ), ); /** * Social Icons – svg sources. * * @since Twenty Twenty 1.0 * @var array */ public static $social_icons = array( '500px' => '', 'amazon' => '', 'bandcamp' => '', 'behance' => '', 'codepen' => '', 'deviantart' => '', 'dribbble' => '', 'dropbox' => '', 'etsy' => '', 'facebook' => '', 'feed' => '', 'flickr' => '', 'foursquare' => '', 'goodreads' => '', 'google' => '', 'github' => '', 'instagram' => '', 'lastfm' => '', 'linkedin' => '', 'mail' => '', 'mastodon' => '', 'medium' => '', 'meetup' => '', 'pinterest' => '', 'pocket' => '', 'reddit' => '', 'skype' => '', 'snapchat' => '', 'soundcloud' => '', 'spotify' => '', 'tumblr' => '', 'tiktok' => '', 'twitch' => '', 'twitter' => '', 'vimeo' => '', 'vk' => '', 'whatsapp' => ' ', // phpcs:disable WordPress.WP.CapitalPDangit.Misspelled 'wordpress' => '', 'yelp' => '', 'youtube' => '', ); } }/** * Non-latin language handling. * * Handle non-latin language styles. * * @package WordPress * @subpackage Twenty_Twenty * @since Twenty Twenty 1.0 */ if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) { /** * Language handling. * * @since Twenty Twenty 1.0 */ class TwentyTwenty_Non_Latin_Languages { /** * Get custom CSS. * * Return CSS for non-latin language, if available, or null * * @since Twenty Twenty 1.0 * * @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor". * @return string|null Custom CSS, or null if not applicable. */ public static function get_non_latin_css( $type = 'front-end' ) { // Fetch site locale. $locale = get_bloginfo( 'language' ); /** * Filters the fallback fonts for non-latin languages. * * @since Twenty Twenty 1.0 * * @param array $font_family An array of locales and font families. */ $font_family = apply_filters( 'twentytwenty_get_localized_font_family_types', array( // Arabic. 'ar' => array( 'Tahoma', 'Arial', 'sans-serif' ), 'ary' => array( 'Tahoma', 'Arial', 'sans-serif' ), 'azb' => array( 'Tahoma', 'Arial', 'sans-serif' ), 'ckb' => array( 'Tahoma', 'Arial', 'sans-serif' ), 'fa-IR' => array( 'Tahoma', 'Arial', 'sans-serif' ), 'haz' => array( 'Tahoma', 'Arial', 'sans-serif' ), 'ps' => array( 'Tahoma', 'Arial', 'sans-serif' ), // Chinese Simplified (China) - Noto Sans SC. 'zh-CN' => array( '\'PingFang SC\'', '\'Helvetica Neue\'', '\'Microsoft YaHei New\'', '\'STHeiti Light\'', 'sans-serif' ), // Chinese Traditional (Taiwan) - Noto Sans TC. 'zh-TW' => array( '\'PingFang TC\'', '\'Helvetica Neue\'', '\'Microsoft YaHei New\'', '\'STHeiti Light\'', 'sans-serif' ), // Chinese (Hong Kong) - Noto Sans HK. 'zh-HK' => array( '\'PingFang HK\'', '\'Helvetica Neue\'', '\'Microsoft YaHei New\'', '\'STHeiti Light\'', 'sans-serif' ), // Cyrillic. 'bel' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), 'bg-BG' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), 'kk' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), 'mk-MK' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), 'mn' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), 'ru-RU' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), 'sah' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), 'sr-RS' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), 'tt-RU' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), 'uk' => array( '\'Helvetica Neue\'', 'Helvetica', '\'Segoe UI\'', 'Arial', 'sans-serif' ), // Devanagari. 'bn-BD' => array( 'Arial', 'sans-serif' ), 'hi-IN' => array( 'Arial', 'sans-serif' ), 'mr' => array( 'Arial', 'sans-serif' ), 'ne-NP' => array( 'Arial', 'sans-serif' ), // Greek. 'el' => array( '\'Helvetica Neue\', Helvetica, Arial, sans-serif' ), // Gujarati. 'gu' => array( 'Arial', 'sans-serif' ), // Hebrew. 'he-IL' => array( '\'Arial Hebrew\'', 'Arial', 'sans-serif' ), // Japanese. 'ja' => array( 'sans-serif' ), // Korean. 'ko-KR' => array( '\'Apple SD Gothic Neo\'', '\'Malgun Gothic\'', '\'Nanum Gothic\'', 'Dotum', 'sans-serif' ), // Thai. 'th' => array( '\'Sukhumvit Set\'', '\'Helvetica Neue\'', 'Helvetica', 'Arial', 'sans-serif' ), // Vietnamese. 'vi' => array( '\'Libre Franklin\'', 'sans-serif' ), ) ); // Return if the selected language has no fallback fonts. if ( empty( $font_family[ $locale ] ) ) { return null; } /** * Filters the elements to apply fallback fonts to. * * @since Twenty Twenty 1.0 * * @param array $elements An array of elements for "front-end", "block-editor", or "classic-editor". */ $elements = apply_filters( 'twentytwenty_get_localized_font_family_elements', array( 'front-end' => array( 'body', 'input', 'textarea', 'button', '.button', '.faux-button', '.faux-button.more-link', '.wp-block-button__link', '.wp-block-file__button', '.has-drop-cap:not(:focus)::first-letter', '.entry-content .wp-block-archives', '.entry-content .wp-block-categories', '.entry-content .wp-block-cover-image', '.entry-content .wp-block-cover-image p', '.entry-content .wp-block-latest-comments', '.entry-content .wp-block-latest-posts', '.entry-content .wp-block-pullquote', '.entry-content .wp-block-quote.is-large', '.entry-content .wp-block-quote.is-style-large', '.entry-content .wp-block-archives *', '.entry-content .wp-block-categories *', '.entry-content .wp-block-latest-posts *', '.entry-content .wp-block-latest-comments *', '.entry-content', '.entry-content h1', '.entry-content h2', '.entry-content h3', '.entry-content h4', '.entry-content h5', '.entry-content h6', '.entry-content p', '.entry-content ol', '.entry-content ul', '.entry-content dl', '.entry-content dt', '.entry-content cite', '.entry-content figcaption', '.entry-content table', '.entry-content address', '.entry-content .wp-caption-text', '.entry-content .wp-block-file', '.comment-content p', '.comment-content ol', '.comment-content ul', '.comment-content dl', '.comment-content dt', '.comment-content cite', '.comment-content figcaption', '.comment-content .wp-caption-text', '.widget_text p', '.widget_text ol', '.widget_text ul', '.widget_text dl', '.widget_text dt', '.widget-content .rssSummary', '.widget-content cite', '.widget-content figcaption', '.widget-content .wp-caption-text' ), 'block-editor' => array( '.editor-styles-wrapper > *', '.editor-styles-wrapper p', '.editor-styles-wrapper ol', '.editor-styles-wrapper ul', '.editor-styles-wrapper dl', '.editor-styles-wrapper dt', '.editor-post-title__block .editor-post-title__input', '.editor-styles-wrapper .wp-block-post-title', '.editor-styles-wrapper h1', '.editor-styles-wrapper h2', '.editor-styles-wrapper h3', '.editor-styles-wrapper h4', '.editor-styles-wrapper h5', '.editor-styles-wrapper h6', '.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter', '.editor-styles-wrapper cite', '.editor-styles-wrapper figcaption', '.editor-styles-wrapper .wp-caption-text' ), 'classic-editor' => array( 'body#tinymce.wp-editor', 'body#tinymce.wp-editor p', 'body#tinymce.wp-editor ol', 'body#tinymce.wp-editor ul', 'body#tinymce.wp-editor dl', 'body#tinymce.wp-editor dt', 'body#tinymce.wp-editor figcaption', 'body#tinymce.wp-editor .wp-caption-text', 'body#tinymce.wp-editor .wp-caption-dd', 'body#tinymce.wp-editor cite', 'body#tinymce.wp-editor table' ), ) ); // Return if the specified type doesn't exist. if ( empty( $elements[ $type ] ) ) { return null; } // Return the specified styles. return twentytwenty_generate_css( implode( ',', $elements[ $type ] ), 'font-family', implode( ',', $font_family[ $locale ] ), null, null, false ); } } }/* Overriding WordPress native styles */ .aftc { max-width: none; } .aftc h2 { text-align: inherit; } .aftc h2:first-child, .aftc h3:first-child { margin-top: 0; } .aftc hr { margin: 2.62em 0; } .feature-section + hr { margin-top: 0; } #wpbody select { height: auto; padding: .62em; line-height: inherit; } .aftc .aftc__response .notice { display: block !important; max-width: 950px; margin: auto; } /* Plugin elements */ .aftc__demo-import-files { width: 100%; } .aftc__demo-import-preview-image-message { font-style: italic; } /* Plugin title */ .aftc__title:before { width: auto; height: auto; font-size: inherit; margin-right: 6px; margin-top: 6px; } /* Plugin intro text */ .aftc__intro-text ul{ display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: space-between; justify-content: space-between; } .aftc__intro-text ul li{ width: 32%; margin-right: 2%; background: #FFF; padding: 25px; -webkit-border-radius: 3px; border-radius: 3px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .aftc__intro-text ul li:last-child { margin-right: 0; } .aftc__intro-text ul li p { margin-bottom: 0; font-size: 14px; color: #999; } .about-wrap p { color: #777; } .about-wrap p.aftc__description { margin-top: 0; } /* Plugin switch import mode link*/ .wp-admin input[type=file]{ width: 100%; max-width: 100%; } /* Plugin multi select import and Plugin file upload containers */ .aftc__file-upload-container { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 30px; background: #FFF; padding: 50px 50px 60px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .aftc__file-upload, .aftc__multi-select-import, .aftc__demo-import-notice:not(:empty) { padding: 20px; margin: 1.62em 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; border: 1px solid #ddd; background: #f5f7f9; } .about-wrap h2 { font-size: 1.4em; font-weight: 400; margin: 0; padding: 0 20px 0px; grid-column: span 3; color: #405566; } .aftc__file-upload { margin: 0; margin-bottom: -1px; text-align: left; } .aftc__file-upload span { font-size: .81em; font-weight: normal; opacity: .66; } .aftc__demo-import-notice:not(:empty) { border: 0; border-left: 4px solid #00a0d2; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); } [dir="rtl"] .aftc__demo-import-notice:not(:empty) { border: 0; border-right: 4px solid #00a0d2; } /* Plugin button */ .aftc__button-container { margin-top: 1.62em; margin-bottom: 1.62em; } /* AJAX loader */ p.aftc__ajax-loader { font-size: 1.5em; display: none; } .aftc__ajax-loader .spinner { display: inline-block; float: none; visibility: visible; margin-bottom: 6px; vertical-align: middle; } /* New grid layout */ /*.wp-core-ui .notice.is-dismissible{*/ /* display: none;*/ /*}*/ .aftc__gl.js-aftc-gl { background: #fff; } .aftc__gl-item { float: left; width: 100%; position: relative; -webkit-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 2px 5px rgb(143 163 184 / 12%); box-shadow: 0 2px 5px rgb(143 163 184 / 12%); -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -ms-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; overflow: hidden; } .aftc__gl-item-image-container { display: block; overflow: hidden; position: relative; -webkit-backface-visibility: hidden; -webkit-transition: opacity 0.2s ease-in-out; transition: opacity 0.2s ease-in-out; } .aftc__gl-item-image { height: auto; width: 100%; -webkit-transition: opacity 0.2s ease-in-out; transition: opacity 0.2s ease-in-out; } .aftc__gl-item-image--no-image { display: inline-block; width: 50%; text-align: center; position: absolute; top: 45%; right: 25%; left: 25%; } .aftc__gl-item-footer { width: 100%; margin: 0; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-justify-content: space-between; justify-content: space-between; padding: 20px 25px; -webkit-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; border: 1px solid rgba(226,230,235,0.7); background: rgba(235,237,241,0.2) } .aftc__gl-item.js-aftc-gl-item:hover .aftc__gl-item-footer { opacity: 1; visibility: visible; } .aftc__gl-item-footer--with-preview h4.aftc__gl-item-title { font-size: 15px; line-height: 1.33; } h4.aftc__gl-item-title { white-space: nowrap; text-overflow: ellipsis; display: inline-block; margin: 0; } .aftc__gl-item-button { float: right; } .aftc__gl-item-button + .aftc__gl-item-button { margin-right: 15px; color: rgba(46,68,83,0.8); background: #fff; border-color: #e2e6eb; box-shadow: 0 1px 3px rgb(0 0 0 / 7%); } .aftc__gl-item-button + .aftc_modal + .aftc__gl-item-button { margin-right: 15px; } .aftc__gl-item-container { padding: 40px 30px; background: #FFF; display: grid; grid-column-gap: 30px; grid-row-gap: 30px; max-width: 450px; margin: 0 auto; } .aftc__gl-item-container h3 { grid-column: span 2; } .js-aftc-gl-item-selected .aftc__gl-item { grid-column: 2/4; } .js-aftc-gl-item-selected h3 { grid-column: span 4; } @media screen and (max-width: 782px) { .wp-core-ui .button, .wp-core-ui .button.button-large, .wp-core-ui .button.button-small, a.preview, input#publish, input#save-post{ margin-bottom: 0; } } @media screen and (min-width: 768px) { .aftc__gl-item-container { grid-template-columns: repeat(2, 1fr); max-width: 950px !important; width: 100%; } .js-aftc-gl-item-selected { grid-template-columns: repeat(4, 1fr); } } @media screen and (max-width: 768px) { .aftc__file-upload-container .aftc__file-upload { grid-column: 1/ span 3; } .wp-admin input[type=file]{ width: unset; } } .about-wrap .aftc__gl-item.js-aftc-gl-item img{ -webkit-transition: all ease 0.5s; -moz-transition: all ease 0.5s; -ms-transition: all ease 0.5s; -o-transition: all ease 0.5s; transition: all ease 0.5s; } .about-wrap .aftc__gl-item.js-aftc-gl-item:hover img { -webkit-transform: scale(1.025); -moz-transform: scale(1.025); -ms-transform: scale(1.025); -o-transform: scale(1.025); transform: scale(1.025); } .about-wrap img.aftc__logo { max-width: 200px; } .aftc__gl-header { padding-bottom: 10px; text-align: center; background: #FFF; } .aftc__gl-navigation { font-size: 13px; background: #f1f1f1; } .aftc__gl-navigation ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; } .aftc__gl-navigation li{ margin: 0; } .aftc__gl-navigation li:not(:last-child) { margin: 0 15px 0 0; } .aftc__gl-navigation li a { display: block; text-align: center; text-decoration: none; color: #777; font-size: 15px; padding: 0 25px; height: 48px; line-height: 48px; -webkit-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0; -webkit-box-shadow: none; box-shadow: none; } .aftc__gl-navigation li a:hover, .aftc__gl-navigation li.active a, .aftc__gl-navigation li.active a:hover { color: #2e4453; } .aftc__gl-navigation li.active a, .aftc__gl-navigation li a:hover { background-color: #fff; -webkit-box-shadow: 0 -2px 20px rgb(220 231 238 / 40%); box-shadow: 0 -2px 20px rgb(220 231 238 / 40%); } .aftc__gl-navigation li:not(.active) a:hover { -webkit-box-shadow: inset 0 -5px 5px rgb(0 0 0 / 1%); box-shadow: inset 0 -5px 5px rgb(0 0 0 / 1%); } .aftc__gl-search-input { display: inline-block; width: 300px; height: 60px; margin: 50px 0 0; } .aftc__gl-search-input[type=search]{ padding: 0 20px; width: 100%; max-width: 400px; } /* Grid animations */ @keyframes aftc-fade { from { opacity: 1; } to { opacity: 0; } } .aftc-is-fadeout { animation: aftc-fade linear 200ms 1 forwards; } .aftc-is-fadein { animation: aftc-fade linear 200ms 1 reverse forwards; } /* Grid layout modal window */ .aftc__modal-image-container { width: 100%; height: 300px; margin: 0; overflow: hidden; } .aftc__modal-item-title { margin-top: 0.5em; font-weight: bold; font-size: 24px; } .aftc__modal-image-container img { width: 100%; } .aftc__modal-notice.aftc__demo-import-notice:not(:empty) { border: 1px solid #e5e5e5; border-left: 4px solid #00a0d2; margin: 1em 0 0; } /* Redux */ .aftc__redux-option-name-label { margin-right: 5px; } /* additional css for new design */ .toplevel_page_pt-one-click-demo-import #wpcontent { padding-left: 0; } .about-wrap { margin: 60px 0px 0 0px; text-align: center; } .wp-core-ui .button-group.button-hero .button, .wp-core-ui .button.button-hero { font-size: 14px; min-height: unset; line-height: 1; padding: 10px 18px; } .about-wrap h1 { font-size: 2em; padding: 20px 0 10px; margin: 20px 0 0; text-align: center; } .about-wrap .about-description, .about-wrap .about-text{ max-width: 1000px; margin: auto; padding: 0 15px 15px; font-size: 16px; line-height: 1.5; } .aftc__import-mode-switch { display: inline-block; color: rgba(46,68,83,0.8);; padding: 12px 24px; -webkit-border-radius: 3px; border-radius: 3px; transition: all 0.2s ease-in-out; font-size: 1em; font-weight: 700; text-decoration: none; color: rgba(46,68,83,0.8); background: #fff; border: 1px solid #e2e6eb; box-shadow: 0 1px 3px rgb(0 0 0 / 7%); } .aftc__import-mode-switch:hover { color: #2e4453; border-color: rgba(190,196,203,0.8); background: #FFF; } .aftc__import-mode-switch.reload-importer { color: #fff; background: #0085BA; margin-left: 15px; border-color: rgba(1,118,165,0.6); -webkit-box-shadow: 0 1px 4px rgb(1 96 134 / 40%); box-shadow: 0 1px 4px rgb(1 96 134 / 40%); } .aftc__import-mode-switch.reload-importer:hover { color: #fff; background: #0591c9; border-color: rgba(1,118,165,0.85); box-shadow: 0 1px 4px rgb(1 96 134 / 40%); } .about-wrap h3{ margin-bottom: 12px; font-size: 1.4em; } .about-wrap li h4 { font-size: 20px; margin: 0px 0 12px; line-height: 1.3; } .aftc__gl-item-button.button { color: rgba(46,68,83,0.8); background: #fff; border-color: #e2e6eb; box-shadow: 0 1px 3px rgb(0 0 0 / 7%); } .wp-core-ui .button{ height: 35px; line-height: 33px; padding: 0 15px; font-weight: 500; } .aftc-modal-content button.aftc__gl-item-button.button.button-primary.js-aftc-gl-import-data { float: none; margin-top: 30px; } button.aftc__button.button.button-hero.button-primary.aftc-activate-plugin { margin-top: 30px; } .aftc__gl-item-button.button:hover, .wp-core-ui .button:hover{ color: #2e4453; border-color: rgba(190,196,203,0.8); background: #FFF; } .wp-core-ui .button-primary{ color: #fff; background: #0085ba; border-color: rgba(1,118,165,0.6); box-shadow: 0 1px 4px rgb(1 96 134 / 40%); } .wp-core-ui .button-primary:hover { color: #fff; background: #0591c9; border-color: rgba(1,118,165,0.85); box-shadow: 0 1px 4px rgb(1 96 134 / 40%); } .wp-core-ui .button-primary:focus{ color: #fff; background: #0591c9; border-color: rgba(1,118,165,0.85); box-shadow: 0 1px 4px rgb(1 96 134 / 40%); } .aftc__gl-item-image-container { max-height: 385px; } input[type=search]{ border: 1px solid #b2b7bb; } input[type=checkbox]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime-local]:focus, input[type=datetime]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=password]:focus, input[type=radio]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=text]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus{ border-color: #5b9dd9; box-shadow: 0 0 0 1px #5b9dd9; } .aftc__intro-text { text-align: center; margin: 50px; max-width: 950px; margin: 50px auto; } .ui-dialog { width: 500px !important; } .notice, div.error, div.updated{ border-left-width: 8px; } .ui-dialog-buttonset .ui-button:first-child { border: 2px solid #000; width: auto; color: #000; background: 0 0; margin: 0 auto; font-size: 14px; font-weight: 700; line-height: 30px; height: auto; padding: 3px 20px; -webkit-border-radius: 30px; border-radius: 30px; -webkit-box-shadow: none; box-shadow: none; -webkit-transition: all .4s ease; transition: all .4s ease; background: transparent; } .ui-dialog-buttonset .ui-button:first-child:hover { background-color: #000; color: #FFF; border-color: #000; } .ui-button.ui-dialog-titlebar-close { background: #f4511e; color: #FFF; } .ui-button.ui-dialog-titlebar-close:focus, .ui-button.ui-dialog-titlebar-close:hover { color: #FFF; } .ui-button.ui-dialog-titlebar-close:focus { -webkit-box-shadow: none; box-shadow: none; } @media screen and (max-width: 1600px) { .aftc__gl-item-image-container { max-height: 320px; } } .aftc__file-upload p { margin-top: 0; } .aftc_modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(100,100,100,0.4); } /* Modal Content/Box */ .aftc-modal-content { background-color: #fefefe; padding: 60px 40px; width: 80%; position: absolute; left: calc(90px + 50%); top: 50%; transform: translate(-50%, -50%); max-width: 500px; text-align: center; border-radius: 5px; } /* The Close Button */ .aftc_close { color: #888; float: right; font-size: 28px; display: inline-block; padding: 2px 4px 8px; position: relative; top: -40px; left: 21px; } .aftc_close:hover, .aftc_close:focus { text-decoration: none; cursor: pointer; color: #111; } ul.af-require-plugin-wrap { text-align: left; width: fit-content; margin: 40px auto 0; color: #7f888f; } .aftc.wrap.about-wrap > a { display: block; }