Skip to content

Commit e15946b

Browse files
committed
pixel perfect
1 parent 7d74742 commit e15946b

File tree

3 files changed

+58
-35
lines changed

3 files changed

+58
-35
lines changed

css/app-custom.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,12 @@ code .comment {
932932
.app-logo
933933
{
934934
width: 125px;
935-
margin-left: 30px;
935+
margin-left: -30px;
936+
}
937+
938+
.fa-2x
939+
{
940+
font-size: 2.15em !important;
936941
}
937942

938943
/* ==========================================================================
@@ -954,12 +959,13 @@ code .comment {
954959
#heading-social
955960
{
956961
width: 100%;
962+
margin-top: 47px;
957963
}
958964

959965
.app-logo
960966
{
961967
width: 134px;
962968
height: 105px;
963-
margin-left: 0px;
969+
margin-left: -20px;
964970
}
965971
}

css/main.css

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,52 +70,62 @@ p
7070
text-align: center;
7171
}
7272

73-
#header
73+
#heading
7474
{
7575
background-color: #29dcb2;
7676
text-align: center;
77-
padding-top: 10px;
78-
padding-bottom: 10px;
77+
padding: 10px 0;
7978
box-shadow: 0 0 3px #333;
8079
margin: 0px;
8180
color: #fff;
81+
overflow: hidden;
8282
}
8383

84-
#header h1
84+
#heading h1
8585
{
86-
font-family: 'Open Sans', sans-serif;
8786
font-weight: normal;
8887
font-size: 42px;
8988
margin: 0px;
90-
margin-top: 5px;
89+
margin-top: 4px;
9190
}
9291

93-
#header h4
92+
#heading h4
9493
{
9594
line-height: 1.6;
9695
font-size: 18px;
9796
font-weight: 500;
98-
margin-bottom: 10px;
99-
margin-top: 0px;
97+
margin-bottom: 7px;
98+
margin-top: 3px;
10099
text-align: center;
100+
padding-right: 15px;
101+
padding-left: 15px;
101102
}
102103

103-
#header-social
104+
#heading-logo
104105
{
105-
margin-top: 30px;
106+
width: 20%;
107+
float: left;
106108
}
107109

108-
#header .line
110+
#heading-content
109111
{
110-
margin: 0px;
112+
width: 60%;
113+
float: left;
114+
}
115+
116+
#heading-social
117+
{
118+
margin-top: 40px;
119+
width: 20%;
120+
float: left;
111121
}
112122

113-
#header a
123+
#heading a
114124
{
115125
color: #fff;
116126
}
117127

118-
#header a:hover
128+
#heading a:hover
119129
{
120130
color: green;
121131
}
@@ -396,10 +406,21 @@ footer a:hover
396406
========================================================================== */
397407

398408
@media only screen and (max-width: 768px) {
399-
#logo
409+
#heading-logo
410+
{
411+
width: 100%;
412+
margin-top: 20px;
413+
margin-bottom: 25px;
414+
}
415+
416+
#heading-content
417+
{
418+
width: 100%;
419+
}
420+
421+
#heading-social
400422
{
401-
margin-top: 30px;
402-
margin-bottom: 30px;
423+
width: 100%;
403424
}
404425
}
405426

index.html

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,17 @@
2626
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
2727
<![endif]-->
2828

29-
<div id="header">
30-
<div class="line">
31-
<div class="line-l-3 line-m-2 line-s-3" id="logo">
32-
<a href="/"><div class="python-logo"></div></a>
33-
</div>
34-
<div class="line-l-6 line-m-8 line-s-6">
35-
<h1>Python Pedia</h1>
36-
<h4>One Stop for Python Programming Resources. It's all about Python.</h4>
37-
</div>
38-
<div class="line-l-3 line-m-2 line-s-3">
39-
<div id="header-social">
40-
<a href="https://twitter.com/pythonpedia" target="_blank"><i class="fa fa-twitter fa-2x"></i></a>
41-
<a href="https://github.com/parbhat/python-pedia" target="_blank"><i class="fa fa-github fa-2x"></i></a>
42-
</div>
43-
</div>
29+
<div id="heading">
30+
<div id="heading-logo"><a href="/"><div class="python-logo"></div></a></div>
31+
32+
<div id="heading-content">
33+
<h1>Python Pedia</h1>
34+
<h4>One Stop for Python Programming Resources. It's all about Python.</h4>
35+
</div>
36+
37+
<div id="heading-social">
38+
<a href="https://twitter.com/pythonpedia" target="_blank"><i class="fa fa-twitter fa-2x"></i></a>
39+
<a href="https://github.com/parbhat/python-pedia" target="_blank"><i class="fa fa-github fa-2x"></i></a>
4440
</div>
4541
</div>
4642

0 commit comments

Comments
 (0)