Skip to content

Commit

Permalink
fix(demo): Fixed responsive for mobile devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
saschwarz committed Jan 3, 2016
1 parent bc42ddf commit f63885e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{% for (var css in o.htmlWebpackPlugin.files.css) { %}
<link href="{%=o.htmlWebpackPlugin.files.css[css] %}" rel="stylesheet">
{% } %}
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>
Expand Down
9 changes: 9 additions & 0 deletions demo/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,12 @@ article .description {
article .description h2 {
margin: 0;
}

@media (max-width: 420px) {
header {
position: relative;
}
header h1 {
font-size: 20px;
}
}
1 change: 1 addition & 0 deletions demo/script.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{% for (var css in o.htmlWebpackPlugin.files.css) { %}
<link href="{%=o.htmlWebpackPlugin.files.css[css] %}" rel="stylesheet">
{% } %}
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
Expand Down

0 comments on commit f63885e

Please sign in to comment.