123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389 |
- body.kind-page {
- background-color: get-light-color('bg-secondary');
- position: relative;
- .wrapper {
- display: flex;
- padding: 0;
- margin: 0;
- width: 100%;
- justify-content: space-between;
- position: relative;
- .content-section {
- flex: 60%;
- max-width: 60%;
- order: 2;
- padding: 0;
- position: relative;
- padding-left: 1rem;
- padding-right: 1rem;
- .content {
- padding-top: 1.5rem;
- .read-area {
- background-color: get-light-color('bg-primary');
- .hero-area {
- margin-top: 3rem;
- width: 100%;
- height: 400px;
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- }
- .page-content {
- width: 100%;
- position: relative;
- top: -4.5rem;
- padding: 15px;
- .author-profile {
- position: relative;
- align-content: center;
- text-align: center;
- .author-name {
- margin-top: 0px;
- }
- p {
- text-align: center;
- }
- img {
- height: 120px;
- width: 120px;
- margin-left: auto;
- margin-right: auto;
- -o-object-fit: cover;
- object-fit: cover;
- background-color: get-light-color('bg-primary');
- padding: 5px;
- }
- }
- .title {
- text-align: center;
- }
- .tags {
- text-align: center;
- }
- .post-content {
- padding: 15px;
- h1,
- h2 {
- margin-top: 1.4rem;
- }
- h3,
- h4,
- h5,
- h6 {
- margin-top: 1.3rem;
- }
- }
- .next-prev-navigator {
- padding-left: 1rem !important;
- padding-right: 1rem !important;
- .next-article {
- text-align: right;
- }
- .next-prev-text {
- white-space: break-spaces;
- }
- a {
- text-decoration: none !important;
- }
- }
- }
- }
- }
- }
- .toc-section {
- flex: 20%;
- order: 3;
- max-width: 20%;
- @include transition();
- .toc-holder {
- position: sticky;
- top: 4.5rem;
- padding-top: 1rem;
- overflow-x: hidden;
- overflow-y: auto;
- background-color: get-light-color('bg-primary');
- margin-right: 0.5rem;
- @include transition();
- .toc {
- position: relative;
- padding-top: 0px;
- @include transition();
- nav {
- padding-top: 0px;
- margin-top: 0px;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- @include transition();
- ul {
- list-style: none;
- padding-left: 0.5rem;
- margin-bottom: 0rem;
- width: 100%;
- }
- .nav-link {
- padding: 0;
- padding-left: 0.5rem;
- text-decoration: none !important;
- @include transition();
- color: get-light-color('text-color');
- &:hover,
- &:focus,
- &.active {
- padding-left: 1rem;
- padding-right: 0.5rem;
- background-color: get-light-color('accent-color');
- color: get-light-color('text-over-accent-color');
- @include transition();
- }
- }
- }
- }
- }
- }
- .disquss {
- padding: 10px;
- }
- .share-buttons {
- @include brand-background();
- .btn {
- border: none !important;
- }
- }
- }
- .btn-improve-page {
- text-align: right;
- }
- #scroll-to-top {
- position: fixed;
- border: none;
- bottom: 0rem;
- right: 1rem;
- color: get-light-color('accent-color');
- font-size: 24pt;
- z-index: 900000;
- visibility: hidden;
- &:hover {
- color: get-light-color('hover-over-accent-color');
- }
- &.show {
- visibility: visible;
- }
- i {
- box-shadow: $box-shadow;
- background-color: get-light-color('bg-primary');
- border-radius: 50%;
- }
- }
- @include media('<=ultra-large') {
- .content-section {
- flex: 65%;
- max-width: 65%;
- }
- .content-section .container {
- max-width: 100%;
- }
- }
- @include media('<very-large') {
- .container {
- max-width: 100%;
- }
- .wrapper {
- padding-left: 0px;
- padding-right: 0px;
- .content-section {
- padding: 0;
- flex: 60%;
- max-width: 100%;
- order: 2;
- overflow: hidden;
- .content {
- overflow: hidden;
- .read-area {
- .hero-area {
- height: 300px;
- margin-top: 1rem;
- }
- .page-content {
- padding: 0px;
- }
- }
- }
- }
- .toc-section {
- display: none;
- }
- .share-buttons {
- max-width: 48%;
- }
- .btn-improve-page {
- margin-right: 1rem;
- max-width: 48%;
- }
- #disqus_thread,
- .dsq-brlink {
- padding: 5px;
- }
- }
- }
- @include media('<=small') {
- .wrapper {
- padding: 0px;
- display: flex;
- flex-direction: column;
- .content-section {
- padding: 0;
- flex: 100%;
- max-width: 100%;
- order: 3;
- .content {
- .read-area {
- .hero-area {
- height: 200px;
- margin-top: 1rem;
- }
- .page-content {
- padding: 0px;
- .next-prev-navigator {
- .previous-article {
- text-align: center;
- margin: 5px;
- a {
- width: 100%;
- }
- }
- .next-article {
- text-align: center;
- margin: 5px;
- a {
- width: 100%;
- }
- }
- }
- }
- }
- }
- }
- .share-buttons {
- max-width: 100%;
- }
- .btn-improve-page {
- text-align: start;
- max-width: 100%;
- }
- #scroll-to-top {
- right: 0.5rem;
- }
- #disqus_thread,
- .dsq-brlink {
- padding: 5px;
- }
- }
- }
- }
- html[data-theme='dark'] {
- body.kind-page {
- background-color: get-dark-color('bg-secondary');
- .wrapper {
- .content-section {
- .content {
- .read-area {
- background-color: get-dark-color('bg-primary');
- .page-content {
- .author-profile {
- img {
- background-color: get-dark-color('bg-primary');
- }
- }
- }
- }
- }
- }
- .toc-section {
- .toc-holder {
- background-color: get-dark-color('bg-primary');
- hr {
- background-color: get-dark-color('muted-text-color');
- }
- .toc {
- nav {
- .nav-link {
- color: get-dark-color('text-color');
- &:hover,
- &:focus,
- &.active {
- background-color: get-dark-color('accent-color');
- color: get-dark-color('text-over-accent-color');
- }
- }
- }
- }
- }
- }
- #scroll-to-top {
- color: get-dark-color('accent-color');
- &:hover {
- color: get-dark-color('hover-over-accent-color');
- }
- i {
- background-color: get-dark-color('bg-primary');
- }
- }
- }
- }
- }
|