/* Theme Name: Amez Theme URI: http://wordpress.org/themes/amez Author: Ata Nemani Author URI: http://atanemani.ir Description: Simple Personal Template for Artists & Web Developers Version: 1.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: custom-colors, two-columns, custom-header, custom-menu, featured-images, sticky-post, translation-ready Text Domain: amez */ /* * Table of contents: * * 1 - General & Reset * 2 - Wrap & Main * 3 - Avatar & Page/Post Thumbnails * 4 - Heading ( @index.php ) * 5 - Navbar * 6 - Control Buttons * 7 - Navmenu * 8 - Scrollbar * 9 - Content > Single Container * 9/1 - Alignment, Captions, etc * 9/2 - Post Tags * 9/3 - Page Links * 10 - Gallery * 11 - Comments * 12 - Content > Category container * 13 - Content > Archive Container * 14 - title of pages like archive, category, etc * 15 - Search Area * 16 - Social Links * 17 - PageNavi */ /* =============================== */ /* 1 - General & Reset */ /* =============================== */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { border: 0; font-family: "Open Sans"; font-size: 100%; font-style: inherit; font-weight: inherit; margin: 0; outline: 0; padding: 0; vertical-align: baseline; } body { background: #252525; color: #333; font: 14px/22px "Open Sans"; height: 100vh; margin: 0; padding: 0; } @font-face { font-family: 'icomoon'; font-style: normal; font-weight: normal; src: url('icomoon/fonts/icomoon.eot?-4sq35k'); src: url('icomoon/fonts/icomoon.eot?#iefix-4sq35k') format('embedded-opentype'), url('icomoon/fonts/icomoon.woff?-4sq35k') format('woff'), url('icomoon/fonts/icomoon.ttf?-4sq35k') format('truetype'), url('icomoon/fonts/icomoon.svg?-4sq35k#icomoon') format('svg'); } article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } audio, canvas, video { display: inline-block; max-width: 100%; } html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body, button, input, select, textarea { color: #2b2b2b; font-family: "Open Sans", sans-serif; font-size: 14px; font-weight: 400; line-height: 1.5; } a { color: inherit; text-decoration: none; } a:focus { outline: thin dotted; } a:hover, a:active { outline: 0; } h1, h2, h3, h4, h5, h6 { font-weight: 500; margin: 36px 0 12px; } h1 { font-size: 28px; line-height: 1.3846153846; } h2 { font-size: 26px; line-height: 1; } h3 { font-size: 24px; line-height: 1.0909090909; } h4 { font-size: 22px; line-height: 1.2; } h5 { font-size: 20px; line-height: 1.3333333333; } h6 { font-size: 18px; line-height: 1.5; } address { font-style: italic; margin-bottom: 24px; } abbr[title] { border-bottom: 1px dotted #2b2b2b; cursor: help; } b, strong { font-weight: 700; } cite, dfn, em, i { font-style: italic; } mark, ins { background: #fff9c0; text-decoration: none; } p { margin-bottom: 15px; } code, kbd, tt, var, samp, pre { font-family: Lucida Console; font-size: 14px; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; line-height: 1.6; } pre { border: 1px solid rgba(0, 0, 0, 0.1); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin-bottom: 24px; max-width: 100%; overflow: auto; padding: 12px; white-space: pre; white-space: pre-wrap; word-wrap: break-word; } blockquote, q { -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; } blockquote { color: #767676; font-size: 19px; font-style: italic; font-weight: 300; line-height: 1.2631578947; margin-bottom: 24px; } blockquote cite, blockquote small { color: #2b2b2b; font-size: 16px; font-weight: 400; line-height: 1.5; } blockquote em, blockquote i, blockquote cite { font-style: normal; } blockquote strong, blockquote b { font-weight: 400; } small { font-size: smaller; } big { font-size: 125%; } sup, sub { font-size: 75%; height: 0; line-height: 0; position: relative; vertical-align: baseline; } sup { bottom: 1ex; } sub { top: .5ex; } dl { margin-bottom: 24px; } dt { font-weight: bold; } dd { margin-bottom: 24px; } ul, ol { list-style: none; margin: 0 0 24px 20px; } ul { list-style: disc; } ol { list-style: decimal; } li > ul, li > ol { margin: 0 0 0 20px; } img { -ms-interpolation-mode: bicubic; border: 0; vertical-align: middle; } figure { margin: 0; } fieldset { border: 1px solid rgba(0, 0, 0, 0.1); margin: 0 0 24px; padding: 11px 12px 0; } legend { white-space: normal; } button, input, select, textarea { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; font-size: 100%; margin: 0; max-width: 100%; vertical-align: baseline; } button, input { line-height: normal; } input, textarea { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 4px; font: 14px "Open Sans"; padding: 7px 8px; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: none; cursor: pointer; border: none; color: #FFF; padding: 5px 10px; cursor: pointer; border: none; font: 16px "Open Sans"; } button[disabled], input[disabled] { cursor: default; } input[type="checkbox"], input[type="radio"] { padding: 0; } input[type="search"] { -webkit-appearance: textfield; } input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input[type="submit"]:hover, input[type="button"]:hover { opacity: 0.9; } textarea { overflow: auto; vertical-align: top; } table { border-collapse: separate; border-spacing: 0; border-width: 1px 0 0 1px; margin-bottom: 24px; width: 100%; } caption, th, td { font-weight: normal; text-align: left; } th { border-width: 0 1px 1px 0; font-weight: bold; } td { border-width: 0 1px 1px 0; } del { color: #767676; } hr { background-color: rgba(0, 0, 0, 0.1); border: 0; height: 1px; margin-bottom: 23px; } textarea:focus, input:focus { outline: 0; } /* =============================== */ /* 2 - Wrap & Main */ /* =============================== */ .wrap { background: #FFF; bottom: 0; height: 520px; left: 0; margin: auto; position: absolute; right: 0; top: 0; width: 980px; } .wrap:before { content: ''; height: 100%; position: absolute; right: 0; top: 0; width: 220px; } .main { height: 480px; left: 20px; overflow: hidden; position: absolute; top: 20px; width: 590px; } .scrollable { height: 480px; left: 20px; position: absolute; top: 20px; width: 590px; } body.single .main, body.page .main, body.category .main, body.archive .main, body.search .main, body.error404 .main { padding-left: 20px; width: 570px; } body.category .main, body.archive .main, body.search .main, body.error404 .main { height: 400px; top: 70px; } /* =============================== */ /* 3 - Avatar & Page/Post Thumbnails */ /* =============================== */ .page-avatar { background: #FFF; border: 8px solid #FFF; border-radius: 50%; bottom: 0; left: 0; margin: auto 80px auto auto; position: absolute; right: 0; top: 0; } /* =============================== */ /* 4 - Heading ( @index.php ) */ /* =============================== */ .heading { left: 40px; position: absolute; top: 195px; } .heading h1 { font-size: 34px; margin: -5px 0 0; } .heading h3 { color: #888; font: 20px "Open Sans"; margin: -10px 0 0; } /* =============================== */ /* 5 - Navbar */ /* =============================== */ .navbar ul { list-style: none; margin: 0; padding: 0; } .navbar ul li { float: left; position: relative; } .navbar ul li:after { content: '/'; margin: 0 5px; } .navbar ul li:last-child:after { display: none; } .navbar ul li a { font-size: 13px; font-weight: 700; } .navbar ul ul { box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); opacity: 0; position: absolute; visibility: hidden; white-space: nowrap; } .navbar ul ul li { float: none; } .navbar ul ul li:after { display: none; } .navbar ul ul li:hover { background: rgba(0, 0, 0, 0.2); } .navbar ul ul li a { color: #FFF; display: block; font: normal 13px/20px "Open Sans"; height: 25px; padding: 0 10px; } .navbar ul ul ul { left: 100%; top: 0; } .navbar ul li:hover > ul { opacity: 1; visibility: visible; } /* =============================== */ /* 6 - Control Buttons */ /* =============================== */ .control-btn { height: 40px; position: absolute; right: 240px; width: 40px; } .control-btn:before { bottom: 0; color: #FFF; font: normal 20px/39px icomoon; left: 0; position: absolute; right: 0; text-align: center; top: 0; } .home-btn { top: 20px; } .home-btn:before { content: '\e601'; } .navmenu-btn { top: 70px; } .navmenu-btn:before { content: '\e6b8'; } .editpost-btn { bottom: 70px; } .editpost-btn:before { content: '\e605'; } .goup-btn { bottom: 20px; cursor: pointer; } .goup-btn:before { content: '\e69f'; } .search-btn { bottom: 70px; cursor: pointer; } .search-btn:before { content: '\e67f'; } .navmenu-btn:hover .navmenu { opacity: 1; visibility: visible; -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; } /* =============================== */ /* 7 - Navmenu */ /* =============================== */ .navmenu { box-shadow: 0 0 3px rgba(0, 0, 0, 0.2); color: #FFF; opacity: 0; position: absolute; right: 100%; top: 0; visibility: hidden; white-space: nowrap; z-index: 1; -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; } .navmenu ul { list-style: none; margin: 0; padding: 0; } .navmenu ul li { position: relative; } .navmenu ul li:hover { background: rgba(0, 0, 0, 0.2); } .navmenu ul li a { height: 30px; line-height: 25px; padding: 0 10px; } .navmenu ul ul { box-shadow: 0 0 3px rgba(0, 0, 0, 0.2); opacity: 0; position: absolute; right: 100%; top: 0; visibility: hidden; z-index: 1; } .navmenu ul li:hover > ul { opacity: 1; visibility: visible; } /* =============================== */ /* 8 - Scrollbar */ /* =============================== */ .ps-container .ps-scrollbar-y-rail { border-radius: 4px; left: 0; opacity: 0; position: absolute; width: 8px; -webkit-transition: background-color.2s linear, opacity .2s linear; -moz-transition: background-color .2s linear, opacity .2s linear; -ms-transition: background-color .2s linear, opacity .2s linear; -o-transition: background-color .2s linear, opacity .2s linear; transition: background-color .2s linear, opacity .2s linear; } .ps-container:hover .ps-scrollbar-y-rail, .ps-container.hover .ps-scrollbar-y-rail { opacity: 0.6; } .ps-container .ps-scrollbar-y-rail:hover, .ps-container .ps-scrollbar-y-rail.hover { background-color: #eee; opacity: 0.9; } .ps-container .ps-scrollbar-y-rail.in-scrolling { opacity: 0.9; } .ps-container .ps-scrollbar-y { background-color: #aaa; border-radius: 4px; position: absolute; right: 0; width: 8px; -webkit-transition: background-color.2s linear; -moz-transition: background-color .2s linear; -ms-transition: background-color .2s linear; -o-transition: background-color .2s linear; transition: background-color .2s linear; } .ps-container.ie .ps-scrollbar-y { font-size: 0; } .ps-container .ps-scrollbar-y-rail:hover .ps-scrollbar-y, .ps-container .ps-scrollbar-y-rail.hover .ps-scrollbar-y { background-color: #999; } /* =============================== */ /* 9 - Content > Single Container */ /* =============================== */ .content h1 { margin: 0 0 5px; } .single-container img { max-width: 100%; height: auto; } .single-container .info { border-bottom: 1px dotted #ccc; color: #888; font-size: 12px; margin: 0 0 5px; padding: 0 0 5px; } /* =============================== */ /* 9/1 - Alignment, Captions, etc */ /* =============================== */ .alignnone { margin: 5px 20px 20px 0; } .aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; } .alignright { float: right; margin: 5px 0 20px 20px; } .alignleft { float: left; margin: 5px 20px 20px 0; } a img.alignright { float: right; margin: 5px 0 20px 20px; } a img.alignnone { margin: 5px 20px 20px 0; } a img.alignleft { float: left; margin: 5px 20px 20px 0; } a img.aligncenter { display: block; margin-left: auto; margin-right: auto } .wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; /* Image does not overflow the content area */ padding: 5px 3px 5px; text-align: center; } .wp-caption.alignnone { margin: 5px 20px 20px 0; } .wp-caption.alignleft { margin: 5px 20px 20px 0; } .wp-caption.alignright { margin: 5px 0 20px 20px; } .wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; } .wp-caption .wp-caption-text { line-height: 22px; margin: 5px 0 0; padding: 0 4px; } .sticky { /* .sticky has not effect yet, maybe in feature */ position: relative; } /* =============================== */ /* 9/2 - Post Tags */ /* =============================== */ .post-tags { margin: 50px 0; } .single-tags { color: #FFF; display: inline-block; font-size: 11px; font-weight: 900; height: 22px; line-height: 22px; margin: 2px 2px 2px 10px; padding: 0 8px; position: relative; text-transform: uppercase; } .single-tags a:hover { color: #FFF !important; } .single-tags:before { border-style: solid; border-width: 11px 10px 11px 0; content: ''; height: 0; left: -10px; position: absolute; top: 0; width: 0; } .single-tags:after { background: #FFF; border-radius: 50%; content: ''; height: 5px; left: -2px; position: absolute; top: 8px; width: 5px; } /* =============================== */ /* 9/3 - Page Links */ /* =============================== */ .page-links { margin: 0 0 15px; } /* ======================== */ /* 10 - Gallery */ /* ======================== */ .gallery { clear: both; margin-bottom: 20px; overflow: auto; } .gallery-item { float: left; margin: 2px; overflow: hidden; position: relative; } .gallery-item img { border: none; display: block; height: auto; max-width: 100%; } .gallery-columns-1 .gallery-item { max-width: 100%; } .gallery-columns-2 .gallery-item { max-width: 48%; max-width: -webkit-calc(50% - 4px); max-width: calc(50% - 4px); } .gallery-columns-3 .gallery-item { max-width: 32%; max-width: -webkit-calc(33.3% - 4px); max-width: calc(33.3% - 4px); } .gallery-columns-4 .gallery-item { max-width: 23%; max-width: -webkit-calc(25% - 4px); max-width: calc(25% - 4px); } .gallery-columns-5 .gallery-item { max-width: 19%; max-width: -webkit-calc(20% - 4px); max-width: calc(20% - 4px); } .gallery-columns-6 .gallery-item { max-width: 15%; max-width: -webkit-calc(16.7% - 4px); max-width: calc(16.7% - 4px); } .gallery-columns-7 .gallery-item { max-width: 13%; max-width: -webkit-calc(14.28% - 4px); max-width: calc(14.28% - 4px); } .gallery-columns-8 .gallery-item { max-width: 11%; max-width: -webkit-calc(12.5% - 4px); max-width: calc(12.5% - 4px); } .gallery-columns-9 .gallery-item { max-width: 9%; max-width: -webkit-calc(11.1% - 4px); max-width: calc(11.1% - 4px); } .gallery-columns-6 .gallery-item:nth-of-type(6n), .gallery-columns-7 .gallery-item:nth-of-type(7n), .gallery-columns-8 .gallery-item:nth-of-type(8n), .gallery-columns-9 .gallery-item:nth-of-type(9n) { margin-right: 0; } .gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1), .gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1), .gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1), .gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) { clear: left; } .gallery-caption { background-color: rgba(0, 0, 0, 0.7); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; color: #fff; font-size: 12px; line-height: 1.5; margin: 0; max-height: 50%; opacity: 0; padding: 6px 8px; position: absolute; bottom: 0; left: 0; text-align: left; width: 100%; -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; } .gallery-caption:before { content: ""; height: 100%; min-height: 49px; position: absolute; top: 0; left: 0; width: 100%; } .gallery-item:hover .gallery-caption { opacity: 1; -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; } .gallery-columns-7 .gallery-caption, .gallery-columns-8 .gallery-caption, .gallery-columns-9 .gallery-caption { display: none; } /* =============================== */ /* 11 - Comments */ /* =============================== */ .commentlist { margin: 10px 0; padding: 0; } .commentlist li { display: block; } .commentlist .comment-body { margin: 0 0 15px 0; min-height: 100px; position: relative; } .commentlist .comment-body .vcard { width: 70px; position: absolute; left: 0; top: 0; } .commentlist .comment-body .vcard img { border-radius: 50px 0 50px 50px; margin: 0; } .comment-body cite.fn { color: rgba(0, 0, 0, 0.6); display: inline-block; font: bold 19px "Open Sans"; margin: 0 10px 0 0; } .comment-body cite.fn a { color: inherit; } .commentlist .comment-body .comment { background: #f9f9f9; margin: 0 0 0 80px; padding: 10px; position: relative; } .commentlist .comment-body .commentmetadata { color: rgba(0, 0, 0, 0.4); display: inline; font-size: 14px; padding-bottom: 10px; } .comment-body .comment-reply-link { color: rgba(0, 0, 0, 0.6); font: bold 15px "Open Sans"; position: absolute; right: 10px; top: 10px; } #commentform input[type='text'], #commentform input[type='email'], #commentform input[type='url'] { margin: 10px 0; -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; } #commentform input[type='text']:focus, #commentform input[type='email']:focus, #commentform input[type='url']:focus, #commentform textarea:focus { -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; } #commentform textarea { flex: 1; margin: 10px 0; resize: none; -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; } #respond { margin: 50px 0 0; } #respond a { color: #000; } .comment-awaiting-moderation { font: italic 14px "Open Sans"; margin: 0 200px 0 0; } .comment-form { display: flex; flex-wrap: wrap; } .comment-notes, .comment-form-comment { min-width: 100%; } .comment-form-author, .comment-form-email, .comment-form-url { display: flex; flex: 1; flex-wrap: wrap; margin: 0; min-width: 20%; } .comment-form-email { margin-left: 10px; margin-right: 10px; } .comment-form-comment { display: flex; flex-wrap: wrap; margin: 0; } #commentform label { min-width: 100%; } #comments, #reply-title { font: normal 24px "Open Sans"; margin: 20px 0; } .bypostauthor { position: relative; } .bypostauthor:before { color: #FFF; content: 'author'; font-size: 11px; padding: 0 5px 2px; position: absolute; left: -67px; top: 80px; } /* =============================== */ /* 12 - Content > Category container */ /* =============================== */ .category-container .post { border-bottom: 1px dotted #ccc; margin: 0 0 7px; overflow: auto; padding-bottom: 7px; } .category-container .post:last-child { border: none; } .category-container .post img { float: left; margin: 0 10px 0 0; } .category-container .post h2 { font: bold 16px "Open Sans"; margin: -4px 0 0; } .category-container .post .info { color: #888; font-size: 12px; } .category-container .post p { margin: 0; } /* =============================== */ /* 13 - Content > Archive-search Container */ /* =============================== */ .archive-container .post, .archive-container .page { border-bottom: 1px dotted #ccc; margin: 0 0 10px; padding: 0 0 10px; } .archive-container .post h2, .archive-container .page h2 { font: bold 16px "Open Sans"; margin: 0; } .archive-container .post .info, .archive-container .page .info { color: #888; font-size: 12px; } /* =============================== */ /* 14 - title of pages like archive, category, etc */ /* =============================== */ #title { font-size: 28px; margin: 0 0 5px; position: absolute; left: 40px; top: 20px; } /* =============================== */ /* 15 - Search Area */ /* =============================== */ .search-area { bottom: 0; display: none; height: 122px; left: 0; position: absolute; width: 100%; z-index: 2; } .search-area span, .search-area input[type="submit"] { display: none; } .search-area input[type="search"] { background: none; border: none; color: #FFF; font-size: 22px; padding: 10px; position: absolute; left: 40px; top: 35px; width: 500px; } /* =============================== */ /* 16 - Social Links */ /* =============================== */ .social-links { bottom: 0; height: 30px; position: absolute; right: 0; text-align: center; width: 220px; } .social-links div[class$='-lnk'] { display: inline-block; height: 18px; margin: 0 2px; position: relative; width: 18px; } .social-links div[class$='-lnk']:before { color: rgba(255, 255, 255, 0.3); font: 18px icomoon; position: absolute; bottom: 0; left: 0; right: 0; top: 0; -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; } .social-links div[class$='-lnk']:hover:before { color: #FFF; -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; } .facebook-lnk:before { content: '\e750'; } .twitter-lnk:before { content: '\e754'; } .googleplus-lnk:before { content: '\e74c'; } .pinterest-lnk:before { content: '\e78d'; } .instagram-lnk:before { content: '\e752'; } .linkedin-lnk:before { content: '\e785'; } /* =============================== */ /* 17 - PageNavi */ /* =============================== */ .pagenavi { bottom: 0; margin: 20px 0 0 0; overflow: auto; position: absolute; left: 20px; text-align: center; width: 640px; } .pagenavi span, .pagenavi a { border: none; color: #333; display: inline-block; font: 12px/20px "Open Sans"; height: 25px; margin: 0 0 0 -1px; padding: 0 8px; text-transform: uppercase; } .pagenavi span.current { color: #FFF; }