.anilaDefaultHome { background-image: linear-gradient( 5deg, $grey-color-light, lighten($grey-color-light, 10%), $grey-color-light); padding: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, min-content); grid-gap: .5rem; grid-auto-rows: 0; position: relative; overflow-y: hidden; /* hide grid items that overflow */ } .sticky-single { grid-column: 1 / -1; grid-row: 2 / 3; } .sticky-wrapper { border-bottom: 2px solid $primary-color; display: flex; @media only screen and (max-device-width: 599px) { flex-direction: column; } @media only screen and (min-device-width: 600px) and (max-device-width: 999px) { display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(2, min-content); grid-gap: 0.5rem; } .sticky-thumbnail { @media only screen and (min-device-width: 600px) and (max-device-width: 999px) { grid-column: 1 / 5; grid-row: 1 / 2; } flex: 0 0 30%; img { width: 100%; height: auto; } } .sticky-content { flex: 0 0 45%; margin: 0 1rem; display: flex; flex-direction: column; @media only screen and (max-device-width: 599px) { margin: 0 !important; } @media only screen and (min-device-width: 600px) and (max-device-width: 999px) { grid-column: 5 / -1; grid-row: 1 / 2; } &__title { // margin-top: 1rem; text-align: center; text-transform: uppercase; } &__excerpt { @media only screen and (max-device-width: 599px) { margin: 0 !important; } } } .sticky__meta { flex: 1; display: flex; flex-direction: column; padding: .5rem; @media only screen and (max-device-width: 599px) { text-align: center; justify-content: center; } @media only screen and (min-device-width: 600px) and (max-device-width: 999px) { grid-column: 1 / -1; grid-row: 2 / -1; flex-direction: row; justify-content: center; } & > * { margin-bottom: 0.5rem; @media only screen and (min-device-width: 600px) and (max-device-width: 999px) { padding: 0.5rem; text-align: center; } } .sticky-rm { margin-top: .5rem; @media only screen and (max-device-width: 599px) { display: none; } @media only screen and (min-device-width: 600px) and (max-device-width: 999px) { margin-top: 0 !important; } a { padding: .5rem; background-color: $primary-color-dark; transition: all 0.3s ease-in-out; color: white; &:hover { background-color: $primary-color; transition: all 0.3s ease-in-out; color: white; } @media only screen and (min-device-width: 600px) and (max-device-width: 999px) { padding: .5rem; transition: all 0.3s ease-in-out; background-color: transparent; color: $primary-color; } } } } .sticky-rm-for-mobile { @media only screen and (min-device-width: 600px) { display: none; } @media only screen and (max-device-width: 599px) { justify-content: center; text-align: center; margin: 0 !important; a { padding: .5rem; display: block; background-color: $primary-color-dark; color: white; transition: all 0.3s ease-in-out; &:hover { background-color: $primary-color; transition: all 0.3s ease-in-out; } } } } } .block-heading { padding: 0 1rem; grid-column: 1 / -1; grid-row: 1 / 2; h2 { float: left; margin-right: 1rem; text-transform: uppercase; @media only screen and (max-device-width: 599px) { text-align: center; margin-right: 0; float: none; line-height: 1; margin: 0 !important; } } } .strip { background-image: url(images/stripe.jpg); height: 12px; overflow: hidden; margin-top: .5rem; } @media only screen and (max-device-width: 599px) { .strip { display: none; } } .block-heading-recent { grid-column: 1 / -1; grid-row: 3 / 4; h2 { float: left; margin-right: 1rem; text-transform: uppercase; @media only screen and (max-device-width: 599px) { text-align: center; margin-right: 0; float: none; line-height: 1; margin: 0 !important; } } } .anilaRecentPost { grid-column: 1 / -1; grid-row: 4 / 5; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); grid-gap: 1.5rem; @media only screen and (max-device-width: 599px) { grid-template-columns: repeat(1, 1fr); grid-template-rows: repeat(9, min-content); grid-gap: 1rem; } @media only screen and (min-device-width: 600px) and (max-device-width: 1024px) { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, min-content); grid-gap: 3rem; } } .anilaPagination { grid-column: 1 / -1; grid-row: 5 / 6; align-content: center; } .post-navigation { background-color: $primary-color-dark; display: flex; justify-content: center; align-items: center; padding: .5rem 0; } .text-center { text-align: center; line-height: 300%; a { background-color: $primary-color-dark; color: white; padding: 0.5rem 1rem; margin-top: 1.2rem; margin-right: 0.2rem; margin-bottom: 3rem; &:hover { background-color: $primary-color; transition: .3s ease-in-out; } } } .nav-links { @media only screen and (max-device-width: 559px) { margin-bottom: 1rem; } a { background-color: $primary-color; color: white; padding: 0.5rem 1rem; margin-top: 1.2rem; margin-right: 1rem; @media only screen and (max-device-width: 599px) { padding: 0.25rem 0.5rem; margin: 0 0.5rem 0 0; } &:hover{ background-color: $grey-color-light; color: $font-color; transition: .3s ease-in-out; } } } .pagination { padding: 1rem; @media only screen and (max-device-width: 599px) { padding: 0; } } .page-numbers { margin-right: 1rem; } .current { color: $primary-color; background-color: white; padding: 0.5rem 1rem; margin-top: 1.2rem; margin-right: 1rem; } .front-page-advt { grid-column: 1 / -1; grid-row: 6 / 7; background-color: $primary-color; justify-content: center; align-items: center; padding: 1.3rem 0 1rem 0; display: flex; li { list-style: none; } } .anilaDefaultHome-post { h2 { line-height: 1.2; margin-bottom: 0 !important; text-shadow: 2px 2px 2px white; font-weight: 700; a { color: #2b2b2b; margin-bottom: 0; } } position: relative; text-align: center; margin: 0 auto; overflow: hidden; display: flex; justify-content: center; align-items: center; @media only screen and (max-device-width: 999px) { font-size: 80%; margin-bottom: 0 !important; padding: 0; } &__thumbnail img { width: 100%; height: auto; transition: 1.5s all ease-in-out; } .wrapper { position: absolute; bottom: 0; padding: 1rem 2.5rem; transition: 1s all ease-in-out; background-image: linear-gradient(to left, transparent, white, transparent); @media only screen and (max-device-width: 599px) { padding: 0; } .anilaDefaultHome-post__title { padding: .3rem; } .anilaDefaultHome-post__meta { display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 90%; @media only screen and (min-device-width: 600px) and (max-device-width: 1075px) { font-size: 80%; } .rest-author { margin-right: 5px; } .rest-date { margin-left: 5px; } } } &__cat { position: absolute; display: inline-block; top: 0; left: 0; margin: 1rem; a { background-color: $primary-color-dark; padding: 0.5rem 1rem; color: white; &:hover { background-color: $primary-color; font-weight: 600; transition: 1s all ease-in-out; } } } &__excerpt { position: absolute; padding: .5rem; bottom: -100%; transition: 1s all ease-in-out; background-image: linear-gradient(to left, transparent, white, transparent); color: black; font-weight: 600; @media only screen and (max-device-width: 599px) { p { line-height: 1.2; margin-bottom: .5rem !important; } } } &__content { text-align: justify; a { color: $font-color; } } &__link { text-align: center; a { background-color: $primary-color-dark; padding: 0; color: white; text-align: center; padding: 1rem 2rem; transition: all 0.3s ease-in-out; &:hover { background-color: $primary-color; color: white; transition: all 0.3s ease-in-out; } } } &__rm { margin: 1rem 0 .5rem 0; @media only screen and (max-device-width: 599px) { margin: 0; } a { background-color: $primary-color-dark; padding: 0.5rem 1rem; color: white; @media only screen and (max-device-width: 599px) { text-align: center; display: block; margin-bottom: 0; padding: .3rem; } &:hover { background-color: $primary-color; transition: 1s all ease-in-out; } } } } .anilaDefaultHome-post:hover .anilaDefaultHome-post__thumbnail img { transform: scale(1.2); transition: 1.5s all ease-in-out; } .anilaDefaultHome-post:hover .wrapper { bottom: -100%; transition: 1s all ease-in-out; } .anilaDefaultHome-post:hover .anilaDefaultHome-post__cat { transition: 1s all ease-in-out; } .anilaDefaultHome-post:hover .anilaDefaultHome-post__excerpt { bottom: 0; transition: 1s all ease-in-out; } .big-thumbnail-wrapper { &__thumbnail img { width: 100%; height: auto; } &__title { margin-left: 1rem; } &__meta { display: flex; margin-left: 1rem; & > * { margin: 0 .5rem; } } &__excerpt { margin-left: 1rem; } &__rm { margin-left: 1rem; a { padding: .5rem; background-color: $primary-color-dark; color: white; transition: all 0.3s ease-in-out; &:hover { background-color: $primary-color; transition: all 0.3s ease-in-out; } } } } .margin-bottom-20 { margin-bottom: 1rem; } .category-box { display: grid; grid-template-columns: repeat(2, 1fr); .category-1, .category-2 { display: grid; grid-template-rows: min-content min-content; grid-gap: 1rem; padding: 1rem; box-shadow: 0 0 2px rgba($font-color, 0.6); .big-thumbnail-post { } .small-thumbnail-post { display: flex; flex-direction: column; .small-post-wrapper { display: flex; box-shadow: 0 0 8px rgba($font-color, 0.6); margin: .5rem auto; &__thumbnail { flex: 0 0 30%; padding: 0.5rem; img { width: 100%; height: auto; } } .small-post-content-wrapper { flex: 1; margin-left: 1rem; &__title { padding: 0.5rem 0 0 0; } &__meta { display: flex; & > * { margin: 0 0.5rem; } } &__rm { a { background-color: $primary-color-dark; padding: 0.2rem .6rem; color: white; &:hover { background-color: $primary-color; transition: 1s all ease-in-out; } } } } } } } }