"layout"
Bootstrap 3.3.0 Snippet by evarevirus

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BLUEBOX</title>
<link rel="icon" type="image/png" href="http://res.cloudinary.com/dekbzep16/image/upload/v1484574304/Layout/Bluebox/bluebox-logo.png" />
</head>
<body>
<header>
<div class="container">
<div id="responsive-menu-icon" onclick="toggleResponsiveMenu()">
<span class="menu-box">
<span class="menu-inner"></span>
</span>
</div>
<div class="logo">
<img src="http://res.cloudinary.com/dekbzep16/image/upload/v1484574304/Layout/Bluebox/bluebox-logo.png" alt="BlueBox logo" />
<span>BLUEBOX</span>
</div>
<div class="search-box">
<form>
<input type="text" id="search" placeholder="Search" onChange="searchInput()" />
<input type="submit" value="" />
</form>
</div>
<nav id="top-menu">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@import url(https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700);
/* VARIABLE.SCSS */
/* - */
/* MIXINS.SCSS */
/* - */
/* MEDIA.SCSS */
@import url(https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.3/flexslider.min.css);
@media (max-width: 599px) {
button {
height: 45px;
padding: 0 15px;
}
h1 {
font-size: 1.6rem;
}
h2 {
font-size: 1.4rem;
}
header .logo {
display: flex;
justify-content: center;
align-items: center;
flex-basis: 100%;
}
header .logo img {
width: 20px;
}
header .logo span {
font-size: 1.66rem;
}
header nav {
display: inline;
flex-basis: 100%;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
controlNav: false
});
});
function toggleResponsiveMenu() {
const menu = document.getElementById("top-menu");
const menuIcon = document.getElementById("responsive-menu-icon");
if (menu.className === "responsive") {
menu.className = "";
menuIcon.className = "";
} else {
menu.className = "responsive";
menuIcon.className = "open-menu";
}
}
function searchInput() {
const search= document.getElementById("search");
if (search.value !== "") {
search.className = "stretch"
} else {
search.className = ""
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: