/*--------------------------------------------------------------------------------- Theme Name: Hemingway Child Theme URI: http: //localhost/wordpress/ Description: Child Theme for the Hemingway theme Author: Anja zwischenbrugger Author URI: http: //deinedomain.de/ Template: Hemingway Version: 1.0 ----------------------------------------------------------------------------------- 0. CSS Reset & Clearfix 1. Document Setup 2. Structure 3. Header 4. Navigation 5. Main Content 6. Single post 7. Post Content 8. Comments 9. Pagination 10. Page & Page Templates 11. Sidebar 12. Footer 13. Credits 14. Responsive ----------------------------------------------------------------------------------- */ /* Transitions --------------------------------------- */ body a, .post-tags a::after { -webkit-transition: all 0.1s ease-in-out; -moz-transition: all 0.1s ease-in-out; -ms-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out; } .nav-toggle, .nav-toggle .bar, .blog-menu a, .blog-menu ul .has-children, .blog-title a, .post-title a, .format-bubble, .post-meta a, .featured-media a, .content form input, .content form textarea, .media-caption, .post-nav a, input#s, #searchsubmit, .widget-content ul li, .widget_recent_entries a, .search-toggle.active .metal, .search-toggle.active .handle, a.more-link, .dribbble-shot img, .flickr_badge_image a img { -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .tothetop { -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -ms-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } /* -------------------------------------------------------------------------------- */ /* 2. Structure /* -------------------------------------------------------------------------------- */ .section { padding: 10% 0; position: relative; } .section.large-padding { padding: 4% 0; } .section.medium-padding { padding: 5% 0; } .section.small-padding { padding: 2.5% 0; } .section.no-padding { padding: 0; } .section.bg-dark { background: #1D1D1D; } .section.bg-dark-light { background: #262626; } .bg-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #262626; } .section-inner { width: 1040px; max-width: 86%; margin: 0 auto; } .big-wrapper { overflow: hidden; } .wrapper { margin-top: 50px; } .content { width: 65%; } .content.center { margin-left: auto; margin-right: auto; } .content.full-width { width: 100%; } .sidebar { width: 27.5%; } /* -------------------------------------------------------------------------------- */ /* 3. Header /* -------------------------------------------------------------------------------- */ .header-cover { overflow-y: hidden; } .header { padding: 100px 0; background: no-repeat center; background-size: cover; -moz-background-size: cover; -webkit-background-size: cover; } .header-inner { position: relative; z-index: 2; text-align: center; } .blog-logo { display: inline-block; } .blog-logo a, .blog-logo img { display: block; } .blog-logo img { max-height: 250px; width: auto; max-width: 100%; height: auto; } .blog-info { display: inline-block; padding: 30px; background: #1d1d1d; } .blog-title { width: 100%; text-align: center; font-family: 'Raleway', sans-serif; } .blog-title a { color: #FFF; text-transform: uppercase; letter-spacing: 4px; font-weight: 700; font-size: 1.75em; } .blog-description:before { content: ""; display: block; width: 100px; height: 2px; background: rgba(255,255,255,0.1); margin: 20px auto; } .blog-description { font-family: 'Raleway', sans-serif; text-align: center; color: rgba(255,255,255,0.4); font-weight: 300; } /* Nav-toggle --------------------------------------- */ /* -------------------------------------------------------------------------------- */ /* 4. Navigation /* -------------------------------------------------------------------------------- */ .mobile-menu { display: none; } .blog-menu li { position: relative; } .blog-menu > li { float: left; } .blog-menu > li:before { content: "/"; display: block; position: absolute; left: 0; top: 50%; margin-top: -9px; margin-left: -3px; font-size: 16px; color: #444; font-weight: 300; z-index: 1000; } .blog-menu > li:first-child:before { content: none; } .blog-menu a { display: block; padding: 27px 18px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5); font-size: 16px; } .blog-menu a:hover, .blog-menu .current-menu-item a { color: #FFF; } .blog-menu > .has-children a, .blog-menu > .page_item_has_children a { padding-right: 35px; } .blog-menu > .has-children::after, .blog-menu > .page_item_has_children::after { content: ""; display: block; border: 5px solid transparent; border-top-color: rgba(255,255,255,0.4); position: absolute; z-index: 1001; right: 17px; top: 50%; margin-top: -2px; } .blog-menu > .has-children:hover::after, .blog-menu > .page_item_has_children:hover::after { border-top-color: #FFF; } .blog-menu li:hover a { background-color: #1D1D1D; cursor: pointer; } .blog-menu li:hover > a { color: #FFF; } /* Sub menus --------------------------------------- */ .blog-menu ul { position: absolute; left: -9999px; display: none; z-index: 999; } .blog-menu ul li { float: none; display: block; } .blog-menu ul > .has-children::after, .blog-menu ul > .page_item_has_children::after { content: ""; display: block; border: 6px solid transparent; border-left-color: rgba(255,255,255,0.4); position: absolute; z-index: 1001; right: 10px; top: 50%; margin-top: -5px; } .blog-menu ul > .has-children:hover::after, .blog-menu ul > .page_item_has_children:hover::after { border-right-color: #FFF; } .blog-menu ul li { width: 240px; background: #1d1d1d; } .blog-menu ul a { padding: 20px 0px; margin: 0 20px; line-height: 130%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; border-bottom: 1px solid rgba(255,255,255,0.1); } .blog-menu ul > li:last-child a { border-bottom-width: 0; } .blog-menu li:hover > ul { opacity: 1; left: 0; display: block; } /* Deep down --------------------------------------- */ .blog-menu ul li:hover > ul { top: 0; left: 240px; margin-left: 0; } /* -------------------------------------------------------------------------------- */ /* 10. Page & Page Templates /* -------------------------------------------------------------------------------- */ /* Search --------------------------------------- */ .post-content .searchform { position: relative; } .post-content .searchform input { height: 60px; } .post-content .searchform input#s { -webkit-appearance: none; width: 99%; padding: 18px 95px 18px 18px; background: #FFF; border: 1px solid #DDD; border-right: none; font-family: 'Lato', sans-serif; font-size: 1rem; border-radius: 3px 0 0 3px; } .post-content .searchform #s:focus { outline: none; background: #EEE; color: #444; } .post-content .searchform #searchsubmit { -webkit-appearance: none; position: absolute; right: 0; top: 0; width: 85px; line-height: 1; border: none; background: #1abc9c; border: 1px solid #1abc9c; color: #FFF; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; font-family: 'Lato', sans-serif; border-radius: 0 3px 3px 0; } .post-content .searchform #searchsubmit:hover { cursor: pointer; background-color: #089D80; border-color: #089D80; } /* -------------------------------------------------------------------------------- */ /* 11. Sidebar /* -------------------------------------------------------------------------------- */ .widget { padding-bottom: 15%; border-bottom: 4px solid #EEE; margin-bottom: 15%; } .widget:last-child { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; } .widget-title { font-family: 'Raleway', sans-serif; font-size: 0.9rem; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; color: #444; } /* widget-content */ .widget-content { color: #555; font-size: 1rem; line-height: 140%; } .widget-content *:last-child { margin-bottom: 0; } .widget-content a:hover { text-decoration: underline } .widget-content p { line-height: 150%; margin-bottom: 1em; } .widget-content ul li { padding: 10px 0; border-top: 1px solid #EEE; line-height: 130%; } .widget-content li ul > li:first-child { margin-top: 10px; } .widget-content .page_item_has_children { padding-bottom: 0; } .widget-content li ul li { padding-left: 15px; } .widget-content ul li .post-date { margin-left: 5px; color: #999; } .widget-content > ul > li:first-child { border-top: 0; } /* Widget search --------------------------------------- */ .widget_search form { position: relative; } .widget_search input { height: 52px; } .widget_search input#s { -webkit-appearance: none; width: 99%; padding: 18px 95px 18px 18px; background: #FFF; border: 1px solid #DDD; border-right: none; font-family: 'Lato', sans-serif; font-size: 1rem; border-radius: 3px 0 0 3px; } .widget_search #s:focus { outline: none; background: #EEE; color: #444; } .widget_search #searchsubmit { -webkit-appearance: none; position: absolute; right: 0; top: 0; width: 85px; line-height: 1; border: none; background: #1abc9c; border: 1px solid #1abc9c; color: #FFF; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; font-family: 'Lato', sans-serif; border-radius: 0 3px 3px 0; } .widget_search #searchsubmit:hover { cursor: pointer; background-color: #089D80; border-color: #089D80; } /* -------------------------------------------------------------------------------- */ /* 14. Responsive /* -------------------------------------------------------------------------------- */ @media (max-width: 1040px) { body { font-size: 16px; } /* Structure --------------------------------------- */ .wrapper { margin-top: 7.5%; } } @media (max-width: 800px) { body { font-size: 18px; } /* Structure --------------------------------------- */ .content, .sidebar { width: 100%; float: none; } .sidebar { display: none; } .section.large-padding, .section.medium-padding { padding: 40px 0; } .footer { margin-top: 60px; } /* Navigation --------------------------------------- */ .navigation-inner { max-width: 100%; } .blog-menu { display: none; } .toggle-container { display: block; background: #1D1D1D; } .toggle { display: inline-block; position: relative; height: 57px; width: 32px; padding: 20px 0px; } .toggle:hover { cursor: pointer; } .nav-toggle { float: left; margin-left: 7%; } .search-toggle { float: right; margin-right: 7%; } .nav-toggle:hover { cursor: pointer; } .nav-toggle .bar { display: block; width: 24px; height: 3px; margin-top: 4px; background: #666; } .nav-toggle .bar:first-child { margin-top: 0; } .nav-toggle.active .bar { background-color: #FFF; } .search-toggle .metal, .search-toggle .glass, .search-toggle .handle { position: absolute; } .search-toggle .metal { width: 24px; height: 24px; top: 14px; left: 6px; border-radius: 999px; background: #555; } .search-toggle .glass { width: 14px; height: 14px; top: 19px; left: 11px; border-radius: 999px; background: #1D1D1D; } .search-toggle .handle { height: 5px; width: 14px; top: 36px; left: 0px; background: #555; border-radius: 2px 0 0 2px; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); } .search-toggle.active .metal, .search-toggle.active .handle { background: #FFF; } .blog-search, .navigation { background: #282828; } .mobile-menu a { display: block; padding: 24px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); background: #282828; display: block; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); font-size: 13px; } .mobile-menu a:hover, .mobile-menu .current-menu-item a { color: #FFF; } .mobile-menu ul a { width: 100%; } .mobile-menu ul a { padding-left: 40px; } .mobile-menu ul ul a { padding-left: 60px; } .mobile-menu ul ul ul a { padding-left: 80px; } .mobile-menu ul ul ul ul a { padding-left: 100px; } .mobile-menu ul ul ul ul ul a { padding-left: 120px; } .blog-search { padding: 8%; } .blog-search .searchform { position: relative; overflow: hidden; } .blog-search #s { width: 97.5%; padding: 18px 100px 18px 20px; background: #FFF; font-family: 'Lato', sans-serif; font-size: 1em; color: #444; border: none; border-radius: 4px 0 0 4px; margin: 0; } .blog-search #s:focus { outline: none; } .blog-search #searchsubmit { -webkit-appearance: none; position: absolute; right: 0; top: 0; width: 85px; padding: 20px 0; line-height: 1; border: none; margin: 0; background: #1abc9c; border: 1px solid #1abc9c; color: #FFF; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; font-family: 'Lato', sans-serif; border-radius: 0 4px 4px 0; } .blog-search #searchsubmit:hover { cursor: pointer; background-color: #089D80; border-color: #089D80; } /* Pagination --------------------------------------- */ .archive-nav { margin-top: 60px; } } @media (max-width: 700px) { body { font-size: 16px; } /* Header --------------------------------------- */ .header.section { padding: 60px 0; } .blog-info { padding: 20px; } .blog-description:before { margin: 15px auto; } /* Main content --------------------------------------- */ .post { padding-bottom: 35px; margin-bottom: 35px; } .post:last-child { padding-bottom: 0; border-bottom: none; margin-bottom: 0; } .featured-media { margin-bottom: 25px; } .post-header { margin-bottom: 25px; } .post-title { margin-bottom: 12px; } .post-meta-bottom { margin-top: 40px; } /* Post content --------------------------------------- */ .post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 { margin-top: 30px; margin-bottom: 10px; } .post-content .alignleft, .post-content .alignright { float: none; width: auto; margin: 0 auto 1.2em auto; } .post-content .alignleft img, .post-content .alignright img { display: block; margin: 0 auto; } /* Comments --------------------------------------- */ .comments { padding-top: 30px; margin-top: 30px; } .comments-title, #reply-title { font-size: 1.5em; } .comments-title { margin-bottom: 30px; } .comment-meta-content { padding-top: 9px; } .comment-actions { margin-top: 10px; } .comment-meta .comment-actions { display: none; } .comment-content .comment-actions { display: block; position: relative; top: auto; right: auto; margin-top: 1em; } .comment-content h1, .comment-content h2, .comment-content h3, .comment-content h4, .comment-content h5, .comment-content h6 { margin-top: 30px; margin-bottom: 10px; } /* Respond --------------------------------------- */ .comment-respond { margin-top: 30px; } #reply-title { margin-bottom: 10px; } .comment-form input { max-width: 100%; } .comment-form p { margin-bottom: 15px; } p.comment-notes, p.logged-in-as { margin-bottom: 30px; } .comment-form textarea { height: 180px; } /* Footer --------------------------------------- */ .footer { margin-top: 60px; } .footer .column { width: 100%; margin-left: 0; padding-top: 40px; border-top: 4px solid rgba(255,255,255,0.1); margin-top: 40px; } .footer .column:first-child { margin-top: 0; border-top: 0; padding-top: 0; } .widget { margin-bottom: 40px; border-bottom: 4px solid rgba(255,255,255,0.1); padding-bottom: 40px; } @media (max-width: 500px) { body { font-size: 15px; } /* Header --------------------------------------- */ .header.section { padding: 30px 0; } /* Post --------------------------------------- */ .post-title { font-size: 1.75em; } .post-author { display: none; } .post-header .date-sep:nth-of-type(2) { display: none; } .media-caption-container { position: static; top: auto; left: auto; width: 100%; margin: -3px 0 0 0; } .media-caption { padding: 10px; border-radius: 0 0 4px 4px; background: #EEE; color: #666; width: 100%; } .media-caption:hover { background: #EEE; color: #666; }