Skip to content

Commit 007a477

Browse files
committed
adding rwd css
1 parent 33201ef commit 007a477

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

index.html

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
margin-left: 12px;
9292
padding: 0 11px 0 13px;
9393
text-overflow: ellipsis;
94-
width: 400px;
94+
width: 50%;
9595
top: 10px !important;
9696
height: 40px;
9797
}
@@ -110,10 +110,6 @@
110110
#target {
111111
width: 345px;
112112
}
113-
#web-title {
114-
padding-left: 80px;
115-
margin: 8px;
116-
}
117113
#img-container {
118114
padding: 15px 0px 15px 5px;
119115
}
@@ -128,6 +124,32 @@
128124
margin: 30px auto;
129125
display: table;
130126
}
127+
@media screen and (min-width: 769px) {
128+
#web-title {
129+
padding-left: 80px;
130+
margin: 8px;
131+
}
132+
#pac-input {
133+
left: 50px !important;
134+
}
135+
}
136+
137+
@media screen and (min-width: 480px) and (max-width: 768px) {
138+
#web-title {
139+
margin: 14px 0px 10px 45px;
140+
}
141+
}
142+
143+
@media screen and (max-width: 479px) {
144+
#web-title {
145+
font-size: 1.2rem;
146+
margin: 18px 10px 10px 10px;
147+
}
148+
149+
#pac-input {
150+
width: 90%;
151+
}
152+
}
131153
</style>
132154

133155
</head>
@@ -141,16 +163,16 @@
141163
fjs.parentNode.insertBefore(js, fjs);
142164
}(document, 'script', 'facebook-jssdk'));</script>
143165
<div class="row">
144-
<div class="col-md-6">
166+
<div class="col-md-6 col-7">
145167
<h1 id="web-title">台灣郵筒位置地圖</h1>
146168
</div>
147-
<div class="col-md-1 offset-md-3" id="img-container">
169+
<div class="col-lg-1 offset-lg-3 col-md-3 offset-md-1 col-3 " id="img-container">
148170
<img id="comment-img" class="img" src="image/chat.svg" alt="Comment Image" width="32px" height="32px">
149171
<a href="https://github.com/Neilxx/neilxx.github.io" target="_blank">
150172
<img class="img" src="image/GitHub-Mark-120px-plus.png" alt="Github Image" width="32px" height="32px">
151173
</a>
152174
</div>
153-
<div class="col-md-2" id="fb-container">
175+
<div class="col-md-2 col-2" id="fb-container">
154176
<div class="fb-like" data-href="https://neilxx.github.io/" data-layout="button_count" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div>
155177
</div>
156178
</div>
@@ -167,7 +189,9 @@ <h1 id="web-title">台灣郵筒位置地圖</h1>
167189
var map = new google.maps.Map(document.getElementById('map'), {
168190
center: taiwan,
169191
zoom: 7,
170-
mapTypeId: 'roadmap'
192+
mapTypeId: 'roadmap',
193+
mapTypeControl: false,
194+
fullscreenControl: false
171195
});
172196

173197
var image = {

0 commit comments

Comments
 (0)