スポンサーリンク
Twenty Fourteen改造の作業メモ
今回のスタイルシート変更の差分を抽出してメモっておきます。
長いので
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 |
/* Theme Name: Twenty Fourteen child Theme URI: http://asakita.net/kabekin/twenty-fourteen-child Author: the kabekin Author URI: http://asakita.net/kabekin Template: twentyfourteen Description: Twenty Fourteen child theme Version: 1.3 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready Text Domain: twenty-fourteen-child This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */ h1, h2, h3, h4, h5, h6 { clear: both; font-weight: 700; margin: 36px 0 12px; } /* H1~H3を弄るとサイドバー等もデザインが変わるのでできればH4以降でカスタマイズ */ h1 { font-size: 26px; line-height: 1.3846153846; } h2 { font-size: 24px; line-height: 1; } h3 { font-size: 22px; line-height: 1.0909090909; } h4 { /*+++ Kabekin Modify 20150328 装飾付き見出し 26px(H1相当) */ /* font-size: 20px; line-height: 1.2; */ font-size: 26px; line-height: 1.3846153846; border-left:12px solid #48832C; padding:3px 15px; } h5 { /*+++ Kabekin Modify 20150328 装飾付き見出し 22px(H2相当) */ /* font-size: 18px; line-height: 1.3333333333; */ font-size: 22px; line-height: 1.0909090909; border-left:8px solid #48832C; border-bottom:1px solid #48832C; padding:3px 15px 5px; } h6 { /*+++ Kabekin Modify 20150328 装飾付き見出し 22px(H3相当) */ /* font-size: 16px; line-height: 1.5; */ font-size: 22px; line-height: 1.0909090909; border-bottom:1px solid #48832C; padding:3px 15px 5px; } table, th, td { /*+++ Kabekin Modify 20150325 テーブルの罫線を黒色に変更 */ /* border: 1px solid rgba(0, 0, 0, 0.1); */ border: 1px solid #000000; } /* Input fields */ input, textarea { /*+++ Kabekin Modify 20150328 入力欄の枠線色変更 */ /* border: 2px solid rgba(0, 0, 0, 0.1); */ border: 1px solid #000000; border-radius: 2px; color: #2b2b2b; padding: 8px 10px 7px; } textarea { /* コメント欄背景色 */ background: #ffffff; width: 100%; } /* Responsive images. Fluid images for posts, comments, and widgets */ .comment-content img, .entry-content img, .entry-summary img, #site-header img, .widget img, .wp-caption { max-width: 100%; /* Kabekin Add 20150321 画像に枠線を入れる */ border: 1px #000000 solid; } /** * Make sure images with WordPress-added height and width attributes are * scaled correctly. */ .comment-content img[height], .entry-content img, .entry-summary img, img[class*="align"], img[class*="wp-image-"], img[class*="attachment-"], #site-header img { height: auto; } img.size-full, img.size-large, .wp-post-image, .post-thumbnail img { height: auto; max-width: 100%; /* Kabekin Add 20150321 画像に枠線を入れる */ border: 1px #000000 solid; } .alignright { float: right; /*+++ Kabekin Add 20150323 右寄せ位置調整 */ /* position: relative; left: -140px; */ } /** * 3.0 Basic Structure * ----------------------------------------------------------------------------- */ .site { /*+++ Kabekin Modify 20150325 コンテンツエリア色変更 #fff->fffff0 */ background-color: #ffffff0; max-width: 1260px; position: relative; /*+++ Kabekin Add 20150325 コンテンツエリア中央寄せ */ margin: 0 auto; } .site-navigation a { color: #fff; display: block; /* Kabekin Modify 20150321 大文字変換を無効 */ /* text-transform: uppercase; */ text-transform: none; } .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content { margin: 0 auto; max-width: 840px; } .entry-title { font-size: 33px; font-weight: 300; line-height: 1.0909090909; margin-bottom: 12px; margin: 0 0 12px 0; /* text-transform: uppercase; *+++ Kabekin Modify 20150321 */ text-transform: none; /*+++ Kabekin Add 20150325 コンテンツエリア色追加 #fffff0 */ background-color: #fffff0; } .site-content .entry-header { /*+++ Kabekin Modify 20150328 記事背景色変更 */ background-color: #fffff0; padding: 0 10px 12px; } /** * 6.3 Entry Meta * ----------------------------------------------------------------------------- */ .entry-meta { clear: both; color: #767676; /*+++ Kabekin Modify 20150321 エントリ情報の文字を大きく */ font-size: 20px; font-weight: 400; line-height: 1.3333333333; /*+++ Kabekin Commentout 20150328 エントリ情報のuppercase中止 */ /* text-transform: uppercase; */ } .site-content .entry-meta { /*+++ Kabekin Modify 20150325 コンテンツエリア色変更 #fff->#fffff0 */ background-color: #fffff0; margin-bottom: 8px; } .site-content .entry-content, .site-content .entry-summary, .page-content { /*+++ Kabekin 20150409 Modify #fff->#fffff0 */ background-color: #fffff0; padding: 12px 10px 0; } .entry-content .more-link { white-space: nowrap; /*+++ Kabekin Add 20150321 続きを読むを太字で大きく */ font-weight:bold; font-size:x-large; } .post-navigation, .image-navigation { margin: 24px auto 48px; max-width: 840px; padding: 0 10px; } /** * 6.9 Archives * ----------------------------------------------------------------------------- */ .archive-header, .page-header { margin: 24px auto; max-width: 840px; } .contributor-info { margin: 0 auto; max-width: 840px; } .comments-area { margin: 48px auto; max-width: 840px; padding: 0 10px; } /** * 10.0 Multisite * ----------------------------------------------------------------------------- */ .site-main .widecolumn { padding-top: 72px; width: auto; } .site-main .mu_register, .widecolumn > h2, .widecolumn > form { margin: 0 auto 48px; max-width: 840px; padding: 0 30px; } .list-view .site-content .hentry { /*+++ Kabekin Modify 20150328 投稿ページ記事区切り線の太さ変更 1px->4px */ border-top: 4px solid rgba(0, 0, 0, 0.1); padding-top: 48px; } .content-area { float: left; width: 100%; /*+++ Kabekin 20150411 Add */ background-color: #fffff0; } .archive-header, .comments-area, .image-navigation, .page-header, .page-content, .post-navigation, .site-content .entry-content, .site-content .entry-summary, .site-content footer.entry-meta { padding-right: 30px; padding-left: 30px; /*+++ Kabekin Add 20150328 横幅縮小時の記事背景色 */ background-color: #ffffff0; } .masthead-fixed .site-main { margin-top: 48px; /*+++ Kabekin Add 20150325 コンテンツエリア色追加 #fffff0 */ background-color: #fffff0; } /* Primary Navigation */ .primary-navigation { float: right; /*+++ Kabekin Add 20150323 トップメニュの文字を少し大きく 非選択時=11->18px */ font-size: 18px; margin: 0 1px 0 -12px; padding: 0; /* Kabekin Modify 20150321 大文字変換を無効 */ /* text-transform: uppercase; */ text-transform: none; } .primary-navigation li:hover > a, .primary-navigation li.focus > a { background-color: #24890d; color: #fff; /*+++ Kabekin Add 20150323 トップメニュの文字を少し大きく 選択時=20px */ font-size: 20px; } @media screen and (min-width: 846px) { .content-area, .content-sidebar { padding-top: 72px; /*+++ Kabekin Add 20150325 コンテンツエリア色追加 #fffff0 */ background-color: #ffffff0; } #secondary { /*+++ Kabekin 20150325 Commentout サイドバーの左右バランスを調整 */ /*background-color: transparent; */ border: 0; clear: none; float: left; margin: 0 0 0 -100%; min-height: 100vh; width: 122px; } .secondary-navigation a { padding: 10px 30px; /*+++ Kabekin 20150323 Add サイドメニューの文字を大きく 非選択時=18px */ font-size: 18px; } .secondary-navigation li:hover > a, .secondary-navigation li.focus > a { background-color: #24890d; color: #fff; /*+++ Kabekin 20150323 Add サイドメニューの文字を大きく 選択時=20px */ font-size: 20px; } .footer-sidebar .widget, .primary-sidebar .widget { /* Kabekin Modify 20150323 サイドバーの文字を少し大きく 12px->16px */ font-size: 16px; line-height: 1.5; } .footer-sidebar .widget .widget-title, .primary-sidebar .widget .widget-title { /*+++ Kabekin Modify 20150323 サイドバーメニュー文字を少し大きく 11px->14px */ font-size: 14px; font-weight: 900; line-height: 1.6363636363; margin-bottom: 18px; } .full-width .archive-header, .full-width .comments-area, .full-width .image-navigation, .full-width .page-header, .full-width .page-content, .full-width .post-navigation, .full-width .site-content .entry-header, .full-width .site-content .entry-content, .full-width .site-content .entry-summary, .full-width .site-content footer.entry-meta { padding-right: 30px; padding-left: 30px; /*+++ Kabekin Add 20150328 横幅縮小時の記事背景色 */ background-color: #fffff0; } } @media screen and (min-width: 1080px) { .search-box .search-field { width: 324px; } .site-content, .site-main .widecolumn { margin-left: 300px; } .full-width .archive-header, .full-width .comments-area, .full-width .image-navigation, .full-width .page-header, .full-width .page-content, .full-width .post-navigation, .full-width .site-content .entry-header, .full-width .site-content .entry-content, .full-width .site-content .entry-summary, .full-width .site-content footer.entry-meta { padding-right: 30px; padding-left: 30px; /*+++ Kabekin Add 20150328 横幅縮小時の記事背景色 */ background-color: #fffff0; } } @media screen and (min-width: 1080px) { .search-box .search-field { width: 324px; } .site-content, .site-main .widecolumn { /*+++ Kabekin Modify サイズ変更 222px->300px */ margin-left: 300px; } .site:before { /*+++ Kabekin Modify サイズ変更 222px->300px */ width: 300px; } .search-box-wrapper, .featured-content { /*+++ Kabekin Modify サイズ変更 222px->300px */ padding-left: 300px; } #secondary { /*+++ Kabekin Modify 20150323 サイドバーの横幅を260pxに変更 */ width: 260px; } .secondary-navigation, .secondary-navigation ul ul { /*+++ Kabekin Modify サイズ変更 222px->300px */ width: 300px; } .full-width .archive-header, .full-width .comments-area, .full-width .image-navigation, .full-width .page-header, .full-width .page-content, .full-width .post-navigation, .full-width .site-content .entry-header, .full-width .site-content .entry-content, .full-width .site-content .entry-summary, .full-width .site-content footer.entry-meta { margin-right: auto; /*+++ Kabekin Add 20150325 コンテンツエリア色追加 #fffff0 */ background-color: #fffff0; } /*+++ Kabekin Add 20150323 検索窓色変更&文字サイズを大きく */ .primary-sidebar .widget input { background-color: #ffffff; border-color:#00ff00; color: #000000; font-size: 26px; } /*+++ Kabekin Add 20150325 引用部分に背景追加 */ /* テーマディレクトリのimages/postquote.png に画像をアップロード */ blockquote { border: 1px solid #E7E492; margin: 10px 10px 10px 50px; padding: 4px 4px 4px 41px; background-color: #F5F4D1; background-image: url("images/postquote.png"); background-position: left top; background-repeat: no-repeat; overflow: auto; clear: both; } |
スポンサーリンク