Skip to content

Commit 8ca557d

Browse files
committed
Navbar color fix
1 parent 207d8df commit 8ca557d

File tree

4 files changed

+46
-16
lines changed

4 files changed

+46
-16
lines changed

_layouts/post.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
---
44
{% include jumbotron.html %}
5-
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
5+
<article class="post container" itemscope itemtype="http://schema.org/BlogPosting">
66

77
<header class="post-header">
88
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>

assets/css/common.css

+10-15
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
right: 0;
1616
z-index: 103;
1717

18-
color: #fff;
19-
background: #4183c4;
18+
color: #000;
19+
background: #fff;
2020

2121
-webkit-transition: all 0.5s ease;
2222
-moz-transition: all 0.5s ease;
@@ -25,13 +25,17 @@
2525
transition: all 0.5s ease;
2626
}
2727

28+
.site-header #site-header-brand {
29+
color: #2e2e2e;
30+
float: left;
31+
}
32+
2833
.site-header a {
2934
text-decoration: none;
3035
}
3136

32-
#site-header-brand {
33-
float: left;
34-
color: #fff;
37+
.site-header a:hover {
38+
color: #4183c4;
3539
}
3640

3741
#site-header-brand, #site-header-brand .octicon {
@@ -48,7 +52,7 @@
4852
}
4953

5054
.site-header-nav-item {
51-
color: rgba(255,255,255,.5);
55+
color: #000;
5256
display:inline-block;
5357
padding:10px;
5458
margin-left:1.25rem;
@@ -66,22 +70,13 @@
6670
-o-box-shadow: 0 0.125em 0.125em 0 rgba(0, 0, 0, 0.125);
6771
box-shadow: 0 0.125em 0.125em 0 rgba(0, 0, 0, 0.125);
6872
}
69-
70-
.site-header.site-header-nav-scrolled a, .site-header.site-header-nav-scrolled#site-header-brand {
71-
color: #2e2e2e !important;
72-
}
73-
74-
.site-header.site-header-nav-scrolled a:hover {
75-
color: #4183c4;
76-
}
7773
/******* Scroll End *******/
7874

7975
/** Jumbotron **/
8076
.jumbotron {
8177
padding-top: 200px;
8278
padding-bottom: 100px;
8379
color: #fff;
84-
background: #4183c4;
8580
}
8681

8782
.jumbotron a {

assets/css/index.css

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/** Only for index.html **/
2+
3+
.site-header{
4+
color: #fff;
5+
background: #4183c4;
6+
}
7+
8+
.site-header #site-header-brand {
9+
color: #fff;
10+
}
11+
12+
.site-header .site-header-nav-item {
13+
color: #9acfea;
14+
}
15+
16+
.site-header a:hover {
17+
color: #fff;
18+
}
19+
20+
.jumbotron {
21+
background: #4183c4;
22+
}
23+
24+
.site-header.site-header-nav-scrolled a {
25+
color: #2e2e2e;
26+
}
27+
28+
.site-header.site-header-nav-scrolled #site-header-brand {
29+
color: #2e2e2e !important;
30+
}
31+
32+
.site-header.site-header-nav-scrolled a:hover {
33+
color: #4183c4;
34+
}

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: default
33
menu: home
4+
css: ['index.css']
45
---
56
<section class="jumbotron">
67
<div class="container">

0 commit comments

Comments
 (0)