Skip to content

Commit 54698b1

Browse files
committed
gwtd3 v1.0.4
minor css fixes added extra check for mobile menu
1 parent c9ba408 commit 54698b1

File tree

7 files changed

+68
-69
lines changed

7 files changed

+68
-69
lines changed

dev.gwtd3.sql

Lines changed: 23 additions & 21 deletions
Large diffs are not rendered by default.

wp-content/themes/gwtd3/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function gwtd3_scripts() {
134134

135135
wp_enqueue_style( 'dashicons' );
136136

137-
wp_enqueue_style( 'gwtd3-fonts', 'https://fonts.googleapis.com/css?family=Changa:400,700|Open+Sans:400,400i,600,700' );
137+
wp_enqueue_style( 'gwtd3-fonts', 'https://fonts.googleapis.com/css?family=Changa:400,600,700|Open+Sans:400,400i,600,700' );
138138

139139
wp_enqueue_script( 'gwtd3-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20170725', true );
140140

6.62 KB
Loading
Lines changed: 1 addition & 1 deletion
Loading

wp-content/themes/gwtd3/js/scripts.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
function toggleNav() {
99
if ( $( '#site-wrapper' ).hasClass( 'show-nav' ) ) {
1010
$( '#site-wrapper' ).removeClass( 'show-nav' );
11+
$( '#mobile-menu-trigger .dashicons' ).removeClass( 'dashicons-no' );
12+
$( '#mobile-menu-trigger .dashicons' ).addClass( 'dashicons-menu' );
1113
} else {
1214
$( '#site-wrapper' ).addClass( 'show-nav' );
15+
$( '#mobile-menu-trigger .dashicons' ).removeClass( 'dashicons-menu' );
16+
$( '#mobile-menu-trigger .dashicons' ).addClass( 'dashicons-no' );
1317
}
1418
}
1519

16-
1720
$( window ).scroll( function() {
1821
if ( $( this ).scrollTop() < 400 ) {
1922
$( '#to-top' ).fadeOut();
@@ -22,6 +25,14 @@
2225
}
2326
} );
2427

28+
$( window ).resize(function() {
29+
if ( $( '#site-wrapper' ).hasClass( 'show-nav' ) ) {
30+
$( '#site-wrapper' ).removeClass( 'show-nav' );
31+
$( '#mobile-menu-trigger .dashicons' ).removeClass( 'dashicons-no' );
32+
$( '#mobile-menu-trigger .dashicons' ).addClass( 'dashicons-menu' );
33+
}
34+
});
35+
2536
$( 'a[href*=\\#]' ).on( 'click', function( event ) {
2637
if ( $( this ).attr( 'id' ) === 'smoothup' ) {
2738
$( 'html, body' ).animate( {

wp-content/themes/gwtd3/landing-page.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
<div class="container">
1111
<div class="row">
1212
<div class="twelve columns">
13-
<div class="questionmark">
14-
<img src="<?php echo get_template_directory_uri(); ?>/img/questionmark.png">
15-
</div>
1613
<?php
1714
$page = get_page_by_title( 'What is GWTD3?' );
1815
$title = $page->post_title;
@@ -32,9 +29,6 @@
3229
<div class="container">
3330
<div class="row">
3431
<div class="twelve columns">
35-
<div class="globe">
36-
<img src="<?php echo get_template_directory_uri(); ?>/img/globe.png">
37-
</div>
3832
<?php
3933
$page = get_page_by_title( 'Where is GWTD3?' );
4034
$title = $page->post_title;
@@ -54,9 +48,6 @@
5448
<div class="container">
5549
<div class="row">
5650
<div class="twelve columns">
57-
<div class="rocket">
58-
<img src="<?php echo get_template_directory_uri(); ?>/img/rocket.png">
59-
</div>
6051
<?php
6152
$page = get_page_by_title( 'Cool! How do I get involved?' );
6253
$title = $page->post_title;

wp-content/themes/gwtd3/style.css

Lines changed: 31 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: http://underscores.me/
44
Author: TBD...
55
Author URI: https://multiple_wordpress_awesome.contributors
66
Description: The most awesome theme for gwtd3!
7-
Version: 1.0.3
7+
Version: 1.0.4
88
License: GNU General Public License v2 or later
99
License URI: LICENSE
1010
Text Domain: gwtd3
@@ -52,6 +52,10 @@ h1, h2, h3, h4, h5 {
5252
font-weight: 600;
5353
}
5454

55+
strong {
56+
font-weight: 600;
57+
}
58+
5559
/* Colors
5660
-------------------------------------------------- */
5761

@@ -229,22 +233,6 @@ h1, h2, h3, h4, h5 {
229233
/* LP sections
230234
–––––––––––––––––––––––––––––––––––––––––––––––––– */
231235

232-
.questionmark,
233-
.globe,
234-
.rocket {
235-
display: none;
236-
width: 100%;
237-
text-align:center;
238-
clear: both;
239-
margin-bottom: 4rem;
240-
}
241-
242-
.questionmark img,
243-
.globe img,
244-
.rocket img {
245-
width: 150px;
246-
}
247-
248236
.section.lp-what-it-is {
249237
background: #D5AFBB;
250238
color: #471530;
@@ -253,13 +241,13 @@ h1, h2, h3, h4, h5 {
253241
background-repeat: no-repeat;
254242
background-attachment: local;
255243
background-position: 8% center;
256-
background-size: 280px;
244+
background-size: 350px;
257245
background-origin: content-box;
258246
}
259247

260248
.section.lp-where-it-is {
261-
background: #5A90AA;
262-
color: #9AD9E1;
249+
background: #54879B;
250+
color: #CFEDF9;
263251
background-image: url(img/globe.png);
264252
background-image: url(img/globe.svg), linear-gradient(transparent, transparent);
265253
background-repeat: no-repeat;
@@ -270,12 +258,12 @@ h1, h2, h3, h4, h5 {
270258
}
271259

272260
.section.lp-where-it-is h2 {
273-
color: #14455B;
261+
color: #17506A;
274262
}
275263

276264
.section.lp-how-to-get-involved {
277-
background: #21627E;
278-
color: #D5AFBB;
265+
background: #17506A;
266+
color: #E5CFD7;
279267
background-image: url(img/rocket.png);
280268
background-image: url(img/rocket.svg), linear-gradient(transparent, transparent);
281269
background-repeat: no-repeat;
@@ -289,6 +277,7 @@ h1, h2, h3, h4, h5 {
289277
.section.lp-where-it-is h2,
290278
.section.lp-how-to-get-involved h2 {
291279
font-size: 8.0rem;
280+
z-index: 10;
292281
}
293282

294283
/* Header
@@ -349,22 +338,32 @@ h1, h2, h3, h4, h5 {
349338
}
350339

351340
#site-menu {
352-
width: 300px;
341+
width: 200px;
353342
height: 100%;
354343
position: absolute;
355344
top: 0;
356-
left: -300px;
345+
left: -200px;
357346
background: #5A90AA;
358347
padding: 15px;
359348
}
360349

361350
#site-wrapper.show-nav #site-canvas {
362-
-webkit-transform: translateX(300px);
363-
transform: translateX(300px);
351+
-webkit-transform: translateX(200px);
352+
transform: translateX(200px);
364353
}
365354

366355
#site-menu ul {
367356
list-style: none;
357+
padding: 0;
358+
margin: 0;
359+
}
360+
361+
#site-menu ul li {
362+
text-align: center;
363+
}
364+
365+
#site-menu #gwtd-menu {
366+
margin-top: 5rem;
368367
}
369368

370369
#mobile-menu-trigger {
@@ -438,7 +437,7 @@ h1, h2, h3, h4, h5 {
438437
.section.lp-what-it-is h2,
439438
.section.lp-where-it-is h2,
440439
.section.lp-how-to-get-involved h2 {
441-
font-size: 6.0rem;
440+
font-size: 5.0rem;
442441
}
443442

444443
.footer h2 {
@@ -462,19 +461,15 @@ h1, h2, h3, h4, h5 {
462461
.section.lp-what-it-is h2,
463462
.section.lp-where-it-is h2,
464463
.section.lp-how-to-get-involved h2 {
465-
font-size: 3.5rem;
466-
}
467-
468-
.questionmark,
469-
.globe,
470-
.rocket {
471-
display: block;
464+
margin: 5rem 0;
472465
}
473466

474467
.section.lp-what-it-is,
475468
.section.lp-where-it-is,
476469
.section.lp-how-to-get-involved {
477-
background-image: none;
470+
background-position: 20px 20px;
471+
background-size: 200px;
472+
background-origin: padding-box;
478473
}
479474
.section.primary-menus .columns {
480475
display: none;

0 commit comments

Comments
 (0)