7bf9a29b86
- Remove no-js class and fix duplicate src attribute on header image - Use get_header_image() instead of header_image() to avoid invalid HTML - Improve header image alt text from 'header' to 'Site header banner' - Add screen-reader text for external links (opens in a new tab) - Change text-align from justify to left for better readability - Improve span.notice color contrast (red -> #a00) - Add focus styles for keyboard navigation - Add screen-reader-text class definitions
191 lines
4.0 KiB
CSS
191 lines
4.0 KiB
CSS
@charset "UTF-8";
|
|
/*
|
|
Theme Name: Neuroinformatics Unit
|
|
Template: twentysixteen
|
|
Author: NIU Administrator
|
|
Author URI: https://www.ni.riken.jp/
|
|
Description: Neuroinformatics Unit (Child of Twenty Sixteen)
|
|
Version: 1.0.0
|
|
License: GNU General Public License v2 or later
|
|
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
Text Domain: niu
|
|
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
|
|
*/
|
|
body:not(.custom-background-image)::before,
|
|
body:not(.custom-background-image)::after {
|
|
content: none;
|
|
}
|
|
header.site-header {
|
|
padding-top: 1em;
|
|
padding-bottom: 2em;
|
|
}
|
|
div.site-branding {
|
|
white-space: nowrap;
|
|
}
|
|
a.custom-logo-link {
|
|
display: none;
|
|
}
|
|
div.site-title-wrap {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
white-space: normal;
|
|
}
|
|
div.header-image {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
.site-footer .site-title::after {
|
|
content: none;
|
|
}
|
|
.entry-content ul {
|
|
margin-left: 1.25em;
|
|
}
|
|
p.member {
|
|
margin-bottom: 1em;
|
|
}
|
|
p {
|
|
text-align: left;
|
|
}
|
|
span.notice {
|
|
font-size: 60%;
|
|
margin-left: 3px;
|
|
color: #a00;
|
|
font-weight: 700;
|
|
}
|
|
span.byline {
|
|
display: none !important;
|
|
}
|
|
div.site-links {
|
|
order: 2;
|
|
text-align: right;
|
|
display: none;
|
|
}
|
|
div.site-links img {
|
|
margin-left: 1em;
|
|
}
|
|
.post-navigation {
|
|
border-bottom: none;
|
|
}
|
|
.post-navigation .post-title {
|
|
font-size: 1rem;
|
|
}
|
|
.post-navigation .nav-previous,
|
|
.post-navigation .nav-next {
|
|
text-align: center;
|
|
}
|
|
.post-navigation .nav-previous span,
|
|
.post-navigation .nav-next span {
|
|
display: inline;
|
|
}
|
|
.post-navigation .nav-previous span.meta-nav,
|
|
.post-navigation .nav-next span.meta-nav {
|
|
display: none;
|
|
}
|
|
.post-navigation .nav-previous span.meta-nav,
|
|
.post-navigation .nav-next span.meta-nav {
|
|
display: none;
|
|
}
|
|
.post-navigation .nav-previous span.post-title::before {
|
|
content: "«";
|
|
margin-right: 0.5em;
|
|
}
|
|
.post-navigation .nav-next span.post-title::after {
|
|
content: "»";
|
|
margin-left: 0.5em;
|
|
}
|
|
@media screen and (min-width: 44.375em) {
|
|
a.custom-logo-link {
|
|
display: inline-block;
|
|
}
|
|
img.custom-logo {
|
|
max-width: 80px;
|
|
margin-right: 5px;
|
|
}
|
|
.entry-header, .post-thumbnail, .entry-content, .entry-summary, .entry-footer, .comments-area, .image-navigation, .post-navigation, .page-header, .page-content, .content-bottom-widgets {
|
|
margin-right: 7.6923%;
|
|
}
|
|
.sidebar, .widecolumn {
|
|
padding-right: 7.6923%;
|
|
}
|
|
.site-main {
|
|
margin-bottom: 4.0em;
|
|
}
|
|
div.site-links {
|
|
display: block;
|
|
}
|
|
.site-main {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
@media screen and (min-width: 56.8785em) {
|
|
.entry-header, .post-thumbnail, .entry-content, .entry-summary, .entry-footer, .comments-area, .image-navigation, .post-navigation, .page-header, .page-content, .content-bottom-widgets {
|
|
margin-right: 0;
|
|
}
|
|
.sidebar, .widecolumn {
|
|
padding-right: 0;
|
|
}
|
|
.post-navigation .nav-links::after {
|
|
content: "";
|
|
display: block;
|
|
clear: both;
|
|
}
|
|
.post-navigation .nav-previous {
|
|
float: left;
|
|
}
|
|
.post-navigation .nav-next {
|
|
float: right;
|
|
}
|
|
}
|
|
/* Accessibility: Focus styles */
|
|
a:focus,
|
|
button:focus,
|
|
input:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: 2px solid #0073aa;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Accessibility: Screen reader text */
|
|
.screen-reader-text {
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
position: absolute !important;
|
|
height: 1px;
|
|
width: 1px;
|
|
overflow: hidden;
|
|
word-wrap: normal !important;
|
|
}
|
|
|
|
.screen-reader-text:focus {
|
|
clip: auto;
|
|
width: auto;
|
|
height: auto;
|
|
display: block;
|
|
font-size: 1em;
|
|
font-weight: bold;
|
|
padding: 15px 23px 14px;
|
|
background: #f1f1f1;
|
|
color: #1a5e7a;
|
|
z-index: 100000;
|
|
top: 5px;
|
|
left: 5px;
|
|
line-height: normal;
|
|
text-decoration: none;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
@media screen and (min-width: 61.5625em) {
|
|
.site-main {
|
|
margin-bottom: 4.5em;
|
|
}
|
|
.entry-content {
|
|
float: none !important;
|
|
width: 100% !important;
|
|
}
|
|
.entry-footer {
|
|
float: none !important;
|
|
width: 100% !important;
|
|
margin-top: 2.1538461538em !important;
|
|
}
|
|
}
|