Skip to content

Commit 8555473

Browse files
committed
Update webpage style
1 parent b920d48 commit 8555473

File tree

2 files changed

+40
-42
lines changed

2 files changed

+40
-42
lines changed

docs/index.html

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,14 @@
1313
<h1><b>Page Snapping</b> done right.</h1>
1414
<div class="logo"></div>
1515
<h2>
16-
With a <b>customizable configuration</b><br />
17-
and a consistent <b>cross browser</b> behaviour. <br /><br />
18-
Works in all modern browsers.
16+
With a <b>customizable configuration</b> and a consistent
17+
<b>cross browser</b> behaviour. <br />
1918
</h2>
20-
<div class="snippet">
21-
<a href="https://www.npmjs.com/package/scroll-snap" target="_blank">
22-
<code>
23-
<pre>
24-
<b>yarn add scroll-snap</b>
25-
</pre>
26-
</code>
27-
</a>
28-
</div>
2919
<br />
3020
<p>
3121
<b>
32-
CHECK OUT
33-
<a target="_blank" href="https://github.com/lucafalasco/scroll-snap">GITHUB</a> FOR
34-
DOCUMENTATION.
22+
Check out the project and the documentation on
23+
<a target="_blank" href="https://github.com/lucafalasco/scroll-snap">Github</a>
3524
</b>
3625
</p>
3726
</div>

docs/style.css

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ body {
88
-webkit-font-smoothing: antialiased;
99
-moz-osx-font-smoothing: grayscale;
1010
cursor: default;
11-
background-color: rgb(240, 248, 246);
12-
color: #212121;
11+
background-color: #e3e3e3;
12+
color: #303030;
1313
font-size: 16px;
14-
font-weight: 500;
14+
font-weight: 400;
1515
}
1616
p {
1717
width: 80%;
@@ -35,21 +35,28 @@ h1 {
3535
}
3636
h2 b,
3737
h1 b {
38-
color: rgb(32, 158, 134);
39-
font-weight: 900;
38+
font-weight: 800;
39+
}
40+
h1 {
41+
font-weight: 400;;
4042
}
4143
h2 {
42-
font-size: 2.2em;
44+
font-size: 1.7em;
4345
line-height: 1.3;
46+
font-weight: 400;;
4447
}
45-
h3 {
48+
h3 {
4649
font-weight: normal;
4750
font-size: 1.3em;
51+
opacity: 0.8;
4852
margin: 0;
4953
}
5054
.first-page a {
5155
text-decoration: none;
52-
color: rgb(32, 158, 134);
56+
color: #fff;
57+
padding: 3px;
58+
border-radius: 5px;
59+
background-color: #212121;
5360
}
5461
#container {
5562
display: flex;
@@ -79,7 +86,7 @@ h3 {
7986
color: #fff;
8087
height: 90%;
8188
min-height: 90%;
82-
background-image: linear-gradient(rgb(32, 158, 134), rgb(14, 62, 47));
89+
background: #303030;
8390
}
8491
.third-page {
8592
height: 95%;
@@ -114,7 +121,7 @@ h3 {
114121
width: 100%;
115122
min-width: 100%;
116123
color: #fff;
117-
background-image: linear-gradient(rgb(32, 118, 158), rgb(14, 52, 62));
124+
background-color: #2c2c2c;
118125
align-items: start;
119126
}
120127
.second-page-paragraph {
@@ -135,10 +142,10 @@ h3 {
135142
font-size: 0.85rem;
136143
}
137144
.credits a {
138-
color: rgb(14, 62, 47);
145+
color: #296190;
139146
}
140147
.credits a:hover {
141-
color: rgb(32, 158, 134);
148+
color: #337db9;
142149
text-decoration: underline;
143150
}
144151
.bind,
@@ -148,6 +155,7 @@ h3 {
148155
.highlight {
149156
color: inherit;
150157
text-decoration: none;
158+
font-weight: 500;
151159
padding: 2px 5px;
152160
background-color: rgba(0, 0, 0, 0.1);
153161
border-radius: 10px;
@@ -157,17 +165,17 @@ a.highlight:hover {
157165
}
158166
.logo {
159167
position: absolute;
160-
top: 0;
161-
right: 0;
162-
bottom: 0;
163-
left: 0;
164-
width: 40%;
168+
top: 50px;
169+
left: 50px;
170+
width: 100px;
171+
height: 100px;
165172
margin: auto;
166173
background: url('assets/logo.svg') center no-repeat;
167174
background-size: contain;
168-
opacity: 0.1;
175+
opacity: 0.5;
169176
pointer-events: none;
170177
}
178+
171179
.scroll {
172180
background: url('assets/scroll.svg') center no-repeat;
173181
background-size: contain;
@@ -193,10 +201,7 @@ a.highlight:hover {
193201
.first-page-paragraph code b {
194202
color: #212121;
195203
}
196-
.first-page-horizontal code b {
197-
color: #4aff91;
198-
}
199-
.second-page-horizontal code b {
204+
code b {
200205
color: #4aaeff;
201206
}
202207
.second-page-horizontal .snippet {
@@ -246,17 +251,24 @@ a.highlight:hover {
246251
font-size: 14px;
247252
}
248253
h1 {
249-
font-size: 3em;
254+
font-size: 2.5em;
255+
margin: 10px auto;
250256
}
251257
h2 {
252-
font-size: 2em;
258+
font-size: 1.3em;
259+
margin-bottom: 10px;
253260
}
254261
code {
255262
font-size: 13px;
256263
}
257264
p {
258265
width: 90%;
259266
}
267+
.logo {
268+
top: 20px;
269+
left: 0;
270+
right: 0;
271+
}
260272
.snippet {
261273
margin: 0;
262274
}
@@ -271,9 +283,6 @@ a.highlight:hover {
271283
align-items: start;
272284
flex-direction: column;
273285
}
274-
.logo {
275-
width: 90%;
276-
}
277286
}
278287

279288
@media screen and (max-width: 600px) {

0 commit comments

Comments
 (0)