An updated theme (based on Atticus Finch) for ClassicPress
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

787 lines
12 KiB

3 years ago
  1. /*
  2. Theme Name: Portage
  3. Theme URI: http://wiki.kjodle.net/Category:Atticus_Finch_Theme
  4. Author: kjodle
  5. Author URI: http://d12webdesign.com/
  6. Description: Description
  7. Version: 0.1.0
  8. License: GNU General Public License v2 or later
  9. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  10. Tags: two-columns, left-sidebar, custom-menu, featured-images, post-formats, theme-options, threaded-comments, translation-ready
  11. Text Domain: portage
  12. Details URI: http://wiki.kjodle.net/Category:Atticus_Finch_Theme
  13. This theme, like WordPress, is licensed under the GPL.
  14. Use it to make something cool, have fun, and share what you've learned with others.
  15. */
  16. /**********************************/
  17. /*
  18. * 1. Simple Resets
  19. * 2. Main Containers
  20. * 3. Top Elements
  21. * 4. #content Elements
  22. * 5. .post Elements
  23. * 6. Post Formats
  24. * 7. Comments
  25. * 8. Sidebar Elements
  26. * 9. Footer Elements
  27. * 10. Special Sections
  28. * 11. Archive Pages
  29. * 12. Action Hook Widget Areas
  30. * 13. Social Media Menu
  31. * 14. Required by WordPress
  32. * 15. Miscellaneous Fixes
  33. *
  34. /**********************************/
  35. /**********************************/
  36. /* 1. Simple Resets */
  37. * {
  38. box-sizing: border-box;
  39. max-width: 100%;
  40. }
  41. html,
  42. body {
  43. margin: 0;
  44. padding: 0;
  45. font-family: serif;
  46. }
  47. body {
  48. color: #222;
  49. }
  50. pre {
  51. white-space: pre-wrap;
  52. }
  53. /**********************************/
  54. /* 2. Main Containers */
  55. #container {
  56. margin: 0px auto;
  57. max-width: 1000px;
  58. min-width: 700px;
  59. width: 80%;
  60. background: #ffffff;
  61. padding: 20px;
  62. }
  63. #sidebar {
  64. float: left;
  65. padding-right: 6%;
  66. text-align: right;
  67. width: 26%;
  68. }
  69. #content {
  70. float: right;
  71. padding: 0 2%;
  72. width: 74%;
  73. margin-bottom: 2em;
  74. }
  75. .page-template-page-no-sidebar #content {
  76. border-left: none;
  77. width: 80%;
  78. padding: 0;
  79. margin-left: auto;
  80. margin-right: auto;
  81. float: none;
  82. }
  83. body > footer {
  84. clear: both;
  85. width: 100%;
  86. background: #ffffff;
  87. }
  88. body > header {
  89. border-bottom: solid 1px #444;
  90. background: #ffffff;
  91. }
  92. body > footer {
  93. border-top: solid 1px #444;
  94. }
  95. /**********************************/
  96. /* 3. Top Elements */
  97. #site-title {
  98. position: relative;
  99. clear: both;
  100. width: 60%;
  101. float: left;
  102. padding: 24px 0 24px 30px;
  103. }
  104. #site-title h1,
  105. #site-title h2 {
  106. font-size: 28px;
  107. margin: 0;
  108. padding: 0;
  109. color: #555;
  110. }
  111. #site-title a {
  112. text-decoration: none;
  113. color: #555;
  114. }
  115. #site-desc {
  116. position: relative;
  117. width: 20%;
  118. float: right;
  119. padding: 1.8em 1em 1.8em 1em;
  120. font-style: italic;
  121. color: #555;
  122. }
  123. #site-desc h2,
  124. #site-desc h3 {
  125. font-size: 16px;
  126. margin: 0;
  127. padding: 0;
  128. }
  129. nav#top-menu,
  130. nav#primary-menu {
  131. background: #fafafa;
  132. font-size: 14px;
  133. position: relative;
  134. z-index: 100;
  135. }
  136. p.sub { /* Style main menu descriptions */
  137. margin: 0.3em 0 0 0;
  138. font-weight: normal;
  139. font-style: italic;
  140. }
  141. /**********************************/
  142. /* 4. #content Elements */
  143. #content h2:first-child {
  144. margin-top: 0;
  145. }
  146. a.top-button {
  147. display: none;
  148. }
  149. /**********************************/
  150. /* 5. .post Elements */
  151. .home .post,
  152. .archive .post {
  153. border-top: solid 1px #888;
  154. margin-top: 1.2em;
  155. padding-top: 1.2em;
  156. }
  157. .home .post:first-child,
  158. .archive .post:first-child {
  159. border-top: none;
  160. padding-top: 0;
  161. margin-top: 0;
  162. }
  163. .home .post:last-child,
  164. .archive .post:last-child {
  165. border-bottom: solid 1px #888;
  166. }
  167. .post p,
  168. .post li {
  169. font-size: 1rem;
  170. line-height: 1.4;
  171. }
  172. .post li {
  173. margin-bottom: 0.5rem;
  174. }
  175. .post-content a {
  176. text-decoration: none;
  177. border-bottom: dotted 1px #222;
  178. color: #222;
  179. -webkit-transition: border-color 1s;
  180. transition: border-color 1s, color 1s;
  181. }
  182. .post.sticky a {
  183. border-bottom: dotted 1px #efefef;
  184. -webkit-transition: border-color 1s;
  185. transition: border-color 1s;
  186. }
  187. .post-content a:hover {
  188. border-color: #eee;
  189. color: #3437e5;
  190. }
  191. /* Remove borders on image links */
  192. .post-content a[href$=jpg],
  193. .post-content a[href$=jpeg],
  194. .post-content a[href$=jpe],
  195. .post-content a[href$=png],
  196. .post-content a[href$=gif] {
  197. text-decoration: none;
  198. border: 0 none;
  199. }
  200. .post-title {
  201. font-size: 24px;
  202. margin: 0;
  203. }
  204. .post-title a {
  205. color: #444;
  206. border-bottom: dotted 1px #fff;
  207. -webkit-transition: border-color 2s, color 2s;
  208. transition: border-color 2s, color 2s;
  209. }
  210. .post-title a:hover {
  211. border-color: #888;
  212. color: #888;
  213. }
  214. .tags-links,
  215. .cat-links,
  216. .edit-link {
  217. font-size: 12px;
  218. margin-bottom: 3px;
  219. }
  220. .tags-links a,
  221. .cat-links a,
  222. .edit-link a {
  223. text-decoration: none;
  224. color: #444;
  225. }
  226. .entry-meta {
  227. padding-top: 6px;
  228. text-align: right;
  229. }
  230. .entry-meta a {
  231. text-decoration: none;
  232. color: #444;
  233. border-bottom: dotted 1px #fff;
  234. }
  235. .entry-meta a:hover {
  236. border-bottom: dotted 1px #999;
  237. }
  238. .entry-meta p {
  239. margin: 0;
  240. font-size: 0.8em;
  241. }
  242. .edit-post {
  243. float: right;
  244. clear: both;
  245. background: #fff;
  246. margin: 0;
  247. }
  248. .edit-post a {
  249. padding: 6px;
  250. font-size: 10px;
  251. text-decoration: none;
  252. color: #555;
  253. font-family: monospace;
  254. display: block;
  255. }
  256. .edit-post a:hover {
  257. background: #fee;
  258. }
  259. #post-meta {
  260. border-top: solid 1px #bbb;
  261. padding: 6px 0;
  262. margin: 12px 0 0 0;
  263. }
  264. .list-pub a,
  265. .list-cat a,
  266. .list-tags a {
  267. text-decoration: none;
  268. color: #444;
  269. }
  270. .list-pub a:hover,
  271. .list-cat a:hover,
  272. .list-tags a:hover{
  273. border-bottom: dotted 1px #444;
  274. }
  275. .list-pub,
  276. .list-cat,
  277. .list-tags {
  278. padding: 4px;
  279. font-size: 14px;
  280. }
  281. #post-series {
  282. border-top: solid 1px #bbb;
  283. border-bottom: solid 1px #bbb;
  284. padding: 6px 9px;
  285. margin: 0 0 12px 0;
  286. font-size: 16px;
  287. }
  288. #post-series a {
  289. text-decoration: none;
  290. color: #222;
  291. padding: 6px 6px 4px 6px;
  292. }
  293. #post-series p {
  294. margin-bottom: 3px;
  295. margin-top: 0;
  296. font-size: 16px;
  297. }
  298. .post-prev {
  299. float: left;
  300. display: inline-block;
  301. }
  302. .post-next {
  303. float: right;
  304. display: inline-block;
  305. text-align: right;
  306. }
  307. .post-prev a,
  308. .post-next a {
  309. transition: background 1s;
  310. }
  311. .post-prev a:hover,
  312. .post-next a:hover {
  313. background: #eef;
  314. }
  315. /**********************************/
  316. /* 6. Post Formats */
  317. .aside-meta { /* For aside, link, quote, status on front page */
  318. font-size: 12px;
  319. font-style: italic;
  320. text-align: right;
  321. }
  322. .dashicons,
  323. .dashicons-before::before {
  324. font-size: 24px;
  325. margin-top: 1px;
  326. margin-right: 4px;
  327. }
  328. .notitle {
  329. font-size: 48px !important; /* Mark as important because of Font Awesome settings */
  330. float: left;
  331. color: #444;
  332. margin-bottom: 0px;
  333. padding-right: 14px;
  334. }
  335. .home .notitle {
  336. font-size: 24px !important;
  337. }
  338. .notitle-h2 {
  339. margin-bottom: 0;
  340. }
  341. a .dashicons-format-aside,
  342. a .dashicons-admin-links,
  343. a .dashicons-format-quote,
  344. a .dashicons-format-status {
  345. text-decoration: none;
  346. color: #444;
  347. }
  348. /* Chat Posts */
  349. .format-chat .post-content p{
  350. background: #E9E9E9; /* The background color of first paragraph */
  351. border-left: 7px solid #C9C9C9; /* The setting for border of first paragraph */
  352. margin-bottom: 2px;
  353. padding: 6px 0 6px 13px;
  354. }
  355. .format-chat .post-content p:nth-child(odd) {
  356. background: #F7F7F7; /* The background color of next paragraph */
  357. border-left-color: #E0E0E0; /* The setting for border of next paragraph */
  358. }
  359. div.post-content > p { /* Eliminate top margin on aside, link, quote, status if title is not displayed */
  360. margin-top: 0;
  361. }
  362. /* Quote Posts */
  363. .format-quote .post-content p {
  364. font-weight: bold;
  365. font-size: 24px;
  366. }
  367. .format-quote .post-content p:last-of-type {
  368. font-weight: normal;
  369. font-style: italic;
  370. text-align: right;
  371. font-size: 18px;
  372. }
  373. /**********************************/
  374. /* 7. Comments */
  375. ol.comment-list {
  376. padding-left: 0;
  377. }
  378. div.comment,
  379. div.pingback {
  380. font-size: 14px;
  381. margin: 6px 0px;
  382. box-shadow: 2px 2px 2px 0 #eee;
  383. color: #222;
  384. padding: 0 0 10px 20px;
  385. }
  386. /**********************************/
  387. /* 8. Sidebar elements */
  388. #sidebar {
  389. font-size: 13px;
  390. }
  391. #sidebar h2 {
  392. font-size: 17px;
  393. margin-bottom: 0.8em;
  394. margin-top: 1.5em;
  395. }
  396. #sidebar h2:first-child {
  397. margin-top: 0;
  398. }
  399. #sidebar ul {
  400. margin: 0;
  401. padding: 0;
  402. }
  403. #sidebar li {
  404. list-style-type: none;
  405. padding-bottom: 0.6em;
  406. font-size: 0.8rem;
  407. }
  408. #sidebar a {
  409. text-decoration: none;
  410. color: #444;
  411. border-bottom: dotted 1px #fff;
  412. transition: border-color 1s;
  413. -webkit-transition: border-color 1s;
  414. }
  415. #sidebar a:hover {
  416. border-bottom: dotted 1px #222;
  417. }
  418. #sidebar .screen-reader-text {
  419. display: none;
  420. }
  421. #sidebar td,
  422. #sidebar table caption,
  423. #sidebar thead,
  424. #sidebar tfoot {
  425. font-size: 13px;
  426. }
  427. /**********************************/
  428. /* 9. Footer Elements */
  429. footer {
  430. font-size: 13px;
  431. }
  432. footer a {
  433. text-decoration: none;
  434. color: #777;
  435. border-bottom: dotted 1px #fff;
  436. transition: border-color 1s;
  437. }
  438. footer a:hover {
  439. border-color: #444;
  440. }
  441. #copyright,
  442. #credits {
  443. margin: 10px;
  444. padding: 6px;
  445. }
  446. #copyright {
  447. float: left;
  448. width: 40%;
  449. }
  450. #cc-button {
  451. float: left;
  452. padding: 0 4px 4px 0;
  453. }
  454. #credits {
  455. float: right;
  456. text-align: right;
  457. width: 30%;
  458. }
  459. ul#footermenu-ul {
  460. list-style-type: none;
  461. padding: 0;
  462. }
  463. /**********************************/
  464. /* 10. Special Sections */
  465. #page-info {
  466. border-bottom: solid 1px #fff;
  467. padding: 3px 0;
  468. transition: border-color 2s;
  469. }
  470. #page-info:hover {
  471. border-color: #ddd;
  472. }
  473. #page-info p {
  474. margin: 0 0 2px;
  475. font-size: 13px;
  476. font-style: italic;
  477. text-align: right;
  478. }
  479. .clear {
  480. clear: both;
  481. }
  482. .printonly {
  483. display: none;
  484. }
  485. /**********************************/
  486. /* 11. Archive Pages */
  487. #archive-title {
  488. border: solid 1px #999;
  489. background: #fff;
  490. padding: 9px 12px;
  491. margin: 0;
  492. text-align: center;
  493. color: #555;
  494. }
  495. #posts-nav {
  496. border-top: 1px solid #777;
  497. margin: 2em 0.8em 0;
  498. padding: 6px;
  499. text-align: center;
  500. font-size: 16px;
  501. }
  502. #posts-nav a {
  503. text-decoration: none;
  504. color: #222;
  505. }
  506. #posts-nav a:hover {
  507. border-bottom: dotted 1px #444;
  508. }
  509. /**********************************/
  510. /* 12. Action Hook Widget Areas */
  511. #atticus_finch_before_social_media,
  512. #atticus_finch_after_footer,
  513. #atticus_finch_footer_bottom {
  514. clear: both;
  515. }
  516. /**********************************/
  517. /* 13. Social Media Menu */
  518. #social-media-menu {
  519. clear: both;
  520. margin-bottom: 6px;
  521. padding: 0 0 0 30px;
  522. height: 60px;
  523. max-height: 48px;
  524. }
  525. #social-media-menu a {
  526. font-size: 32px;
  527. color: #ddd;
  528. padding-right: 6px;
  529. vertical-align: text-top;
  530. transition: color 2s, font-size 2s;
  531. border: none;
  532. }
  533. #social-media-menu a:hover {
  534. font-size: 48px;
  535. color: #444;
  536. }
  537. #social-media-menu a.sm-rss:hover {
  538. color: #ff8300;
  539. }
  540. #social-media-menu a.sm-twitter:hover {
  541. color: #4F9FDD;
  542. }
  543. #social-media-menu a.sm-facebook:hover {
  544. color: #3A5795;
  545. }
  546. #social-media-menu a.sm-instagram:hover {
  547. color: #9b6954;
  548. }
  549. #social-media-menu a.sm-youtube:hover {
  550. color: #DF2826;
  551. }
  552. #social-media-menu a.sm-pinterest:hover {
  553. color: #C92228;
  554. }
  555. #social-media-menu a.sm-amazon:hover {
  556. color: #F3A847;
  557. }
  558. /**********************************/
  559. /* 14. Required by WordPress */
  560. .size-auto,
  561. .size-full,
  562. .size-large,
  563. .size-medium,
  564. .size-thumbnail {
  565. max-width: 100%;
  566. height: auto;
  567. }
  568. .sticky {
  569. background: #efefef;
  570. padding: 0.5em;
  571. }
  572. .sticky:first-child .post-title,
  573. .post:first-child .post-title {
  574. margin-top: 0;
  575. }
  576. .post:first-child h2 {
  577. padding-top: 0;
  578. }
  579. .sticky:first-child h2 {
  580. padding-top: 12px;
  581. }
  582. .wp-caption {
  583. border: solid 1px #bbb;
  584. padding: 6px;
  585. background: #f9f9f9;
  586. margin-bottom: 12px;
  587. }
  588. .wp-caption-text {
  589. font-size: 12px;
  590. }
  591. .gallery-caption {
  592. }
  593. .bypostauthor {
  594. }
  595. .alignright {
  596. float: right;
  597. margin-left: 10px;
  598. }
  599. .alignleft {
  600. float: left;
  601. margin-right: 10px;
  602. }
  603. .aligncenter {
  604. display: block;
  605. margin-left: auto;
  606. margin-right: auto;
  607. }
  608. .wp-caption a,
  609. .wp-caption a:hover {
  610. border: none;
  611. text-decoration: none;
  612. }
  613. .wp-post-image { /* Align images in excerpts */
  614. float: left;
  615. margin: 0 10px 8px 0;
  616. }
  617. /**********************************/
  618. /* 15. Miscellaneous Fixes */
  619. table#wp-calendar {
  620. width: 100%;
  621. margin-top: 1.5em;
  622. }
  623. h2 table#wp-calendar {
  624. margin-top: 0;
  625. }
  626. figure {
  627. margin: 0;
  628. }
  629. /* Development */
  630. /* Delete when theme is complete */
  631. .post-content img { /*For images without a caption */
  632. border: solid 1px #ddd;
  633. padding: 12px;
  634. }
  635. .wp-caption img { /* For images with a caption */
  636. border: none;
  637. padding: 0;
  638. }
  639. .atticus-finch-post-top-widget {
  640. text-align: right;
  641. }
  642. span.fa .fa-at {
  643. font-weight: bold !important;
  644. }
  645. .format-quote .post-content iframe {
  646. clear:both;
  647. margin-top: 12px;
  648. }
  649. blockquote {
  650. border: solid 1px #ddd;
  651. padding: 12px;
  652. }
  653. blockquote:before {
  654. font-family: "FontAwesome";
  655. content: '\f10d';
  656. color: rgba( 50, 50, 50, 0.3);
  657. font-size: 50px;
  658. float: left;
  659. margin-right: 12px;
  660. }
  661. blockquote.PWGP_caption::before {
  662. /* border: none; */
  663. content: none;
  664. }
  665. blockquote.PWGP_caption {
  666. margin: 3px 0;
  667. text-align: left;
  668. border: none;
  669. }