├── .gitignore
├── .tern-project
├── .tmuxinator.yml
├── components
├── CategoriesWidget.js
├── CategoriesWidgetContainer.js
├── CommentForm.js
├── CommentsWidget.js
├── CommentsWidgetContainer.js
├── Footer.js
├── Head.js
├── Hero.js
├── Home.js
├── LoadMorePosts.js
├── Main.js
├── NoMorePosts.js
├── Post.js
├── PostPage.js
├── Posts.js
├── PostsWidget.js
├── Results.js
├── ScrollDown.js
├── Search.js
├── SearchPage.js
├── SearchWidget.js
├── Sidebar.js
├── SingleComment.js
├── SinglePost.js
├── SinglePostComments.js
├── SinglePostContainer.js
├── SinglePostFooter.js
├── SinglePostHeader.js
└── Spinner.js
├── config.js
├── package.json
├── pages
├── index.js
├── post.js
└── search.js
├── readme.md
├── redux
├── InitialState.js
├── actions.js
├── helpers.js
├── index.js
├── readme.md
└── reducers.js
├── static
├── header.jpg
├── twentyNext.css
└── twentyseventeen.css
├── wp.js
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .next/
3 | yarn-error.log
4 |
--------------------------------------------------------------------------------
/.tern-project:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": {
3 | "es_modules": {},
4 | "node": {}
5 | },
6 | "libs": [
7 | "ecma5",
8 | "ecma6",
9 | "browser",
10 | "react"
11 | ],
12 | "ecmaVersion": 6
13 | }
14 |
--------------------------------------------------------------------------------
/.tmuxinator.yml:
--------------------------------------------------------------------------------
1 | # ~/.tmuxinator/nextjs.yml
2 |
3 | name: nextjs
4 | root: ~/git/nextjs
5 | windows:
6 | - editor: vim
7 | - server: yarn run dev
8 |
--------------------------------------------------------------------------------
/components/CategoriesWidget.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | class CategoriesWidget extends React.Component {
4 | render () {
5 | let { categories } = this.props
6 | return (
7 |
8 | Categories
9 |
10 | {categories.map(category => (
11 | -
12 | {category.name}
13 |
14 | ))}
15 |
16 |
17 | )
18 | }
19 | }
20 |
21 | export default CategoriesWidget
22 |
--------------------------------------------------------------------------------
/components/CategoriesWidgetContainer.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import CategoriesWidget from './CategoriesWidget'
3 | import Spinner from './Spinner'
4 | import wp from '../wp'
5 |
6 | import { connect } from 'react-redux'
7 | import { receivedCategories } from '../redux/actions'
8 |
9 | function mapStateToProps (store) {
10 | return {
11 | isFetching: store.categories.isFetching,
12 | categories: store.categories.items
13 | }
14 | }
15 |
16 | const dispatchToProps = { receivedCategories }
17 |
18 | class CategoriesWidgetContainer extends React.Component {
19 |
20 | async componentDidMount () {
21 | const {receivedCategories} = this.props
22 | let categories = await wp.categories()
23 | receivedCategories(categories)
24 | }
25 |
26 | render () {
27 | let {categories, isFetching} = this.props
28 | if (!isFetching) {
29 | return (
30 |
31 | )
32 | } else {
33 | return (
34 |
35 | )
36 | }
37 | }
38 | }
39 |
40 | export default connect(mapStateToProps, dispatchToProps)(CategoriesWidgetContainer)
41 |
--------------------------------------------------------------------------------
/components/CommentForm.js:
--------------------------------------------------------------------------------
1 | import {Component} from 'react'
2 | import wp from '../wp'
3 | import { connect } from 'react-redux'
4 | import { requestPostComments, receivePostComments } from '../redux/actions'
5 |
6 | const mapStoreToProps = (store) => {
7 | return {
8 | postID: store.post.data.id
9 | }
10 | }
11 |
12 | const actionCreators = {
13 | requestPostComments,
14 | receivePostComments
15 | }
16 |
17 | class CommentForm extends Component {
18 | // All of our fields displayed in the state
19 | state = {
20 | comment: '',
21 | name: '',
22 | email: '',
23 | website: ''
24 | }
25 |
26 | // Handlers to update the UI as we type
27 | commentHandler = ev => { this.setState({comment: ev.target.value}) }
28 | nameHandler = ev => { this.setState({name: ev.target.value}) }
29 | emailHandler = ev => { this.setState({email: ev.target.value}) }
30 | websiteHandler = ev => { this.setState({website: ev.target.value}) }
31 |
32 | // Handler to actually perform our submit logic
33 | submitHandler = (ev) => {
34 | ev.preventDefault()
35 | let { comment, name, email, website } = this.state
36 | let { postID, requestPostComments, receivePostComments } = this.props
37 |
38 | requestPostComments()
39 |
40 | wp.comments().create({
41 | author_name: name,
42 | author_email: email,
43 | author_url: website,
44 | content: comment,
45 | post: postID,
46 | date: new Date()
47 | })
48 | .then(res => {
49 | wp.comments().forPost(postID)
50 | .then(comments => {
51 | receivePostComments(comments)
52 | this.setState({
53 | comment: '',
54 | name: '',
55 | email: '',
56 | website: ''
57 | })
58 | })
59 | })
60 | }
61 |
62 | render () {
63 | return (
64 |
65 |
66 | Leave a Reply
67 |
68 |
137 |
138 |
139 | )
140 | }
141 | }
142 |
143 | export default connect(mapStoreToProps, actionCreators)(CommentForm)
144 |
--------------------------------------------------------------------------------
/components/CommentsWidget.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import Spinner from './Spinner'
3 | import wp from '../wp'
4 | import Link from 'next/link'
5 |
6 | class CommentsWidget extends React.Component {
7 | constructor (props) {
8 | super(props)
9 | this.state = {
10 | comments: []
11 | }
12 | this.fetchPostForComment = this.fetchPostForComment.bind(this)
13 | this.renderComments = this.renderComments.bind(this)
14 | }
15 |
16 | async fetchFromAPI (path) {
17 | return wp[path]()
18 | }
19 |
20 | async fetchPostForComment (comment) {
21 | let post = await wp.posts().id(comment.post)
22 | comment.post_name = post.title.rendered
23 | return comment
24 | }
25 |
26 | async componentDidMount () {
27 | const comments = await this.fetchFromAPI('comments')
28 | Promise.all(comments.slice(0, 5).map(this.fetchPostForComment))
29 | .then(comments => { this.setState({comments}) })
30 | }
31 |
32 | renderComments (comments) {
33 | return comments.map(comment => (
34 |
35 |
36 | {comment.author_name}
37 | on {comment.post_name}
38 |
39 | ))
40 | }
41 |
42 | render () {
43 | let comments = this.state.comments
44 | return (
45 |
51 | )
52 | }
53 | }
54 |
55 | export default CommentsWidget
56 |
--------------------------------------------------------------------------------
/components/CommentsWidgetContainer.js:
--------------------------------------------------------------------------------
1 | import { Component } from 'react'
2 | import CommentsWidget from './CommentsWidget'
3 |
4 | class CommentsWidgetContainer extends Component {
5 | constructor (props) {
6 | super(props)
7 | this.props = props
8 | }
9 |
10 | render () {
11 | return (
12 |
13 | )
14 | }
15 | }
16 |
17 | export default CommentsWidgetContainer
18 |
19 |
--------------------------------------------------------------------------------
/components/Footer.js:
--------------------------------------------------------------------------------
1 | import { Component } from 'react'
2 |
3 | export default class Footer extends Component {
4 | render () {
5 | return (
6 |
13 | )
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/components/Head.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import Head from 'next/head'
3 |
4 | export default ({title}) => (
5 |
6 | {title}
7 |
8 |
9 |
10 |
11 |
12 | )
13 |
--------------------------------------------------------------------------------
/components/Hero.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import ScrollDown from './ScrollDown'
3 |
4 | export default class Hero extends React.Component {
5 | constructor (props) {
6 | super(props)
7 | this.shouldScroll = this.shouldScroll.bind(this)
8 | }
9 |
10 | shouldScroll () {
11 | let scroll = this.props.frontPage
12 | if (scroll) {
13 | return ()
14 | }
15 | }
16 |
17 | render () {
18 | let header = 'o-header'
19 | if (this.props.hasimage) header += ' has-header-image'
20 | if (this.props.frontPage) header += ' home twentyseventeen-front-page'
21 | return (
22 |
44 | )
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/components/Home.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import Head from './Head'
3 | import Hero from './Hero'
4 | import Main from './Main'
5 | import Posts from './Posts'
6 |
7 | import { connect } from 'react-redux'
8 |
9 | const mapStoreToProps = (store) => {
10 | return {
11 | title: store.site.root.name,
12 | description: store.site.root.description
13 | }
14 | }
15 |
16 | class Home extends React.Component {
17 | render () {
18 | let { title, description } = this.props
19 | return (
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | )
28 | }
29 | }
30 |
31 | export default connect(mapStoreToProps)(Home)
32 |
--------------------------------------------------------------------------------
/components/LoadMorePosts.js:
--------------------------------------------------------------------------------
1 | import {Component} from 'react'
2 | import {connect} from 'react-redux'
3 | import {requestPosts, receivePosts} from '../redux/actions'
4 | import wp from '../wp'
5 |
6 | const actionCreators = {
7 | requestPosts,
8 | receivePosts
9 | }
10 |
11 | const mapStoreToProps = (store) => {
12 | return {
13 | currentPage: store.posts.currentPage
14 | }
15 | }
16 |
17 | class LoadMorePosts extends Component {
18 | constructor (props) {
19 | super(props)
20 | this.reqPosts = this.reqPosts.bind(this)
21 | }
22 |
23 | async reqPosts () {
24 | let { requestPosts, receivePosts, currentPage } = this.props
25 | requestPosts()
26 | const posts = await wp.posts().page(currentPage)
27 | receivePosts(posts)
28 | }
29 |
30 | render () {
31 | return (
32 |
36 | )
37 | }
38 | }
39 |
40 | export default connect(mapStoreToProps, actionCreators)(LoadMorePosts)
41 |
--------------------------------------------------------------------------------
/components/Main.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import Sidebar from './Sidebar'
3 | import Footer from './Footer'
4 |
5 | export default class Main extends React.Component {
6 | constructor (props) {
7 | super(props)
8 | this.renderHeader = this.renderHeader.bind(this)
9 | }
10 |
11 | renderHeader () {
12 | let shouldHaveHeader = this.props.hasHeader
13 | if (shouldHaveHeader) {
14 | return (
15 |
16 | {this.props.headerTitle}
17 |
18 | )
19 | }
20 | }
21 |
22 | render () {
23 | let siteContent = 'site-content-contain'
24 | if (this.props.hasSidebar) siteContent += ' has-sidebar'
25 | if (this.props.isBlog) siteContent += ' blog'
26 |
27 | return (
28 |
29 |
30 |
31 | {this.renderHeader()}
32 |
33 | {this.props.children}
34 |
35 |
38 |
39 |
40 |
41 |
42 | )
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/components/NoMorePosts.js:
--------------------------------------------------------------------------------
1 | import { Component } from 'react'
2 |
3 | export default class NoMorePosts extends Component {
4 | render () {
5 | return (
6 |
9 | )
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/components/Post.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import Link from 'next/link'
3 | const moment = require('moment')
4 |
5 | export default class Post extends React.Component {
6 |
7 | render () {
8 | let now = moment(this.props.time).format('LL')
9 | return (
10 |
11 |
12 |
13 |
Posted on
14 |
15 |
16 |
17 | {this.props.title}
18 |
19 |
20 |
21 |
22 | )
23 | }
24 | }
25 |
26 |
--------------------------------------------------------------------------------
/components/PostPage.js:
--------------------------------------------------------------------------------
1 | import {Component} from 'react'
2 | import Head from './Head'
3 | import Hero from './Hero'
4 | import Main from './Main'
5 | import SinglePost from './SinglePost'
6 | import { connect } from 'react-redux'
7 |
8 | const mapStoreToProps = (store) => {
9 | return {
10 | title: store.site.root.name,
11 | description: store.site.root.description,
12 | post: store.post.data,
13 | postTitle: store.post.data.title.rendered,
14 | author: store.post.author
15 | }
16 | }
17 |
18 | class PostPage extends Component {
19 | render () {
20 | let {title, description, post, author, postTitle} = this.props
21 | return (
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | )
30 | }
31 | }
32 |
33 | export default connect(mapStoreToProps)(PostPage)
34 |
--------------------------------------------------------------------------------
/components/Posts.js:
--------------------------------------------------------------------------------
1 | import { Component } from 'react'
2 | import Post from './Post'
3 | import Spinner from './Spinner'
4 | import LoadMorePosts from './LoadMorePosts'
5 | import wp from '../wp'
6 |
7 | import { connect } from 'react-redux'
8 | import { requestPosts, receivePosts } from '../redux/actions'
9 |
10 | function mapStoreToProps (store) {
11 | return {
12 | posts: store.posts.items,
13 | isFetching: store.posts.isFetching,
14 | currentPage: store.posts.currentPage,
15 | totalPages: store.posts.totalPages
16 | }
17 | }
18 |
19 | const dispatchPropsToStore = {
20 | requestPosts,
21 | receivePosts
22 | }
23 |
24 | class Posts extends Component {
25 | async componentDidMount () {
26 | let { currentPage, requestPosts, receivePosts } = this.props
27 | requestPosts()
28 | const posts = await wp.posts().page(currentPage)
29 | receivePosts(posts)
30 | }
31 |
32 | renderPosts (posts) {
33 | return posts.map(post => (
34 |
42 | ))
43 | }
44 |
45 | renderLoadButton (condition) {
46 | if (condition) {
47 | return ()
48 | }
49 | }
50 |
51 | render () {
52 | let { posts, currentPage, isFetching, totalPages } = this.props
53 | // Logic to display or not the get more posts button
54 | return (
55 |
56 | {posts.length ? this.renderPosts(posts) : null}
57 | {isFetching ? : null}
58 | { this.renderLoadButton(currentPage < totalPages && !isFetching) }
59 |
60 | )
61 | }
62 | }
63 |
64 | export default connect(mapStoreToProps, dispatchPropsToStore)(Posts)
65 |
--------------------------------------------------------------------------------
/components/PostsWidget.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | import React from 'react'
4 | import Link from 'next/link'
5 | import Spinner from './Spinner'
6 | import wp from '../wp'
7 |
8 | class PostsWidget extends React.Component {
9 | constructor (props) {
10 | super(props)
11 | this.state = {
12 | posts: []
13 | }
14 | this.renderPosts = this.renderPosts.bind(this)
15 | }
16 |
17 | async componentDidMount () {
18 | const posts = await wp.posts()
19 | this.setState({posts: posts.slice(0, 5)})
20 | }
21 |
22 | renderPosts (posts) {
23 | return posts.map(post => (
24 |
25 | {post.title.rendered}
26 |
27 | ))
28 | }
29 |
30 | render () {
31 | let posts = this.state.posts
32 | return (
33 |
34 | Recent Posts
35 |
36 | {posts.length ? this.renderPosts(posts) : }
37 |
38 |
39 | )
40 | }
41 | }
42 |
43 | export default PostsWidget
44 |
--------------------------------------------------------------------------------
/components/Results.js:
--------------------------------------------------------------------------------
1 | import { Component } from 'react'
2 | import Post from './Post'
3 | import Search from './Search'
4 | import { connect } from 'react-redux'
5 |
6 | function mapStoreToProps (store) {
7 | return {
8 | results: store.search.results,
9 | search: store.search
10 | }
11 | }
12 |
13 | class Results extends Component {
14 |
15 | renderPosts (posts) {
16 | return posts.map(post => (
17 |
25 | ))
26 | }
27 |
28 | renderEmpty () {
29 | return (
30 |
31 |
Sorry, but nothing matched your search terms. Please try again with some different keywords.
32 |
33 |
34 | )
35 | }
36 |
37 | render () {
38 | let { results } = this.props
39 | // Logic to display or not the get more posts button
40 | return (
41 |
42 | {results.length ? this.renderPosts(results) : this.renderEmpty()}
43 |
44 | )
45 | }
46 | }
47 |
48 | export default connect(mapStoreToProps)(Results)
49 |
--------------------------------------------------------------------------------
/components/ScrollDown.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | export default class ScrollDown extends React.Component {
4 | render () {
5 | return (
6 |
7 |
14 | Scroll Down
15 |
16 | )
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/components/Search.js:
--------------------------------------------------------------------------------
1 | import { Component } from 'react'
2 |
3 | class Search extends Component {
4 | render () {
5 | return (
6 |
28 | )
29 | }
30 | }
31 |
32 | export default Search
33 |
--------------------------------------------------------------------------------
/components/SearchPage.js:
--------------------------------------------------------------------------------
1 | import { Component } from 'react'
2 | import Head from './Head'
3 | import Hero from './Hero'
4 | import Main from './Main'
5 | import Results from './Results'
6 | import { connect } from 'react-redux'
7 |
8 | const mapStoreToProps = store => {
9 | return {
10 | title: store.site.root.name,
11 | description: store.site.root.description,
12 | query: store.search.query,
13 | results: store.search.results
14 | }
15 | }
16 |
17 | class SearchPage extends Component {
18 |
19 | checkTitle (query, results) {
20 | if (results.length) {
21 | return `Search Results for ${query}`
22 | } else {
23 | return 'Nothing Found'
24 | }
25 | }
26 |
27 | render () {
28 | let {title, description, query, results} = this.props
29 | return (
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | )
38 | }
39 | }
40 |
41 | export default connect(mapStoreToProps)(SearchPage)
42 |
--------------------------------------------------------------------------------
/components/SearchWidget.js:
--------------------------------------------------------------------------------
1 | import { Component } from 'react'
2 | import Search from './Search'
3 |
4 | export default class SearchWidget extends Component {
5 | render () {
6 | return (
7 |
10 | )
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/components/Sidebar.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import SearchWidget from './SearchWidget'
3 | import PostsWidget from './PostsWidget'
4 | import CommentsWidgetContainer from './CommentsWidgetContainer'
5 | import CategoriesWidgetContainer from './CategoriesWidgetContainer'
6 |
7 | class Sidebar extends React.Component {
8 | render () {
9 | return (
10 |
16 | )
17 | }
18 | }
19 |
20 | export default Sidebar
21 |
--------------------------------------------------------------------------------
/components/SingleComment.js:
--------------------------------------------------------------------------------
1 | import {Component} from 'react'
2 | const moment = require('moment')
3 |
4 | export default class SingleComment extends Component {
5 | render () {
6 | const {avatarUrl, authorUrl, authorName, date, content} = this.props
7 | let time = moment(date).format('MMMM DD YYYY, h:mm a')
8 | return (
9 |
10 |
11 |
29 |
30 |
31 |
32 | )
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/components/SinglePost.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | import React from 'react'
3 | import PostHeader from './SinglePostHeader'
4 | import PostFooter from './SinglePostFooter'
5 | import PostComments from './SinglePostComments'
6 |
7 | class SinglePost extends React.Component {
8 | render () {
9 | let { post, author } = this.props
10 | return (
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | )
20 | }
21 | }
22 |
23 | export default SinglePost
24 |
--------------------------------------------------------------------------------
/components/SinglePostComments.js:
--------------------------------------------------------------------------------
1 | import {Component} from 'react'
2 | import SingleComment from './SingleComment'
3 | import CommentForm from './CommentForm'
4 |
5 | import wp from '../wp'
6 | import {connect} from 'react-redux'
7 | import { requestPostComments, receivePostComments } from '../redux/actions'
8 |
9 | const mapStoreToProps = (store) => {
10 | return {
11 | postTitle: store.post.data.title.rendered,
12 | postID: store.post.data.id,
13 | comments: store.post.comments.data,
14 | commentStatus: store.post.data.comment_status,
15 | totalComments: store.post.comments.total,
16 | isFetching: store.post.comments.isFetching,
17 | debug: store.post
18 | }
19 | }
20 |
21 | const dispatchPropsToStore = {
22 | requestPostComments,
23 | receivePostComments
24 | }
25 |
26 | class PostComments extends Component {
27 | async componentDidMount () {
28 | let { postID, requestPostComments, receivePostComments } = this.props
29 | requestPostComments()
30 | let comments = await wp.comments().forPost(postID)
31 | receivePostComments(comments)
32 | }
33 |
34 | renderComments (comments) {
35 | if (comments && comments.length) {
36 | return (
37 | comments.map(comment => (
38 |
46 | ))
47 | )
48 | }
49 | }
50 |
51 | commentCount (title, count) {
52 | if (count && count === 1) {
53 | return (1 Reply to "{title}"
)
54 | } else if (count && count > 1) {
55 | return ({count} Replies to "{title}"
)
56 | }
57 | }
58 |
59 | render () {
60 | let { comments, postTitle, totalComments } = this.props
61 | return (
62 |
69 | )
70 | }
71 | }
72 |
73 | export default connect(mapStoreToProps, dispatchPropsToStore)(PostComments)
74 |
--------------------------------------------------------------------------------
/components/SinglePostContainer.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pixel2HTML/wp-nextjs/14cc1577fae2d96fd2e224ee0fe19420467824b4/components/SinglePostContainer.js
--------------------------------------------------------------------------------
/components/SinglePostFooter.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | import React from 'react'
4 | import Spinner from './Spinner'
5 | import wp from '../wp'
6 |
7 | class PostFooter extends React.Component {
8 | constructor (props) {
9 | super(props)
10 | this.state = {
11 | categories: [],
12 | tags: []
13 | }
14 | this.fetchCategory = this.fetchCategory.bind(this)
15 | this.renderCategories = this.renderCategories.bind(this)
16 | this.fetchTag = this.fetchTag.bind(this)
17 | }
18 |
19 | async fetchCategory (categoryId) {
20 | return await wp.categories().id(categoryId)
21 | }
22 |
23 | async fetchTag (tagId) {
24 | return await wp.tags().id(tagId)
25 | }
26 |
27 | async componentDidMount () {
28 | let categories = this.props.post.categories
29 | Promise.all(categories.map(this.fetchCategory))
30 | .then(categories => {
31 | if (categories.length > 0) {
32 | this.setState({categories})
33 | } else {
34 | this.setState({categories: [{id: 8888, link: '#', name: 'Uncategorized'}]})
35 | }
36 | })
37 |
38 | let tags = this.props.post.tags
39 | Promise.all(tags.map(this.fetchTag))
40 | .then(tags => {
41 | if (tags.length > 0) {
42 | this.setState({tags})
43 | } else {
44 | this.setState({tags: [{id: 99999, link: '#', name: 'Untagged'}]})
45 | }
46 | })
47 | }
48 |
49 | renderCategories (categories) {
50 | return categories.map(category => (
51 | {category.name}
52 | ))
53 | }
54 |
55 | render () {
56 | let categories = this.state.categories
57 | let tags = this.state.tags
58 | return (
59 |
77 | )
78 | }
79 | }
80 |
81 | export default PostFooter
82 |
--------------------------------------------------------------------------------
/components/SinglePostHeader.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | import React from 'react'
4 | const moment = require('moment')
5 |
6 | export default class PostHeader extends React.Component {
7 | render () {
8 | let post = this.props.post
9 | let author = this.props.author
10 | return (
11 |
12 |
28 | {post.title.rendered}
29 |
30 | )
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/components/Spinner.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | import React from 'react'
4 |
5 | class Spinner extends React.Component {
6 | render () {
7 | return (
8 |
44 | )
45 | }
46 | }
47 |
48 | export default Spinner
49 |
--------------------------------------------------------------------------------
/config.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | export default {
4 | endpoint: 'https://examples.pixel2html.com/nextjs/wp-json'
5 | }
6 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "wp-nextjs",
3 | "version": "0.0.1",
4 | "main": "index.js",
5 | "scripts": {
6 | "dev": "next",
7 | "start": "next start",
8 | "build": "next build"
9 | },
10 | "license": "MIT",
11 | "dependencies": {
12 | "babel-eslint": "^7.1.1",
13 | "moment": "^2.17.0",
14 | "next": "^1.2.3",
15 | "react-redux": "^4.4.6",
16 | "react-scroll": "^1.4.4",
17 | "redux": "^3.6.0",
18 | "redux-thunk": "^2.1.0",
19 | "self": "^1.0.0",
20 | "standard": "^8.6.0",
21 | "wpapi": "^0.12.1"
22 | },
23 | "standard": {
24 | "parser": "babel-eslint"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/pages/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import { initStore, reducer } from '../redux'
3 | import { Provider } from 'react-redux'
4 | import { getSite } from '../redux/actions'
5 | import { Site } from '../wp'
6 | import Home from '../components/Home'
7 |
8 | export default class extends React.Component {
9 | static async getInitialProps ({ req }) {
10 | const isServer = !!req
11 | const store = initStore(reducer, {}, isServer)
12 | const site = await Site.root()
13 | store.dispatch(getSite(site))
14 | return {
15 | initialState: store.getState(),
16 | isServer
17 | }
18 | }
19 |
20 | constructor (props) {
21 | super(props)
22 | this.store = initStore(reducer, props.initialState, props.isServer)
23 | }
24 |
25 | render () {
26 | return (
27 |
28 |
29 |
30 | )
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/pages/post.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import wp, { Site } from '../wp'
3 | import PostPage from '../components/PostPage'
4 |
5 | import { Provider } from 'react-redux'
6 | import { initStore, reducer } from '../redux'
7 | import { getSite, receivePost, receiveAuthor } from '../redux/actions'
8 |
9 | export default class extends React.Component {
10 | static async getInitialProps ({
11 | query: { id },
12 | req
13 | }
14 | ) {
15 | // The usual store initialization
16 | const isServer = !!req
17 | const store = initStore(reducer, {}, isServer)
18 |
19 | // Get all of of important data to begin with
20 | const post = await wp.posts().id(id)
21 | const site = await Site.root()
22 | const author = await wp.users().id(post.author)
23 |
24 | // Placing all of that data into the store
25 | store.dispatch(getSite(site))
26 | store.dispatch(receivePost(post))
27 | store.dispatch(receiveAuthor(author))
28 | // Placing the store as initial props
29 | return {
30 | initialState: store.getState(),
31 | isServer
32 | }
33 | }
34 |
35 | constructor (props) {
36 | super(props)
37 | this.store = initStore(reducer, props.initialState, props.isServer)
38 | }
39 |
40 | render () {
41 | return (
42 |
43 |
44 |
45 | )
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/pages/search.js:
--------------------------------------------------------------------------------
1 | import { Component } from 'react'
2 | import wp, { Site } from '../wp'
3 | import SearchPage from '../components/SearchPage'
4 |
5 | import { Provider } from 'react-redux'
6 | import { initStore, reducer } from '../redux'
7 | import { getSite, receiveResults, receiveSearchQuery } from '../redux/actions'
8 |
9 | export default class extends Component {
10 | static async getInitialProps ({
11 | query: { s },
12 | req
13 | }) {
14 | const isServer = !!req
15 | const store = initStore(reducer, {}, isServer)
16 |
17 | const site = await Site.root()
18 | const results = await wp.posts().search(s)
19 |
20 | store.dispatch(getSite(site))
21 | store.dispatch(receiveResults(results))
22 | store.dispatch(receiveSearchQuery(s))
23 |
24 | return {
25 | initialState: store.getState(),
26 | isServer
27 | }
28 | }
29 |
30 | constructor (props) {
31 | super(props)
32 | this.store = initStore(reducer, props.initialState, props.isServer)
33 | }
34 |
35 | render () {
36 | return (
37 |
38 |
39 |
40 | )
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # Twenty Seventeen - NextJS
2 |
3 | A re-building effort to make the standard wordpress theme into a NextJS component based isomorphic app.
4 |
5 | ## How to Install Everything
6 |
7 | Make sure you are using Node with at least 6.9.2 then run `npm install`.
8 | Go into the `config.js` file and add your wordpress api url
9 |
10 | Run `npm run dev`
11 |
12 | Navigate into `localhost:3000` and enjoy!
13 |
--------------------------------------------------------------------------------
/redux/InitialState.js:
--------------------------------------------------------------------------------
1 | let initialState = {
2 | site: {},
3 | posts: [],
4 | activePost: {},
5 | searchResults: [],
6 | categories: [],
7 | comments: []
8 | }
9 |
10 | export default initialState
11 |
12 |
--------------------------------------------------------------------------------
/redux/actions.js:
--------------------------------------------------------------------------------
1 | // All of our action types
2 | export const GET_SITE = 'GET_SITE'
3 | export const GET_CATEGORIES = 'GET_CATEGORIES'
4 | export const GOT_CATEGORIES = 'GOT_CATEGORIES'
5 | export const GOT_COMMENTS = 'GOT_COMMENTS'
6 | export const REQUEST_POSTS = 'REQUEST_POSTS'
7 | export const RECEIVE_POSTS = 'RECEIVE_POSTS'
8 | export const RECEIVE_POST = 'RECEIVE_POST'
9 | export const RECEIVE_AUTHOR = 'RECEIVE_AUTHOR'
10 | export const REQUEST_POST_COMMENTS = 'REQUEST_POST_COMMENTS'
11 | export const RECEIVE_POST_COMMENTS = 'RECEIVE_POST_COMMENTS'
12 | export const RECEIVE_RESULTS = 'RECEIVE_RESULTS'
13 | export const RECEIVE_SEARCH_QUERY = 'RECEIVE_SEARCH_QUERY'
14 |
15 | /**
16 | * Fetch the root site info
17 | * @param {object} site - the new site to update
18 | */
19 | export function getSite (site) {
20 | return {
21 | type: GET_SITE,
22 | site
23 | }
24 | }
25 |
26 | /**
27 | * Get the categories from a source of truth
28 | * @param {array} categories - the categories to update
29 | */
30 | export function requestCategories (categories) {
31 | return {
32 | type: GET_CATEGORIES,
33 | categories
34 | }
35 | }
36 |
37 | /**
38 | * Trigger a state update when getting categories
39 | *
40 | * @param {array} categories
41 | */
42 |
43 | export function receivedCategories (categories) {
44 | return {
45 | type: GOT_CATEGORIES,
46 | categories
47 | }
48 | }
49 |
50 | /**
51 | * Trigger a state update when you get some recent comments
52 | * @param {array} comments
53 | * @returns {object} action to pass to the reducer
54 | */
55 | export function receivedComments (comments) {
56 | return {
57 | type: GOT_COMMENTS,
58 | comments
59 | }
60 | }
61 |
62 | /**
63 | * Let the state know we're about to fetch some comments
64 | */
65 | export function requestPosts () {
66 | return {
67 | type: REQUEST_POSTS
68 | }
69 | }
70 |
71 | /**
72 | * Trigger a state update once we get all the comments
73 | */
74 | export function receivePosts (posts) {
75 | return {
76 | type: RECEIVE_POSTS,
77 | posts,
78 | totalPages: parseInt(posts._paging.totalPages)
79 | }
80 | }
81 |
82 | /**
83 | * Change the active post once we get it from a source of truth
84 | */
85 | export function receivePost (post) {
86 | return {
87 | type: RECEIVE_POST,
88 | post
89 | }
90 | }
91 |
92 | /**
93 | * Receive an author once we get it from a source of truth
94 | */
95 | export function receiveAuthor (author) {
96 | return {
97 | type: RECEIVE_AUTHOR,
98 | author
99 | }
100 | }
101 |
102 | /**
103 | * Let the state know we are about to get some comments
104 | */
105 | export function requestPostComments () {
106 | return {
107 | type: REQUEST_POST_COMMENTS
108 | }
109 | }
110 |
111 | /**
112 | * Receive comments for a post from a source of truth
113 | */
114 | export function receivePostComments (comments) {
115 | if (comments._paging) {
116 | return {
117 | type: RECEIVE_POST_COMMENTS,
118 | comments,
119 | total: parseInt(comments._paging.total)
120 | }
121 | } else {
122 | return {
123 | type: RECEIVE_POST_COMMENTS,
124 | comments,
125 | total: 0
126 | }
127 | }
128 | }
129 |
130 | /**
131 | * Receive results from a source of truth
132 | */
133 | export function receiveResults (results) {
134 | return {
135 | type: RECEIVE_RESULTS,
136 | results
137 | }
138 | }
139 |
140 | /**
141 | * Receive the search query to show on the frontend
142 | */
143 |
144 | export function receiveSearchQuery (query) {
145 | return {
146 | type: RECEIVE_SEARCH_QUERY,
147 | query
148 | }
149 | }
150 |
--------------------------------------------------------------------------------
/redux/helpers.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Helps us return an array of posts without duplicated ids
3 | * @param {array} mixedPosts both new and old
4 | * @returns {array} posts
5 | */
6 |
7 | export function preventDuplicatePosts (mixedPosts) {
8 | let posts = mixedPosts.concat()
9 | for (var i = 0; i < posts.length; ++i) {
10 | for (var j = i + 1; j < posts.length; ++j) {
11 | if (posts[i].id === posts[j].id) {
12 | posts.splice(j--, 1)
13 | }
14 | }
15 | }
16 | return posts
17 | }
18 |
--------------------------------------------------------------------------------
/redux/index.js:
--------------------------------------------------------------------------------
1 | import { createStore, applyMiddleware } from 'redux'
2 | import thunkMiddleware from 'redux-thunk'
3 |
4 | import reducers from './reducers'
5 |
6 | export const reducer = reducers
7 |
8 | /*
9 | * Creating an isomorphic store. When in server make a new one in client persist it
10 | */
11 | export const initStore = (reducer, initialState, isServer) => {
12 | if (isServer && typeof window === 'undefined') {
13 | return createStore(reducer, initialState, applyMiddleware(thunkMiddleware))
14 | } else {
15 | if (!window.store) {
16 | window.store = createStore(reducer, initialState, applyMiddleware(thunkMiddleware))
17 | }
18 | return window.store
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/redux/readme.md:
--------------------------------------------------------------------------------
1 | # Redux implementation of wordpress.
2 |
3 | The whole idea here is to mantain everything in small components yet having them interact with one another, there's where redux comes into play to help us.
4 |
5 | However we still need to define the global state object which is tightly the same as the wpapi endpoints so far the basic top level containers would be:
6 |
7 | - Site: Contains the root details like blog name and description
8 | - Posts: The list at start of the top 10 posts and the rest can be added here by requesting them.
9 | - Active post: The current post that is being rendered.
10 | - Search Results: The list of posts that match what was searched with the search widget
11 | - Categories: List of categories to be rendered on the sidebar.
12 | - Recent Comments: List of recent comments to be rendered on the sidebar.
13 | - UI State: Some strings to tell us if there is data being loaded, or has loaded to display spinners or render it.
14 |
15 |
--------------------------------------------------------------------------------
/redux/reducers.js:
--------------------------------------------------------------------------------
1 | import { combineReducers } from 'redux'
2 | // Custom actions
3 | import {
4 | GET_SITE,
5 | GET_CATEGORIES,
6 | GOT_CATEGORIES,
7 | GOT_COMMENTS,
8 | REQUEST_POSTS,
9 | RECEIVE_POSTS,
10 | RECEIVE_POST,
11 | RECEIVE_AUTHOR,
12 | REQUEST_POST_COMMENTS,
13 | RECEIVE_POST_COMMENTS,
14 | RECEIVE_RESULTS,
15 | RECEIVE_SEARCH_QUERY
16 | } from './actions'
17 |
18 | import { preventDuplicatePosts } from './helpers'
19 | /**
20 | * Get or update the site from a source of truth
21 | * @param {object} state
22 | * @param {object} action Must have a type and modifier
23 | * @returns {object} A new state gets returned
24 | */
25 | function site (state = {}, action) {
26 | switch (action.type) {
27 | case GET_SITE:
28 | return Object.assign({}, state, {
29 | root: action.site
30 | })
31 | default: return state
32 | }
33 | }
34 |
35 | /**
36 | * Get or update the results page from a source of truth
37 | */
38 | function search (state = { results: [] }, action) {
39 | switch (action.type) {
40 | case RECEIVE_RESULTS:
41 | return Object.assign({}, state, {
42 | results: action.results
43 | })
44 | case RECEIVE_SEARCH_QUERY:
45 | return Object.assign({}, state, {
46 | query: action.query
47 | })
48 | default: return state
49 | }
50 | }
51 |
52 | /**
53 | * Get or update the categories from a source of truth
54 | * since this is async we need some params for state update
55 | * @param {object} state
56 | * @param {object} action
57 | * @returns {object} a new state
58 | */
59 | function categories (state = {
60 | isFetching: false,
61 | gotError: false,
62 | items: []
63 | }, action) {
64 | switch (action.type) {
65 | case GET_CATEGORIES:
66 | return Object.assign({}, state, {
67 | isFetching: true
68 | })
69 | case GOT_CATEGORIES:
70 | return Object.assign({}, state, {
71 | isFetching: false,
72 | items: action.categories
73 | })
74 | default: return state
75 | }
76 | }
77 |
78 | /**
79 | * Get or update the recent comments from a source of truth
80 | */
81 | function comments (state = {
82 | isFetching: false,
83 | gotError: false,
84 | items: []
85 | }, action) {
86 | switch (action.type) {
87 | case GOT_COMMENTS:
88 | return Object.assign({}, state, {
89 | isFetching: false,
90 | items: action.comments
91 | })
92 | default: return state
93 | }
94 | }
95 |
96 | /**
97 | * Get or update the recent posts from a source of truth
98 | */
99 | function posts (state = {
100 | isFetching: false,
101 | gotError: false,
102 | items: [],
103 | currentPage: 1,
104 | totalPages: 1
105 | }, action) {
106 | switch (action.type) {
107 | case REQUEST_POSTS:
108 | return Object.assign({}, state, {
109 | isFetching: true
110 | })
111 | case RECEIVE_POSTS:
112 | return Object.assign({}, state, {
113 | isFetching: false,
114 | items: preventDuplicatePosts(state.items.concat(action.posts)),
115 | currentPage: state.currentPage + 1,
116 | totalPages: action.totalPages
117 | })
118 | default: return state
119 | }
120 | }
121 |
122 | /**
123 | * Get or update the active post from a source of truth
124 | */
125 | function post (state = {
126 | data: {},
127 | author: {},
128 | comments: {
129 | isFetching: false,
130 | data: [],
131 | total: 0
132 | }
133 | }, action) {
134 | switch (action.type) {
135 | case RECEIVE_POST:
136 | return Object.assign({}, state, {
137 | data: action.post,
138 | comments: {}
139 | })
140 | case RECEIVE_AUTHOR:
141 | return Object.assign({}, state, {
142 | author: action.author
143 | })
144 | case REQUEST_POST_COMMENTS:
145 | return Object.assign({}, state, {
146 | comments: {
147 | isFetching: true,
148 | data: [],
149 | total: 0
150 | }
151 | })
152 | case RECEIVE_POST_COMMENTS:
153 | return Object.assign({}, state, {
154 | comments: {
155 | isFetching: false,
156 | data: action.comments,
157 | total: action.total
158 | }
159 | })
160 | default: return state
161 | }
162 | }
163 |
164 | /*
165 | * Our whole reducer combined from every other reducer
166 | */
167 | export default combineReducers({
168 | site,
169 | search,
170 | categories,
171 | comments,
172 | posts,
173 | post
174 | })
175 |
--------------------------------------------------------------------------------
/static/header.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pixel2HTML/wp-nextjs/14cc1577fae2d96fd2e224ee0fe19420467824b4/static/header.jpg
--------------------------------------------------------------------------------
/static/twentyNext.css:
--------------------------------------------------------------------------------
1 | /*--------------------------------------------------------------
2 | 13.1 Header
3 | --------------------------------------------------------------*/
4 | .o-header.has-header-image .site-title,
5 | .o-header.has-header-image .site-title a {
6 | color: #fff;
7 | }
8 |
9 | .o-header.has-header-image .site-description {
10 | color: #fff;
11 | opacity: 0.8;
12 | }
13 |
14 | .o-header.home.title-tagline-hidden.has-header-image .custom-logo-link img {
15 | max-height: 200px;
16 | max-width: 100%;
17 | }
18 |
19 | .o-header:not(.title-tagline-hidden) .site-branding-text {
20 | display: inline-block;
21 | vertical-align: middle;
22 | }
23 |
24 | /* Hides div in Customizer preview when header images or videos change. */
25 |
26 | body:not(.has-header-image) .custom-header-image {
27 | display: block;
28 | }
29 |
30 | .twentyseventeen-front-page.has-header-image .site-branding,
31 | .home.blog.has-header-image .site-branding {
32 | margin-bottom: 0;
33 | }
34 |
35 |
36 | /*--------------------------------------------------------------
37 | Main Content Area
38 | --------------------------------------------------------------*/
39 | body:not(.has-sidebar):not(.page-one-column) .page-header,
40 | body.has-sidebar.error404 #primary .page-header,
41 | body.page-two-column:not(.archive) #primary .entry-header,
42 | body.page-two-column.archive:not(.has-sidebar) #primary .page-header {
43 | float: initial;
44 | width: initial;
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/static/twentyseventeen.css:
--------------------------------------------------------------------------------
1 | /*
2 | Theme Name: Twenty Seventeen
3 | Theme URI: https://wordpress.org/themes/twentyseventeen/
4 | Author: the WordPress team
5 | Author URI: https://wordpress.org/
6 | Description: Twenty Seventeen brings your site to life with immersive featured images and subtle animations. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
7 | Version: 1.0
8 | License: GNU General Public License v2 or later
9 | License URI: http://www.gnu.org/licenses/gpl-2.0.html
10 | Text Domain: twentyseventeen
11 | Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
12 |
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 | >>> TABLE OF CONTENTS:
19 | ----------------------------------------------------------------
20 | 1.0 Normalize
21 | 2.0 Accessibility
22 | 3.0 Alignments
23 | 4.0 Clearings
24 | 5.0 Typography
25 | 6.0 Forms
26 | 7.0 Formatting
27 | 8.0 Lists
28 | 9.0 Tables
29 | 10.0 Links
30 | 11.0 Featured Image Hover
31 | 12.0 Navigation
32 | 13.0 Layout
33 | 13.1 Header
34 | 13.2 Front Page
35 | 13.3 Regular Content
36 | 13.4 Posts
37 | 13.5 Pages
38 | 13.6 Footer
39 | 14.0 Comments
40 | 15.0 Widgets
41 | 16.0 Media
42 | 16.1 Galleries
43 | 17.0 Customizer
44 | 18.0 SVGs Fallbacks
45 | 19.0 Media Queries
46 | 20.0 Print
47 | --------------------------------------------------------------*/
48 |
49 | /*--------------------------------------------------------------
50 | 1.0 Normalize
51 | Styles based on Normalize v5.0.0 @link https://github.com/necolas/normalize.css
52 | --------------------------------------------------------------*/
53 |
54 | html {
55 | font-family: sans-serif;
56 | line-height: 1.15;
57 | -ms-text-size-adjust: 100%;
58 | -webkit-text-size-adjust: 100%;
59 | }
60 |
61 | body {
62 | margin: 0;
63 | }
64 |
65 | article,
66 | aside,
67 | footer,
68 | header,
69 | nav,
70 | section {
71 | display: block;
72 | }
73 |
74 | h1 {
75 | font-size: 2em;
76 | margin: 0.67em 0;
77 | }
78 |
79 | figcaption,
80 | figure,
81 | main {
82 | display: block;
83 | }
84 |
85 | figure {
86 | margin: 1em 0;
87 | }
88 |
89 | hr {
90 | -webkit-box-sizing: content-box;
91 | -moz-box-sizing: content-box;
92 | box-sizing: content-box;
93 | height: 0;
94 | overflow: visible;
95 | }
96 |
97 | pre {
98 | font-family: monospace, monospace;
99 | font-size: 1em;
100 | }
101 |
102 | a {
103 | background-color: transparent;
104 | -webkit-text-decoration-skip: objects;
105 | }
106 |
107 | a:active,
108 | a:hover {
109 | outline-width: 0;
110 | }
111 |
112 | abbr[title] {
113 | border-bottom: 1px #767676 dotted;
114 | text-decoration: none;
115 | }
116 |
117 | b,
118 | strong {
119 | font-weight: inherit;
120 | }
121 |
122 | b,
123 | strong {
124 | font-weight: bolder;
125 | }
126 |
127 | code,
128 | kbd,
129 | samp {
130 | font-family: monospace, monospace;
131 | font-size: 1em;
132 | }
133 |
134 | dfn {
135 | font-style: italic;
136 | }
137 |
138 | mark {
139 | background-color: #eee;
140 | color: #222;
141 | }
142 |
143 | small {
144 | font-size: 80%;
145 | }
146 |
147 | sub,
148 | sup {
149 | font-size: 75%;
150 | line-height: 0;
151 | position: relative;
152 | vertical-align: baseline;
153 | }
154 |
155 | sub {
156 | bottom: -0.25em;
157 | }
158 |
159 | sup {
160 | top: -0.5em;
161 | }
162 |
163 | audio,
164 | video {
165 | display: inline-block;
166 | }
167 |
168 | audio:not([controls]) {
169 | display: none;
170 | height: 0;
171 | }
172 |
173 | img {
174 | border-style: none;
175 | }
176 |
177 | svg:not(:root) {
178 | overflow: hidden;
179 | }
180 |
181 | button,
182 | input,
183 | optgroup,
184 | select,
185 | textarea {
186 | font-family: sans-serif;
187 | font-size: 100%;
188 | line-height: 1.15;
189 | margin: 0;
190 | }
191 |
192 | button,
193 | input {
194 | overflow: visible;
195 | }
196 |
197 | button,
198 | select {
199 | text-transform: none;
200 | }
201 |
202 | button,
203 | html [type="button"],
204 | [type="reset"],
205 | [type="submit"] {
206 | -webkit-appearance: button;
207 | }
208 |
209 | button::-moz-focus-inner,
210 | [type="button"]::-moz-focus-inner,
211 | [type="reset"]::-moz-focus-inner,
212 | [type="submit"]::-moz-focus-inner {
213 | border-style: none;
214 | padding: 0;
215 | }
216 |
217 | button:-moz-focusring,
218 | [type="button"]:-moz-focusring,
219 | [type="reset"]:-moz-focusring,
220 | [type="submit"]:-moz-focusring {
221 | outline: 1px dotted ButtonText;
222 | }
223 |
224 | fieldset {
225 | border: 1px solid #bbb;
226 | margin: 0 2px;
227 | padding: 0.35em 0.625em 0.75em;
228 | }
229 |
230 | legend {
231 | -webkit-box-sizing: border-box;
232 | -moz-box-sizing: border-box;
233 | box-sizing: border-box;
234 | color: inherit;
235 | display: table;
236 | max-width: 100%;
237 | padding: 0;
238 | white-space: normal;
239 | }
240 |
241 | progress {
242 | display: inline-block;
243 | vertical-align: baseline;
244 | }
245 |
246 | textarea {
247 | overflow: auto;
248 | }
249 |
250 | [type="checkbox"],
251 | [type="radio"] {
252 | -webkit-box-sizing: border-box;
253 | -moz-box-sizing: border-box;
254 | box-sizing: border-box;
255 | padding: 0;
256 | }
257 |
258 | [type="number"]::-webkit-inner-spin-button,
259 | [type="number"]::-webkit-outer-spin-button {
260 | height: auto;
261 | }
262 |
263 | [type="search"] {
264 | -webkit-appearance: textfield;
265 | outline-offset: -2px;
266 | }
267 |
268 | [type="search"]::-webkit-search-cancel-button,
269 | [type="search"]::-webkit-search-decoration {
270 | -webkit-appearance: none;
271 | }
272 |
273 | ::-webkit-file-upload-button {
274 | -webkit-appearance: button;
275 | font: inherit;
276 | }
277 |
278 | details,
279 | menu {
280 | display: block;
281 | }
282 |
283 | summary {
284 | display: list-item;
285 | }
286 |
287 | canvas {
288 | display: inline-block;
289 | }
290 |
291 | template {
292 | display: none;
293 | }
294 |
295 | [hidden] {
296 | display: none;
297 | }
298 |
299 | /*--------------------------------------------------------------
300 | 2.0 Accessibility
301 | --------------------------------------------------------------*/
302 |
303 | /* Text meant only for screen readers. */
304 |
305 | .screen-reader-text {
306 | clip: rect(1px, 1px, 1px, 1px);
307 | height: 1px;
308 | overflow: hidden;
309 | position: absolute !important;
310 | width: 1px;
311 | word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
312 | }
313 |
314 | .screen-reader-text:focus {
315 | background-color: #f1f1f1;
316 | -webkit-border-radius: 3px;
317 | border-radius: 3px;
318 | -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
319 | box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
320 | clip: auto !important;
321 | color: #21759b;
322 | display: block;
323 | font-size: 14px;
324 | font-size: 0.875rem;
325 | font-weight: 700;
326 | height: auto;
327 | left: 5px;
328 | line-height: normal;
329 | padding: 15px 23px 14px;
330 | text-decoration: none;
331 | top: 5px;
332 | width: auto;
333 | z-index: 100000; /* Above WP toolbar. */
334 | }
335 |
336 | /*--------------------------------------------------------------
337 | 3.0 Alignments
338 | --------------------------------------------------------------*/
339 |
340 | .alignleft {
341 | display: inline;
342 | float: left;
343 | margin-right: 1.5em;
344 | }
345 |
346 | .alignright {
347 | display: inline;
348 | float: right;
349 | margin-left: 1.5em;
350 | }
351 |
352 | .aligncenter {
353 | clear: both;
354 | display: block;
355 | margin-left: auto;
356 | margin-right: auto;
357 | }
358 |
359 | /*--------------------------------------------------------------
360 | 4.0 Clearings
361 | --------------------------------------------------------------*/
362 |
363 | .clear:before,
364 | .clear:after,
365 | .entry-content:before,
366 | .entry-content:after,
367 | .entry-footer:before,
368 | .entry-footer:after,
369 | .comment-content:before,
370 | .comment-content:after,
371 | .site-header:before,
372 | .site-header:after,
373 | .site-content:before,
374 | .site-content:after,
375 | .site-footer:before,
376 | .site-footer:after,
377 | .nav-links:before,
378 | .nav-links:after,
379 | .pagination:before,
380 | .pagination:after,
381 | .comment-author:before,
382 | .comment-author:after,
383 | .widget-area:before,
384 | .widget-area:after,
385 | .widget:before,
386 | .widget:after,
387 | .comment-meta:before,
388 | .comment-meta:after {
389 | content: "";
390 | display: table;
391 | table-layout: fixed;
392 | }
393 |
394 | .clear:after,
395 | .entry-content:after,
396 | .entry-footer:after,
397 | .comment-content:after,
398 | .site-header:after,
399 | .site-content:after,
400 | .site-footer:after,
401 | .nav-links:after,
402 | .pagination:after,
403 | .comment-author:after,
404 | .widget-area:after,
405 | .widget:after,
406 | .comment-meta:after {
407 | clear: both;
408 | }
409 |
410 | /*--------------------------------------------------------------
411 | 5.0 Typography
412 | --------------------------------------------------------------*/
413 |
414 | body,
415 | button,
416 | input,
417 | select,
418 | textarea {
419 | color: #333;
420 | font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
421 | font-size: 15px;
422 | font-size: 0.9375rem;
423 | font-weight: 400;
424 | line-height: 1.66;
425 | }
426 |
427 | h1,
428 | h2,
429 | h3,
430 | h4,
431 | h5,
432 | h6 {
433 | clear: both;
434 | line-height: 1.4;
435 | margin: 0 0 0.75em;
436 | padding: 1.5em 0 0;
437 | }
438 |
439 | h1:first-child,
440 | h2:first-child,
441 | h3:first-child,
442 | h4:first-child,
443 | h5:first-child,
444 | h6:first-child {
445 | padding-top: 0;
446 | }
447 |
448 | h1 {
449 | font-size: 24px;
450 | font-size: 1.5rem;
451 | font-weight: 300;
452 | }
453 |
454 | h2 {
455 | color: #666;
456 | font-size: 20px;
457 | font-size: 1.25rem;
458 | font-weight: 300;
459 | }
460 |
461 | h3 {
462 | color: #333;
463 | font-size: 18px;
464 | font-size: 1.125rem;
465 | font-weight: 300;
466 | }
467 |
468 | h4 {
469 | color: #333;
470 | font-size: 16px;
471 | font-size: 1rem;
472 | font-weight: 800;
473 | }
474 |
475 | h5 {
476 | color: #767676;
477 | font-size: 13px;
478 | font-size: 0.8125rem;
479 | font-weight: 800;
480 | letter-spacing: 0.15em;
481 | text-transform: uppercase;
482 | }
483 |
484 | h6 {
485 | color: #333;
486 | font-size: 15px;
487 | font-size: 0.9375rem;
488 | font-weight: 800;
489 | }
490 |
491 | p {
492 | margin: 0 0 1.5em;
493 | padding: 0;
494 | }
495 |
496 | dfn,
497 | cite,
498 | em,
499 | i {
500 | font-style: italic;
501 | }
502 |
503 | blockquote {
504 | color: #666;
505 | font-size: 18px;
506 | font-size: 1.125rem;
507 | font-style: italic;
508 | line-height: 1.7;
509 | margin: 0;
510 | overflow: hidden;
511 | padding: 0;
512 | }
513 |
514 | blockquote cite {
515 | display: block;
516 | font-style: normal;
517 | font-weight: 600;
518 | margin-top: 0.5em;
519 | }
520 |
521 | address {
522 | margin: 0 0 1.5em;
523 | }
524 |
525 | pre {
526 | background: #eee;
527 | font-family: "Courier 10 Pitch", Courier, monospace;
528 | font-size: 15px;
529 | font-size: 0.9375rem;
530 | line-height: 1.6;
531 | margin-bottom: 1.6em;
532 | max-width: 100%;
533 | overflow: auto;
534 | padding: 1.6em;
535 | }
536 |
537 | code,
538 | kbd,
539 | tt,
540 | var {
541 | font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
542 | font-size: 15px;
543 | font-size: 0.9375rem;
544 | }
545 |
546 | abbr,
547 | acronym {
548 | border-bottom: 1px dotted #666;
549 | cursor: help;
550 | }
551 |
552 | mark,
553 | ins {
554 | background: #eee;
555 | text-decoration: none;
556 | }
557 |
558 | big {
559 | font-size: 125%;
560 | }
561 |
562 | blockquote {
563 | quotes: "" "";
564 | }
565 |
566 | q {
567 | quotes: "“" "â€" "‘" "’";
568 | }
569 |
570 | blockquote:before,
571 | blockquote:after {
572 | content: "";
573 | }
574 |
575 | :focus {
576 | outline: none;
577 | }
578 |
579 | /* Typography for Arabic Font */
580 |
581 | html[lang="ar"] body,
582 | html[lang="ar"] button,
583 | html[lang="ar"] input,
584 | html[lang="ar"] select,
585 | html[lang="ar"] textarea,
586 | html[lang="ary"] body,
587 | html[lang="ary"] button,
588 | html[lang="ary"] input,
589 | html[lang="ary"] select,
590 | html[lang="ary"] textarea,
591 | html[lang="azb"] body,
592 | html[lang="azb"] button,
593 | html[lang="azb"] input,
594 | html[lang="azb"] select,
595 | html[lang="azb"] textarea,
596 | html[lang="fa-IR"] body,
597 | html[lang="fa-IR"] button,
598 | html[lang="fa-IR"] input,
599 | html[lang="fa-IR"] select,
600 | html[lang="fa-IR"] textarea,
601 | html[lang="haz"] body,
602 | html[lang="haz"] button,
603 | html[lang="haz"] input,
604 | html[lang="haz"] select,
605 | html[lang="haz"] textarea,
606 | html[lang="ps"] body,
607 | html[lang="ps"] button,
608 | html[lang="ps"] input,
609 | html[lang="ps"] select,
610 | html[lang="ps"] textarea,
611 | html[lang="ur"] body,
612 | html[lang="ur"] button,
613 | html[lang="ur"] input,
614 | html[lang="ur"] select,
615 | html[lang="ur"] textarea {
616 | font-family: Tahoma, Arial, sans-serif;
617 | }
618 |
619 | html[lang="ar"] h1,
620 | html[lang="ar"] h2,
621 | html[lang="ar"] h3,
622 | html[lang="ar"] h4,
623 | html[lang="ar"] h5,
624 | html[lang="ar"] h6,
625 | html[lang="ary"] h1,
626 | html[lang="ary"] h2,
627 | html[lang="ary"] h3,
628 | html[lang="ary"] h4,
629 | html[lang="ary"] h5,
630 | html[lang="ary"] h6,
631 | html[lang="azb"] h1,
632 | html[lang="azb"] h2,
633 | html[lang="azb"] h3,
634 | html[lang="azb"] h4,
635 | html[lang="azb"] h5,
636 | html[lang="azb"] h6,
637 | html[lang="fa-IR"] h1,
638 | html[lang="fa-IR"] h2,
639 | html[lang="fa-IR"] h3,
640 | html[lang="fa-IR"] h4,
641 | html[lang="fa-IR"] h5,
642 | html[lang="fa-IR"] h6,
643 | html[lang="haz"] h1,
644 | html[lang="haz"] h2,
645 | html[lang="haz"] h3,
646 | html[lang="haz"] h4,
647 | html[lang="haz"] h5,
648 | html[lang="haz"] h6,
649 | html[lang="ps"] h1,
650 | html[lang="ps"] h2,
651 | html[lang="ps"] h3,
652 | html[lang="ps"] h4,
653 | html[lang="ps"] h5,
654 | html[lang="ps"] h6,
655 | html[lang="ur"] h1,
656 | html[lang="ur"] h2,
657 | html[lang="ur"] h3,
658 | html[lang="ur"] h4,
659 | html[lang="ur"] h5,
660 | html[lang="ur"] h6 {
661 | font-weight: 700;
662 | }
663 |
664 | /* Typography for Chinese Font */
665 |
666 | html[lang^="zh-"] body,
667 | html[lang^="zh-"] button,
668 | html[lang^="zh-"] input,
669 | html[lang^="zh-"] select,
670 | html[lang^="zh-"] textarea {
671 | font-family: "PingFang TC", "Helvetica Neue", Helvetica, STHeitiTC-Light, Arial, sans-serif;
672 | }
673 |
674 | html[lang^="zh-"] h1,
675 | html[lang^="zh-"] h2,
676 | html[lang^="zh-"] h3,
677 | html[lang^="zh-"] h4,
678 | html[lang^="zh-"] h5,
679 | html[lang^="zh-"] h6 {
680 | font-weight: 700;
681 | }
682 |
683 | /* Typography for Cyrillic Font */
684 |
685 | html[lang="bg-BG"] body,
686 | html[lang="bg-BG"] button,
687 | html[lang="bg-BG"] input,
688 | html[lang="bg-BG"] select,
689 | html[lang="bg-BG"] textarea,
690 | html[lang="ru-RU"] body,
691 | html[lang="ru-RU"] button,
692 | html[lang="ru-RU"] input,
693 | html[lang="ru-RU"] select,
694 | html[lang="ru-RU"] textarea,
695 | html[lang="uk"] body,
696 | html[lang="uk"] button,
697 | html[lang="uk"] input,
698 | html[lang="uk"] select,
699 | html[lang="uk"] textarea {
700 | font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
701 | }
702 |
703 | html[lang="bg-BG"] h1,
704 | html[lang="bg-BG"] h2,
705 | html[lang="bg-BG"] h3,
706 | html[lang="bg-BG"] h4,
707 | html[lang="bg-BG"] h5,
708 | html[lang="bg-BG"] h6,
709 | html[lang="ru-RU"] h1,
710 | html[lang="ru-RU"] h2,
711 | html[lang="ru-RU"] h3,
712 | html[lang="ru-RU"] h4,
713 | html[lang="ru-RU"] h5,
714 | html[lang="ru-RU"] h6,
715 | html[lang="uk"] h1,
716 | html[lang="uk"] h2,
717 | html[lang="uk"] h3,
718 | html[lang="uk"] h4,
719 | html[lang="uk"] h5,
720 | html[lang="uk"] h6 {
721 | font-weight: 700;
722 | line-height: 1.2;
723 | }
724 |
725 | /* Typography for Devanagari Font */
726 |
727 | html[lang="bn-BD"] body,
728 | html[lang="bn-BD"] button,
729 | html[lang="bn-BD"] input,
730 | html[lang="bn-BD"] select,
731 | html[lang="bn-BD"] textarea,
732 | html[lang="hi-IN"] body,
733 | html[lang="hi-IN"] button,
734 | html[lang="hi-IN"] input,
735 | html[lang="hi-IN"] select,
736 | html[lang="hi-IN"] textarea,
737 | html[lang="mr-IN"] body,
738 | html[lang="mr-IN"] button,
739 | html[lang="mr-IN"] input,
740 | html[lang="mr-IN"] select,
741 | html[lang="mr-IN"] textarea {
742 | font-family: Arial, sans-serif;
743 | }
744 |
745 | html[lang="bn-BD"] h1,
746 | html[lang="bn-BD"] h2,
747 | html[lang="bn-BD"] h3,
748 | html[lang="bn-BD"] h4,
749 | html[lang="bn-BD"] h5,
750 | html[lang="bn-BD"] h6,
751 | html[lang="hi-IN"] h1,
752 | html[lang="hi-IN"] h2,
753 | html[lang="hi-IN"] h3,
754 | html[lang="hi-IN"] h4,
755 | html[lang="hi-IN"] h5,
756 | html[lang="hi-IN"] h6,
757 | html[lang="mr-IN"] h1,
758 | html[lang="mr-IN"] h2,
759 | html[lang="mr-IN"] h3,
760 | html[lang="mr-IN"] h4,
761 | html[lang="mr-IN"] h5,
762 | html[lang="mr-IN"] h6 {
763 | font-weight: 700;
764 | }
765 |
766 | /* Typography for Greek Font */
767 |
768 | html[lang="el"] body,
769 | html[lang="el"] button,
770 | html[lang="el"] input,
771 | html[lang="el"] select,
772 | html[lang="el"] textarea {
773 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
774 | }
775 |
776 | html[lang="el"] h1,
777 | html[lang="el"] h2,
778 | html[lang="el"] h3,
779 | html[lang="el"] h4,
780 | html[lang="el"] h5,
781 | html[lang="el"] h6 {
782 | font-weight: 700;
783 | line-height: 1.3;
784 | }
785 |
786 | /* Typography for Gujarati Font */
787 |
788 | html[lang="gu-IN"] body,
789 | html[lang="gu-IN"] button,
790 | html[lang="gu-IN"] input,
791 | html[lang="gu-IN"] select,
792 | html[lang="gu-IN"] textarea {
793 | font-family: Arial, sans-serif;
794 | }
795 |
796 | html[lang="gu-IN"] h1,
797 | html[lang="gu-IN"] h2,
798 | html[lang="gu-IN"] h3,
799 | html[lang="gu-IN"] h4,
800 | html[lang="gu-IN"] h5,
801 | html[lang="gu-IN"] h6 {
802 | font-weight: 700;
803 | }
804 |
805 | /* Typography for Hebrew Font */
806 |
807 | html[lang="he-IL"] body,
808 | html[lang="he-IL"] button,
809 | html[lang="he-IL"] input,
810 | html[lang="he-IL"] select,
811 | html[lang="he-IL"] textarea {
812 | font-family: "Arial Hebrew", Arial, sans-serif;
813 | }
814 |
815 | html[lang="he-IL"] h1,
816 | html[lang="he-IL"] h2,
817 | html[lang="he-IL"] h3,
818 | html[lang="he-IL"] h4,
819 | html[lang="he-IL"] h5,
820 | html[lang="he-IL"] h6 {
821 | font-weight: 700;
822 | }
823 |
824 | /* Typography for Japanese Font */
825 |
826 | html[lang="ja"] body,
827 | html[lang="ja"] button,
828 | html[lang="ja"] input,
829 | html[lang="ja"] select,
830 | html[lang="ja"] textarea {
831 | font-family: "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
832 | }
833 |
834 | html[lang="ja"] h1,
835 | html[lang="ja"] h2,
836 | html[lang="ja"] h3,
837 | html[lang="ja"] h4,
838 | html[lang="ja"] h5,
839 | html[lang="ja"] h6 {
840 | font-weight: 700;
841 | }
842 |
843 | /* Typography for Korean font */
844 |
845 | html[lang="ko-KR"] body,
846 | html[lang="ko-KR"] button,
847 | html[lang="ko-KR"] input,
848 | html[lang="ko-KR"] select,
849 | html[lang="ko-KR"] textarea {
850 | font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", Dotum, sans-serif;
851 | }
852 |
853 | html[lang="ko-KR"] h1,
854 | html[lang="ko-KR"] h2,
855 | html[lang="ko-KR"] h3,
856 | html[lang="ko-KR"] h4,
857 | html[lang="ko-KR"] h5,
858 | html[lang="ko-KR"] h6 {
859 | font-weight: 600;
860 | }
861 |
862 | /* Typography for Thai Font */
863 |
864 | html[lang="th"] h1,
865 | html[lang="th"] h2,
866 | html[lang="th"] h3,
867 | html[lang="th"] h4,
868 | html[lang="th"] h5,
869 | html[lang="th"] h6 {
870 | line-height: 1.65;
871 | }
872 |
873 | html[lang="th"] body,
874 | html[lang="th"] button,
875 | html[lang="th"] input,
876 | html[lang="th"] select,
877 | html[lang="th"] textarea {
878 | line-height: 1.8;
879 | }
880 |
881 | /* Remove letter-spacing for all non-latin alphabets */
882 |
883 | html[lang="ar"] *,
884 | html[lang="ary"] *,
885 | html[lang="azb"] *,
886 | html[lang="haz"] *,
887 | html[lang="ps"] *,
888 | html[lang^="zh-"] *,
889 | html[lang="bg-BG"] *,
890 | html[lang="ru-RU"] *,
891 | html[lang="uk"] *,
892 | html[lang="bn-BD"] *,
893 | html[lang="hi-IN"] *,
894 | html[lang="mr-IN"] *,
895 | html[lang="el"] *,
896 | html[lang="gu-IN"] *,
897 | html[lang="he-IL"] *,
898 | html[lang="ja"] *,
899 | html[lang="ko-KR"] *,
900 | html[lang="th"] * {
901 | letter-spacing: 0 !important;
902 | }
903 |
904 | /*--------------------------------------------------------------
905 | 6.0 Forms
906 | --------------------------------------------------------------*/
907 |
908 | label {
909 | color: #333;
910 | display: block;
911 | font-weight: 800;
912 | margin-bottom: 0.5em;
913 | }
914 |
915 | fieldset {
916 | margin-bottom: 1em;
917 | }
918 |
919 | input[type="text"],
920 | input[type="email"],
921 | input[type="url"],
922 | input[type="password"],
923 | input[type="search"],
924 | input[type="number"],
925 | input[type="tel"],
926 | input[type="range"],
927 | input[type="date"],
928 | input[type="month"],
929 | input[type="week"],
930 | input[type="time"],
931 | input[type="datetime"],
932 | input[type="datetime-local"],
933 | input[type="color"],
934 | textarea {
935 | color: #666;
936 | background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
937 | border: 1px solid #bbb;
938 | -webkit-border-radius: 3px;
939 | border-radius: 3px;
940 | display: block;
941 | padding: 0.7em;
942 | width: 100%;
943 | }
944 |
945 | input[type="text"]:focus,
946 | input[type="email"]:focus,
947 | input[type="url"]:focus,
948 | input[type="password"]:focus,
949 | input[type="search"]:focus,
950 | input[type="number"]:focus,
951 | input[type="tel"]:focus,
952 | input[type="range"]:focus,
953 | input[type="date"]:focus,
954 | input[type="month"]:focus,
955 | input[type="week"]:focus,
956 | input[type="time"]:focus,
957 | input[type="datetime"]:focus,
958 | input[type="datetime-local"]:focus,
959 | input[type="color"]:focus,
960 | textarea:focus {
961 | color: #222;
962 | border-color: #333;
963 | }
964 |
965 | select {
966 | border: 1px solid #bbb;
967 | -webkit-border-radius: 3px;
968 | border-radius: 3px;
969 | height: 3em;
970 | max-width: 100%;
971 | }
972 |
973 | input[type="radio"],
974 | input[type="checkbox"] {
975 | margin-right: 0.5em;
976 | }
977 |
978 | input[type="radio"] + label,
979 | input[type="checkbox"] + label {
980 | font-weight: 400;
981 | }
982 |
983 | button,
984 | input[type="button"],
985 | input[type="submit"] {
986 | background-color: #222;
987 | border: 0;
988 | -webkit-border-radius: 2px;
989 | border-radius: 2px;
990 | -webkit-box-shadow: none;
991 | box-shadow: none;
992 | color: #fff;
993 | cursor: pointer;
994 | display: inline-block;
995 | font-size: 14px;
996 | font-size: 0.875rem;
997 | font-weight: 800;
998 | line-height: 1;
999 | padding: 1em 2em;
1000 | text-shadow: none;
1001 | -webkit-transition: background 0.2s;
1002 | transition: background 0.2s;
1003 | }
1004 |
1005 | input + button,
1006 | input + input[type="button"],
1007 | input + input[type="submit"] {
1008 | padding: 0.75em 2em;
1009 | }
1010 |
1011 | button.secondary,
1012 | input[type="reset"],
1013 | input[type="button"].secondary,
1014 | input[type="reset"].secondary,
1015 | input[type="submit"].secondary {
1016 | background-color: #ddd;
1017 | color: #222;
1018 | }
1019 |
1020 | button:hover,
1021 | button:focus,
1022 | input[type="button"]:hover,
1023 | input[type="button"]:focus,
1024 | input[type="submit"]:hover,
1025 | input[type="submit"]:focus {
1026 | background: #767676;
1027 | }
1028 |
1029 | button.secondary:hover,
1030 | button.secondary:focus,
1031 | input[type="reset"]:hover,
1032 | input[type="reset"]:focus,
1033 | input[type="button"].secondary:hover,
1034 | input[type="button"].secondary:focus,
1035 | input[type="reset"].secondary:hover,
1036 | input[type="reset"].secondary:focus,
1037 | input[type="submit"].secondary:hover,
1038 | input[type="submit"].secondary:focus {
1039 | background: #bbb;
1040 | }
1041 |
1042 | /* Placeholder text color -- selectors need to be separate to work. */
1043 | ::-webkit-input-placeholder {
1044 | color: #333;
1045 | font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
1046 | }
1047 |
1048 | :-moz-placeholder {
1049 | color: #333;
1050 | font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
1051 | }
1052 |
1053 | ::-moz-placeholder {
1054 | color: #333;
1055 | font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
1056 | opacity: 1;
1057 | /* Since FF19 lowers the opacity of the placeholder by default */
1058 | }
1059 |
1060 | :-ms-input-placeholder {
1061 | color: #333;
1062 | font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
1063 | }
1064 |
1065 | /*--------------------------------------------------------------
1066 | 7.0 Formatting
1067 | --------------------------------------------------------------*/
1068 |
1069 | hr {
1070 | background-color: #bbb;
1071 | border: 0;
1072 | height: 1px;
1073 | margin-bottom: 1.5em;
1074 | }
1075 |
1076 | /*--------------------------------------------------------------
1077 | 8.0 Lists
1078 | --------------------------------------------------------------*/
1079 |
1080 | ul,
1081 | ol {
1082 | margin: 0 0 1.5em;
1083 | padding: 0;
1084 | }
1085 |
1086 | ul {
1087 | list-style: disc;
1088 | }
1089 |
1090 | ol {
1091 | list-style: decimal;
1092 | }
1093 |
1094 | li > ul,
1095 | li > ol {
1096 | margin-bottom: 0;
1097 | margin-left: 1.5em;
1098 | }
1099 |
1100 | dt {
1101 | font-weight: 700;
1102 | }
1103 |
1104 | dd {
1105 | margin: 0 1.5em 1.5em;
1106 | }
1107 |
1108 | /*--------------------------------------------------------------
1109 | 9.0 Tables
1110 | --------------------------------------------------------------*/
1111 |
1112 | table {
1113 | border-collapse: collapse;
1114 | margin: 0 0 1.5em;
1115 | width: 100%;
1116 | }
1117 |
1118 | thead th {
1119 | border-bottom: 2px solid #bbb;
1120 | padding-bottom: 0.5em;
1121 | }
1122 |
1123 | th {
1124 | padding: 0.4em;
1125 | text-align: left;
1126 | }
1127 |
1128 | tr {
1129 | border-bottom: 1px solid #eee;
1130 | }
1131 |
1132 | td {
1133 | padding: 0.4em;
1134 | }
1135 |
1136 | th:first-child,
1137 | td:first-child {
1138 | padding-left: 0;
1139 | }
1140 |
1141 | th:last-child,
1142 | td:last-child {
1143 | padding-right: 0;
1144 | }
1145 |
1146 | /*--------------------------------------------------------------
1147 | 10.0 Links
1148 | --------------------------------------------------------------*/
1149 |
1150 | a {
1151 | color: #222;
1152 | text-decoration: none;
1153 | }
1154 |
1155 | a:focus {
1156 | outline: thin dotted;
1157 | }
1158 |
1159 | a:hover,
1160 | a:active {
1161 | color: #000;
1162 | outline: 0;
1163 | }
1164 |
1165 | /* Hover effects */
1166 |
1167 | .entry-content a,
1168 | .entry-summary a,
1169 | .widget a,
1170 | .site-footer .widget-area a,
1171 | .posts-navigation a,
1172 | .widget_authors a strong {
1173 | -webkit-box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 1);
1174 | box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 1);
1175 | -webkit-transition: color 80ms ease-in, -webkit-box-shadow 130ms ease-in-out;
1176 | transition: color 80ms ease-in, -webkit-box-shadow 130ms ease-in-out;
1177 | transition: color 80ms ease-in, box-shadow 130ms ease-in-out;
1178 | transition: color 80ms ease-in, box-shadow 130ms ease-in-out, -webkit-box-shadow 130ms ease-in-out;
1179 | }
1180 |
1181 | .entry-title a,
1182 | .entry-meta a,
1183 | .page-links a,
1184 | .page-links a .page-number,
1185 | .entry-footer a,
1186 | .entry-footer .cat-links a,
1187 | .entry-footer .tags-links a,
1188 | .edit-link a,
1189 | .post-navigation a,
1190 | .logged-in-as a,
1191 | .comment-navigation a,
1192 | .comment-metadata a,
1193 | .comment-metadata a.comment-edit-link,
1194 | .comment-reply-link,
1195 | a .nav-title,
1196 | .pagination a,
1197 | .comments-pagination a,
1198 | .site-info a,
1199 | .widget .widget-title a,
1200 | .widget ul li a,
1201 | .site-footer .widget-area ul li a,
1202 | .site-footer .widget-area ul li a {
1203 | -webkit-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
1204 | box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
1205 | text-decoration: none;
1206 | -webkit-transition: color 80ms ease-in, -webkit-box-shadow 130ms ease-in-out;
1207 | transition: color 80ms ease-in, -webkit-box-shadow 130ms ease-in-out;
1208 | transition: color 80ms ease-in, box-shadow 130ms ease-in-out;
1209 | transition: color 80ms ease-in, box-shadow 130ms ease-in-out, -webkit-box-shadow 130ms ease-in-out;
1210 | }
1211 |
1212 | .entry-content a:focus,
1213 | .entry-content a:hover,
1214 | .entry-summary a:focus,
1215 | .entry-summary a:hover,
1216 | .widget a:focus,
1217 | .widget a:hover,
1218 | .site-footer .widget-area a:focus,
1219 | .site-footer .widget-area a:hover,
1220 | .posts-navigation a:focus,
1221 | .posts-navigation a:hover,
1222 | .comment-metadata a:focus,
1223 | .comment-metadata a:hover,
1224 | .comment-metadata a.comment-edit-link:focus,
1225 | .comment-metadata a.comment-edit-link:hover,
1226 | .comment-reply-link:focus,
1227 | .comment-reply-link:hover,
1228 | .widget_authors a:focus strong,
1229 | .widget_authors a:hover strong,
1230 | .entry-title a:focus,
1231 | .entry-title a:hover,
1232 | .entry-meta a:focus,
1233 | .entry-meta a:hover,
1234 | .page-links a:focus .page-number,
1235 | .page-links a:hover .page-number,
1236 | .entry-footer a:focus,
1237 | .entry-footer a:hover,
1238 | .entry-footer .cat-links a:focus,
1239 | .entry-footer .cat-links a:hover,
1240 | .entry-footer .tags-links a:focus,
1241 | .entry-footer .tags-links a:hover,
1242 | .post-navigation a:focus,
1243 | .post-navigation a:hover,
1244 | .pagination a:not(.prev):not(.next):focus,
1245 | .pagination a:not(.prev):not(.next):hover,
1246 | .comments-pagination a:not(.prev):not(.next):focus,
1247 | .comments-pagination a:not(.prev):not(.next):hover,
1248 | .logged-in-as a:focus,
1249 | .logged-in-as a:hover,
1250 | a:focus .nav-title,
1251 | a:hover .nav-title,
1252 | .edit-link a:focus,
1253 | .edit-link a:hover,
1254 | .site-info a:focus,
1255 | .site-info a:hover,
1256 | .widget .widget-title a:focus,
1257 | .widget .widget-title a:hover,
1258 | .widget ul li a:focus,
1259 | .widget ul li a:hover {
1260 | color: #000;
1261 | -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 rgba(0, 0, 0, 1);
1262 | box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 rgba(0, 0, 0, 1);
1263 | }
1264 |
1265 | /* Fixes linked images */
1266 | .entry-content a img,
1267 | .widget a img {
1268 | -webkit-box-shadow: 0 0 0 8px #fff;
1269 | box-shadow: 0 0 0 8px #fff;
1270 | }
1271 |
1272 | .post-navigation a:focus .icon,
1273 | .post-navigation a:hover .icon {
1274 | color: #222;
1275 | }
1276 |
1277 | /*--------------------------------------------------------------
1278 | 11.0 Featured Image Hover
1279 | --------------------------------------------------------------*/
1280 |
1281 | .post-thumbnail {
1282 | margin-bottom: 1em;
1283 | }
1284 |
1285 | .post-thumbnail a img {
1286 | -webkit-backface-visibility: hidden;
1287 | -webkit-transition: opacity 0.2s;
1288 | transition: opacity 0.2s;
1289 | }
1290 |
1291 | .post-thumbnail a:hover img,
1292 | .post-thumbnail a:focus img {
1293 | opacity: 0.7;
1294 | }
1295 |
1296 | /*--------------------------------------------------------------
1297 | 12.0 Navigation
1298 | --------------------------------------------------------------*/
1299 |
1300 | .navigation-top {
1301 | background: #fff;
1302 | border-bottom: 1px solid #eee;
1303 | border-top: 1px solid #eee;
1304 | font-size: 16px;
1305 | font-size: 1rem;
1306 | position: relative;
1307 | }
1308 |
1309 | .navigation-top .wrap {
1310 | max-width: 1000px;
1311 | padding: 0;
1312 | }
1313 |
1314 | .navigation-top a {
1315 | color: #222;
1316 | font-weight: 600;
1317 | -webkit-transition: color 0.2s;
1318 | transition: color 0.2s;
1319 | }
1320 |
1321 | .navigation-top .current-menu-item > a,
1322 | .navigation-top .current_page_item > a {
1323 | color: #767676;
1324 | }
1325 |
1326 | .main-navigation {
1327 | clear: both;
1328 | display: block;
1329 | }
1330 |
1331 | .main-navigation ul {
1332 | background: #fff;
1333 | list-style: none;
1334 | margin: 0;
1335 | padding: 0 1.5em;
1336 | text-align: left;
1337 | }
1338 |
1339 | /* Hide the menu on small screens when JavaScript is available.
1340 | * It only works with JavaScript.
1341 | */
1342 |
1343 | .js .main-navigation ul,
1344 | .main-navigation .menu-item-has-children > a > .icon,
1345 | .main-navigation .page_item_has_children > a > .icon,
1346 | .main-navigation ul a > .icon {
1347 | display: none;
1348 | }
1349 |
1350 | .main-navigation > div > ul {
1351 | border-top: 1px solid #eee;
1352 | padding: 0.75em 1.695em;
1353 | }
1354 |
1355 | .js .main-navigation.toggled-on > div > ul {
1356 | display: block;
1357 | }
1358 |
1359 | .main-navigation ul ul {
1360 | padding: 0 0 0 1.5em;
1361 | }
1362 |
1363 | .main-navigation ul ul.toggled-on {
1364 | display: block;
1365 | }
1366 |
1367 | .main-navigation ul ul a {
1368 | letter-spacing: 0;
1369 | padding: 0.4em 0;
1370 | position: relative;
1371 | text-transform: none;
1372 | }
1373 |
1374 | .main-navigation li {
1375 | border-bottom: 1px solid #eee;
1376 | position: relative;
1377 | }
1378 |
1379 | .main-navigation li li,
1380 | .main-navigation li:last-child {
1381 | border: 0;
1382 | }
1383 |
1384 | .main-navigation a {
1385 | display: block;
1386 | padding: 0.5em 0;
1387 | text-decoration: none;
1388 | }
1389 |
1390 | .main-navigation a:hover {
1391 | color: #767676;
1392 | }
1393 |
1394 | /* Menu toggle */
1395 |
1396 | .menu-toggle {
1397 | background-color: transparent;
1398 | border: 0;
1399 | -webkit-box-shadow: none;
1400 | box-shadow: none;
1401 | color: #222;
1402 | display: none;
1403 | font-size: 14px;
1404 | font-size: 0.875rem;
1405 | font-weight: 800;
1406 | line-height: 1.5;
1407 | margin: 1px auto 2px;
1408 | padding: 1em;
1409 | text-shadow: none;
1410 | }
1411 |
1412 | /* Display the menu toggle when JavaScript is available. */
1413 |
1414 | .js .menu-toggle {
1415 | display: block;
1416 | }
1417 |
1418 | .main-navigation.toggled-on ul.nav-menu {
1419 | display: block;
1420 | }
1421 |
1422 | .menu-toggle:hover,
1423 | .menu-toggle:focus {
1424 | background-color: transparent;
1425 | -webkit-box-shadow: none;
1426 | box-shadow: none;
1427 | }
1428 |
1429 | .menu-toggle:focus {
1430 | outline: thin solid;
1431 | }
1432 |
1433 | .menu-toggle .icon {
1434 | margin-right: 0.5em;
1435 | top: -2px;
1436 | }
1437 |
1438 | .toggled-on .menu-toggle .icon-bars,
1439 | .menu-toggle .icon-close {
1440 | display: none;
1441 | }
1442 |
1443 | .toggled-on .menu-toggle .icon-close {
1444 | display: inline-block;
1445 | }
1446 |
1447 | /* Dropdown Toggle */
1448 |
1449 | .dropdown-toggle {
1450 | background-color: transparent;
1451 | border: 0;
1452 | -webkit-box-shadow: none;
1453 | box-shadow: none;
1454 | color: #222;
1455 | display: block;
1456 | font-size: 16px;
1457 | right: -0.5em;
1458 | line-height: 1.5;
1459 | margin: 0 auto;
1460 | padding: 0.5em;
1461 | position: absolute;
1462 | text-shadow: none;
1463 | top: 0;
1464 | }
1465 |
1466 | .dropdown-toggle:hover,
1467 | .dropdown-toggle:focus {
1468 | background: transparent;
1469 | }
1470 |
1471 | .dropdown-toggle:focus {
1472 | outline: thin dotted;
1473 | }
1474 |
1475 | .dropdown-toggle.toggled-on .icon {
1476 | -ms-transform: rotate(-180deg); /* IE 9 */
1477 | -webkit-transform: rotate(-180deg); /* Chrome, Safari, Opera */
1478 | transform: rotate(-180deg);
1479 | }
1480 |
1481 | /* Scroll down arrow */
1482 |
1483 | .site-header .menu-scroll-down {
1484 | display: none;
1485 | }
1486 |
1487 | /*--------------------------------------------------------------
1488 | 13.0 Layout
1489 | --------------------------------------------------------------*/
1490 |
1491 | html {
1492 | -webkit-box-sizing: border-box;
1493 | -moz-box-sizing: border-box;
1494 | box-sizing: border-box;
1495 | }
1496 |
1497 | *,
1498 | *:before,
1499 | *:after {
1500 | /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
1501 | -webkit-box-sizing: inherit;
1502 | -moz-box-sizing: inherit;
1503 | box-sizing: inherit;
1504 | }
1505 |
1506 | body {
1507 | background: #fff;
1508 | /* Fallback for when there is no custom background color defined. */
1509 | }
1510 |
1511 | #page {
1512 | position: relative;
1513 | word-wrap: break-word;
1514 | }
1515 |
1516 | .wrap {
1517 | margin-left: auto;
1518 | margin-right: auto;
1519 | max-width: 700px;
1520 | padding-left: 2em;
1521 | padding-right: 2em;
1522 | }
1523 |
1524 | .wrap:after {
1525 | clear: both;
1526 | content: "";
1527 | display: block;
1528 | }
1529 |
1530 | /*--------------------------------------------------------------
1531 | 13.1 Header
1532 | --------------------------------------------------------------*/
1533 |
1534 | #masthead .wrap {
1535 | position: relative;
1536 | }
1537 |
1538 | .site-header {
1539 | background-color: #fafafa;
1540 | position: relative;
1541 | }
1542 |
1543 | /* Site branding */
1544 |
1545 | .site-branding {
1546 | padding: 1em 0;
1547 | position: relative;
1548 | -webkit-transition: margin-bottom 0.2s;
1549 | transition: margin-bottom 0.2s;
1550 | z-index: 3;
1551 | }
1552 |
1553 | .site-branding a {
1554 | text-decoration: none;
1555 | -webkit-transition: opacity 0.2s;
1556 | transition: opacity 0.2s;
1557 | }
1558 |
1559 | .site-branding a:hover,
1560 | .site-branding a:focus {
1561 | opacity: 0.7;
1562 | }
1563 |
1564 | .site-title {
1565 | clear: none;
1566 | font-size: 24px;
1567 | font-size: 1.5rem;
1568 | font-weight: 800;
1569 | line-height: 1.25;
1570 | letter-spacing: 0.08em;
1571 | margin: 0;
1572 | padding: 0;
1573 | text-transform: uppercase;
1574 | }
1575 |
1576 | .site-title,
1577 | .site-title a {
1578 | color: #222;
1579 | opacity: 1; /* Prevent opacity from changing during selective refreshes in the customize preview */
1580 | }
1581 |
1582 | body.has-header-image .site-title,
1583 | body.has-header-image .site-title a {
1584 | color: #fff;
1585 | }
1586 |
1587 | .site-description {
1588 | color: #666;
1589 | font-size: 13px;
1590 | font-size: 0.8125rem;
1591 | margin-bottom: 0;
1592 | }
1593 |
1594 | body.has-header-image .site-description {
1595 | color: #fff;
1596 | opacity: 0.8;
1597 | }
1598 |
1599 | .custom-logo-link {
1600 | display: inline-block;
1601 | padding-right: 1em;
1602 | vertical-align: middle;
1603 | width: auto;
1604 | }
1605 |
1606 | .custom-logo-link img {
1607 | display: inline-block;
1608 | max-height: 80px;
1609 | width: auto;
1610 | }
1611 |
1612 | body.home.title-tagline-hidden.has-header-image .custom-logo-link img {
1613 | max-height: 200px;
1614 | max-width: 100%;
1615 | }
1616 |
1617 | .custom-logo-link a:hover,
1618 | .custom-logo-link a:focus {
1619 | opacity: 0.9;
1620 | }
1621 |
1622 | body:not(.title-tagline-hidden) .site-branding-text {
1623 | display: inline-block;
1624 | vertical-align: middle;
1625 | }
1626 |
1627 | .custom-header {
1628 | position: relative;
1629 | }
1630 |
1631 | .has-header-image.twentyseventeen-front-page .custom-header,
1632 | .has-header-image.home.blog .custom-header {
1633 | display: table;
1634 | height: 300px;
1635 | height: 75vh;
1636 | width: 100%;
1637 | }
1638 |
1639 | .custom-header-image {
1640 | bottom: 0;
1641 | left: 0;
1642 | overflow: hidden;
1643 | position: absolute;
1644 | right: 0;
1645 | top: 0;
1646 | width: 100%;
1647 | }
1648 |
1649 | .custom-header-image:before {
1650 | /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.3+75 */
1651 | background: -moz-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%); /* FF3.6-15 */
1652 | background: -webkit-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%); /* Chrome10-25,Safari5.1-6 */
1653 | background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
1654 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00000000", endColorstr="#4d000000", GradientType=0); /* IE6-9 */
1655 | bottom: 0;
1656 | content: "";
1657 | display: block;
1658 | height: 100%;
1659 | left: 0;
1660 | position: absolute;
1661 | right: 0;
1662 | z-index: 2;
1663 | }
1664 |
1665 | .has-header-image .custom-header-image img,
1666 | .has-header-image .custom-header-image video,
1667 | .has-header-image .custom-header-image iframe {
1668 | position: fixed;
1669 | height: auto;
1670 | left: 50%;
1671 | max-width: 1000%;
1672 | min-height: 100%;
1673 | min-width: 100%;
1674 | min-width: 100vw; /* vw prevents 1px gap on left that 100% has */
1675 | width: auto;
1676 | top: 50%;
1677 | -ms-transform: translateX(-50%) translateY(-50%);
1678 | -moz-transform: translateX(-50%) translateY(-50%);
1679 | -webkit-transform: translateX(-50%) translateY(-50%);
1680 | transform: translateX(-50%) translateY(-50%);
1681 | }
1682 |
1683 | .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-image img {
1684 | bottom: 0;
1685 | position: absolute;
1686 | top: auto;
1687 | -ms-transform: translateX(-50%) translateY(0);
1688 | -moz-transform: translateX(-50%) translateY(0);
1689 | -webkit-transform: translateX(-50%) translateY(0);
1690 | transform: translateX(-50%) translateY(0);
1691 | }
1692 |
1693 | /* Hides div in Customizer preview when header images or videos change. */
1694 |
1695 | body:not(.has-header-image) .custom-header-image {
1696 | display: none;
1697 | }
1698 |
1699 | .has-header-image.twentyseventeen-front-page .site-branding,
1700 | .has-header-image.home.blog .site-branding {
1701 | display: table-cell;
1702 | height: 100%;
1703 | vertical-align: bottom;
1704 | }
1705 |
1706 | /*--------------------------------------------------------------
1707 | 13.2 Front Page
1708 | --------------------------------------------------------------*/
1709 |
1710 | .twentyseventeen-front-page .site-content {
1711 | padding: 0;
1712 | }
1713 |
1714 | .twentyseventeen-panel {
1715 | overflow: hidden;
1716 | position: relative;
1717 | }
1718 |
1719 | .panel-image {
1720 | background-position: center center;
1721 | background-repeat: no-repeat;
1722 | -webkit-background-size: cover;
1723 | background-size: cover;
1724 | position: relative;
1725 | }
1726 |
1727 | .panel-image:before {
1728 | /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.3+100 */ /* FF3.6-15 */
1729 | background: -webkit-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%); /* Chrome10-25,Safari5.1-6 */
1730 | background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.3)));
1731 | background: -webkit-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
1732 | background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
1733 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00000000", endColorstr="#4d000000", GradientType=0); /* IE6-9 */
1734 | bottom: 0;
1735 | content: "";
1736 | left: 0;
1737 | right: 0;
1738 | position: absolute;
1739 | top: 100px;
1740 | }
1741 |
1742 | .twentyseventeen-front-page article:not(.has-post-thumbnail):not(:first-child) {
1743 | border-top: 1px solid #ddd;
1744 | }
1745 |
1746 | .panel-content {
1747 | position: relative;
1748 | }
1749 |
1750 | .panel-content .wrap {
1751 | padding-bottom: 0.5em;
1752 | padding-top: 1.75em;
1753 | }
1754 |
1755 | /* Panel edit link */
1756 |
1757 | .twentyseventeen-panel .edit-link {
1758 | display: block;
1759 | margin: 0.3em 0 0;
1760 | }
1761 |
1762 | .twentyseventeen-panel .entry-header .edit-link {
1763 | font-size: 14px;
1764 | font-size: 0.875rem;
1765 | }
1766 |
1767 | /* Front Page - Recent Posts */
1768 |
1769 | .twentyseventeen-front-page .panel-content .recent-posts article {
1770 | border: 0;
1771 | color: #333;
1772 | margin-bottom: 3em;
1773 | }
1774 |
1775 | .recent-posts .entry-header {
1776 | margin-bottom: 1.2em;
1777 | }
1778 |
1779 | .page .panel-content .recent-posts .entry-title {
1780 | font-size: 20px;
1781 | font-size: 1.25rem;
1782 | font-weight: 300;
1783 | letter-spacing: 0;
1784 | text-transform: none;
1785 | }
1786 |
1787 | .twentyseventeen-panel .recent-posts .entry-header .edit-link {
1788 | color: #222;
1789 | display: inline-block;
1790 | font-size: 11px;
1791 | font-size: 0.6875rem;
1792 | margin-left: 1em;
1793 | }
1794 |
1795 | /*--------------------------------------------------------------
1796 | 13.3 Regular Content
1797 | --------------------------------------------------------------*/
1798 |
1799 | .site-content-contain {
1800 | background-color: #fff;
1801 | position: relative;
1802 | }
1803 |
1804 | .site-content {
1805 | padding: 2.5em 0 0;
1806 | }
1807 |
1808 | /*--------------------------------------------------------------
1809 | 13.4 Posts
1810 | --------------------------------------------------------------*/
1811 |
1812 | /* Post Landing Page */
1813 |
1814 | .sticky {
1815 | position: relative;
1816 | }
1817 |
1818 | .post:not(.sticky) .icon-thumb-tack {
1819 | display: none;
1820 | }
1821 |
1822 | .sticky .icon-thumb-tack {
1823 | display: block;
1824 | height: 18px;
1825 | left: -1.5em;
1826 | position: absolute;
1827 | top: 1.65em;
1828 | width: 20px;
1829 | }
1830 |
1831 | .page .panel-content .entry-title,
1832 | .page-title,
1833 | body.page:not(.twentyseventeen-front-page) .entry-title {
1834 | color: #222;
1835 | font-size: 14px;
1836 | font-size: 0.875rem;
1837 | font-weight: 800;
1838 | letter-spacing: 0.14em;
1839 | text-transform: uppercase;
1840 | }
1841 |
1842 | .entry-header .entry-title {
1843 | margin-bottom: 0.25em;
1844 | }
1845 |
1846 | .entry-title a {
1847 | color: #333;
1848 | text-decoration: none;
1849 | margin-left: -2px;
1850 | }
1851 |
1852 | .entry-title:not(:first-child) {
1853 | padding-top: 0;
1854 | }
1855 |
1856 | .entry-meta {
1857 | color: #767676;
1858 | font-size: 11px;
1859 | font-size: 0.6875rem;
1860 | font-weight: 800;
1861 | letter-spacing: 0.1818em;
1862 | padding-bottom: 0.25em;
1863 | text-transform: uppercase;
1864 | }
1865 |
1866 | .entry-meta a {
1867 | color: #767676;
1868 | }
1869 |
1870 | .byline,
1871 | .updated:not(.published) {
1872 | display: none;
1873 | }
1874 |
1875 | .single .byline,
1876 | .group-blog .byline {
1877 | display: inline;
1878 | }
1879 |
1880 | .pagination,
1881 | .comments-pagination {
1882 | border-top: 1px solid #eee;
1883 | font-size: 14px;
1884 | font-size: 0.875rem;
1885 | font-weight: 800;
1886 | padding: 2em 0 3em;
1887 | text-align: center;
1888 | }
1889 |
1890 | .pagination .icon,
1891 | .comments-pagination .icon {
1892 | width: 0.666666666em;
1893 | height: 0.666666666em;
1894 | }
1895 |
1896 | .comments-pagination {
1897 | border: 0;
1898 | }
1899 |
1900 | .page-numbers {
1901 | display: none;
1902 | padding: 0.5em 0.75em;
1903 | }
1904 |
1905 | .page-numbers.current {
1906 | color: #767676;
1907 | display: inline-block;
1908 | }
1909 |
1910 | .page-numbers.current .screen-reader-text {
1911 | clip: auto;
1912 | height: auto;
1913 | overflow: auto;
1914 | position: relative !important;
1915 | width: auto;
1916 | }
1917 |
1918 | .prev.page-numbers,
1919 | .next.page-numbers {
1920 | background-color: #ddd;
1921 | -webkit-border-radius: 2px;
1922 | border-radius: 2px;
1923 | display: inline-block;
1924 | font-size: 24px;
1925 | font-size: 1.5rem;
1926 | line-height: 1;
1927 | padding: 0.25em 0.5em 0.4em;
1928 | }
1929 |
1930 | .prev.page-numbers,
1931 | .next.page-numbers {
1932 | -webkit-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
1933 | transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
1934 | }
1935 |
1936 | .prev.page-numbers:focus,
1937 | .prev.page-numbers:hover,
1938 | .next.page-numbers:focus,
1939 | .next.page-numbers:hover {
1940 | background-color: #767676;
1941 | color: #fff;
1942 | }
1943 |
1944 | .prev.page-numbers {
1945 | float: left;
1946 | }
1947 |
1948 | .next.page-numbers {
1949 | float: right;
1950 | }
1951 |
1952 | /* Aligned blockquotes */
1953 |
1954 | .entry-content blockquote.alignleft,
1955 | .entry-content blockquote.alignright {
1956 | color: #666;
1957 | font-size: 13px;
1958 | font-size: 0.8125rem;
1959 | width: 48%;
1960 | }
1961 |
1962 | /* Blog landing, search, archives */
1963 |
1964 | .blog .site-main > article,
1965 | .archive .site-main > article,
1966 | .search .site-main > article {
1967 | padding-bottom: 2em;
1968 | }
1969 |
1970 | body:not(.twentyseventeen-front-page) .entry-header {
1971 | padding: 1em 0;
1972 | }
1973 |
1974 | body:not(.twentyseventeen-front-page) .entry-header,
1975 | body:not(.twentyseventeen-front-page) .entry-content,
1976 | body:not(.twentyseventeen-front-page) #comments {
1977 | margin-left: auto;
1978 | margin-right: auto;
1979 | }
1980 |
1981 | body:not(.twentyseventeen-front-page) .entry-header {
1982 | padding-top: 0;
1983 | }
1984 |
1985 | .blog .entry-meta a.post-edit-link,
1986 | .archive .entry-meta a.post-edit-link,
1987 | .search .entry-meta a.post-edit-link {
1988 | color: #222;
1989 | display: inline-block;
1990 | margin-left: 1em;
1991 | }
1992 |
1993 | .search .page .entry-meta a.post-edit-link {
1994 | margin-left: 0;
1995 | }
1996 |
1997 | .taxonomy-description {
1998 | color: #666;
1999 | font-size: 13px;
2000 | font-size: 0.8125rem;
2001 | }
2002 |
2003 | /* More tag */
2004 |
2005 | .entry-content .more-link:before {
2006 | content: "";
2007 | display: block;
2008 | margin-top: 1.5em;
2009 | }
2010 |
2011 | /* Single Post */
2012 |
2013 | .single-post:not(.has-sidebar) #primary,
2014 | .page.page-one-column:not(.twentyseventeen-front-page) #primary,
2015 | .archive.page-one-column:not(.has-sidebar) .page-header,
2016 | .archive.page-one-column:not(.has-sidebar) #primary {
2017 | margin-left: auto;
2018 | margin-right: auto;
2019 | max-width: 740px;
2020 | }
2021 |
2022 | .single-featured-image-header {
2023 | background-color: #fafafa;
2024 | border-bottom: 1px solid #eee;
2025 | }
2026 |
2027 | .single-featured-image-header img {
2028 | display: block;
2029 | margin: auto;
2030 | }
2031 |
2032 | .page-links {
2033 | font-size: 14px;
2034 | font-size: 0.875rem;
2035 | font-weight: 800;
2036 | padding: 2em 0 3em;
2037 | }
2038 |
2039 | .page-links .page-number {
2040 | color: #767676;
2041 | display: inline-block;
2042 | padding: 0.5em 1em;
2043 | }
2044 |
2045 | .page-links a {
2046 | display: inline-block;
2047 | }
2048 |
2049 | .page-links a .page-number {
2050 | color: #222;
2051 | }
2052 |
2053 | /* Entry footer */
2054 |
2055 | .entry-footer {
2056 | border-bottom: 1px solid #eee;
2057 | border-top: 1px solid #eee;
2058 | margin-top: 2em;
2059 | padding: 2em 0;
2060 | }
2061 |
2062 | .entry-footer .cat-links,
2063 | .entry-footer .tags-links {
2064 | display: block;
2065 | font-size: 11px;
2066 | font-size: 0.6875rem;
2067 | font-weight: 800;
2068 | letter-spacing: 0.1818em;
2069 | padding-left: 2.5em;
2070 | position: relative;
2071 | text-transform: uppercase;
2072 | }
2073 |
2074 | .entry-footer .cat-links + .tags-links {
2075 | margin-top: 1em;
2076 | }
2077 |
2078 | .entry-footer .cat-links a,
2079 | .entry-footer .tags-links a {
2080 | color: #333;
2081 | }
2082 |
2083 | .entry-footer .cat-links .icon,
2084 | .entry-footer .tags-links .icon {
2085 | color: #767676;
2086 | left: 0;
2087 | margin-right: 0.5em;
2088 | position: absolute;
2089 | top: 2px;
2090 | }
2091 |
2092 | .entry-footer .edit-link {
2093 | display: inline-block;
2094 | }
2095 |
2096 | .entry-footer .edit-link a.post-edit-link {
2097 | background-color: #222;
2098 | -webkit-border-radius: 2px;
2099 | border-radius: 2px;
2100 | -webkit-box-shadow: none;
2101 | box-shadow: none;
2102 | color: #fff;
2103 | display: inline-block;
2104 | font-size: 14px;
2105 | font-size: 0.875rem;
2106 | font-weight: 800;
2107 | margin-top: 2em;
2108 | padding: 0.7em 2em;
2109 | -webkit-transition: background-color 0.2s ease-in-out;
2110 | transition: background-color 0.2s ease-in-out;
2111 | }
2112 |
2113 | .entry-footer .edit-link a.post-edit-link:hover,
2114 | .entry-footer .edit-link a.post-edit-link:focus {
2115 | background-color: #767676;
2116 | }
2117 |
2118 | /* Post Formats */
2119 |
2120 | .blog .format-status .entry-title,
2121 | .archive .format-status .entry-title,
2122 | .blog .format-aside .entry-title,
2123 | .archive .format-aside .entry-title {
2124 | display: none;
2125 | }
2126 |
2127 | .format-quote blockquote {
2128 | color: #333;
2129 | font-size: 20px;
2130 | font-size: 1.25rem;
2131 | font-weight: 300;
2132 | overflow: visible;
2133 | position: relative;
2134 | }
2135 |
2136 | .format-quote blockquote .icon {
2137 | display: block;
2138 | height: 20px;
2139 | left: -1.25em;
2140 | position: absolute;
2141 | top: 0.4em;
2142 | -webkit-transform: scale(-1, 1);
2143 | -ms-transform: scale(-1, 1);
2144 | transform: scale(-1, 1);
2145 | width: 20px;
2146 | }
2147 |
2148 | /* Post Navigation */
2149 |
2150 | .post-navigation {
2151 | font-weight: 800;
2152 | margin: 3em 0;
2153 | }
2154 |
2155 | .post-navigation .nav-links {
2156 | padding: 1em 0;
2157 | }
2158 |
2159 | .nav-subtitle {
2160 | background: transparent;
2161 | color: #767676;
2162 | display: block;
2163 | font-size: 11px;
2164 | font-size: 0.6875rem;
2165 | letter-spacing: 0.1818em;
2166 | margin-bottom: 1em;
2167 | text-transform: uppercase;
2168 | }
2169 |
2170 | .nav-title {
2171 | color: #333;
2172 | font-size: 15px;
2173 | font-size: 0.9375rem;
2174 | }
2175 |
2176 | .post-navigation .nav-next {
2177 | margin-top: 1.5em;
2178 | }
2179 |
2180 | .nav-links .nav-previous .nav-title .nav-title-icon-wrapper {
2181 | margin-right: 0.5em;
2182 | }
2183 |
2184 | .nav-links .nav-next .nav-title .nav-title-icon-wrapper {
2185 | margin-left: 0.5em;
2186 | }
2187 |
2188 | /*--------------------------------------------------------------
2189 | 13.5 Pages
2190 | --------------------------------------------------------------*/
2191 |
2192 | .page-header {
2193 | padding-bottom: 2em;
2194 | }
2195 |
2196 | .page .entry-header .edit-link {
2197 | font-size: 14px;
2198 | font-size: 0.875rem;
2199 | }
2200 |
2201 | .search .page .entry-header .edit-link {
2202 | font-size: 11px;
2203 | font-size: 0.6875rem;
2204 | }
2205 |
2206 | .page-links {
2207 | clear: both;
2208 | margin: 0 0 1.5em;
2209 | }
2210 |
2211 | /* 404 page */
2212 |
2213 | .error404 .page-content {
2214 | padding-bottom: 4em;
2215 | }
2216 |
2217 | .error404 .page-content .search-form,
2218 | .search .page-content .search-form {
2219 | margin-bottom: 3em;
2220 | }
2221 |
2222 | /*--------------------------------------------------------------
2223 | 13.6 Footer
2224 | --------------------------------------------------------------*/
2225 |
2226 | .site-footer {
2227 | border-top: 1px solid #eee;
2228 | }
2229 |
2230 | .site-footer .wrap {
2231 | padding-bottom: 1.5em;
2232 | padding-top: 2em;
2233 | }
2234 |
2235 | /* Footer widgets */
2236 |
2237 | .site-footer .widget-area {
2238 | padding-bottom: 2em;
2239 | padding-top: 2em;
2240 | }
2241 |
2242 | /* Social nav */
2243 |
2244 | .social-navigation {
2245 | font-size: 16px;
2246 | font-size: 1rem;
2247 | margin-bottom: 1em;
2248 | }
2249 |
2250 | .social-navigation ul {
2251 | list-style: none;
2252 | margin-bottom: 0;
2253 | margin-left: 0;
2254 | }
2255 |
2256 | .social-navigation li {
2257 | display: inline;
2258 | }
2259 |
2260 | .social-navigation a {
2261 | background-color: #767676;
2262 | -webkit-border-radius: 40px;
2263 | border-radius: 40px;
2264 | color: #fff;
2265 | display: inline-block;
2266 | height: 40px;
2267 | margin: 0 1em 0.5em 0;
2268 | text-align: center;
2269 | width: 40px;
2270 | }
2271 |
2272 | .social-navigation a:hover,
2273 | .social-navigation a:focus {
2274 | background-color: #333;
2275 | }
2276 |
2277 | .social-navigation .icon {
2278 | height: 16px;
2279 | top: 12px;
2280 | width: 16px;
2281 | vertical-align: top;
2282 | }
2283 |
2284 | /* Site info */
2285 |
2286 | .site-info {
2287 | font-size: 14px;
2288 | font-size: 0.875rem;
2289 | margin-bottom: 1em;
2290 | }
2291 |
2292 | .site-info a {
2293 | color: #666;
2294 | }
2295 |
2296 | .site-info .sep {
2297 | margin: 0;
2298 | display: block;
2299 | visibility: hidden;
2300 | height: 0;
2301 | width: 100%;
2302 | }
2303 |
2304 | /*--------------------------------------------------------------
2305 | 14.0 Comments
2306 | --------------------------------------------------------------*/
2307 |
2308 | #comments {
2309 | clear: both;
2310 | padding: 2em 0 0.5em;
2311 | }
2312 |
2313 | .comments-title {
2314 | font-size: 20px;
2315 | font-size: 1.25rem;
2316 | margin-bottom: 1.5em;
2317 | }
2318 |
2319 | .comment-list,
2320 | .comment-list .children {
2321 | list-style: none;
2322 | margin: 0;
2323 | padding: 0;
2324 | }
2325 |
2326 | .comment-list li:before {
2327 | display: none;
2328 | }
2329 |
2330 | .comment-body {
2331 | margin-left: 65px;
2332 | }
2333 |
2334 | .comment-author {
2335 | font-size: 16px;
2336 | font-size: 1rem;
2337 | margin-bottom: 0.4em;
2338 | position: relative;
2339 | z-index: 2;
2340 | }
2341 |
2342 | .comment-author .avatar {
2343 | height: 50px;
2344 | left: -65px;
2345 | position: absolute;
2346 | width: 50px;
2347 | }
2348 |
2349 | .comment-author .says {
2350 | display: none;
2351 | }
2352 |
2353 | .comment-meta {
2354 | margin-bottom: 1.5em;
2355 | }
2356 |
2357 | .comment-metadata {
2358 | color: #767676;
2359 | font-size: 10px;
2360 | font-size: 0.625rem;
2361 | font-weight: 800;
2362 | letter-spacing: 0.1818em;
2363 | text-transform: uppercase;
2364 | }
2365 |
2366 | .comment-metadata a {
2367 | color: #767676;
2368 | }
2369 |
2370 | .comment-metadata a.comment-edit-link {
2371 | color: #222;
2372 | margin-left: 1em;
2373 | }
2374 |
2375 | .comment-body {
2376 | color: #333;
2377 | font-size: 14px;
2378 | font-size: 0.875rem;
2379 | margin-bottom: 4em;
2380 | }
2381 |
2382 | .comment-reply-link {
2383 | font-weight: 800;
2384 | position: relative;
2385 | }
2386 |
2387 | .comment-reply-link .icon {
2388 | color: #222;
2389 | left: -2em;
2390 | height: 1em;
2391 | position: absolute;
2392 | top: 0;
2393 | width: 1em;
2394 | }
2395 |
2396 | .children .comment-author .avatar {
2397 | height: 30px;
2398 | left: -45px;
2399 | width: 30px;
2400 | }
2401 |
2402 | .bypostauthor > .comment-body > .comment-meta > .comment-author .avatar {
2403 | border: 1px solid #333;
2404 | padding: 2px;
2405 | }
2406 |
2407 | .no-comments,
2408 | .comment-awaiting-moderation {
2409 | color: #767676;
2410 | font-size: 14px;
2411 | font-size: 0.875rem;
2412 | font-style: italic;
2413 | }
2414 |
2415 | .comments-pagination {
2416 | margin: 2em 0 3em;
2417 | }
2418 |
2419 | .form-submit {
2420 | text-align: right;
2421 | }
2422 |
2423 | /*--------------------------------------------------------------
2424 | 15.0 Widgets
2425 | --------------------------------------------------------------*/
2426 |
2427 | #secondary {
2428 | padding: 1em 0 2em;
2429 | }
2430 |
2431 | .widget {
2432 | padding-bottom: 3em;
2433 | }
2434 |
2435 | h2.widget-title {
2436 | color: #222;
2437 | font-size: 13px;
2438 | font-size: 0.8125rem;
2439 | font-weight: 800;
2440 | letter-spacing: 0.1818em;
2441 | margin-bottom: 1.5em;
2442 | text-transform: uppercase;
2443 | }
2444 |
2445 | .widget-title a {
2446 | color: inherit;
2447 | }
2448 |
2449 | /* widget forms */
2450 |
2451 | .widget select {
2452 | width: 100%;
2453 | }
2454 |
2455 |
2456 | /* widget lists */
2457 |
2458 | .widget ul {
2459 | list-style: none;
2460 | margin: 0;
2461 | }
2462 |
2463 | .widget ul li {
2464 | border-bottom: 1px solid #ddd;
2465 | border-top: 1px solid #ddd;
2466 | padding: 0.5em 0;
2467 | }
2468 |
2469 | .widget ul li + li {
2470 | margin-top: -1px;
2471 | }
2472 |
2473 | .widget ul li ul {
2474 | margin: 0 0 -1px;
2475 | padding: 0;
2476 | position: relative;
2477 | }
2478 |
2479 | .widget ul li li {
2480 | border: 0;
2481 | padding-left: 24px;
2482 | padding-left: 1.5rem;
2483 | }
2484 |
2485 | /* Widget lists of links */
2486 |
2487 | .widget_top-posts ul li ul,
2488 | .widget_rss_links ul li ul,
2489 | .widget-grofile ul.grofile-links li ul,
2490 | .widget_pages ul li ul,
2491 | .widget_meta ul li ul {
2492 | bottom: 0;
2493 | }
2494 |
2495 | .widget_nav_menu ul li li,
2496 | .widget_top-posts ul li,
2497 | .widget_top-posts ul li li,
2498 | .widget_rss_links ul li,
2499 | .widget_rss_links ul li li,
2500 | .widget-grofile ul.grofile-links li,
2501 | .widget-grofile ul.grofile-links li li {
2502 | padding-bottom: 0.25em;
2503 | padding-top: 0.25em;
2504 | }
2505 |
2506 | .widget_rss ul li {
2507 | padding-bottom: 1em;
2508 | padding-top: 1em;
2509 | }
2510 |
2511 | /* widget markup */
2512 |
2513 | .widget .post-date,
2514 | .widget .rss-date {
2515 | font-size: 0.81em;
2516 | }
2517 |
2518 | /* Text widget */
2519 |
2520 | .widget_text {
2521 | word-wrap: break-word;
2522 | }
2523 |
2524 | /* RSS Widget */
2525 |
2526 | .widget_rss .widget-title .rsswidget:first-child {
2527 | float: right;
2528 | }
2529 |
2530 | .widget_rss .widget-title .rsswidget:first-child:hover {
2531 | background-color: transparent;
2532 | }
2533 |
2534 | .widget_rss .widget-title .rsswidget:first-child img {
2535 | display: block;
2536 | }
2537 |
2538 | .widget_rss ul li {
2539 | padding: 2.125em 0;
2540 | }
2541 |
2542 | .widget_rss ul li:first-child {
2543 | border-top: none;
2544 | padding-top: 0;
2545 | }
2546 |
2547 | .widget_rss li .rsswidget {
2548 | font-size: 22px;
2549 | font-size: 1.375rem;
2550 | font-weight: 300;
2551 | line-height: 1.4;
2552 | }
2553 |
2554 | .widget_rss .rss-date,
2555 | .widget_rss li cite {
2556 | color: #767676;
2557 | display: block;
2558 | font-size: 10px;
2559 | font-size: 0.625rem;
2560 | font-style: normal;
2561 | font-weight: 800;
2562 | letter-spacing: 0.18em;
2563 | line-height: 1.5;
2564 | text-transform: uppercase;
2565 | }
2566 |
2567 | .widget_rss .rss-date {
2568 | margin: 0.5em 0 1.5em;
2569 | padding: 0;
2570 | }
2571 |
2572 | .widget_rss .rssSummary {
2573 | margin-bottom: 0.5em;
2574 | }
2575 |
2576 | /* Contact Info Widget */
2577 |
2578 | .widget_contact_info .contact-map {
2579 | margin-bottom: 0.5em;
2580 | }
2581 |
2582 | /* Gravatar */
2583 |
2584 | .widget-grofile h4 {
2585 | font-size: 16px;
2586 | font-size: 1rem;
2587 | margin-bottom: 0;
2588 | }
2589 |
2590 | /* Recent Comments */
2591 |
2592 | .widget_recent_comments table,
2593 | .widget_recent_comments th,
2594 | .widget_recent_comments td {
2595 | border: 0;
2596 | }
2597 |
2598 | /* Recent Posts widget */
2599 |
2600 | .widget_recent_entries .post-date {
2601 | display: block;
2602 | }
2603 |
2604 | /* Search */
2605 |
2606 | .search-form {
2607 | position: relative;
2608 | }
2609 |
2610 | .search-form .search-submit {
2611 | bottom: 3px;
2612 | padding: 0.5em 1em;
2613 | position: absolute;
2614 | right: 3px;
2615 | top: 3px;
2616 | }
2617 |
2618 | .search-form .search-submit .icon {
2619 | height: 24px;
2620 | top: -2px;
2621 | width: 24px;
2622 | }
2623 |
2624 | /* Tag cloud widget */
2625 |
2626 | .tagcloud,
2627 | .widget_tag_cloud,
2628 | .wp_widget_tag_cloud {
2629 | line-height: 1.5;
2630 | }
2631 |
2632 | .widget .tagcloud a,
2633 | .widget.widget_tag_cloud a,
2634 | .wp_widget_tag_cloud a {
2635 | border: 1px solid #ddd;
2636 | -webkit-box-shadow: none;
2637 | box-shadow: none;
2638 | display: inline-block;
2639 | float: left;
2640 | font-size: 14px !important; /* !important to overwrite inline styles */
2641 | font-size: 0.875rem !important;
2642 | margin: 4px 4px 0 0 !important;
2643 | padding: 4px 10px 5px !important;
2644 | position: relative;
2645 | -webkit-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
2646 | transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
2647 | width: auto;
2648 | word-wrap: break-word;
2649 | z-index: 0;
2650 | }
2651 |
2652 | .widget .tagcloud a:hover,
2653 | .widget .tagcloud a:focus,
2654 | .widget.widget_tag_cloud a:hover,
2655 | .widget.widget_tag_cloud a:focus,
2656 | .wp_widget_tag_cloud a:hover,
2657 | .wp_widget_tag_cloud a:focus {
2658 | border-color: #bbb;
2659 | -webkit-box-shadow: none;
2660 | box-shadow: none;
2661 | text-decoration: none;
2662 | }
2663 |
2664 | /* Calendar widget */
2665 |
2666 | .widget_calendar th,
2667 | .widget_calendar td {
2668 | text-align: center;
2669 | }
2670 |
2671 | .widget_calendar tfoot td {
2672 | border: 0;
2673 | }
2674 |
2675 | /*--------------------------------------------------------------
2676 | 16.0 Media
2677 | --------------------------------------------------------------*/
2678 |
2679 | img,
2680 | video {
2681 | height: auto; /* Make sure images are scaled correctly. */
2682 | max-width: 100%; /* Adhere to container width. */
2683 | }
2684 |
2685 | img.alignleft,
2686 | img.alignright {
2687 | float: none;
2688 | margin: 0;
2689 | }
2690 |
2691 | .page-content .wp-smiley,
2692 | .entry-content .wp-smiley,
2693 | .comment-content .wp-smiley {
2694 | border: none;
2695 | margin-bottom: 0;
2696 | margin-top: 0;
2697 | padding: 0;
2698 | }
2699 |
2700 | /* Make sure embeds and iframes fit their containers. */
2701 |
2702 | embed,
2703 | iframe,
2704 | object {
2705 | margin-bottom: 1.5em;
2706 | max-width: 100%;
2707 | }
2708 |
2709 | .wp-caption,
2710 | .gallery-caption {
2711 | color: #666;
2712 | font-size: 13px;
2713 | font-size: 0.8125rem;
2714 | font-style: italic;
2715 | margin-bottom: 1.5em;
2716 | max-width: 100%;
2717 | }
2718 |
2719 | .wp-caption img[class*="wp-image-"] {
2720 | display: block;
2721 | margin-left: auto;
2722 | margin-right: auto;
2723 | }
2724 |
2725 | .wp-caption .wp-caption-text {
2726 | margin: 0.8075em 0;
2727 | }
2728 |
2729 | /* Media Elements */
2730 |
2731 | .mejs-container {
2732 | margin-bottom: 1.5em;
2733 | }
2734 |
2735 | /* Audio Player */
2736 |
2737 | .mejs-controls a.mejs-horizontal-volume-slider,
2738 | .mejs-controls a.mejs-horizontal-volume-slider:focus,
2739 | .mejs-controls a.mejs-horizontal-volume-slider:hover {
2740 | background: transparent;
2741 | border: 0;
2742 | }
2743 |
2744 | /* Playlist Color Overrides: Light */
2745 |
2746 | .site-content .wp-playlist-light {
2747 | border-color: #eee;
2748 | color: #222;
2749 | }
2750 |
2751 | .site-content .wp-playlist-light .wp-playlist-current-item .wp-playlist-item-album {
2752 | color: #333;
2753 | }
2754 |
2755 | .site-content .wp-playlist-light .wp-playlist-current-item .wp-playlist-item-artist {
2756 | color: #767676;
2757 | }
2758 |
2759 | .site-content .wp-playlist-light .wp-playlist-item {
2760 | border-bottom: 1px dotted #eee;
2761 | -webkit-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
2762 | transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
2763 | }
2764 |
2765 | .site-content .wp-playlist-light .wp-playlist-item:hover,
2766 | .site-content .wp-playlist-light .wp-playlist-item:focus {
2767 | border-bottom-color: rgba(0, 0, 0, 0);
2768 | background-color: #767676;
2769 | color: #fff;
2770 | }
2771 |
2772 | .site-content .wp-playlist-light a.wp-playlist-caption:hover,
2773 | .site-content .wp-playlist-light .wp-playlist-item:hover a,
2774 | .site-content .wp-playlist-light .wp-playlist-item:focus a {
2775 | color: #fff;
2776 | }
2777 |
2778 | /* Playlist Color Overrides: Dark */
2779 |
2780 | .site-content .wp-playlist-dark {
2781 | background: #222;
2782 | border-color: #333;
2783 | }
2784 |
2785 | .site-content .wp-playlist-dark .mejs-container .mejs-controls {
2786 | background-color: #333;
2787 | }
2788 |
2789 | .site-content .wp-playlist-dark .wp-playlist-caption {
2790 | color: #fff;
2791 | }
2792 |
2793 | .site-content .wp-playlist-dark .wp-playlist-current-item .wp-playlist-item-album {
2794 | color: #eee;
2795 | }
2796 |
2797 | .site-content .wp-playlist-dark .wp-playlist-current-item .wp-playlist-item-artist {
2798 | color: #aaa;
2799 | }
2800 |
2801 | .site-content .wp-playlist-dark .wp-playlist-playing {
2802 | background-color: #333;
2803 | }
2804 |
2805 | .site-content .wp-playlist-dark .wp-playlist-item {
2806 | border-bottom: 1px dotted #555;
2807 | -webkit-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
2808 | transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
2809 | }
2810 |
2811 | .site-content .wp-playlist-dark .wp-playlist-item:hover,
2812 | .site-content .wp-playlist-dark .wp-playlist-item:focus {
2813 | border-bottom-color: rgba(0, 0, 0, 0);
2814 | background-color: #aaa;
2815 | color: #222;
2816 | }
2817 |
2818 | .site-content .wp-playlist-dark a.wp-playlist-caption:hover,
2819 | .site-content .wp-playlist-dark .wp-playlist-item:hover a,
2820 | .site-content .wp-playlist-dark .wp-playlist-item:focus a {
2821 | color: #222;
2822 | }
2823 |
2824 | /* Playlist Style Overrides */
2825 |
2826 | .site-content .wp-playlist {
2827 | padding: 0.625em 0.625em 0.3125em;
2828 | }
2829 |
2830 | .site-content .wp-playlist-current-item .wp-playlist-item-title {
2831 | font-weight: 700;
2832 | }
2833 |
2834 | .site-content .wp-playlist-current-item .wp-playlist-item-album {
2835 | font-style: normal;
2836 | }
2837 |
2838 | .site-content .wp-playlist-current-item .wp-playlist-item-artist {
2839 | font-size: 10px;
2840 | font-size: 0.625rem;
2841 | font-weight: 800;
2842 | letter-spacing: 0.1818em;
2843 | text-transform: uppercase;
2844 | }
2845 |
2846 | .site-content .wp-playlist-item {
2847 | padding: 0 0.3125em;
2848 | cursor: pointer;
2849 | }
2850 |
2851 | .site-content .wp-playlist-item:last-of-type {
2852 | border-bottom: none;
2853 | }
2854 |
2855 | .site-content .wp-playlist-item a {
2856 | padding: 0.3125em 0;
2857 | border-bottom: none;
2858 | }
2859 |
2860 | .site-content .wp-playlist-item a,
2861 | .site-content .wp-playlist-item a:focus,
2862 | .site-content .wp-playlist-item a:hover {
2863 | -webkit-box-shadow: none;
2864 | box-shadow: none;
2865 | background: transparent;
2866 | }
2867 |
2868 | .site-content .wp-playlist-item-length {
2869 | top: 5px;
2870 | }
2871 |
2872 | /* SVG Icons base styles */
2873 |
2874 | .icon {
2875 | display: inline-block;
2876 | fill: currentColor;
2877 | height: 1em;
2878 | position: relative; /* Align more nicely with capital letters */
2879 | top: -0.0625em;
2880 | vertical-align: middle;
2881 | width: 1em;
2882 | }
2883 |
2884 | /*--------------------------------------------------------------
2885 | 16.1 Galleries
2886 | --------------------------------------------------------------*/
2887 |
2888 | .gallery-item {
2889 | display: inline-block;
2890 | text-align: left;
2891 | vertical-align: top;
2892 | margin: 0 0 1.5em;
2893 | padding: 0 1em 0 0;
2894 | width: 50%;
2895 | }
2896 |
2897 | .gallery-columns-1 .gallery-item {
2898 | width: 100%;
2899 | }
2900 |
2901 | .gallery-columns-2 .gallery-item {
2902 | max-width: 50%;
2903 | }
2904 |
2905 | .gallery-item a,
2906 | .gallery-item a:hover,
2907 | .gallery-item a:focus {
2908 | -webkit-box-shadow: none;
2909 | box-shadow: none;
2910 | background: none;
2911 | display: inline-block;
2912 | }
2913 |
2914 | .gallery-item a img {
2915 | display: block;
2916 | -webkit-transition: -webkit-filter 0.2s ease-in;
2917 | transition: -webkit-filter 0.2s ease-in;
2918 | transition: filter 0.2s ease-in;
2919 | transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
2920 | -webkit-backface-visibility: hidden;
2921 | backface-visibility: hidden;
2922 | }
2923 |
2924 | .gallery-item a:hover img,
2925 | .gallery-item a:focus img {
2926 | -webkit-filter: opacity(60%);
2927 | filter: opacity(60%);
2928 | }
2929 |
2930 | .gallery-caption {
2931 | display: block;
2932 | text-align: left;
2933 | padding: 0 10px 0 0;
2934 | margin-bottom: 0;
2935 | }
2936 |
2937 | /*--------------------------------------------------------------
2938 | 17.0 Customizer
2939 | --------------------------------------------------------------*/
2940 |
2941 | .highlight-front-sections.twentyseventeen-customizer.twentyseventeen-front-page .twentyseventeen-panel:after {
2942 | border: 2px dashed #0085ba; /* Matches visible edit shortcuts. */
2943 | bottom: 1em;
2944 | content: "";
2945 | display: block;
2946 | left: 1em;
2947 | position: absolute;
2948 | right: 1em;
2949 | top: 1em;
2950 | z-index: 1;
2951 | }
2952 |
2953 | .highlight-front-sections.twentyseventeen-customizer.twentyseventeen-front-page .twentyseventeen-panel .panel-content {
2954 | z-index: 2; /* Prevent :after from preventing interactions within the section */
2955 | }
2956 |
2957 | /* Used for placeholder text */
2958 | .twentyseventeen-customizer.twentyseventeen-front-page .twentyseventeen-panel .twentyseventeen-panel-title {
2959 | display: block;
2960 | font-size: 14px;
2961 | font-size: 0.875rem;
2962 | font-weight: 700;
2963 | letter-spacing: 1px;
2964 | padding: 3em;
2965 | text-transform: uppercase;
2966 | text-align: center;
2967 | }
2968 |
2969 | /* Show borders on the custom page panels only when the front page sections are being edited */
2970 | .highlight-front-sections.twentyseventeen-customizer.twentyseventeen-front-page .twentyseventeen-panel:nth-of-type(1):after {
2971 | border: none;
2972 | }
2973 |
2974 | .twentyseventeen-front-page.twentyseventeen-customizer #primary article.panel-placeholder {
2975 | border: 0;
2976 | }
2977 |
2978 | /* Add some space around the visual edit shortcut buttons. */
2979 | .twentyseventeen-panel .customize-partial-edit-shortcut button {
2980 | top: 30px;
2981 | left: 30px;
2982 | }
2983 |
2984 | /* Prevent color schemes from showing 1px dots everywhere. */
2985 | .customize-partial-edit-shortcut {
2986 | background: transparent !important;
2987 | }
2988 |
2989 | /* Ensure that placeholder icons are visible. */
2990 | .twentyseventeen-panel .customize-partial-edit-shortcut-hidden:before {
2991 | visibility: visible;
2992 | }
2993 |
2994 | /* Prevent icon colors from clashing with color schemes. */
2995 | .colors-custom .customize-partial-edit-shortcut button {
2996 | text-shadow: 0 -1px 1px rgba(0,0,0,.2),
2997 | 1px 0 1px rgba(0,0,0,.2),
2998 | 0 1px 1px rgba(0,0,0,.2),
2999 | -1px 0 1px rgba(0,0,0,.2);
3000 | }
3001 |
3002 | /*--------------------------------------------------------------
3003 | 18.0 SVGs Fallbacks
3004 | --------------------------------------------------------------*/
3005 |
3006 | .svg-fallback {
3007 | display: none;
3008 | }
3009 |
3010 | .no-svg .svg-fallback {
3011 | display: inline-block;
3012 | }
3013 |
3014 | .no-svg .dropdown-toggle {
3015 | padding: 0.5em 0 0;
3016 | right: 0;
3017 | text-align: center;
3018 | width: 2em;
3019 | }
3020 |
3021 | .no-svg .dropdown-toggle .svg-fallback.icon-angle-down {
3022 | font-size: 20px;
3023 | font-size: 1.25rem;
3024 | font-weight: normal;
3025 | line-height: 1;
3026 | -webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
3027 | -ms-transform: rotate(180deg); /* IE 9 */
3028 | transform: rotate(180deg);
3029 | }
3030 |
3031 | .no-svg .dropdown-toggle.toggled-on .svg-fallback.icon-angle-down {
3032 | -webkit-transform: rotate(0); /* Chrome, Safari, Opera */
3033 | -ms-transform: rotate(0); /* IE 9 */
3034 | transform: rotate(0);
3035 | }
3036 |
3037 | .no-svg .dropdown-toggle .svg-fallback.icon-angle-down:before {
3038 | content: "\005E";
3039 | }
3040 |
3041 | /* Social Menu fallbacks */
3042 |
3043 | .no-svg .social-navigation a {
3044 | background: transparent;
3045 | color: #222;
3046 | height: auto;
3047 | width: auto;
3048 | }
3049 |
3050 | /* Show screen reader text in some cases */
3051 |
3052 | .no-svg .next.page-numbers .screen-reader-text,
3053 | .no-svg .prev.page-numbers .screen-reader-text,
3054 | .no-svg .social-navigation li a .screen-reader-text,
3055 | .no-svg .search-submit .screen-reader-text {
3056 | clip: auto;
3057 | font-size: 16px;
3058 | font-size: 1rem;
3059 | font-weight: 400;
3060 | height: auto;
3061 | position: relative !important; /* overrides previous !important styles */
3062 | width: auto;
3063 | }
3064 |
3065 | /*--------------------------------------------------------------
3066 | 19.0 Media Queries
3067 | --------------------------------------------------------------*/
3068 |
3069 | /* Adjust positioning of edit shortcuts, override style in customize-preview.css */
3070 | @media screen and (min-width: 20em) {
3071 | body.customize-partial-edit-shortcuts-shown .site-header .site-title {
3072 | padding-left: 0;
3073 | }
3074 | }
3075 |
3076 | @media screen and (min-width: 30em) {
3077 |
3078 | /* Typography */
3079 |
3080 | body,
3081 | button,
3082 | input,
3083 | select,
3084 | textarea {
3085 | font-size: 18px;
3086 | font-size: 1.125rem;
3087 | }
3088 |
3089 | h1 {
3090 | font-size: 30px;
3091 | font-size: 1.875rem;
3092 | }
3093 |
3094 | h2,
3095 | .page .panel-content .recent-posts .entry-title {
3096 | font-size: 26px;
3097 | font-size: 1.625rem;
3098 | }
3099 |
3100 | h3 {
3101 | font-size: 22px;
3102 | font-size: 1.375rem;
3103 | }
3104 |
3105 | h4 {
3106 | font-size: 18px;
3107 | font-size: 1.125rem;
3108 | }
3109 |
3110 | h5 {
3111 | font-size: 13px;
3112 | font-size: 0.8125rem;
3113 | }
3114 |
3115 | h6 {
3116 | font-size: 16px;
3117 | font-size: 1rem;
3118 | }
3119 |
3120 | .entry-content blockquote.alignleft,
3121 | .entry-content blockquote.alignright {
3122 | font-size: 14px;
3123 | font-size: 0.875rem;
3124 | }
3125 |
3126 | /* Fix image alignment */
3127 | img.alignleft {
3128 | float: left;
3129 | margin-right: 1.5em;
3130 | }
3131 |
3132 | img.alignright {
3133 | float: right;
3134 | margin-left: 1.5em;
3135 | }
3136 |
3137 | /* Site Branding */
3138 |
3139 | .site-branding {
3140 | padding: 3em 0;
3141 | }
3142 |
3143 | /* Front Page */
3144 |
3145 | .panel-content .wrap {
3146 | padding-bottom: 2em;
3147 | padding-top: 3.5em;
3148 | }
3149 |
3150 | .page-one-column .panel-content .wrap {
3151 | max-width: 740px;
3152 | }
3153 |
3154 | .panel-content .entry-header {
3155 | margin-bottom: 4.5em;
3156 | }
3157 |
3158 | .panel-content .recent-posts .entry-header {
3159 | margin-bottom: 0;
3160 | }
3161 |
3162 | /* Blog Index, Archive, Search */
3163 |
3164 | .taxonomy-description {
3165 | font-size: 14px;
3166 | font-size: 0.875rem;
3167 | }
3168 |
3169 | .page-numbers.current {
3170 | font-size: 16px;
3171 | font-size: 1rem;
3172 | }
3173 |
3174 | /* Site Footer */
3175 |
3176 | .site-footer {
3177 | font-size: 16px;
3178 | font-size: 1rem;
3179 | }
3180 |
3181 | /* Gallery Columns */
3182 |
3183 | .gallery-item {
3184 | max-width: 25%;
3185 | }
3186 |
3187 | .gallery-columns-1 .gallery-item {
3188 | max-width: 100%;
3189 | }
3190 |
3191 | .gallery-columns-2 .gallery-item {
3192 | max-width: 50%;
3193 | }
3194 |
3195 | .gallery-columns-3 .gallery-item {
3196 | max-width: 33.33%;
3197 | }
3198 |
3199 | .gallery-columns-4 .gallery-item {
3200 | max-width: 25%;
3201 | }
3202 | }
3203 |
3204 | @media screen and (min-width: 48em) {
3205 |
3206 | /* Typography */
3207 |
3208 | body,
3209 | button,
3210 | input,
3211 | select,
3212 | textarea {
3213 | font-size: 16px;
3214 | font-size: 1rem;
3215 | line-height: 1.5;
3216 | }
3217 |
3218 | .entry-content blockquote.alignleft,
3219 | .entry-content blockquote.alignright {
3220 | font-size: 13px;
3221 | font-size: 0.8125rem;
3222 | }
3223 |
3224 | /* Layout */
3225 |
3226 | .wrap {
3227 | max-width: 1000px;
3228 | padding-left: 3em;
3229 | padding-right: 3em;
3230 | }
3231 |
3232 | .has-sidebar:not(.error404) #primary {
3233 | float: left;
3234 | width: 58%;
3235 | }
3236 |
3237 | .has-sidebar #secondary {
3238 | float: right;
3239 | padding-top: 0;
3240 | width: 36%;
3241 | }
3242 |
3243 | .error404 #primary {
3244 | float: none;
3245 | }
3246 |
3247 | /* Site Branding */
3248 |
3249 | .site-branding {
3250 | margin-bottom: 0;
3251 | }
3252 |
3253 | .has-header-image.twentyseventeen-front-page .site-branding,
3254 | .has-header-image.home.blog .site-branding {
3255 | bottom: 0;
3256 | display: block;
3257 | left: 0;
3258 | height: auto;
3259 | padding-top: 0;
3260 | position: absolute;
3261 | width: 100%;
3262 | }
3263 |
3264 | .has-header-image.twentyseventeen-front-page .custom-header,
3265 | .has-header-image.home.blog .custom-header {
3266 | display: block;
3267 | height: auto;
3268 | }
3269 |
3270 | .custom-header-image {
3271 | height: 165px;
3272 | position: relative;
3273 | }
3274 |
3275 | .twentyseventeen-front-page.has-header-image .custom-header-image,
3276 | .home.blog.has-header-image .custom-header-image {
3277 | height: 0;
3278 | position: relative;
3279 | }
3280 |
3281 | .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-image {
3282 | bottom: 0;
3283 | height: auto;
3284 | left: 0;
3285 | position: absolute;
3286 | right: 0;
3287 | top: 0;
3288 | }
3289 |
3290 | .custom-logo-link {
3291 | padding-right: 2em;
3292 | }
3293 |
3294 | .custom-logo-link img,
3295 | body.home.title-tagline-hidden.has-header-image .custom-logo-link img {
3296 | max-width: 350px;
3297 | }
3298 |
3299 | .title-tagline-hidden.home.has-header-image .custom-logo-link img {
3300 | max-height: 200px;
3301 | }
3302 |
3303 | .site-title {
3304 | font-size: 36px;
3305 | font-size: 2.25rem;
3306 | }
3307 |
3308 | .site-description {
3309 | font-size: 16px;
3310 | font-size: 1rem;
3311 | }
3312 |
3313 | /* Navigation */
3314 |
3315 | .navigation-top {
3316 | bottom: 0;
3317 | font-size: 14px;
3318 | font-size: 0.875rem;
3319 | left: 0;
3320 | position: absolute;
3321 | right: 0;
3322 | width: 100%;
3323 | z-index: 3;
3324 | }
3325 |
3326 | .navigation-top .wrap {
3327 | max-width: 1000px;
3328 | /* The font size is 14px here and we need 50px padding in ems */
3329 | padding: 0.75em 3.4166666666667em;
3330 | }
3331 |
3332 | .navigation-top nav {
3333 | margin-left: -1.25em;
3334 | }
3335 |
3336 | .site-navigation-fixed.navigation-top {
3337 | bottom: auto;
3338 | position: fixed;
3339 | left: 0;
3340 | right: 0;
3341 | top: 0;
3342 | width: 100%;
3343 | z-index: 7;
3344 | }
3345 |
3346 | .admin-bar .site-navigation-fixed.navigation-top {
3347 | top: 32px;
3348 | }
3349 |
3350 | /* Main Navigation */
3351 |
3352 | .js .menu-toggle,
3353 | .js .dropdown-toggle {
3354 | display: none;
3355 | }
3356 |
3357 | .main-navigation {
3358 | width: auto;
3359 | }
3360 |
3361 | .js .main-navigation ul,
3362 | .js .main-navigation ul ul,
3363 | .js .main-navigation > div > ul {
3364 | display: block;
3365 | }
3366 |
3367 | .main-navigation ul {
3368 | background: transparent;
3369 | padding: 0;
3370 | }
3371 |
3372 | .main-navigation > div > ul {
3373 | border: 0;
3374 | margin-bottom: 0;
3375 | padding: 0;
3376 | }
3377 |
3378 | .main-navigation li {
3379 | border: 0;
3380 | display: inline-block;
3381 | }
3382 |
3383 | .main-navigation li li {
3384 | display: block;
3385 | }
3386 |
3387 | .main-navigation a {
3388 | padding: 1em 1.25em;
3389 | }
3390 |
3391 | .main-navigation ul ul {
3392 | background: #fff;
3393 | border: 1px solid #bbb;
3394 | left: -999em;
3395 | padding: 0;
3396 | position: absolute;
3397 | top: 100%;
3398 | z-index: 99999;
3399 | }
3400 |
3401 | .main-navigation ul li.menu-item-has-children:before,
3402 | .main-navigation ul li.menu-item-has-children:after,
3403 | .main-navigation ul li.page_item_has_children:before,
3404 | .main-navigation ul li.page_item_has_children:after {
3405 | border-style: solid;
3406 | border-width: 0 6px 6px;
3407 | content: "";
3408 | display: none;
3409 | height: 0;
3410 | position: absolute;
3411 | right: 1em;
3412 | bottom: -1px;
3413 | width: 0;
3414 | z-index: 100000;
3415 | }
3416 |
3417 | .main-navigation ul li.menu-item-has-children.focus:before,
3418 | .main-navigation ul li.menu-item-has-children:hover:before,
3419 | .main-navigation ul li.menu-item-has-children.focus:after,
3420 | .main-navigation ul li.menu-item-has-children:hover:after,
3421 | .main-navigation ul li.page_item_has_children.focus:before,
3422 | .main-navigation ul li.page_item_has_children:hover:before,
3423 | .main-navigation ul li.page_item_has_children.focus:after,
3424 | .main-navigation ul li.page_item_has_children:hover:after {
3425 | display: block;
3426 | }
3427 |
3428 | .main-navigation ul li.menu-item-has-children:before,
3429 | .main-navigation ul li.page_item_has_children:before {
3430 | border-color: transparent transparent #bbb;
3431 | bottom: 0;
3432 | }
3433 |
3434 | .main-navigation ul li.menu-item-has-children:after,
3435 | .main-navigation ul li.page_item_has_children:after {
3436 | border-color: transparent transparent #fff;
3437 | }
3438 |
3439 | .main-navigation ul ul li:hover > ul,
3440 | .main-navigation ul ul li.focus > ul {
3441 | left: 100%;
3442 | right: auto;
3443 | }
3444 |
3445 | .main-navigation ul ul a {
3446 | padding: 0.75em 1.25em;
3447 | width: 16em;
3448 | }
3449 |
3450 | .main-navigation li li {
3451 | -webkit-transition: background-color 0.2s ease-in-out;
3452 | transition: background-color 0.2s ease-in-out;
3453 | }
3454 |
3455 | .main-navigation li li:hover,
3456 | .main-navigation li li.focus {
3457 | background: #767676;
3458 | }
3459 |
3460 | .main-navigation li li a {
3461 | -webkit-transition: color 0.3s ease-in-out;
3462 | transition: color 0.3s ease-in-out;
3463 | }
3464 |
3465 | .main-navigation li li.focus > a,
3466 | .main-navigation li li:focus > a,
3467 | .main-navigation li li:hover > a,
3468 | .main-navigation li li a:hover,
3469 | .main-navigation li li a:focus,
3470 | .main-navigation li li.current_page_item a:hover,
3471 | .main-navigation li li.current-menu-item a:hover,
3472 | .main-navigation li li.current_page_item a:focus,
3473 | .main-navigation li li.current-menu-item a:focus {
3474 | color: #fff;
3475 | }
3476 |
3477 | .main-navigation ul li:hover > ul,
3478 | .main-navigation ul li.focus > ul {
3479 | left: 0.5em;
3480 | right: auto;
3481 | }
3482 |
3483 | .main-navigation .menu-item-has-children > a > .icon,
3484 | .main-navigation .page_item_has_children > a > .icon {
3485 | display: inline;
3486 | left: 5px;
3487 | position: relative;
3488 | top: -1px;
3489 | }
3490 |
3491 | .main-navigation ul ul .menu-item-has-children > a > .icon,
3492 | .main-navigation ul ul .page_item_has_children > a > .icon {
3493 | margin-top: -9px;
3494 | left: auto;
3495 | position: absolute;
3496 | right: 1em;
3497 | top: 50%;
3498 | -webkit-transform: rotate(-90deg); /* Chrome, Safari, Opera */
3499 | -ms-transform: rotate(-90deg); /* IE 9 */
3500 | transform: rotate(-90deg);
3501 | }
3502 |
3503 | .main-navigation ul ul ul {
3504 | left: -999em;
3505 | margin-top: -1px;
3506 | top: 0;
3507 | }
3508 |
3509 | .main-navigation ul ul li.menu-item-has-children.focus:before,
3510 | .main-navigation ul ul li.menu-item-has-children:hover:before,
3511 | .main-navigation ul ul li.menu-item-has-children.focus:after,
3512 | .main-navigation ul ul li.menu-item-has-children:hover:after,
3513 | .main-navigation ul ul li.page_item_has_children.focus:before,
3514 | .main-navigation ul ul li.page_item_has_children:hover:before,
3515 | .main-navigation ul ul li.page_item_has_children.focus:after,
3516 | .main-navigation ul ul li.page_item_has_children:hover:after {
3517 | display: none;
3518 | }
3519 |
3520 | .site-header .site-navigation-fixed .menu-scroll-down {
3521 | display: none;
3522 | }
3523 |
3524 | /* Scroll down arrow */
3525 |
3526 | .site-header .menu-scroll-down {
3527 | display: block;
3528 | padding: 1em;
3529 | position: absolute;
3530 | right: 0;
3531 | }
3532 |
3533 | .site-header .menu-scroll-down .icon {
3534 | -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
3535 | -ms-transform: rotate(90deg); /* IE 9 */
3536 | transform: rotate(90deg);
3537 | }
3538 |
3539 | .site-header .menu-scroll-down {
3540 | color: #fff;
3541 | top: 2em;
3542 | }
3543 |
3544 | .site-header .navigation-top .menu-scroll-down {
3545 | color: #767676;
3546 | top: 0.7em;
3547 | }
3548 |
3549 | .menu-scroll-down:focus {
3550 | outline: thin dotted;
3551 | }
3552 |
3553 | .menu-scroll-down .icon {
3554 | height: 18px;
3555 | width: 18px;
3556 | }
3557 |
3558 | /* Front Page */
3559 |
3560 | .twentyseventeen-front-page.has-header-image .site-branding,
3561 | .home.blog.has-header-image .site-branding {
3562 | margin-bottom: 70px;
3563 | }
3564 |
3565 | .twentyseventeen-front-page.has-header-image .custom-header-image,
3566 | .home.blog.has-header-image .custom-header-image {
3567 | height: 1200px;
3568 | height: 100vh;
3569 | max-height: 100%;
3570 | overflow: hidden;
3571 | }
3572 |
3573 | .twentyseventeen-front-page.has-header-image .custom-header-image:before,
3574 | .home.blog.has-header-image .custom-header-image:before {
3575 | height: 33%;
3576 | }
3577 |
3578 | .admin-bar.twentyseventeen-front-page.has-header-image .custom-header-image,
3579 | .admin-bar.home.blog.has-header-image .custom-header-image {
3580 | height: calc(100vh - 32px);
3581 | }
3582 |
3583 | .panel-content .wrap {
3584 | padding-bottom: 4.5em;
3585 | padding-top: 6em;
3586 | }
3587 |
3588 | .panel-image {
3589 | height: 100vh;
3590 | max-height: 1200px;
3591 | }
3592 |
3593 | .page-two-column .panel-content .entry-header {
3594 | float: left;
3595 | width: 36%;
3596 | }
3597 |
3598 | .page-two-column .panel-content .entry-content {
3599 | float: right;
3600 | width: 58%;
3601 | }
3602 |
3603 | /* Front Page - Recent Posts */
3604 |
3605 | .page-two-column .panel-content .recent-posts {
3606 | clear: right;
3607 | float: right;
3608 | width: 58%;
3609 | }
3610 |
3611 | .panel-content .recent-posts article {
3612 | margin-bottom: 4em;
3613 | }
3614 |
3615 | .panel-content .recent-posts .entry-header,
3616 | .page-two-column #primary .panel-content .recent-posts .entry-header,
3617 | .panel-content .recent-posts .entry-content,
3618 | .page-two-column #primary .panel-content .recent-posts .entry-content {
3619 | float: none;
3620 | width: 100%;
3621 | }
3622 |
3623 | .panel-content .recent-posts .entry-header {
3624 | margin-bottom: 1.5em;
3625 | }
3626 |
3627 | .page .panel-content .recent-posts .entry-title {
3628 | font-size: 26px;
3629 | font-size: 1.625rem;
3630 | }
3631 |
3632 | /* Posts */
3633 |
3634 | .site-content {
3635 | padding: 6.5em 0 0;
3636 | }
3637 |
3638 | .single-post .entry-title,
3639 | .page .entry-title {
3640 | font-size: 26px;
3641 | font-size: 1.625rem;
3642 | }
3643 |
3644 | .comments-pagination,
3645 | .post-navigation {
3646 | clear: both;
3647 | }
3648 |
3649 | .post-navigation .nav-previous {
3650 | float: left;
3651 | width: 50%;
3652 | }
3653 |
3654 | .post-navigation .nav-next {
3655 | float: right;
3656 | text-align: right;
3657 | width: 50%;
3658 | }
3659 |
3660 | .nav-next,
3661 | .post-navigation .nav-next {
3662 | margin-top: 0;
3663 | }
3664 |
3665 | /* Blog, archive, search */
3666 |
3667 | .sticky .icon-thumb-tack {
3668 | height: 23px;
3669 | left: -2.5em;
3670 | top: 1.5em;
3671 | width: 32px;
3672 | }
3673 |
3674 | body:not(.has-sidebar):not(.page-one-column) .page-header,
3675 | body.has-sidebar.error404 #primary .page-header,
3676 | body.page-two-column:not(.archive) #primary .entry-header,
3677 | body.page-two-column.archive:not(.has-sidebar) #primary .page-header {
3678 | float: left;
3679 | width: 36%;
3680 | }
3681 |
3682 | .blog:not(.has-sidebar) #primary article,
3683 | .archive:not(.page-one-column):not(.has-sidebar) #primary article,
3684 | .search:not(.has-sidebar) #primary article,
3685 | .error404:not(.has-sidebar) #primary .page-content,
3686 | .error404.has-sidebar #primary .page-content,
3687 | body.page-two-column:not(.archive) #primary .entry-content,
3688 | body.page-two-column #comments {
3689 | float: right;
3690 | width: 58%;
3691 | }
3692 |
3693 | .blog .site-main > article,
3694 | .archive .site-main > article,
3695 | .search .site-main > article {
3696 | padding-bottom: 4em;
3697 | }
3698 |
3699 | .navigation.pagination {
3700 | clear: both;
3701 | float: right;
3702 | width: 58%;
3703 | }
3704 |
3705 | .has-sidebar .navigation.pagination,
3706 | .archive.page-one-column:not(.has-sidebar) .navigation.pagination {
3707 | float: none;
3708 | width: 100%;
3709 | }
3710 |
3711 | .entry-footer {
3712 | display: table;
3713 | width: 100%;
3714 | }
3715 |
3716 | .entry-footer .cat-tags-links {
3717 | display: table-cell;
3718 | vertical-align: middle;
3719 | width: 100%;
3720 | }
3721 |
3722 | .entry-footer .edit-link {
3723 | display: table-cell;
3724 | text-align: right;
3725 | vertical-align: middle;
3726 | }
3727 |
3728 | .entry-footer .edit-link a.post-edit-link {
3729 | margin-top: 0;
3730 | margin-left: 1em;
3731 | }
3732 |
3733 | /* Entry content */
3734 |
3735 | /* without sidebar */
3736 |
3737 | :not(.has-sidebar) .entry-content blockquote.alignleft {
3738 | margin-left: -17.5%;
3739 | width: 48%;
3740 | }
3741 |
3742 | :not(.has-sidebar) .entry-content blockquote.alignright {
3743 | margin-right: -17.5%;
3744 | width: 48%;
3745 | }
3746 |
3747 | /* with sidebar */
3748 |
3749 | .has-sidebar .entry-content blockquote.alignleft {
3750 | margin-left: 0;
3751 | width: 34%;
3752 | }
3753 |
3754 | .has-sidebar .entry-content blockquote.alignright {
3755 | margin-right: 0;
3756 | width: 34%;
3757 | }
3758 |
3759 | .has-sidebar #primary .entry-content blockquote.alignright.below-entry-meta {
3760 | margin-right: -72.5%;
3761 | width: 62%;
3762 | }
3763 |
3764 | /* blog and archive */
3765 |
3766 | .blog:not(.has-sidebar) .entry-content blockquote.alignleft,
3767 | .twentyseventeen-front-page.page-two-column .entry-content blockquote.alignleft,
3768 | .archive:not(.has-sidebar) .entry-content blockquote.alignleft,
3769 | .page-two-column .entry-content blockquote.alignleft {
3770 | margin-left: -72.5%;
3771 | width: 62%;
3772 | }
3773 |
3774 | .blog:not(.has-sidebar) .entry-content blockquote.alignright,
3775 | .twentyseventeen-front-page.page-two-column .entry-content blockquote.alignright,
3776 | .archive:not(.has-sidebar) .entry-content blockquote.alignright,
3777 | .page-two-column .entry-content blockquote.alignright {
3778 | margin-right: 0;
3779 | width: 36%;
3780 | }
3781 |
3782 | /* Post formats */
3783 |
3784 | .format-quote blockquote .icon {
3785 | left: -1.5em;
3786 | }
3787 |
3788 | /* Pages */
3789 |
3790 | .page.page-one-column .entry-header,
3791 | .twentyseventeen-front-page.page-one-column .entry-header,
3792 | .archive.page-one-column:not(.has-sidebar) .page-header {
3793 | margin-bottom: 4em;
3794 | }
3795 |
3796 | /* 404 page */
3797 |
3798 | .error404 .page-content {
3799 | padding-bottom: 9em;
3800 | }
3801 |
3802 | /* Comments */
3803 |
3804 | #comments {
3805 | padding-top: 5em;
3806 | }
3807 |
3808 | .comments-title {
3809 | margin-bottom: 2.5em;
3810 | }
3811 |
3812 | ol.children .children {
3813 | padding-left: 2em;
3814 | }
3815 |
3816 | /* Posts pagination */
3817 |
3818 | .nav-links .nav-title {
3819 | position: relative;
3820 | }
3821 |
3822 | .nav-title-icon-wrapper {
3823 | position: absolute;
3824 | text-align: center;
3825 | width: 2em;
3826 | }
3827 |
3828 | .nav-links .nav-previous .nav-title .nav-title-icon-wrapper {
3829 | left: -2em;
3830 | }
3831 |
3832 | .nav-links .nav-next .nav-title .nav-title-icon-wrapper {
3833 | right: -2em;
3834 | }
3835 |
3836 | /* Secondary */
3837 |
3838 | #secondary {
3839 | font-size: 14px;
3840 | font-size: 0.875rem;
3841 | line-height: 1.6;
3842 | }
3843 |
3844 | /* Widgets */
3845 |
3846 | h2.widget-title {
3847 | font-size: 11px;
3848 | font-size: 0.6875rem;
3849 | margin-bottom: 2em;
3850 | }
3851 |
3852 | /* Footer */
3853 |
3854 | .site-footer {
3855 | font-size: 14px;
3856 | font-size: 0.875rem;
3857 | line-height: 1.6;
3858 | margin-top: 3em;
3859 | }
3860 |
3861 | .site-footer .widget-column.footer-widget-1 {
3862 | float: left;
3863 | width: 36%;
3864 | }
3865 |
3866 | .site-footer .widget-column.footer-widget-2 {
3867 | float: right;
3868 | width: 58%;
3869 | }
3870 |
3871 | .social-navigation {
3872 | clear: left;
3873 | float: left;
3874 | margin-bottom: 0;
3875 | width: 36%;
3876 | }
3877 |
3878 | .site-info {
3879 | float: left;
3880 | padding: 0.7em 0 0;
3881 | width: 58%;
3882 | }
3883 |
3884 | .social-navigation + .site-info {
3885 | margin-left: 6%;
3886 | }
3887 |
3888 | .site-info .sep {
3889 | margin: 0 0.5em;
3890 | display: inline;
3891 | visibility: visible;
3892 | height: auto;
3893 | width: auto;
3894 | }
3895 |
3896 | /* Gallery Columns */
3897 |
3898 | .gallery-columns-5 .gallery-item {
3899 | max-width: 20%;
3900 | }
3901 |
3902 | .gallery-columns-6 .gallery-item {
3903 | max-width: 16.66%;
3904 | }
3905 |
3906 | .gallery-columns-7 .gallery-item {
3907 | max-width: 14.28%;
3908 | }
3909 |
3910 | .gallery-columns-8 .gallery-item {
3911 | max-width: 12.5%;
3912 | }
3913 |
3914 | .gallery-columns-9 .gallery-item {
3915 | max-width: 11.11%;
3916 | }
3917 | }
3918 |
3919 | @media screen and ( min-width: 67em ) {
3920 |
3921 | /* Layout */
3922 |
3923 | /* Navigation */
3924 | .navigation-top .wrap {
3925 | padding: 0.75em 2em;
3926 | }
3927 |
3928 | .navigation-top nav {
3929 | margin-left: 0;
3930 | }
3931 |
3932 | /* Sticky posts */
3933 |
3934 | .sticky .icon-thumb-tack {
3935 | font-size: 32px;
3936 | font-size: 2rem;
3937 | height: 22px;
3938 | left: -1.25em;
3939 | top: 0.75em;
3940 | width: 32px;
3941 | }
3942 |
3943 | /* Pagination */
3944 |
3945 | .page-numbers {
3946 | display: inline-block;
3947 | }
3948 |
3949 | .page-numbers.current {
3950 | font-size: 15px;
3951 | font-size: 0.9375rem;
3952 | }
3953 |
3954 | .page-numbers.current .screen-reader-text {
3955 | clip: rect(1px, 1px, 1px, 1px);
3956 | height: 1px;
3957 | overflow: hidden;
3958 | position: absolute !important;
3959 | width: 1px;
3960 | }
3961 |
3962 | /* Comments */
3963 |
3964 | .comment-body {
3965 | margin-left: 0;
3966 | }
3967 | }
3968 |
3969 | @media screen and ( min-width: 79em ) {
3970 |
3971 | .has-sidebar .entry-content blockquote.alignleft {
3972 | margin-left: -20%;
3973 | }
3974 |
3975 | .blog:not(.has-sidebar) .entry-content blockquote.alignright,
3976 | .archive:not(.has-sidebar) .entry-content blockquote.alignright,
3977 | .page-two-column .entry-content blockquote.alignright,
3978 | .twentyseventeen-front-page .entry-content blockquote.alignright {
3979 | margin-right: -20%;
3980 | }
3981 | }
3982 |
3983 | @media screen and ( min-width: 85.45em ) {
3984 |
3985 | .panel-image {
3986 | background-attachment: fixed;
3987 | }
3988 | }
3989 |
3990 | @media screen and ( max-width: 48.875em ) and ( min-width: 48em ) {
3991 |
3992 | .admin-bar .site-navigation-fixed.navigation-top,
3993 | .admin-bar .site-navigation-hidden.navigation-top {
3994 | top: 46px;
3995 | }
3996 | }
3997 |
3998 | /*--------------------------------------------------------------
3999 | 20.0 Print
4000 | --------------------------------------------------------------*/
4001 |
4002 | @media print {
4003 |
4004 | /* Hide elements */
4005 |
4006 | form,
4007 | button,
4008 | input,
4009 | select,
4010 | textarea,
4011 | .navigation-top,
4012 | .social-navigation,
4013 | #secondary,
4014 | .content-bottom-widgets,
4015 | .header-image,
4016 | .panel-image-prop,
4017 | .icon-thumb-tack,
4018 | .page-links,
4019 | .edit-link,
4020 | .post-navigation,
4021 | .pagination.navigation,
4022 | .comments-pagination,
4023 | .comment-respond,
4024 | .comment-edit-link,
4025 | .comment-reply-link,
4026 | .comment-metadata .edit-link,
4027 | .pingback .edit-link,
4028 | .site-footer aside.widget-area,
4029 | .site-info {
4030 | display: none !important;
4031 | }
4032 |
4033 | .entry-footer,
4034 | #comments,
4035 | .site-footer,
4036 | .single-featured-image-header {
4037 | border: 0;
4038 | }
4039 |
4040 | /* Font sizes */
4041 |
4042 | body {
4043 | font-size: 12pt;
4044 | }
4045 |
4046 | h1 {
4047 | font-size: 24pt;
4048 | }
4049 |
4050 | h2 {
4051 | font-size: 22pt;
4052 | }
4053 |
4054 | h3 {
4055 | font-size: 17pt;
4056 | }
4057 |
4058 | h4 {
4059 | font-size: 12pt;
4060 | }
4061 |
4062 | h5 {
4063 | font-size: 11pt;
4064 | }
4065 |
4066 | h6 {
4067 | font-size: 12pt;
4068 | }
4069 |
4070 | .page .panel-content .entry-title,
4071 | .page-title,
4072 | body.page:not(.twentyseventeen-front-page) .entry-title {
4073 | font-size: 10pt;
4074 | }
4075 |
4076 | /* Layout */
4077 |
4078 | .wrap {
4079 | padding-left: 5% !important;
4080 | padding-right: 5% !important;
4081 | max-width: none;
4082 | }
4083 |
4084 | /* Site Branding */
4085 |
4086 | .site-header {
4087 | background: transparent;
4088 | padding: 0;
4089 | }
4090 |
4091 | .custom-header-image {
4092 | padding: 0;
4093 | }
4094 |
4095 | .twentyseventeen-front-page.has-header-image .site-branding,
4096 | .home.blog.has-header-image .site-branding {
4097 | position: relative;
4098 | }
4099 |
4100 | .site-branding {
4101 | margin-top: 0;
4102 | margin-bottom: 1.75em !important; /* override styles added by JavaScript */
4103 | }
4104 |
4105 | .site-title {
4106 | font-size: 25pt;
4107 | }
4108 |
4109 | .site-description {
4110 | font-size: 12pt;
4111 | opacity: 1;
4112 | }
4113 |
4114 | /* Posts */
4115 |
4116 | .single-featured-image-header {
4117 | background: transparent;
4118 | }
4119 |
4120 | .entry-meta {
4121 | font-size: 9pt;
4122 | }
4123 |
4124 | /* Colors */
4125 |
4126 | body,
4127 | .site {
4128 | background: none !important; /* Brute force since user agents all print differently. */
4129 | }
4130 |
4131 | body,
4132 | a,
4133 | .site-title a,
4134 | .twentyseventeen-front-page.has-header-image .site-title,
4135 | .twentyseventeen-front-page.has-header-image .site-title a {
4136 | color: #222 !important; /* Make sure color schemes don't affect to print */
4137 | }
4138 |
4139 | h2,
4140 | h5,
4141 | blockquote,
4142 | .site-description,
4143 | .twentyseventeen-front-page.has-header-image .site-description,
4144 | .entry-meta,
4145 | .entry-meta a {
4146 | color: #777 !important; /* Make sure color schemes don't affect to print */
4147 | }
4148 |
4149 | .entry-content blockquote.alignleft,
4150 | .entry-content blockquote.alignright {
4151 | font-size: 11pt;
4152 | width: 34%;
4153 | }
4154 |
4155 | .site-footer {
4156 | padding: 0;
4157 | }
4158 | }
4159 |
--------------------------------------------------------------------------------
/wp.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | import WPAPI from 'wpapi'
4 | import config from './config'
5 |
6 | const wp = new WPAPI({
7 | endpoint: config.endpoint
8 | })
9 |
10 | const Site = WPAPI.site(config.endpoint)
11 |
12 | export { Site }
13 |
14 | export default wp
15 |
--------------------------------------------------------------------------------
65 | {this.renderComments(comments)} 66 |
67 |