Skip to content

Commit 36330f4

Browse files
committed
Clean up text styling a little and add text shadows
1 parent 434cc9a commit 36330f4

File tree

3 files changed

+30
-26
lines changed

3 files changed

+30
-26
lines changed

css/style.css

+10-8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ p {
5555
}
5656
#header .tagline {
5757
text-indent: -9999em;
58+
overflow: hidden;
5859
}
5960
#header .download {
6061
font-family: "Comfortaa", sans-serif;
@@ -72,32 +73,33 @@ p {
7273
#site-name {
7374
display: block;
7475
position: absolute;
75-
left: 0;
76-
top: 80px;
76+
left: 10px;
77+
top: 70px;
7778
width: 460px;
7879
height: 100px;
7980
text-indent: -9999em;
81+
overflow: hidden;
8082
}
8183

8284
#feature {
8385
margin-bottom: 20px;
8486
height: 200px;
85-
}
86-
#feature .title {
87-
font-size: 35px;
87+
/* FIXME: Remove hard-coded height */
8888
}
8989

9090
#content {
9191
padding: 20px 0;
9292
margin-bottom: 10px;
9393
}
94-
#content .title {
95-
font-size: 35px;
96-
}
9794
#content .project-name {
9895
color: white;
9996
}
10097

98+
.block .title {
99+
font-size: 35px;
100+
text-shadow: 0px 0px 5px #111;
101+
}
102+
101103
#footer {
102104
font-size: 13px;
103105
padding: 20px 0;

css/style.scss

+15-13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ $mono-font: 'Droid Sans Mono', Courier New, monospace;
55
$heading-font: 'Comfortaa', sans-serif;
66
$highlight-color: #ff7f2a;
77

8+
@mixin text-replace {
9+
text-indent: -9999em;
10+
overflow: hidden;
11+
}
12+
813
// Font
914

1015
body {
@@ -57,7 +62,7 @@ p {
5762
margin-bottom: 20px;
5863

5964
.tagline {
60-
text-indent: -9999em;
65+
@include text-replace;
6166
}
6267

6368
.download {
@@ -78,35 +83,32 @@ p {
7883
#site-name {
7984
display: block;
8085
position: absolute;
81-
left: 0;
82-
top: 80px;
86+
left: 10px;
87+
top: 70px;
8388
width: 460px;
8489
height: 100px;
85-
text-indent: -9999em;
90+
@include text-replace;
8691
}
8792

8893
#feature {
8994
margin-bottom: 20px;
90-
height: 200px; // FIXME: Remove hard-coded height
91-
92-
.title {
93-
font-size: 35px;
94-
}
95+
height: 200px; /* FIXME: Remove hard-coded height */
9596
}
9697

9798
#content {
9899
padding: 20px 0;
99100
margin-bottom: 10px;
100101

101-
.title {
102-
font-size: 35px;
103-
}
104-
105102
.project-name {
106103
color: white;
107104
}
108105
}
109106

107+
.block .title {
108+
font-size: 35px;
109+
text-shadow: 0px 0px 5px #111;
110+
}
111+
110112
#footer {
111113
font-size: 13px;
112114
padding: 20px 0;

index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
</div> <!-- header -->
3333

3434
<div id="feature" class="container_12">
35-
<div class="grid_6">
35+
<div class="block grid_6">
3636
<h3 class="title">We are back!</h3>
3737
<p>After a 5-year hiatus, we are back! Progress is moving
3838
swiftly on the next stable release 0.5.0. Among the changes
3939
already made are, a new CMake build system, Android support,
4040
and a new tool for testing and benchmarking.</p>
4141
<div class="clearfix"></div>
4242
</div>
43-
<div class="grid_6">
43+
<div class="block grid_6">
4444
<h3 class="title">Working with LV</h3>
4545
<p>We are now on <a target="lv-github-page" href="https://github.com/Libvisual/libvisual">GitHub</a> and use Git for versioning.</p>
4646
<p class="code" style="letter-spacing:-0.025em;">git clone https://github.com/Libvisual/libvisual.git
@@ -50,7 +50,7 @@ <h3 class="title">Working with LV</h3>
5050
</div> <!-- feature -->
5151

5252
<div id="content" class="container_12">
53-
<div class="grid_4">
53+
<div class="block grid_4">
5454
<h2 class="title">About <span class="project-name">LV</span></h2>
5555
<p>Libvisual instantly transforms your favourite music into
5656
psychedelic art. It works by running audio from your
@@ -61,7 +61,7 @@ <h2 class="title">About <span class="project-name">LV</span></h2>
6161
<div class="clearfix"></div>
6262
</div> <!-- column-left -->
6363

64-
<div class="grid_4">
64+
<div class="block grid_4">
6565
<h2 class="title">Run <span class="project-name">LV</span></h2>
6666
<p>Lorem ipsum dolor sit amet, consectetur adipiscing
6767
elit. Etiam nec lectus metus, non varius mi. Etiam vitae
@@ -71,7 +71,7 @@ <h2 class="title">Run <span class="project-name">LV</span></h2>
7171
<div class="clearfix"></div>
7272
</div> <!-- column-middle -->
7373

74-
<div class="grid_4">
74+
<div class="block grid_4">
7575
<h2 class="title">Build <span class="project-name">LV</span></h2>
7676
<p>We need all the help we can get to bring Libvisual to the
7777
next level. Areas that need always work

0 commit comments

Comments
 (0)