Skip to content

Commit 5a22854

Browse files
committed
Appendix A: style adjustments
1 parent a3f83d2 commit 5a22854

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

materials/appendixA/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</head>
1313
<body>
1414
<header>
15-
<button id="menu"></button>
15+
<button id="menu"><svg height="32px" viewBox="0 0 32 32" width="32px"><path d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2 s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2 S29.104,22,28,22z"/></svg></button>
1616
</header>
1717
<nav>
1818
<a href="http://www.pro-react.com">

materials/appendixA/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $('#menu').click(function(e){
88
$('nav').show();
99
}
1010
});
11-
console.log("fre")
11+
1212
var resizing = false;
1313
$(window).on('resize', function(){
1414
if( !resizing ) {
@@ -28,6 +28,7 @@ function moveNavigation(){
2828
}
2929

3030

31+
3132
// Cache selectors
3233
var lastId,
3334
menu = $("#menu-items"),

materials/appendixA/styles.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,17 @@ header button {
131131
color: #fff;
132132
font-size: 25px;
133133
position: absolute;
134-
top: 50%;
135-
transform: translateY(-50%);
134+
top: 54%;
135+
transform: translateY(-50%);
136136
}
137137
header button:focus {outline:0;}
138138

139+
header button svg {
140+
fill: #fff;
141+
}​
142+
143+
144+
139145
main {
140146
width: calc(100% - 270px);
141147
margin-left: 270px;

0 commit comments

Comments
 (0)