mirror of
https://ghproxy.net/https://github.com/AlxMedia/curver.git
synced 2025-08-28 00:58:03 +08:00
1.0.4
This commit is contained in:
parent
3225714dfa
commit
6992887a80
6 changed files with 56 additions and 5 deletions
|
@ -807,3 +807,14 @@ if ( ! function_exists( 'curver_flexslider_gallery' ) ) {
|
|||
}
|
||||
add_action( 'wp_enqueue_scripts', 'curver_flexslider_gallery' );
|
||||
|
||||
|
||||
/* Accessibility IE11 fix - https://git.io/vWdr2
|
||||
/* ------------------------------------ */
|
||||
function curver_skip_link_focus_fix() {
|
||||
?>
|
||||
<script>
|
||||
/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
add_action( 'wp_print_footer_scripts', 'curver_skip_link_focus_fix' );
|
|
@ -129,7 +129,11 @@ a,
|
|||
.child-menu .current_page_item > a,
|
||||
.wp-pagenavi a { color: '.esc_attr( get_theme_mod('color-1') ).'; }
|
||||
|
||||
.themeform input[type="button"],
|
||||
.themeform input[type="reset"],
|
||||
.themeform input[type="submit"],
|
||||
.themeform button[type="button"],
|
||||
.themeform button[type="reset"],
|
||||
.themeform button[type="submit"],
|
||||
#header-inner,
|
||||
#flexslider-featured .flex-control-nav li a.flex-active,
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
|
||||
<body <?php body_class(); ?>>
|
||||
|
||||
<?php if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); } ?>
|
||||
|
||||
<a class="skip-link screen-reader-text" href="#page"><?php _e( 'Skip to content', 'curver' ); ?></a>
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<header id="header">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Curver\n"
|
||||
"POT-Creation-Date: 2019-03-19 17:47+0100\n"
|
||||
"POT-Creation-Date: 2019-07-26 19:23+0200\n"
|
||||
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
@ -10,7 +10,7 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.2\n"
|
||||
"X-Generator: Poedit 2.2.3\n"
|
||||
"X-Poedit-KeywordsList: __;_e;_x;_ex;_n;_nx;_n_noop;_nx_noop;"
|
||||
"translate_nooped_plural;number_format_i18n;date_i18n;esc_html__;esc_html_e;"
|
||||
"esc_html_x;esc_attr__;esc_attr_e;esc_attr_x\n"
|
||||
|
@ -774,6 +774,10 @@ msgstr ""
|
|||
msgid "Background Color"
|
||||
msgstr ""
|
||||
|
||||
#: header.php:17
|
||||
msgid "Skip to content"
|
||||
msgstr ""
|
||||
|
||||
#: inc/page-title.php:24
|
||||
msgid "Search result"
|
||||
msgstr ""
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Contributors: alxmedia
|
||||
Requires at least: 5.0
|
||||
Tested up to: 5.0
|
||||
Version: 1.0.3
|
||||
Version: 1.0.4
|
||||
License: GPLv3
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0
|
||||
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
|
||||
|
@ -79,6 +79,13 @@ Sidebar images
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.4 - 2019-07-26 =
|
||||
* Added theme accessibility with skip links
|
||||
* Added wp_body_open to header.php
|
||||
* Fixed WP-PageNavi styling issue
|
||||
* Fixed themeforms styling issue
|
||||
* Updated language files
|
||||
|
||||
= 1.0.3 - 2019-03-19 =
|
||||
* Added styling option to change header color
|
||||
|
||||
|
|
25
style.css
25
style.css
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
Theme Name: Curver
|
||||
Theme URI: http://alx.media/themes/curver/
|
||||
Version: 1.0.3
|
||||
Version: 1.0.4
|
||||
Description: <a href="http://alx.media/themes/curver/">Curver</a> is a flexible personal blog theme with plenty of options. Optimized for all devices, this theme will stand out with a unique colorful curved header style with a header profile image, name and description. It includes a featured posts slider and two different blog layouts: standard and list. Set the theme to any width and accent color you wish. Use a sidebar to the right, or disable it entirely - it is all up to you.
|
||||
Author: Alexander Agnarson
|
||||
Author URI: http://alx.media
|
||||
|
@ -168,6 +168,7 @@ input, textarea, button, select, label { font-family: inherit; }
|
|||
.themeform label { font-size: 14px; }
|
||||
.themeform input::-moz-focus-inner,
|
||||
.themeform button::-moz-focus-inner { border: 0; padding: 0; }
|
||||
.themeform input[type="search"],
|
||||
.themeform input[type="text"],
|
||||
.themeform input[type="password"],
|
||||
.themeform input[type="email"],
|
||||
|
@ -186,6 +187,7 @@ input, textarea, button, select, label { font-family: inherit; }
|
|||
.themeform input[type="checkbox"] { -moz-appearance: checkbox; -webkit-appearance: checkbox; }
|
||||
.themeform input[type="radio"] { -moz-appearance: radio; -webkit-appearance: radio; }
|
||||
.themeform label { font-weight: 600; color: #333; }
|
||||
.themeform input[type="search"],
|
||||
.themeform input[type="text"],
|
||||
.themeform input[type="password"],
|
||||
.themeform input[type="email"],
|
||||
|
@ -194,6 +196,7 @@ input, textarea, button, select, label { font-family: inherit; }
|
|||
.themeform input[type="number"],
|
||||
.themeform select,
|
||||
.themeform textarea { background: #fff; border: 2px solid #eee; color: #777; display: block; max-width: 100%; outline: none; padding: 7px 8px; }
|
||||
.themeform input[type="search"]:focus,
|
||||
.themeform input[type="text"]:focus,
|
||||
.themeform input[type="password"]:focus,
|
||||
.themeform input[type="email"]:focus,
|
||||
|
@ -203,9 +206,17 @@ input, textarea, button, select, label { font-family: inherit; }
|
|||
.themeform select:focus,
|
||||
.themeform textarea:focus { border-color: #ddd; color: #333; -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.1); box-shadow: 0 0 3px rgba(0,0,0,0.1); }
|
||||
.themeform label .required { color: #ed542f; }
|
||||
.themeform input[type="button"],
|
||||
.themeform input[type="reset"],
|
||||
.themeform input[type="submit"],
|
||||
.themeform button[type="button"],
|
||||
.themeform button[type="reset"],
|
||||
.themeform button[type="submit"] { background: #ed542f; color: #fff; padding: 8px 14px; font-weight: 600; display: inline-block; border: none; cursor: pointer; -webkit-border-radius: 3px; border-radius: 3px; }
|
||||
.themeform input[type="button"]:hover,
|
||||
.themeform input[type="reset"]:hover,
|
||||
.themeform input[type="submit"]:hover,
|
||||
.themeform button[type="button"]:hover,
|
||||
.themeform button[type="reset"]:hover,
|
||||
.themeform button[type="submit"]:hover { background: #333; }
|
||||
|
||||
.themeform.searchform div { position: relative; }
|
||||
|
@ -1326,7 +1337,7 @@ li #reply-title { font-size: 0; margin: 0!important; padding: 0; height: 0; bord
|
|||
/* ------------------------------------ */
|
||||
.wp-pagenavi { text-align: right; font-weight: 600; line-height: 20px; float: none; margin-right: -2px; text-align: center; }
|
||||
.wp-pagenavi a,
|
||||
.wp-pagenavi span { color: #aaa; font-size: 16px; padding: 7px 8px; display: inline; margin: 0 2px; }
|
||||
.wp-pagenavi span { color: #aaa; font-size: 16px; padding: 7px 8px; display: inline-block; margin: 0 2px 10px; }
|
||||
.wp-pagenavi span.pages { font-size: 17px; font-weight: 300; display: block; margin-bottom: 1em!important; border: none!important; }
|
||||
.wp-pagenavi span.pages:before { content: "\f15c"; font-family: FontAwesome; margin-right: 6px; }
|
||||
.wp-pagenavi span.extend { border: none!important; border-bottom: 3px solid transparent; border-top: 1px solid transparent; }
|
||||
|
@ -1472,3 +1483,13 @@ user-select: none;
|
|||
.owl-theme .owl-controls.clickable .owl-page:hover span{ filter: Alpha(Opacity=100);/*IE7 fix*/ opacity: 1; }
|
||||
.owl-theme .owl-controls .owl-page span.owl-numbers{ height: auto; width: auto; color: #FFF; padding: 2px 10px; font-size: 12px; -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; }
|
||||
.owl-item.loading{ min-height: 150px; background: url(AjaxLoader.gif) no-repeat center center; }
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
* Accessibility
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Text meant only for screen readers. */
|
||||
.screen-reader-text{ border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute!important; width: 1px; word-wrap: normal!important; }
|
||||
.screen-reader-text:focus { background-color: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1); clip: auto!important; clip-path: none; color: #333; display: block; font-size: 14px; font-size: 0.875rem; font-weight: bold; height: auto; right: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
|
||||
/* Do not show the outline on the skip link target. */
|
||||
#page[tabindex="-1"]:focus{ outline: 0; }
|
Loading…
Add table
Add a link
Reference in a new issue