Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .home-top {
- overflow: hidden;
- padding-top: 4rem;
- padding-bottom: 0px;
- }
- .home-top .featured-content {
- position: relative;
- }
- .home-top .featured-content .widget-title {
- text-align: center;
- margin-bottom: 4rem;
- }
- .home-top .featured-content article.has-post-thumbnail {
- position: relative;
- padding: 0;
- border: 0;
- overflow: hidden;
- }
- .home-top .featured-content article.has-post-thumbnail > a {
- width: 100%;
- height: auto;
- overflow: hidden;
- display: block;
- margin: 0;
- }
- .home-top .featured-content article.has-post-thumbnail > a img {
- display: block;
- margin: 0;
- opacity: 1;
- width: 100%;
- -webkit-transition: opacity .2s cubic-bezier(0,1,.75,1), transform 2.5s cubic-bezier(0,1,.75,1);
- -moz-transition: opacity .2s cubic-bezier(0,1,.75,1), transform 2.5s cubic-bezier(0,1,.75,1);
- -ms-transition: opacity .2s cubic-bezier(0,1,.75,1), transform 2.5s cubic-bezier(0,1,.75,1);
- -o-transition: opacity .2s cubic-bezier(0,1,.75,1), transform 2.5s cubic-bezier(0,1,.75,1);
- transition: opacity .2s cubic-bezier(0,1,.75,1), transform 2.5s cubic-bezier(0,1,.75,1);
- }
- .home-top .featured-content article.has-post-thumbnail:hover > a img {
- transform: scale(1.1);
- }
- .home-top .featured-content article.has-post-thumbnail .entry-title {
- width: 100%;
- }
- .home-top .featured-content article.has-post-thumbnail .entry-title a {
- text-decoration: none;
- }
- @media only screen and (max-width: 800px) {
- .home-top .featured-content.featuredpost {
- width: calc(100% + 2rem);
- margin-left: -1rem;
- margin-right: -1rem;
- }
- .home-top .featured-content.featuredpost article.has-post-thumbnail {
- width: calc(50% - 2rem);
- margin: 1rem;
- float: left;
- }
- .home-top .featured-content article.has-post-thumbnail .entry-title {
- margin: 1rem 0;
- }
- .home-top .featured-content article.has-post-thumbnail {
- margin-bottom: 0;
- }
- }
- @media only screen and (min-width: 800px) {
- .home-top .featured-content article.has-post-thumbnail:hover > a img {
- opacity: .15;
- }
- .home-top .featured-content article.has-post-thumbnail .entry-header {
- position: absolute;
- left: 0;
- right: 0;
- z-index: 3;
- -webkit-transition: opacity .2s cubic-bezier(0,1,.75,1), bottom .2s cubic-bezier(0,1,.75,1);
- -moz-transition: opacity .2s cubic-bezier(0,1,.75,1), bottom .2s cubic-bezier(0,1,.75,1);
- -ms-transition: opacity .2s cubic-bezier(0,1,.75,1), bottom .2s cubic-bezier(0,1,.75,1);
- -o-transition: opacity .2s cubic-bezier(0,1,.75,1), bottom .2s cubic-bezier(0,1,.75,1);
- transition: opacity .2s cubic-bezier(0,1,.75,1), bottom .2s cubic-bezier(0,1,.75,1);
- opacity: 0;
- bottom: -15%;
- text-align: left;
- }
- .home-top .featured-content article.has-post-thumbnail:hover .entry-header {
- opacity: 1;
- bottom: 0;
- }
- .home-top .featured-content article.has-post-thumbnail .entry-title {
- margin: 0;
- }
- .home-top .featured-content article.has-post-thumbnail .entry-header a {
- padding: 0 15% 4rem;
- margin: 0;
- width: 100%;
- display: block;
- }
- }
- .home-top .entry {
- width: 31.6239%;
- float: left;
- margin-left: 2.5641%;
- }
- .home-top .entry:nth-of-type(3n+1){
- margin-left: 0;
- }
- .home-top .entry .entry-title {
- font-size: 16px;
- text-align: center;
- }
- @media only screen and (max-width: 860px) {
- .home-top .entry {
- width: 100%;
- float: none;
- margin: auto;
- }
- .home-top {
- margin-bottom: 40px;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement