Skip to content

Commit c000b0c

Browse files
committed
fix button size in small screens
1 parent 24bfce7 commit c000b0c

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111

1212
<body>
1313
<main>
14-
<div class="container">
15-
<h1>Render Raw Gist</h1>
14+
<h1>Render Raw Gist</h1>
1615

17-
<div>
18-
<input id="urlHtml" placeholder="HTML raw gist file url" />
16+
<div>
17+
<input id="urlHtml" placeholder="HTML raw gist file url" />
1918

20-
<input id="urlCss" placeholder="CSS raw gist file url" />
21-
</div>
19+
<input id="urlCss" placeholder="CSS raw gist file url" />
20+
</div>
2221

22+
<div class="container">
2323
<button onclick="renderContent()">Render</button>
2424
</div>
2525
</main>
2626

27-
<script src="app.js"></script>
27+
<script src="app.js"></script>
2828
</body>
2929

3030
</html>

style.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ input {
3232
padding: 14px;
3333
border: none;
3434
border-bottom: 1px solid white;
35-
width: 300px;
3635
outline: white;
3736
line-height: 1.5em;
3837
background-color: transparent;
@@ -52,7 +51,7 @@ input {
5251
}
5352

5453
button {
55-
width: 10vw;
54+
width: 300px;
5655
margin: 23px;
5756
padding: 12px 34px 12px 34px;
5857
border: 1px solid white;
@@ -87,4 +86,10 @@ button:hover {
8786
display: flex;
8887
flex-flow: column;
8988
align-items: center;
89+
}
90+
91+
@media (max-width: 700px) {
92+
input {
93+
width: 90%;
94+
}
9095
}

0 commit comments

Comments
 (0)