/* Theme Name: bb10 Theme URI: http://hjyl.org/wordpress-theme-bb10/ Author: HJYL Author URI: http://hjyl.org/ Description: The theme from blackberry 10. simple and beautiful.based on HTML5 and CSS3. License: GNU General Public License v2.0 License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: bb10 Version: 2.1 Tags: two-columns, post-formats, theme-options, custom-menu, right-sidebar, editor-style, sticky-post, blog */ /* =Reset CSS.= */ *{ margin:0; padding:0; } html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video{ margin:0; padding:0; border:0; list-style:none; outline: 0; font-size: 100%; vertical-align: baseline; } body{ text-align:center; font-size:14px; font-family:Microsoft YaHei,Consolas,Georgia,Helvetica,Arial,sans-serif,'宋体'; color:#DDDDDD; word-wrap: break-word; position:relative; background:#333436; } article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { display: block; } a{ text-decoration:none; color:#DDDDDD; } a:hover{ color:#227EC0; } h1{ font-size:30px; } h2{ font-size:18px; } h3{ font-size:14px; } h4, h5, h6{ font-size:13px; } h1, h2, h3, h4, h5, h6{ font-weight:normal; } .clear, #hjylWidget .widget{ clear:both; display:block; } .widget_calendar, #wp-calendar{ width:100%; } /* =WordPress Reset CSS */ img.size-auto, img.size-full, img.size-large, img.size-medium, .attachment img, img[class*="align"], img[class*="wp-image-"], img[class*="attachment-"]{ max-width: 95%; /* When images are too wide for containing element, force them to fit. */ height: auto; /* Override height to match resized width for correct aspect ratio. */ } .alignleft, img.alignleft { display: inline; float: left; margin-right: 24px; margin-top: 4px; } .alignright, img.alignright { display: inline; float: right; margin-left: 24px; margin-top: 4px; } .aligncenter, img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; } img.alignleft, img.alignright, img.aligncenter { margin-bottom: 12px; } .wp-caption { box-shadow:inset 0px 0px 1px #DDDDDD; max-width: 100%; padding-top: 4px; text-align: center; position:relative; } .wp-caption img { margin: 5px 5px 0; } .wp-caption p.wp-caption-text { color: #888; font-size: 12px; margin: 5px; } .gallery { margin: 0 auto 18px; } #hjylContent .gallery .gallery-item { float: left; margin:0 10px 0; text-align: center; width: 24.5%; } #hjylContent .gallery-columns-2 .gallery-item { width: 50%; } #hjylContent .gallery-columns-4 .gallery-item { width: 25%; } #hjylContent .gallery img { border: 2px solid #cfcfcf; } #hjylContent .gallery-columns-2 .attachment-medium { max-width: 92%; height: auto; } #hjylContent .gallery-columns-4 .attachment-thumbnail { max-width: 84%; height: auto; } #hjylContent .gallery .gallery-caption { color:#888; font-size: 12px; margin: 0 0 12px; } #hjylContent .gallery dl { margin: 0; } #hjylContent .gallery img { border: 10px solid #f1f1f1; } #hjylContent .gallery br+br { display: none; } .attachment img {/* single attachment images should be centered */ display: block; margin: 0 auto; } img.attachment-70x50-right-top{ float:right; margin:0 0 10px 10px; border-radius:5px; } table{ border: 1px solid #e7e7e7; margin: 0 -1px 24px 0; text-align: left; width: 100%; } th, td{ border:1px solid #ccc; padding:3px 10px; text-align:left; vertical-align:top; } tr.even td{ background:#f7f7f7; } blockquote{ padding:20px 30px; border-radius:3px; box-shadow:0px 0px 1px #DDDDDD inset; margin:10px 5px; position:relative; } .wp-caption:before, .wp-caption:after, blockquote:before, blockquote:after{ content: ""; background: transparent; width:70px; height:50px; position: absolute; z-index:-1; } .wp-caption:before, blockquote:before{ border-top: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; top: 0; left: 0; } .wp-caption:after, blockquote:after{ border-bottom: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; bottom: 0; right: 0; } blockquote p{ text-align:left !important; } code{ background:#555; color:#ddd; padding:5px 10px; display: inline-block; overflow-x: auto; border-radius:5px; } pre{ font-size:12px; width:auto; line-height:16px; overflow:auto; font-family:"Courier New", clearSys; background:none; border:none; padding:0 5px 16px; margin:0 0 20px; } /* Text meant only for screen readers. */ .screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ } .screen-reader-text:focus { background-color: #eee; clip: auto !important; clip-path: none; color: #444; display: block; font-size: 1em; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; /* Above WP toolbar. */ } #hjyl_header, #hjylContainer{ text-align:left; width:1000px; margin:0 auto; position:relative; } /****header****/ #hjyl_header{ height:200px; margin-bottom:20px; } #hjyl_header h1{ font-size:100px; font-weight:bold; width:100px; height:100px; overflow:hidden; margin-top:50px; border-left:1px solid #DDDDDD; border-bottom:1px solid #DDDDDD; padding:20px; border-radius:100px; line-height:100px; } .logo-line{ width:1px; height:80px; position:absolute; background:#DDDDDD; left:60px; bottom:-20px; } #hjyl_header h1 a{ text-decoration:none; } #hjyl_header p.header-logo{ float:right; position:absolute; width:300px; height:60px; top:40px; right:0; } #hjyl_menu{ float:left; position:absolute; z-index:9999; margin-top:100px; left:-69px; } #hjyl_menu ul li{ padding:5px; text-align:right; position:relative; line-height:32px; width:100px; } #hjylContent{ border-left:1px solid #DDDDDD; margin:0 0 0 60px; padding-left:15px; display:inline-block; } #hjyl_menu ul li.current-menu-item:after, #hjyl_menu ul li.current-menu-parent:after{ content: ""; transform: rotate(135deg); -ms-transform:rotate(135deg); /* IE 9 */ -moz-transform:rotate(135deg); /* Firefox */ -webkit-transform:rotate(135deg); /* Safari 和 Chrome */ -o-transform:rotate(135deg); /* Opera */ background: #333436; border-bottom: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; width:13px; height:13px; position: absolute; top: 13px; right: -26px; } #hjyl_header #searchform{ float:right; position:absolute; width:232px; height:25px; right:100px; top:160px; } #searchform .submit{ display:none; } #searchform #s{ border:1px solid #DDDDDD; background:#ccc; padding:10px; width:40px; height:40px; border-radius:40px; transition: width 400ms ease, height 400ms ease, border-radius 400ms ease; -moz-transition: width 400ms ease, height 400ms ease, border-radius 400ms ease; -webkit-transition: width 400ms ease, height 400ms ease, border-radius 400ms ease; -o-transition: width 400ms ease, height 400ms ease, border-radius 400ms ease; } #searchform #s:focus { width:100%; height:20px; padding:10px; border-radius:15px; } /*****#hjylContent*****/ .sticky{ } .bypostauthor{ } .hjylPosts{ width:600px; border-right:1px solid rgba(255, 255, 255, 0.2); float:left; padding-right:20px; } .hjylPosts article{ margin-bottom:25px; position:relative; } .hjylPosts .date{ position:absolute; top:0; right:-10px; font-family:Consolas,Arial; } .hjylPosts .month{ width:30px; display:block; text-align:center; font-size:12px; } .hjylPosts .date .day{ background:#DDDDDD; color:#000; padding:2px 3px; border-radius:100px; position:absolute; top:0; right:-21px; } .hjylPosts article:hover .date .day{ background:#227EC0; color:#DDDDDD; } .hjylEntry{ line-height:24px; margin:10px 0; } .hjylPosts footer span{ margin-right:10px; } .hjylEntry p, .comment-body p, .tags{ line-height:24px; margin:10px 0; } .hjylPosts .position{ margin-bottom:15px; } .hjylNav{ text-align:right; margin:10px 0; } .hjylNav a{ margin:0 5px; padding:5px 10px; } .hjylNav a:hover, .hjylNav a.current{ color:#000; background:#DDDDDD; text-decoration:none; font-weight:bold; border-radius:100px; } #archives-content { width: 80%; } .page-link{ border-top: 1px dotted; border-bottom: 1px dotted; text-align: center; line-height:30px; } .page-link a{ padding: 2px 10px; background: #227EC0; margin: 0 10px; } .page-link a:hover{ background: #333436; } /*****#hjylWidget*****/ #hjylWidget{ margin-left:20px; float:right; } #hjylWidget{ padding-bottom:40px; } #hjylWidget .widget h2{ margin-bottom:10px; text-align:right; border-bottom:1px solid #DDDDDD; font-size:16px; } #hjylWidget .widget_mail .rsstxt { height: 30px; padding: 0 10px; width: 80%; border:1px solid #ccc; } #hjylWidget ul li { margin-bottom: 5px; } #hjylWidget .widget_mail, #hjylWidget .widget_meta{ width:200px; } #hjylWidget .widget_links li, #hjylWidget .widget_categories li{ float: left; width: 45%; } .widget_recent_entries li, .widget_links li, .widget_categories li{ list-style:square; margin-left:15px; color:#DDDDDD; } #hjylWidget .widget{ width:260px; padding:10px; } #hjylWidget .widget_links li, #hjylWidget .widget_categories li{ width:40%; } .widget_archive li, .widget_count li{ float:left; width:48%; } .widget_share > div{ float:left; margin:0 10px; } .twitter_rss{ text-align:center; position:relative; } .twitter_rss span{ font-size:18px; width:16px; height:16px; color:#DDDDDD; margin-left:18px; border-radius:20px; cursor: pointer; } .twitter_rss .qrcodeimg{ display:none; position:absolute; right:10px; top:40px; z-index:10; border:1px solid #DDDDDD; } .twitter_rss .active{ position:relative; } .twitter_rss .active:after{ content:" "; width:15px; height:15px; background:#333436; transform: rotate(135deg); -ms-transform: rotate(135deg); -moz-transform: rotate(135deg); -webkit-transform: rotate(135deg); -o-transform: rotate(135deg); position:absolute; top:22px; right:0; z-index:20; } .twitter_rss span:hover{ color:#227EC0; } /**********commentlist************/ .commentlist li{ position:relative; } .commentlist li.comment div.comment{ border-top:1px dashed rgba(255,255,255,0.3); margin-bottom:30px; } .commentlist li.comment div.comment:hover{ border-top:1px dashed rgba(255,255,255,0.7); } .commentlist li > .comment > .comment-author > .avatar{ position:absolute; right:-30px; top:-20px; border-radius:100px; border:2px solid #000; box-shadow:0px 0px 2px #DDDDDD; } .commentlist li.comment div.comment:hover .comment-author .avatar{ box-shadow:0px 0px 5px #DDDDDD; } .floor{ position:absolute; color:rgba(255,255,255,0.7); } .comment .comment-author .comment_meta{ text-align:right; margin-right:15px; position:relative; top:-21px; } #comment-author-info p, #submit{ margin:10px 0; } #comment-author-info input{ padding:5px 10px; } #comments-title, #pings-title{ margin:20px 0; } #comments-title, #pings-title{ text-align: center; border-bottom: 1px solid rgba(255,255,255,0.3); height: 10px; margin-bottom: 50px; position:relative; } #comments-title:before, #comments-title:after, #pings-title:before, #pings-title:after{ content: ""; border-top: 15px solid rgba(255,255,255,0.3); position: absolute; top: 10px; } #comments-title:before, #pings-title:before{ border-left: 10px dashed transparent; left: -25px; } #comments-title:after, #pings-title:after{ border-right: 10px dashed transparent; right: -30px; } #comments-title span, #pings-title span{ border: 1px solid rgba(255,255,255,0.3); padding: 5px 10px; background: #333436; border-radius: 5px; } #comments-title span:before, #comments-title span:after, #pings-title span:before, #pings-title span:after{ content: ""; border-top: 1px solid rgba(255,255,255,0.3); position: absolute; top: 10px; } #comments-title span:before, #pings-title span:before{ left: -15px; width:15px; } #comments-title span:after, #pings-title span:after{ right: -20px; width:20px; } .comment-form-comment #comment{ width:97.5%; padding:10px; } .comment-form-comment #comment, #comment-author-info input{ font-size:14px; border: 1px solid #CAE1EE; -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.2); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.2); } #reply-title, .comment-welcomeback{ line-height:24px; } #comments-nav{ text-align:right; } #submit { cursor:pointer; padding:10px 25px; font-size: 15px; font-weight:bold; color: #DDDDDD; text-shadow: 0 0 2px rgba(0, 0, 0, 0.7); background: rgba(255, 255, 255, 0.4); border:1px solid #CCC; border-radius:5px; } #submit:hover { background:#227EC0; color:#EBEBEB; } #pinglist > li{ position:relative; margin:10px 0 10px 120px; } .ping_time{ position:absolute; top:0; left:-115px; } .hjylEntry a, .comment-body p a{ border-bottom:1px dotted; } .comment-body p a:first-child{ margin-right: 5px; color:#227EC0; } .comment-body p a:hover{ color:#DDDDDD; border-bottom:1px solid #DDDDDD; } /****footer****/ footer{ margin:20px 0; } #hjylUp{ display:none; } #hjylUp i{ font-size:20px; background:#555555; padding:5px 10px; position:fixed; right:100px; bottom:20px; cursor:pointer; border-radius:5px; } #hjylUp i:hover{ background:#888; } .copyright, .comment .comment-author .comment_meta .comment_time{ font-family: Consolas,Microsoft YaHei,sans-serif,"宋体"; text-align:center; } /*****post_format******/ .status-avatar{ float:left; width:50px; margin-right:20px; } .status-avatar img{ border-radius:70px; border:1px solid #DDDDDD; padding:3px; } .status-avatar img:hover{ box-shadow: 0px 0px 2px #DDDDDD inset; } .status-date{ float:right; width:530px; } .status-footer{ text-align:right; } .nav-previous{ float:left; width:45%; } #nav-single:before, #nav-single:after{ content:' '; clear:both; display:block; } .nav-next{ float:right; width:45%; text-align:right; }