From 39cb28e2abcc1352ccf617e16a3f18c6ca5e8730 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 7 Jan 2019 17:01:11 -0600 Subject: [PATCH 1/3] Moving table of contents button on home page --- assets/templates/index.phtml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/assets/templates/index.phtml b/assets/templates/index.phtml index abb7cca..000013e 100644 --- a/assets/templates/index.phtml +++ b/assets/templates/index.phtml @@ -1,8 +1,6 @@ 'PHP Apprentice']) ?>
- -
@@ -23,10 +21,13 @@ Each example in PHP Apprentice can by typed into a PHP file and executed in the terminal. Let's get started! 😃

- -
- Open First Chapter -
+
From 4b52f3ec12139cfa70ff98b209ff4944cca63ae4 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 7 Jan 2019 17:01:27 -0600 Subject: [PATCH 2/3] Changing menu button text --- assets/templates/_menu_button.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/templates/_menu_button.phtml b/assets/templates/_menu_button.phtml index 8dff1e5..148d3aa 100644 --- a/assets/templates/_menu_button.phtml +++ b/assets/templates/_menu_button.phtml @@ -1,6 +1,6 @@ From 4aaa7588afba95226ab29a1ec0d887c9592a1980 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 7 Jan 2019 17:01:46 -0600 Subject: [PATCH 3/3] Tweaking fonts and home page styles --- assets/css/site.css | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/assets/css/site.css b/assets/css/site.css index f52ac05..561ffed 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -7,20 +7,23 @@ $drop-shadow: rgba(0, 0, 0, 0.4); $code-background: #FDF6E3; body { - font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif; + font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; font-size: 16px; padding-top: 1em; padding-bottom: 1em; } +button { + font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; +} code { background-color: #F0F0F0; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 14px; padding: 0.10em 0.25em; } pre, pre code { background-color: transparent; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 14px; margin: 0 !important; border-radius: 0 !important; @@ -49,13 +52,13 @@ ol { padding-left: 1em; } h1, h2, h3, h4 { - margin: 1.414em 0 0.5em; - font-weight: inherit; - line-height: 1.2; + margin: 1.414em 0 0.5em; + font-weight: inherit; + line-height: 1.2; } h1 { - margin-top: 0; - font-size: 2.441em; + margin-top: 0; + font-size: 2.441em; } h2 {font-size: 1.953em;} h3 {font-size: 1.563em;} @@ -88,7 +91,8 @@ button:hover .icon svg { background-color: $primary-color; color: $white; padding: 0.5em 1em; - border-radius: 1em; + border-radius: 2em; + display: inline-block; } .button:hover { color: $white; @@ -203,6 +207,10 @@ button:hover .icon svg { width: 150px; height: 100px; } +.home-buttons .menu { + display: inline-block; + padding: 0.5em 1em; +} .menu { margin-bottom: 1.5em; } @@ -225,7 +233,7 @@ button:hover .icon svg { height: 100%; animation-name: animateleft; animation-duration: .4s; - overflow: scroll; + overflow: auto; box-shadow: 0 0 10px 0 $drop-shadow; box-sizing: border-box; }