Skip to content

Commit 165798f

Browse files
authored
Merge pull request #5 from vim-tw/style
Add some style - status bar. - modify some css.
2 parents 0eb445a + 51a263a commit 165798f

File tree

4 files changed

+43
-4
lines changed

4 files changed

+43
-4
lines changed

_includes/footer.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<p>Copyleft (ɔ) from 2015-2016 Vim Taiwan CC BY-NC 2.5 TW.</p>
2+
<img src="images/status_bar.png" class="status_bar">
23
</div>
34
</body>
45
</html>

_sass/variable.scss

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
$font-size: 18px;
22
$title-color: #70b950;
3+
$link-color: #80a0ff;
4+
$normal-color: #e8e8d3;
5+
$linenum-color: #605958;
36
$pound: "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='40px' width='13px'><text x='0' y='17' fill='%2370b950' font-size='18' font-weight='600'>%23</text></svg>";
47
$pound-offset: "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='40px' width='28px'><text x='0' y='17' fill='%2370b950' font-size='18' font-weight='600'>%23</text></svg>";

images/status_bar.png

4.84 KB
Loading

style.scss

+39-4
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,34 @@
88
text-align: right;
99
counter-increment: ln;
1010
content: counter(ln);
11-
color: #605958;
11+
color: $linenum-color;
1212
background-color: #151515;
1313
font-weight: 400;
1414
}
1515

16+
::selection {
17+
background: $normal-color;
18+
color: #000;
19+
}
20+
::-moz-selection {
21+
background: $normal-color;
22+
color: #000;
23+
}
24+
1625
body {
1726
counter-reset: ln;
1827
margin: 0;
1928
padding: 0;
2029
font-family: monospace;
21-
color: #e8e8d3;
30+
color: $normal-color;
2231
background-color: #151515;
2332
font-size: $font-size;
2433
}
2534

2635
#main {
2736
padding: 1rem 0;
2837
font-family: monospace;
29-
color: #e8e8d3;
38+
color: $normal-color;
3039
background-color: #151515;
3140

3241
h1::before {
@@ -59,6 +68,16 @@ body {
5968
display: block;
6069
@include lineNum-style;
6170
}
71+
72+
&::selection {
73+
background: $title-color;
74+
color: #000;
75+
}
76+
77+
&::-moz-selection {
78+
background: $title-color;
79+
color: #000;
80+
}
6281
}
6382

6483
p {
@@ -106,11 +125,27 @@ body {
106125
}
107126

108127
a {
109-
color: #80a0ff;
128+
color: $link-color;
110129
text-decoration: underline;
111130

112131
&:hover {
113132
color: $title-color;
114133
}
134+
135+
&::selection {
136+
background: $link-color;
137+
color: #000;
138+
}
139+
140+
&::-moz-selection {
141+
background: $link-color;
142+
color: #000;
143+
}
144+
}
145+
146+
.status_bar {
147+
position: fixed;
148+
bottom: 0;
149+
width: 100%;
115150
}
116151
}

0 commit comments

Comments
 (0)