Skip to content

Commit 515d92d

Browse files
rohitrajhansapb7
authored andcommitted
Minor responsive changes (#8)
Minor responsive changes
1 parent 734037d commit 515d92d

File tree

6 files changed

+74
-14
lines changed

6 files changed

+74
-14
lines changed

Diff for: _includes/post.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="posts-wrapper animated fadeInRight">
22
<div class="post">
3-
<h4><a id="post-post-title" href="{{ post.url | prepend: site.baseurl }}"> {{ post.title }} </a>
3+
<h4><a id="post-post-title" href="{{ post.url | prepend: site.baseurl }}"> {{ post.title }} </a> <br>
44
<a href= "{{site.baseurl}}/posts/chronological/" id="post-post-details"><i class="fa fa-clock-o"></i> {{ post.date | date: "%-d %b %Y" }}</a>
5-
<a href= "{{site.baseurl}}/{{post.author}}/" id="post-post-details"> <i class="fa fa-user"></i> {{ post.author }}</a>
5+
<a href= "{{site.baseurl}}/{{post.author}}/" id="post-post-details"> <i class="fa fa-user"></i> {{ post.author }}</a> <br>
66
<a href= "{{site.baseurl}}/posts/categories/" id="post-post-details"><i class="fa fa-tags"></i> {% for tag in post.tags %}{{ tag }} {% unless forloop.last %}, {% endunless %}{% endfor %}</a>
77
</h4>
88
<p> {% if post.desc.size > 0 %}

Diff for: _layouts/post.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<div class="container">
66
<div class="inner-container post-page">
77
<h4 class="heading">{{ page.title }}</h4>
8-
<h5><a href= "{{site.baseurl}}/posts/chronological/"><i class="fa fa-clock-o"></i> {{ page.date | date: "%-d %b %Y" }} </a> | Written by
9-
<a href= "{{site.baseurl}}/{{page.author}}/"><i class="fa fa-user"></i> {{ page.author }}</a>
8+
<h5><a href= "{{site.baseurl}}/posts/chronological/"><i class="fa fa-clock-o"></i> {{ page.date | date: "%-d %b %Y" }} </a> | Written by
9+
<a href= "{{site.baseurl}}/{{page.author}}/"><i class="fa fa-user"></i> {{ page.author }}</a> <br>
1010
<a href= "{{site.baseurl}}/posts/categories/"><i class="fa fa-tags"></i> {% for tag in page.tags %}{{ tag }} {% unless forloop.last %}, {% endunless %}{% endfor %}</a></h5>
1111

1212
{{ content }}

Diff for: index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<div class="content-grid-info">
1313
<div class="post-intro">
14-
<h4><a id="post-title" href="{{ post.url | prepend: site.baseurl }}"> {{ post.title }} </a>
14+
<h4><a id="post-title" href="{{ post.url | prepend: site.baseurl }}"> {{ post.title }} </a> <br>
1515
<a href= "{{site.baseurl}}/posts/chronological/" id="post-details"><i class="fa fa-clock-o"></i> {{ post.date | date: "%-d %b %Y" }}</a>
1616
<a href= "{{site.baseurl}}/{{post.author}}/" id="post-details"> <i class="fa fa-user"></i> {{ post.author }}</a>
1717
<a href= "{{site.baseurl}}/posts/categories/" id="post-details"><i class="fa fa-tags"></i> {% for tag in post.tags %}{{ tag }} {% unless forloop.last %}, {% endunless %}{% endfor %}</a>

Diff for: posts_cat.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="switch">
1212
<h3><a href="{{ site.baseurl }}/posts/chronological/">Chronological</a></h3>
1313
<h2>|</h2>
14-
<h3><a href="{{ site.baseurl }}//posts/categories/" id="categories">Categories</a></h3>
14+
<h3 id="active"><a href="{{ site.baseurl }}//posts/categories/" id="categories">Categories</a></h3>
1515
</div>
1616

1717

Diff for: posts_chro.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="inner-container posts">
99

1010
<div class="switch">
11-
<h3><a href="{{ site.baseurl }}/posts/chronological/" id="chronological">Chronological</a></h3>
11+
<h3 id="active"><a href="{{ site.baseurl }}/posts/chronological/" id="chronological">Chronological</a></h3>
1212
<h2>|</h2>
1313
<h3><a href="{{ site.baseurl }}/posts/categories/">Categories</a></h3>
1414
</div>

Diff for: public/gen.css

+67-7
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,25 @@ i{
104104
}
105105

106106
#post-title{
107-
font-size:1.9em;
107+
font-size:1.5em;
108108
color:#00bcd4;
109109
margin-right:0.7em;
110110
display:inline-block;
111111
text-decoration:none;
112112
text-transform: uppercase;;
113113
font-family: 'Lato', sans-serif;
114114
font-weight:400;
115+
padding-bottom: 0.4em;
115116
}
117+
116118
#post-title:hover{
117119
color: #4a5054;
118120
}
119121
#post-details{
120122
color:#afafaf;
121123
font-family: 'Roboto', sans-serif;
122124
font-size:0.8em;
123-
margin-bottom:1em;
125+
margin-bottom:1.5em;
124126
cursor: default;
125127
}
126128
#post-details:hover{
@@ -227,7 +229,7 @@ i{
227229
color:#333;
228230
text-align: justify;
229231
text-align-last: left;
230-
font-size:1.5em;
232+
font-size:1.4em;
231233
font-weight: 300;
232234
line-height:1.4em;
233235
margin-bottom:1.5em;
@@ -334,7 +336,7 @@ i{
334336
display:inline-block !important;
335337
font-family: 'Lato', sans-serif;
336338
font-weight: 300;
337-
font-size:2em;
339+
font-size:2.2em;
338340
color:#3bcce4;
339341
font-style: italic;
340342
margin: 0.3em 0;
@@ -368,6 +370,7 @@ i{
368370
}
369371

370372

373+
371374
#posts-broad-headings{
372375
/*categories heading i.e. the date and the tags*/
373376
font-size:1.8em;
@@ -436,7 +439,7 @@ i{
436439
color:#555;
437440
font-size:1em;
438441
line-height:1.5em;
439-
margin-top: 0.3em;
442+
margin-top: 1em;
440443
margin-bottom:0.5em;
441444
}
442445

@@ -446,9 +449,9 @@ i{
446449
color:#3f3f3f;
447450
text-align: justify;
448451
text-align-last: left;
449-
font-size:1.3em;
452+
font-size:1.1em;
450453
font-weight: 400;
451-
line-height:1.3em;
454+
line-height:1.8em;
452455
padding: 1.8em 1.8em 2.6em 1.8em;
453456
}
454457

@@ -767,6 +770,12 @@ tbody tr:nth-child(odd) th {
767770
strong, b{
768771
font-weight: 500 !important;
769772
}
773+
774+
775+
#active a{
776+
color: #156775;
777+
font-weight: 800;
778+
}
770779
/*----------------------------*/
771780

772781
@media screen and (max-width: 1130px) {
@@ -830,3 +839,54 @@ strong, b{
830839
padding: 1.8em 0em;
831840
}
832841
}
842+
843+
.post-page ul
844+
{
845+
text-align: left;
846+
}
847+
848+
/*------------------------ MEDIA QUERIES --------------------*/
849+
850+
@media all and ( max-width: 768px )
851+
{
852+
.post-page
853+
{
854+
font-size: 1em;
855+
text-align: left;
856+
}
857+
.heading
858+
{
859+
font-size: 1.8em;
860+
}
861+
#post-details
862+
{
863+
margin-bottom: 1.2em;
864+
}
865+
.switch h3 a{
866+
font-size: 1.5em;
867+
}
868+
.switch h2{
869+
padding: 0;
870+
}
871+
.single-author
872+
{
873+
padding: 0.4em 0.2em;
874+
}
875+
.single-author h4 a{
876+
display: inline;
877+
margin-right: 0.5em;
878+
font: 300 26px/1.8 Lato, sans-serif;
879+
}
880+
.author-intro{
881+
font: 300 18px/1.8 Lato, sans-serif;
882+
padding: 0;
883+
}
884+
/* .single-author h4 a::after{
885+
content: "";
886+
display: block;
887+
}*/
888+
.about-us p{
889+
font-size: 1.2em;
890+
padding: 0.2em;
891+
}
892+
}

0 commit comments

Comments
 (0)