Skip to content

Commit 71e0f13

Browse files
author
Contra
committed
padding corrections
1 parent fd6d1fc commit 71e0f13

File tree

4 files changed

+39
-15
lines changed

4 files changed

+39
-15
lines changed

dist/css/style.css

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ body {
159159
-ms-transform: translateX(50%);
160160
transform: translateX(50%);
161161
margin-bottom: 0;
162-
font-size: 20px;
162+
font-size: 16px;
163163
font-weight: 300;
164164
line-height: 1;
165165
}
@@ -176,11 +176,30 @@ body {
176176
left: 50%;
177177
}
178178
.navbar .navbar-links {
179-
position: static;
180-
float: right;
179+
*zoom: 1;
180+
width: auto;
181+
max-width: 1440px;
182+
float: none;
183+
display: block;
184+
margin-right: auto;
185+
margin-left: auto;
186+
padding-left: 0;
187+
padding-right: 0;
188+
}
189+
.navbar .navbar-links:before,
190+
.navbar .navbar-links:after {
191+
content: '';
192+
display: table;
193+
}
194+
.navbar .navbar-links:after {
195+
clear: both;
181196
}
182197
.navbar .navbar-links .navbar-link {
183-
padding: 15px;
198+
padding: 0 15px;
199+
border-right: 1px solid rgba(255,255,255,0.2);
200+
}
201+
.navbar .navbar-links .navbar-link:last-child {
202+
border-right: none;
184203
}
185204
.main-header {
186205
height: 100%;
@@ -241,7 +260,7 @@ body {
241260
.main-info {
242261
*zoom: 1;
243262
width: auto;
244-
max-width: 800px;
263+
max-width: 1024px;
245264
float: none;
246265
display: block;
247266
margin-right: auto;
@@ -268,7 +287,7 @@ body {
268287
margin-right: 3%;
269288
*zoom: 1;
270289
width: auto;
271-
max-width: 800px;
290+
max-width: 1024px;
272291
float: none;
273292
display: block;
274293
margin-right: auto;

dist/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
<nav class="navbar">
2424
<a href="http://gulpjs.com" class="navbar-title">gulp.js</a>
2525
<div class="navbar-links">
26+
<a href="https://github.com/gulpjs/gulp/tree/master/docs" class="navbar-link">Docs</a>
2627
<a href="http://gulpjs.com/plugins" class="navbar-link">Plugins</a>
27-
<a href="http://gulpjs.com/plugins" class="navbar-link">Twitter</a>
28+
<a href="https://twitter.com/gulpjs" class="navbar-link">Twitter</a>
2829
</div>
2930
</nav>
3031
<div class="main-header-content">

src/css/style.styl

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ body
3636
transition: opacity .2s linear
3737
transform: translateX(50%)
3838
margin-bottom: 0
39-
font-size: 20px
39+
font-size: 16px
4040
font-weight: 300
4141
line-height: 1
4242

@@ -50,12 +50,15 @@ body
5050
left: 50%
5151

5252
.navbar-links
53-
position: static
54-
float: right
53+
center()
5554

5655
.navbar-link
57-
padding: 15px
58-
56+
padding: 0 15px
57+
border-right: 1px solid rgba(255, 255, 255, 0.2)
58+
59+
&:last-child
60+
border-right: none
61+
5962
.main-header
6063
height: 100%
6164
width: 100%
@@ -98,12 +101,12 @@ body
98101
box-shadow: 0 0 50px rgba(255,255,255,.3)
99102

100103
.main-info
101-
center(max-width: 800px)
104+
center(max-width: 1024px)
102105
background-color: #fff
103106

104107
.benefits
105108
col(1/1)
106-
center(max-width: 800px)
109+
center(max-width: 1024px)
107110
padding: 50px
108111

109112
.benefit

src/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
<nav class="navbar">
2424
<a href="http://gulpjs.com" class="navbar-title">gulp.js</a>
2525
<div class="navbar-links">
26+
<a href="https://github.com/gulpjs/gulp/tree/master/docs" class="navbar-link">Docs</a>
2627
<a href="http://gulpjs.com/plugins" class="navbar-link">Plugins</a>
27-
<a href="http://gulpjs.com/plugins" class="navbar-link">Twitter</a>
28+
<a href="https://twitter.com/gulpjs" class="navbar-link">Twitter</a>
2829
</div>
2930
</nav>
3031
<div class="main-header-content">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy