Instantly share code, notes, and snippets.
Last active
October 8, 2016 16:25
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save developer88/d59e2fa7bf973ba308a8 to your computer and use it in GitHub Desktop.
Contextual Related Posts [WP] style for onceingermany.ru and code.aeremin.ru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.crp_related { | |
clear: both; | |
margin: 10px 0; | |
} | |
.crp_related h3 { | |
margin: 0 !important; | |
} | |
.crp_related ul { | |
list-style: none; | |
float: left; | |
margin: 0 !important; | |
padding: 0 !important; | |
} | |
.crp_related li, .crp_related a { | |
float: left; | |
overflow: hidden; | |
position: relative; | |
text-align: center; | |
width:220px; | |
} | |
.crp_related li { | |
margin: 5px !important; | |
/*border: 1px solid #ddd;*/ | |
padding: 6px; | |
float: left; | |
width:230px; | |
height: 230px; | |
overflow: hidden; | |
} | |
.crp_related li:hover { | |
/*background: #eee;*/ | |
border-color: #bbb; | |
} | |
/*.crp_related a { | |
width: 150px; | |
height: 150px; | |
text-decoration: none; | |
}*/ | |
.crp_related a:hover { | |
text-decoration: none; | |
} | |
/*.crp_related img { | |
max-width: 150px; | |
margin: auto; | |
}*/ | |
.crp_related .crp_title { | |
position: absolute; | |
min-height: 50px; | |
bottom: 0px; | |
left: 0px; | |
padding: 3px; | |
width: 220px; | |
margin-left: 0px; | |
color: #fff; | |
font-size: .9em; | |
text-shadow: 1000 .1em .1em .2em; | |
/*background: rgb(0.5, 0.5, 0.5);*/ | |
background: rgba(226, 174, 105, 0.82); | |
font-weight: bold; | |
} | |
/*.crp_related li:hover .crp_title { | |
background: rgb(0.2, 0.2, 0.2); | |
background: rgba(0, 0, 0, 0.8); | |
}*/ | |
.crp_related .crp_thumb, .crp_related li, .crp_related .crp_title { | |
vertical-align: bottom; | |
} | |
.img.crp_thumb.crp_featured { | |
max-width: 230px; | |
max-height: 230px; | |
} | |
.crp_clear { | |
clear: both; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.crp_related { | |
clear: both; | |
margin: 10px 0; | |
} | |
.crp_related h3 { | |
margin: 0 !important; | |
} | |
.crp_related ul { | |
list-style: none; | |
float: left; | |
margin: 0 !important; | |
padding: 0 !important; | |
} | |
.crp_related li, .crp_related a { | |
float: left; | |
overflow: hidden; | |
position: relative; | |
text-align: center; | |
width:220px; | |
} | |
.crp_related li { | |
margin: 5px !important; | |
/*border: 1px solid #ddd;*/ | |
padding: 6px; | |
float: left; | |
width:230px; | |
height: 230px; | |
overflow: hidden; | |
} | |
.crp_related li:hover { | |
/*background: #eee;*/ | |
border-color: #bbb; | |
} | |
/*.crp_related a { | |
width: 150px; | |
height: 150px; | |
text-decoration: none; | |
}*/ | |
.crp_related a:hover { | |
text-decoration: none; | |
} | |
/*.crp_related img { | |
max-width: 150px; | |
margin: auto; | |
}*/ | |
.crp_related .crp_title { | |
position: absolute; | |
min-height: 50px; | |
bottom: 15px; | |
left: 0px; | |
padding: 3px; | |
width: 220px; | |
margin-left: 0px; | |
color: #fff; | |
font-size: .9em; | |
text-shadow: 1000 .1em .1em .2em; | |
background: rgb(0.5, 0.5, 0.5); | |
background: rgba(239, 153, 127, 0.6); | |
font-weight: bold; | |
} | |
/*.crp_related li:hover .crp_title { | |
background: rgb(0.2, 0.2, 0.2); | |
background: rgba(0, 0, 0, 0.8); | |
}*/ | |
.crp_related .crp_thumb, .crp_related li, .crp_related .crp_title { | |
vertical-align: bottom; | |
} | |
.img.crp_thumb.crp_featured { | |
max-width: 230px; | |
max-height: 230px; | |
} | |
.crp_clear { | |
clear: both; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment