Skip to content

Instantly share code, notes, and snippets.

@webhasan
Created April 13, 2017 04:19
Show Gist options
  • Save webhasan/f9ef68a398d16d0d8fc486bfb6956441 to your computer and use it in GitHub Desktop.
Save webhasan/f9ef68a398d16d0d8fc486bfb6956441 to your computer and use it in GitHub Desktop.
WordPress Common Style
.pagination {
text-align: center;
display: block;
}
.pagination ul {
display: inline-block;
padding: 0;
}
.pagination ul li {
display: inline-block;
width: 49px;
height: 49px;
line-height: 49px;
margin: 0 10px;
}
.pagination ul li span.current {
display: block;
width: 49px;
height: 49px;
text-align: center;
line-height: 49px;
background-color: rgb(46, 152, 222);
border-radius: 50%;
color: #fff;
font-size: 23px;
}
.pagination ul li a {
display: block;
width: 100%;
height: 100%;
background-color: #f6fafb;
border-radius: 50%;
width: 49px;
height: 49px;
font-size: 23px;
color: #bababa;
border: 1px solid #f6fafb;
}
.pagination ul li a:hover {
text-decoration: none;
}
.pagination ul li a.next {
margin-left: 30px;
position: relative;
display: block;
width: 100%;
height: 100%;
text-indent: -9999px;
background-image: url('../images/angle-right.png');
background-repeat: no-repeat;
background-position: center center;
right: -30px;
}
.pagination ul li a.prev {
margin-right: 30px;
position: relative;
text-indent: -9999px;
background-image: url('../images/angle-left.png');
background-repeat: no-repeat;
background-position: center center;
left: -30px;
}
.pagination ul li {
float: left;
list-style: none;
}
/* WordPress Image Aliment */
.alignnone {
margin: 5px 20px 20px 0;
}
.aligncenter {
display: block;
margin: 5px auto 30px auto;
}
.alignright {
float:right;
margin: 5px 0 20px 20px;
}
.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
.wp-caption {
background: #fff;
border: 1px solid #f0f0f0;
max-width: 96%;
padding-top: 4px;
text-align: center;
}
.wp-caption p {
margin-bottom: 0 !important;
padding-top: 2px;
padding-bottom: 2px;
font-size: 14px;
}
.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-text {
margin-bottom: 0;
font-size: 14px;
}
@media only screen and (max-width : 480px) {
.alignright,
.alignleft {
float: none !important;
margin-left: 0 !important;
margin-right: 0 !important;
}
}
body.admin-bar #header,
body.admin-bar .sidr {
top: 46px;
}
@media screen and (min-width: 783px) {
body.admin-bar #header,
body.admin-bar .sidr {
top: 32px;
}
}
@media screen and (max-width: 600px) {
#wpadminbar {
position: fixed;
}
}
/*Style for post comment*/
.comments-area {
margin-top: 3em;
}
.comments-area > h3 {
font-size: 18px;
}
#comments {
font-size: 22px;
font-weight: 500;
color:#333;
}
.nocomments {
display: none;
}
.commentlist {
margin-top: 4em;
}
.commentlist ul li,
.commentlist ul ol {
padding-left: 1.5em;
border-left: 1px dotted #d7d7d7;
margin-left: 1.5em;
list-style: none !important;
}
.commentlist li li,
.commentlist li li {
margin-left: 30px !important;
}
.commentslist,
.commentslist li,
.commentslist li ol {
list-style: none;
}
.commentslist {
padding-left: 0;
margin-left: 0;
}
.children {
margin-left: 20px;
}
.comment-body {
background: white;
border: 1px solid #d7d7d7;
padding: 1.5em 3em;
margin-bottom: 1.5em;
position: relative;
}
.comment-author {
border-bottom: 1px solid #e9e9e9;
margin-bottom: 1.5em;
font-size: 12px !important;
overflow: hidden;
clear: both;
}
.comment-author cite .fn {
font-size: 16px;
font-weight: bold;
}
.fn a,
.fn {
font-weight: 500;
}
.vcard img.avatar {
width: 60px;
height: 60px;
max-width: 100%;
box-shadow: 0 0 2px #d7d7d7;
display: inline-block;
margin-bottom: 1.5em;
float: left;
margin-right: 1.5em;
}
.comment-meta a {
color: #c9c9c9;
padding-left: 10px;
}
#respond h3 {
margin-bottom: 0px;
font-weight: 500;
clear: both;
}
#respond h3 a,
#cancel-comment-reply a {
-webkit-transition: all .5s;
transition: all .5s;
}
#respond h3 a:hover,
#cancel-comment-reply a:hover {
color: #2b3039;
}
#navigation {
margin-top: 3em;
}
/*comment form style*/
#respond form {
margin-top: 20px;
}
#respond form input[type=text],
#respond form input[type=url],
#respond form input[type=email]{
width: 50%;
background: #fff;
border: 1px solid rgb(212, 212, 212);
padding: 12px 25px;
font-size: 18px;
letter-spacing: 0;
display: block;
}
#respond form textarea {
background: #fff;
border: 1px solid rgb(212, 212, 212);
width: 100%;
padding: 12px 25px;
font-size: 18px;
letter-spacing: 0;
display: block;
height: 170px;
}
#respond form input[type=text]:focus,
#respond form input[type=url]:focus,
#respond form input[type=email]:focus,
#respond form textarea:focus {
border-color: gray;
}
.says {
display: none;
}
.bypostauthor .fn:before {
content: 'admin';
margin-right: 3px;
background-color: rgb(46, 152, 222);
padding: 3px;
font-size: 10px;
border-radius: 3px;
color: white;
position: relative;
top: -3px;
}
.fn {
font-size: 18px;
text-transform: uppercase;
display: inline-block;
color: rgba(0, 0, 0, 0.6);
font-weight: 500;
}
.comment-meta {
position: absolute;
top: 54px;
left: 115px;
padding-right: 5px;
}
#respond form input[type="submit"] {
width: 200px;
background-color: rgb(46, 152, 222);
height: 60px;
border: none;
color: #fff;
font-weight: 500;
letter-spacing: .05em;
transition: all .3s;
}
#respond form input[type="submit"]:hover {
background-color: rgb(21, 130, 202);
}
.comment-wrapper {
margin-top: 80px;
}
.commentlist {
padding-left: 0;
}
/*responsive comment css*/
@media only screen and (max-width: 479px) {
.comment-body:before {
content: '';
}
.commentlist ul li,
.commentlist ul ol {
padding-left: 0;
border-left: none;
margin-left: 0;
list-style: none;
}
#respond form textarea {
width: 100%;
}
.bypostauthor .fn:before {
content: 'admin';
padding: 1px;
font-size: 8px;
border-radius: 3px;
color: white;
position: relative;
top: -2px;
}
.fn {
font-size: 10px;
margin-top: 10px;
text-transform: uppercase;
display: inline-block;
}
.vcard img.avatar {
margin-right: 7px;
}
.comment-meta {
position: absolute;
top: 54px;
left: 110px;
}
#respond form input[type=text],
#respond form input[type=url],
#respond form input[type=email] {
width: 100%;
}
.fn {
margin-top: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment