Skip to content

Commit 10df12b

Browse files
committed
refactor: update navbar
Navbar now has stuff in it... Well, it _will_ do when I add them.
1 parent 5caac87 commit 10df12b

File tree

4 files changed

+52
-14
lines changed

4 files changed

+52
-14
lines changed

index.php

+15-11
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,24 @@
148148
</head>
149149
<body>
150150

151-
<nav class="navbar navbar-default-invert navbar-static-top" style="margin: 0;">
151+
<nav class="navbar navbar-dark navbar-expand-md">
152152
<!-- At some point, I'll add more stuff here. For the time being, it'll just be the site logo -->
153-
<div class="container-fluid">
154-
<div class="container">
155-
<div class="navbar-brand" style="padding: 10px 15px">
156-
<!-- You can change this shit -->
157-
<a href="https://github.com/TGRHavoc/">
158-
<img src="https://avatars1.githubusercontent.com/u/1770893?s=460&v=4" style="max-height: 30px" >
159-
Live Map
160-
</a>
161-
</div>
162-
153+
<div class="container">
154+
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
155+
<span class="navbar-toggler-icon"></span>
156+
</button>
157+
<a class="navbar-brand" href="https://github.com/TGRHavoc/">
158+
<img src="https://avatars1.githubusercontent.com/u/1770893?s=460&v=4" style="max-height: 30px" >
159+
Live Map
160+
</a>
161+
162+
<div class="collapse navbar-collapse" id="navbarNav">
163+
<ul class="navbar-nav">
164+
<!-- TODO: Dynamically generate links? -->
165+
</ul>
163166
</div>
164167
</div>
168+
165169
</nav>
166170

167171
<div id="wrapper" class="container-fluid">

js/src/map.js

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ var mapRoadOptions = {
9797
},
9898
tileSize: new google.maps.Size(256, 256),
9999
maxZoom: 7,
100+
minZoom: 5,
100101
name: "Road",
101102
alt: "GTA V Road Map"
102103
};

style/src/style.css

+34
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,40 @@ input[type=text] {display:inline;}
134134
/* UI/Overides --------------------- */
135135
#cookieChoiceInfo { background-color: #333!important; }
136136

137+
/*************
138+
Alerts
139+
*************/
140+
.alert {
141+
text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
142+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
143+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
144+
color: #fff;
145+
}
146+
.alert-success {
147+
border-color: #19B99A;
148+
background: #20A286;
149+
}
150+
.alert-info {
151+
border-color: #B4E1E4;
152+
background: #81c7e1;
153+
}
154+
.alert-warning {
155+
border-color: #bd6900;
156+
background: #ff8e00;
157+
}
158+
.alert-danger {
159+
border-color: #B63E5A;
160+
background: #E26868;
161+
}
162+
.alert-alt {
163+
border-color: #694D9F;
164+
background: #694D9F;
165+
}
166+
167+
168+
/**********************
169+
Sidebar
170+
***********************/
137171
.nav-header {
138172
font-size: 25px;
139173
text-align: center;

utils/minifier.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ private static function minifyJS($files) {
7070
}
7171

7272
public static function printCss($debug){
73-
$cssFiles = array("style/src/bootstrap.css", "style/src/bootstrap-grid.css", "style/src/bootstrap-grid.css",
74-
"style/src/bootstrap-theme.css",
75-
"style/src/style.css");
73+
$cssFiles = array("style/src/bootstrap.css", "style/src/bootstrap-grid.css",
74+
"style/src/bootstrap-grid.css", "style/src/style.css");
7675
if($debug){
7776
foreach($cssFiles as $fname){
7877
echo "<link type=\"text/css\" rel=\"stylesheet\" href=\"$fname\">";

0 commit comments

Comments
 (0)