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.

797 lines
12 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. /*
  2. Theme Name: Portage
  3. Theme URI: http://wiki.kjodle.net/Category:portage_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:portage_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: 1.5em 0;
  62. border-bottom: solid 0.15em #ddd;
  63. }
  64. #sidebar {
  65. float: left;
  66. padding-right: 6%;
  67. width: 26%;
  68. }
  69. #content {
  70. float: right;
  71. padding: 0 0 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. background: #ffffff;
  90. }
  91. /**********************************/
  92. /* 2a. Sidebar hover effect */
  93. #sidebar {
  94. opacity: 0.10;
  95. transition: opacity 1.5s;
  96. background: #eee;
  97. }
  98. #sidebar:hover {
  99. opacity: 1.0;
  100. background: #fff;
  101. }
  102. /**********************************/
  103. /* 3. Top Elements */
  104. #site-title {
  105. margin: 0.5em auto;
  106. }
  107. #site-title h1,
  108. #site-title h2 {
  109. font-size: 2em;
  110. padding: 0.5em 0 0 0;
  111. color: #555;
  112. text-align: center;
  113. }
  114. #site-title a {
  115. text-decoration: none;
  116. color: #555;
  117. }
  118. #site-desc {
  119. }
  120. #site-desc h2,
  121. #site-desc h3 {
  122. font-style: italic;
  123. color: #777;
  124. font-size: 1.1em;
  125. margin: 0.2em auto;
  126. padding: 0;
  127. text-align: center;
  128. }
  129. nav#top-menu,
  130. nav#primary-menu {
  131. font-size: 0.9em;
  132. z-index: 100;
  133. margin: 0 auto;
  134. }
  135. p.sub { /* Style main menu descriptions */
  136. margin: 0.3em 0 0 0;
  137. font-weight: normal;
  138. font-style: italic;
  139. }
  140. /**********************************/
  141. /* 4. #content Elements */
  142. #content h2:first-child {
  143. margin-top: 0;
  144. }
  145. a.top-button {
  146. display: none;
  147. }
  148. /**********************************/
  149. /* 5. .post Elements */
  150. .home .post,
  151. .archive .post {
  152. border-top: solid 1px #888;
  153. margin-top: 1.2em;
  154. padding-top: 1.2em;
  155. }
  156. .home .post:first-child,
  157. .archive .post:first-child {
  158. border-top: none;
  159. padding-top: 0;
  160. margin-top: 0;
  161. }
  162. .home .post:last-child,
  163. .archive .post:last-child {
  164. border-bottom: solid 1px #888;
  165. }
  166. .post p,
  167. .post li {
  168. font-size: 1rem;
  169. line-height: 1.4;
  170. }
  171. .post li {
  172. margin-bottom: 0.5rem;
  173. }
  174. .post-content a {
  175. text-decoration: none;
  176. border-bottom: dotted 1px #222;
  177. color: #222;
  178. -webkit-transition: border-color 1s;
  179. transition: border-color 1s, color 1s;
  180. }
  181. .post.sticky a {
  182. border-bottom: dotted 1px #efefef;
  183. -webkit-transition: border-color 1s;
  184. transition: border-color 1s;
  185. }
  186. .post-content a:hover {
  187. border-color: #eee;
  188. color: #3437e5;
  189. }
  190. /* Remove borders on image links */
  191. .post-content a[href$=jpg],
  192. .post-content a[href$=jpeg],
  193. .post-content a[href$=jpe],
  194. .post-content a[href$=png],
  195. .post-content a[href$=gif] {
  196. text-decoration: none;
  197. border: 0 none;
  198. }
  199. .post-title {
  200. font-size: 24px;
  201. margin: 0;
  202. }
  203. .post-title a {
  204. color: #444;
  205. border-bottom: dotted 1px #fff;
  206. -webkit-transition: border-color 2s, color 2s;
  207. transition: border-color 2s, color 2s;
  208. }
  209. .post-title a:hover {
  210. border-color: #888;
  211. color: #888;
  212. }
  213. .tags-links,
  214. .cat-links,
  215. .edit-link {
  216. font-size: 12px;
  217. margin-bottom: 3px;
  218. }
  219. .tags-links a,
  220. .cat-links a,
  221. .edit-link a {
  222. text-decoration: none;
  223. color: #444;
  224. }
  225. .entry-meta {
  226. padding-top: 6px;
  227. text-align: right;
  228. }
  229. .entry-meta a {
  230. text-decoration: none;
  231. color: #444;
  232. border-bottom: dotted 1px #fff;
  233. }
  234. .entry-meta a:hover {
  235. border-bottom: dotted 1px #999;
  236. }
  237. .entry-meta p {
  238. margin: 0;
  239. font-size: 0.8em;
  240. }
  241. .edit-post {
  242. float: right;
  243. clear: both;
  244. background: #fff;
  245. margin: 0;
  246. }
  247. .edit-post a {
  248. padding: 6px;
  249. font-size: 10px;
  250. text-decoration: none;
  251. color: #555;
  252. font-family: monospace;
  253. display: block;
  254. }
  255. .edit-post a:hover {
  256. background: #fee;
  257. }
  258. #post-meta {
  259. border-top: solid 1px #ddd;
  260. border-bottom: solid 1px #ddd;
  261. padding: 6px 0;
  262. margin: 12px 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. #portage_before_social_media,
  512. #portage_after_footer,
  513. #portage_footer_bottom {
  514. clear: both;
  515. }
  516. /**********************************/
  517. /* 13. Social Media Menu */
  518. #social-media-menu {
  519. clear: both;
  520. padding: 0;
  521. height: 60px;
  522. max-height: 48px;
  523. width: max-content;
  524. margin: 0.8em auto 0.4em auto;
  525. }
  526. #social-media-menu a {
  527. font-size: 32px;
  528. color: #ddd;
  529. padding-right: 6px;
  530. vertical-align: text-top;
  531. transition: color 2s, font-size 2s;
  532. border: none;
  533. }
  534. #social-media-menu a:hover {
  535. font-size: 48px;
  536. color: #444;
  537. }
  538. #social-media-menu a.sm-rss:hover {
  539. color: #ff8300;
  540. }
  541. #social-media-menu a.sm-twitter:hover {
  542. color: #4F9FDD;
  543. }
  544. #social-media-menu a.sm-facebook:hover {
  545. color: #3A5795;
  546. }
  547. #social-media-menu a.sm-instagram:hover {
  548. color: #9b6954;
  549. }
  550. #social-media-menu a.sm-youtube:hover {
  551. color: #DF2826;
  552. }
  553. #social-media-menu a.sm-pinterest:hover {
  554. color: #C92228;
  555. }
  556. #social-media-menu a.sm-amazon:hover {
  557. color: #F3A847;
  558. }
  559. #social-media-menu a.sm-patreon:hover {
  560. color: #f96854;
  561. }
  562. #social-media-menu a.sm-paypal:hover {
  563. color: #3b7bbf;
  564. }
  565. /**********************************/
  566. /* 14. Required by WordPress */
  567. .size-auto,
  568. .size-full,
  569. .size-large,
  570. .size-medium,
  571. .size-thumbnail {
  572. max-width: 100%;
  573. height: auto;
  574. }
  575. .sticky {
  576. background: #efefef;
  577. padding: 0.5em;
  578. }
  579. .sticky:first-child .post-title,
  580. .post:first-child .post-title {
  581. margin-top: 0;
  582. }
  583. .post:first-child h2 {
  584. padding-top: 0;
  585. }
  586. .sticky:first-child h2 {
  587. padding-top: 12px;
  588. }
  589. .wp-caption {
  590. border: solid 1px #bbb;
  591. padding: 6px;
  592. background: #f9f9f9;
  593. margin-bottom: 12px;
  594. }
  595. .wp-caption-text {
  596. font-size: 12px;
  597. }
  598. .gallery-caption {
  599. }
  600. .bypostauthor {
  601. }
  602. .alignright {
  603. float: right;
  604. margin-left: 10px;
  605. }
  606. .alignleft {
  607. float: left;
  608. margin-right: 10px;
  609. }
  610. .aligncenter {
  611. display: block;
  612. margin-left: auto;
  613. margin-right: auto;
  614. }
  615. .wp-caption a,
  616. .wp-caption a:hover {
  617. border: none;
  618. text-decoration: none;
  619. }
  620. .wp-post-image { /* Align images in excerpts */
  621. float: left;
  622. margin: 0 10px 8px 0;
  623. }
  624. /**********************************/
  625. /* 15. Miscellaneous Fixes */
  626. table#wp-calendar {
  627. width: 100%;
  628. margin-top: 1.5em;
  629. }
  630. h2 table#wp-calendar {
  631. margin-top: 0;
  632. }
  633. figure {
  634. margin: 0;
  635. }
  636. /* Development */
  637. /* Delete when theme is complete */
  638. .post-content img { /*For images without a caption */
  639. border: solid 1px #ddd;
  640. padding: 12px;
  641. }
  642. .wp-caption img { /* For images with a caption */
  643. border: none;
  644. padding: 0;
  645. }
  646. .portage-post-top-widget {
  647. text-align: right;
  648. }
  649. span.fa .fa-at {
  650. font-weight: bold !important;
  651. }
  652. .format-quote .post-content iframe {
  653. clear:both;
  654. margin-top: 12px;
  655. }
  656. blockquote {
  657. border: solid 1px #ddd;
  658. padding: 12px;
  659. }
  660. blockquote:before {
  661. font-family: "FontAwesome";
  662. content: '\f10d';
  663. color: rgba( 50, 50, 50, 0.3);
  664. font-size: 50px;
  665. float: left;
  666. margin-right: 12px;
  667. }
  668. blockquote.PWGP_caption::before {
  669. /* border: none; */
  670. content: none;
  671. }
  672. blockquote.PWGP_caption {
  673. margin: 3px 0;
  674. text-align: left;
  675. border: none;
  676. }