Astra-child テーマを編集

/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/



/* メニュー関連 */
.content-align-flex-start .main-header-menu {
text-align: right;
}

.ast-mobile-header-wrap .ast-mobile-header-content, .ast-desktop-header-content {
    /* background-color: none; */
}


/* Astra ヘッダー html1 フォント */
.ast-header-html-1 {
font-family: 'Manrope', sans-serif;
font-weight: bold;
letter-spacing: -.5px;
}



/* ＝＝＝フォント＝＝＝ */

/* 見出し・文字余白ツメる */
h1 {
font-feature-settings: "palt";
letter-spacing: 1px;
}






/* WORK レイアウト、フォント */
.hentry {
margin-top: 0;
margin-bottom: 1.5rem;
}

.single-work .hentry h1 {
font-size: 1.5rem;
margin-top: 1rem;
margin-bottom: 1rem;
padding:0;
}
.single-work .hentry h2 {
font-size: 1rem;
margin-top: 1rem;
margin-bottom: 1rem;
padding:0;
}
.single-work .hentry h3 {
font-size: 1.5rem;
margin-top: 1rem;
margin-bottom: 1rem;
padding:0;
}

.single-work .hentry p {
font-size: 1rem;
margin-top: 1rem;
margin-bottom: 1rem;
padding:0;
}

/* WORK レイアウト、画像 */

.entry-content .wp-block-image, .entry-content .wp-block-embed {
    margin-top: 0;
    margin-bottom: 0;
}

.single-work .hentry img {
margin-top: 1rem;
margin-bottom: 1rem;
padding: 0;
}


/* アーカイブアイコンサイズ */
.ast-blog-layout-4-grid .ast-article-inner .wp-post-image {
padding: 1rem;
margin-bottom: -2rem;
}


/* Google reCAPTCHA　マークを非表示に */
.grecaptcha-badge { visibility: hidden; }


/* ＝＝＝Contact Form 7 ここから＝＝＝ */
/* フォーム全体のスタイル */
.wpcf7 {
background-color: #f5f5f7;
padding: 16px;
border-radius: 10px;
/* max-width: 640px; */
margin: auto;
}
/* ラベルのスタイル */
.wpcf7-form label {
display: block;
margin-bottom: 16px;
font-size: 16px;
color: #333333;
}
/* 必須フィールドのラベルスタイル */
.wpcf7-form .required {
background-color: #ff0000;
color: white;
padding: 2px 4px;
border-radius: 5px;
margin-left: 10px;
font-size: 12px;
}
/* インプットフィールドのスタイル */
.wpcf7-form textarea {
width: 100%;
padding: 10px;
border: 1px solid #bdbdbd;
/* border-radius: 8px; */
margin-bottom: 0px;
font-size: 17px;
background-color: #ffffff;
}
/* テキストエリアのスタイル */
.wpcf7-form textarea {
height: 200px;
resize: vertical;
}
/* 送信ボタンのスタイル */
.wpcf7-form input[type="submit"] {
background-color: #0077BB;
color: white;
font-size: 17px;
padding: 9px 15px;
cursor: pointer;
/* transition: background-color 0.3s ease; */
border: none;
}
.wpcf7-form input[type="submit"]:hover {
background-color: #000000;
}
/* エラーメッセージと成功メッセージのスタイル */
.wpcf7-form .wpcf7-not-valid-tip {
color: red;
font-size: 14px;
}
.wpcf7-form .wpcf7-mail-sent-ok {
color: green;
font-size: 16px;
margin-bottom: 20px;
}
/* ＝＝＝Contact Form 7 ここまで＝＝＝ */
	



/* ＝＝＝ナビゲーション＝＝＝ */

.single .post-navigation {
    margin: 0;
    padding-bottom: 10px;
    border-top: 1px solid #aaaaaa;
}

/* 投稿ナビ左右入替 */

/* ←→を消す */
.single .post-navigation a svg {
display: none;
}


/* 新しい記事 */
.single .post-navigation .nav-previous {
text-align: right; 
}
.single .post-navigation .nav-previous a {
text-align: right;
padding-left: 1rem;
padding-right: 0;
}

/* 古い記事 */
.single .post-navigation .nav-next {
text-align: left; 
}
.single .post-navigation .nav-next a {
text-align: left;
padding-right: 1rem;
padding-left: 0;
}

/* 左右ブロック入れ替え（リバース） */
@media (min-width: 421px) {
    .single .post-navigation .nav-links {
        -js-display: flex;
        display: flex;
        width: 100%;
		flex-direction: row-reverse;
    }
}

.comment-navigation .nav-previous:after, .post-navigation .nav-previous:after {
width: 0px;
}

.single .post-navigation a .ast-post-nav {
display: none;
}
.single .post-navigation a p {
display: block;
}

@media ( max-width: 544px ) {
.single .post-navigation .nav-links {
-js-display: inline-flex;
display: inline-flex;
width: 100%;
padding-left: 0;
padding-right: 0;
flex-direction: row-reverse;
}
}
