Skip to content

Commit a0b2cce

Browse files
committed
css: rearrange some of the file and add a few styles from before bootstrap upgrade; fixes daattali#716
1 parent 8d08166 commit a0b2cce

File tree

1 file changed

+84
-48
lines changed

1 file changed

+84
-48
lines changed

assets/css/beautifuljekyll.css

Lines changed: 84 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ img {
108108
max-width: 100%;
109109
}
110110

111+
.linked-section {
112+
padding-top: 3.75rem;
113+
margin-top: -1.5625rem;
114+
}
115+
116+
/* Comments */
117+
111118
.disqus-comments {
112119
margin-top: 1.875rem;
113120
}
@@ -118,11 +125,6 @@ img {
118125
}
119126
}
120127

121-
.linked-section {
122-
padding-top: 3.75rem;
123-
margin-top: -1.5625rem;
124-
}
125-
126128
/* --- Navbar --- */
127129

128130
.navbar-custom {
@@ -428,7 +430,7 @@ footer .footer-custom-content {
428430
}
429431
}
430432

431-
/* --- Post preview --- */
433+
/* --- Post preview (feed) --- */
432434

433435
.post-preview {
434436
padding: 1.25rem 0;
@@ -474,53 +476,53 @@ footer .footer-custom-content {
474476
margin: 0 0 0.625rem;
475477
font-family: 'Lora', 'Times New Roman', serif;
476478
}
477-
.post-entry {
479+
.post-preview .post-entry {
478480
width: 100%;
479481
}
480-
.post-image {
482+
.post-preview .post-image {
481483
float: right;
482484
margin-left: 0.625rem;
483485
height: 12rem;
484486
width: 12rem;
485487
}
486-
.post-image {
488+
.post-preview .post-image {
487489
filter: grayscale(90%);
488490
}
489-
.post-image:hover {
491+
.post-preview .post-image:hover {
490492
filter: grayscale(0%);
491493
}
492-
.post-image img {
494+
.post-preview .post-image img {
493495
border-radius: 6rem;
494496
height: 100%;
495497
width: 100%;
496498
}
497-
.post-image-short {
499+
.post-preview .post-image-short {
498500
margin-top: -2.1875rem;
499501
}
500502
@media (max-width: 767px) {
501-
.post-image {
503+
.post-preview .post-image {
502504
height: 9rem;
503505
width: 9rem;
504506
}
505-
.post-image-short {
507+
.post-preview .post-image-short {
506508
margin-top: 0;
507509
}
508510
}
509-
.post-image-small {
511+
.post-preview .post-image-small {
510512
width: 100%;
511513
height: 100%;
512514
text-align: center;
513515
display: none;
514516
}
515-
.post-image-small img {
517+
.post-preview .post-image-small img {
516518
width: 6.25rem;
517519
height: 6.25rem;
518520
}
519521
@media (max-width: 500px) {
520-
.post-image {
522+
.post-preview .post-image {
521523
display: none;
522524
}
523-
.post-image-small {
525+
.post-preview .post-image-small {
524526
display: block;
525527
}
526528
}
@@ -567,6 +569,30 @@ footer .footer-custom-content {
567569
}
568570
}
569571

572+
/* Tags page */
573+
574+
.tag-btn {
575+
margin: 0.3125rem;
576+
}
577+
578+
#full-tags-list {
579+
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
580+
}
581+
582+
#full-tags-list .tag-entry {
583+
margin: 0 0 0.9375rem 1.5625rem;
584+
}
585+
586+
#full-tags-list .tag-entry a {
587+
font-size: 1.25rem;
588+
}
589+
590+
#full-tags-list .tag-entry .entry-date {
591+
color: #808080;
592+
font-style: italic;
593+
font-size: 1rem;
594+
}
595+
570596
/* --- Post and page headers --- */
571597

572598
.intro-header {
@@ -709,17 +735,6 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
709735
}
710736
}
711737

712-
.caption {
713-
text-align: center;
714-
font-size: 0.875rem;
715-
padding: 0.625rem;
716-
font-style: italic;
717-
margin: 0;
718-
display: block;
719-
border-bottom-right-radius: 0.3125rem;
720-
border-bottom-left-radius: 0.3125rem;
721-
}
722-
723738
#header-gh-btns {
724739
margin-bottom: 0.9375rem;
725740
}
@@ -882,6 +897,16 @@ pre {
882897
background: none;
883898
}
884899

900+
/* Fix table border github gist snippets */
901+
902+
.gist, .gist-file table tr {
903+
border: unset;
904+
}
905+
906+
.gist, .gist-file table tr td {
907+
border: unset;
908+
}
909+
885910
/* --- Social media sharing section --- */
886911

887912
#social-share-section {
@@ -918,36 +943,47 @@ pre {
918943
border-left-color: #3CB371;
919944
}
920945

921-
/* Fix table border github gist snippets */
946+
/* --- Misc blog post styles --- */
922947

923-
.gist, .gist-file table tr {
924-
border: unset;
948+
.blog-post :first-child {
949+
margin-top: 0;
925950
}
926951

927-
.gist, .gist-file table tr td {
928-
border: unset;
952+
.blog-post img {
953+
max-width: 100%;
929954
}
930955

931-
/* Tags page */
932-
933-
.tag-btn {
934-
margin: 0.3125rem;
956+
.blog-post .caption {
957+
text-align: center;
958+
font-size: 0.875rem;
959+
padding: 0.625rem;
960+
font-style: italic;
961+
color: #777;
962+
margin: 0;
963+
display: block;
964+
border-bottom-right-radius: 0.3125rem;
965+
border-bottom-left-radius: 0.3125rem;
935966
}
936967

937-
#full-tags-list {
938-
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
968+
.blog-post hr {
969+
max-width: 25%;
970+
border-width: 0.25rem;
971+
border-radius: 0.1875rem;
972+
border-color: #808080;
939973
}
940974

941-
#full-tags-list .tag-entry {
942-
margin: 0 0 0.9375rem 1.5625rem;
975+
.blog-post blockquote {
976+
padding: 0.625rem 1.25rem;
977+
margin: 0 0 1.25rem;
978+
font-size: 1.1rem;
979+
border-left: 0.3125rem solid #eee;
943980
}
944981

945-
#full-tags-list .tag-entry a {
946-
font-size: 1.25rem;
982+
.blog-post blockquote p:last-child {
983+
margin-bottom: 0;
947984
}
948985

949-
#full-tags-list .tag-entry .entry-date {
950-
color: #808080;
951-
font-style: italic;
952-
font-size: 1rem;
986+
.center {
987+
display: block;
988+
margin: 0 auto;
953989
}

0 commit comments

Comments
 (0)