Skip to content

Commit f1babdd

Browse files
committed
update style
1 parent 2bdd7f7 commit f1babdd

File tree

2 files changed

+36
-28
lines changed

2 files changed

+36
-28
lines changed

render-gist.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88
<title>Render Raw Gist</title>
99
<link rel="stylesheet" href="style.css" />
1010
</head>
11-
<body>
1211

12+
<body>
1313
<main>
14-
<h1>Render Raw Gist</h1>
15-
16-
<div>
17-
<input id="urlHtml" placeholder="HTML raw gist file url" />
14+
<div class="container">
15+
<h1>Render Raw Gist</h1>
1816

19-
<input id="urlCss" placeholder="CSS raw gist file url" />
20-
</div>
17+
<div>
18+
<input id="urlHtml" placeholder="HTML raw gist file url" />
2119

22-
<button onclick="renderContent()">Render</button>
20+
<input id="urlCss" placeholder="CSS raw gist file url" />
21+
</div>
2322

23+
<button onclick="renderContent()">Render</button>
24+
</div>
2425
</main>
2526

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

3030
</html>

style.css

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,24 @@
88
}
99

1010
body {
11-
background: linear-gradient(0deg, #0288d1 0%, #53cde2 100%);
11+
background: linear-gradient(0deg, #0288d1 0%, #53cde2 100%);
1212
}
1313

1414
main {
15-
display: flex;
16-
flex-flow: column;
17-
align-items: center;
15+
display: grid;
16+
width: 100vw;
17+
height: 100vh;
1818
justify-content: center;
19+
align-content: center;
1920
}
2021

2122
h1 {
23+
text-align: center;
2224
font-size: 54px;
2325
font-weight: 800;
2426
text-transform: uppercase;
2527
color: #edf9fc;
26-
}
28+
}
2729

2830
input {
2931
margin: 8px;
@@ -35,16 +37,24 @@ input {
3537
line-height: 1.5em;
3638
background-color: transparent;
3739
color: white;
38-
3940
}
4041

41-
::placeholder { color: #53cde2 }
42-
:-ms-input-placeholder { color: #53cde2 }
43-
::-ms-input-placeholder { color: #53cde2 }
42+
::placeholder {
43+
color: #53cde2
44+
}
45+
46+
:-ms-input-placeholder {
47+
color: #53cde2
48+
}
49+
50+
::-ms-input-placeholder {
51+
color: #53cde2
52+
}
4453

4554
button {
46-
margin: 23px;
47-
padding: 12px 34px 12px 34px;
55+
width: 10vw;
56+
margin: 23px;
57+
padding: 12px 34px 12px 34px;
4858
border: 1px solid white;
4959
border-radius: 160px;
5060
background: transparent;
@@ -70,13 +80,11 @@ button {
7080
button:hover {
7181
background-color: #edf9fc;
7282
border: 1px solid #edf9fc;
73-
color: #0289d1ce ;
83+
color: #0289d1ce;
7484
}
7585

76-
@media (max-height: 950px) { main { height: 860px; } }
77-
@media (max-height: 850px) { main { height: 760px; } }
78-
@media (max-height: 750px) { main { height: 660px; } }
79-
@media (max-height: 650px) { main { height: 560px; } }
80-
@media (max-height: 550px) { main { height: 460px; } }
81-
@media (max-height: 350px) { main { height: 320px; } }
82-
@media (min-height: 950px) { main { height: 1000px; } }
86+
.container {
87+
display: flex;
88+
flex-flow: column;
89+
align-items: center;
90+
}

0 commit comments

Comments
 (0)