Skip to content

Commit 9326b39

Browse files
committed
Changes to hover and link colors.
1 parent efc9feb commit 9326b39

File tree

5 files changed

+48
-18
lines changed

5 files changed

+48
-18
lines changed

_includes/categories.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{% for cat in page.tags %}
1010
{% if cat == page.tags[0] %}
11-
<a class="tag" href="/#{{ cat | slugify }}">
11+
<a class="tag-main" href="/#{{ cat | slugify }}">
1212
<strong>{{ cat }}</strong>
1313
</a>
1414
{% else %}

_includes/post_categories.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
{% for cat in post.tags %}
1010
{% if cat == post.tags[0] %}
1111

12-
<strong>
13-
<a class="tag" href="/#{{ cat | slugify }}">
12+
<a class="tag-main" href="/#{{ cat | slugify }}">
1413
{{ cat }}
1514
</a>
16-
</strong>
1715
{% else %}
1816
,
1917
<a class="tag" href="/#{{ cat | slugify }}">

_sass/_variables.scss

+9-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ $green: #66ff66;
1919
$green2: #2ddbb3;
2020
$orange: #ff2222;
2121

22-
$background_post_first: #cceee6;
23-
$background_post_left: #eeeeee;
24-
$background_post_right: #eeeeee;
25-
$post_border: #ccccff;
26-
$post_highlight_color: #ccccff;
2722

2823
// Main theme colors
2924
// Some cool main top: ;heme colors(violet:#8476ad;blue:#5cacee;red:#ff7373,#ff6f69;green:#6acf64,#2ddbb3;orange:#ffa268)
@@ -34,6 +29,15 @@ $navbar-hover-color:$green; // navbar hover color (site name and navbar l
3429
$link-color: $orange; // normal hyperlink color other than the ones above.
3530

3631

32+
$background_post_first: #cceee6;
33+
$background_post_left: #eeeeee;
34+
$background_post_right: #eeeeee;
35+
$post_border: #ccccff;
36+
//$post_highlight_color: #ccccff;
37+
$post_highlight_color: $mono-color;
38+
39+
40+
3741
// Heading colors
3842
// You can play around with these too!
3943
$h1-color: $mono-color;

index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
{% else %}
4646

4747
<div class="entry" >
48-
<h1>
49-
{{ loopindex }} {{ postcounter }}
50-
<a href="{{ site.baseurl }}{{ post.url }}">
48+
<a href="{{ site.baseurl }}{{ post.url }}">
49+
<h1 align="center" >
5150
{% include post_categories_icon.html %}
51+
<br/>
5252
{{ post.title }}
53-
</a>
5453
</h1>
54+
</a>
5555

5656
{{ post.excerpt }}
5757
<div class="categories">

style.scss

+33-5
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ nav {
265265

266266
.post_table_container {
267267
margin: 0 auto;
268-
max-width: 1680px;
268+
max-width: 1280px;
269269
padding: 0 10px;
270270
width: 100%;
271271
table-layout: fixed;
@@ -278,20 +278,48 @@ nav {
278278
}
279279

280280
.post_table_article_first {
281-
border: 6px solid $post_border;
281+
border: 4px solid $post_border;
282282
background-color: $background_post_first;
283283
padding: 0 10px;
284284
}
285285

286+
287+
.categories {
288+
color: $mono-color;
289+
290+
a {
291+
color: $mono-color;
292+
}
293+
a:hover {
294+
color: red !important;
295+
}
296+
297+
// first tag, means it is important
298+
.tag-main {
299+
font-weight: bold;
300+
}
301+
302+
// other categories/tags
303+
.tag {
304+
font-style: slant;
305+
}
306+
}
307+
308+
286309
.table_posts {
287310
border-spacing: 10px;
288311
border-collapse: separate;
289312

290-
// hightlight table cells when mouse hover
313+
// highlight table cells when mouse hover
291314
td:hover {
292-
background: $post_highlight_color !important;
293-
}
294315

316+
border: 4px solid red !important;
317+
// background: $post_highlight_color !important;
318+
319+
a > h1 {
320+
color: red !important;
321+
}
322+
}
295323
}
296324

297325
.post_table_article_right {

0 commit comments

Comments
 (0)