Switched to Bootstrap 4 Alpha 6 and converted Navbar
This commit is contained in:
parent
59024b892e
commit
25dd644c16
|
@ -1,3 +1,4 @@
|
||||||
media/*
|
media/*
|
||||||
.idea/
|
.idea/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
node_modules
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 938 B |
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="114" height="114" viewBox="0 0 114 114"><circle fill="teal" cx="57" cy="57" r="57"/><path fill="#FFF" d="M57 98.5l-13-13 2.2-2.2-15.5-15.5-2.2 2.2-13-13L35 37.5l13 13-4.2 4.2 2.7 2.7 11-11-2.7-2.7-4.1 4.1-13-13L57 15.5l13 13-2.2 2.2 15.5 15.5 2.2-2.2 13 13-19.3 19.3-13-13 4.1-4.1-2.2-2.2-11 11.1 2.2 2.2 4.2-4.2 13 13L57 98.5z"/></svg>
|
After Width: | Height: | Size: 383 B |
|
@ -0,0 +1 @@
|
||||||
|
$(".form-group").removeClass("row");
|
|
@ -0,0 +1,6 @@
|
||||||
|
$white: #fff;
|
||||||
|
$mint-green: #d6e9c6;
|
||||||
|
$black: #000;
|
||||||
|
$pink: #f2dede;
|
||||||
|
$dark-pink: #eed3d7;
|
||||||
|
$red: #b94a48;
|
|
@ -0,0 +1,13 @@
|
||||||
|
// bootstrap alert CSS, translated to the django-standard levels of
|
||||||
|
// debug, info, success, warning, error
|
||||||
|
.alert-debug {
|
||||||
|
background-color: $white;
|
||||||
|
border-color: $mint-green;
|
||||||
|
color: $black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-error {
|
||||||
|
background-color: $pink;
|
||||||
|
border-color: $dark-pink;
|
||||||
|
color: $red;
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
#navbar-logo {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
transition: transform .8s ease-in-out;
|
||||||
|
&:hover{
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,63 +1,10 @@
|
||||||
|
@import "node_modules/bootstrap/scss/bootstrap";
|
||||||
|
|
||||||
// project specific CSS goes here
|
@import "variables";
|
||||||
|
|
||||||
////////////////////////////////
|
@import "components/alert";
|
||||||
//Variables//
|
@import "components/header";
|
||||||
////////////////////////////////
|
@import "components/footer";
|
||||||
|
|
||||||
// Alert colors
|
|
||||||
|
|
||||||
$white: #fff;
|
|
||||||
$mint-green: #d6e9c6;
|
|
||||||
$black: #000;
|
|
||||||
$pink: #f2dede;
|
|
||||||
$dark-pink: #eed3d7;
|
|
||||||
$red: #b94a48;
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//Alerts//
|
|
||||||
////////////////////////////////
|
|
||||||
|
|
||||||
// bootstrap alert CSS, translated to the django-standard levels of
|
|
||||||
// debug, info, success, warning, error
|
|
||||||
|
|
||||||
.alert-debug {
|
|
||||||
background-color: $white;
|
|
||||||
border-color: $mint-green;
|
|
||||||
color: $black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.alert-error {
|
|
||||||
background-color: $pink;
|
|
||||||
border-color: $dark-pink;
|
|
||||||
color: $red;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//Navbar//
|
|
||||||
////////////////////////////////
|
|
||||||
|
|
||||||
// This is a fix for the bootstrap4 alpha release
|
|
||||||
|
|
||||||
.navbar {
|
|
||||||
border-radius: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 47.9em) {
|
|
||||||
.navbar-nav .nav-item {
|
|
||||||
display: inline-block;
|
|
||||||
float: none;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-nav .nav-item + .nav-item {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav.navbar-nav.pull-xs-right {
|
|
||||||
float: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//Django Toolbar//
|
//Django Toolbar//
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% load staticfiles i18n compress%}<!DOCTYPE html>
|
{% load staticfiles i18n compress %}
|
||||||
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -14,36 +15,37 @@
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<link rel="icon" type="image/png" href="/static/images/favicon.png">
|
<link rel="icon" type="image/png" href="/static/images/favicon.png">
|
||||||
{% block css %}
|
{% block css %}
|
||||||
<!-- Latest compiled and minified Bootstrap 4 Alpha 4 CSS -->
|
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/css/bootstrap.min.css" integrity="sha384-2hfp1SzUoho7/TsGGGDaFdsuuDL0LX2hnUp6VkX3CUQ2K4K+xjboZdsXyp4oUHZj" crossorigin="anonymous">
|
|
||||||
|
|
||||||
<!-- Your stuff: Third-party CSS libraries go here -->
|
<!-- Your stuff: Third-party CSS libraries go here -->
|
||||||
{% compress css %}
|
{# { compress css }#}
|
||||||
<!-- This file stores project-specific CSS -->
|
<!-- This file stores project-specific CSS -->
|
||||||
<link href="{% static 'css/project.css' %}" rel="stylesheet">
|
<link href="{% static 'css/project.css' %}" rel="stylesheet">
|
||||||
{% endcompress %}
|
{# { endcompress }#}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<div>
|
||||||
<div class="m-b-1">
|
<nav class="navbar navbar-toggleable-md navbar-inverse bg-inverse mb-4">
|
||||||
<a id="mini_logo" href="/login">
|
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
|
||||||
<img src="/static/images/hackspace.png" class="mini-logo">
|
data-target="#navbarMainMenu" aria-controls="navbarMainMenu" aria-expanded="false"
|
||||||
</a>
|
aria-label="Toggle navigation">
|
||||||
<nav class="navbar navbar-dark navbar-static-top bg-inverse">
|
<span class="navbar-toggler-icon"></span>
|
||||||
<div class="container">
|
|
||||||
<a class="navbar-brand" href="/">Maidstone Hackspace</a>
|
|
||||||
<button type="button" class="navbar-toggler hidden-sm-up pull-xs-right" data-toggle="collapse" data-target="#bs-navbar-collapse-1">
|
|
||||||
☰
|
|
||||||
</button>
|
</button>
|
||||||
|
<a class="navbar-brand" href="/">
|
||||||
|
<img src="/static/images/logo.svg" alt="Maidstone Hackspace Logo" id="navbar-logo">
|
||||||
|
Maidstone Hackspace
|
||||||
|
</a>
|
||||||
|
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
||||||
<div class="collapse navbar-toggleable-xs" id="bs-navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="navbarMainMenu">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="navbar-nav mr-auto">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{% url 'home' %}">Home</a>
|
<a class="nav-link" href="{% url 'home' %}">Home</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="{% url 'about' %}">About</a>
|
||||||
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{% url 'chat' %}">Chat</a>
|
<a class="nav-link" href="{% url 'chat' %}">Chat</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -56,12 +58,6 @@
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{% url 'group' %}">Mailing List</a>
|
<a class="nav-link" href="{% url 'group' %}">Mailing List</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="{% url 'home' %}">Login</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="{% url 'about' %}">About</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul class="nav navbar-nav pull-xs-right">
|
<ul class="nav navbar-nav pull-xs-right">
|
||||||
|
@ -82,7 +78,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -98,36 +93,29 @@
|
||||||
<p>Use this document as a way to quick start any new project.</p>
|
<p>Use this document as a way to quick start any new project.</p>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
</div> <!-- /container -->
|
</div>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="m-b-1 navbar-dark bg-inverse"> </div>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<span class="text-muted">© 2016 Maidstone Hackspace</span>
|
||||||
<div class="col-md-6">
|
|
||||||
<div mailing-list-signup="" class="google-groups-signup">
|
|
||||||
<h3>Signup and make yourself known</h3>
|
|
||||||
<form class="block" name="signup" method="get" action="https://groups.google.com/group/maidstone-hackspace/boxsubscribe">
|
|
||||||
<label for="groups-email">Email Address</label>
|
|
||||||
<input id="groups-email" name="email" class="required">
|
|
||||||
<button type="submit">Subscribe</button>
|
|
||||||
<a href="http://groups.google.com/group/maidstone-hackspace">View Group</a>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">©2016 Maidstone Hackspace</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{% block modal %}{% endblock modal %}
|
{% block modal %}{% endblock modal %}
|
||||||
|
|
||||||
<!-- Le javascript
|
<!-- Le javascript
|
||||||
================================================== -->
|
================================================== -->
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
<!-- Required by Bootstrap v4 Alpha 4 -->
|
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7" crossorigin="anonymous"></script>
|
integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n"
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.7/js/tether.min.js" integrity="sha384-XTs3FgkjiBgo8qjEjBk0tGmf3wPrWtA6coPfQDfFEY8AnYJwjalXCiosYRBIBZX8" crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/js/bootstrap.min.js" integrity="sha384-VjEeINv9OSwtWFLAtmc4JCtEJXXBub00gtSnszmspDLCtC0I4z4nqz7rEFbIZLLU" crossorigin="anonymous"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"
|
||||||
|
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"
|
||||||
|
integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn"
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
|
|
||||||
<!-- Your stuff: Third-party javascript libraries go here -->
|
<!-- Your stuff: Third-party javascript libraries go here -->
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "mhackspace",
|
"name": "mhackspace",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
|
"bootstrap": "^4.0.0-alpha.6"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
||||||
"browser-sync": "^2.14.0",
|
"browser-sync": "^2.14.0",
|
||||||
"del": "^2.2.2",
|
"del": "^2.2.2",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
|
@ -17,7 +18,6 @@
|
||||||
"gulp-uglify": "^2.0.0",
|
"gulp-uglify": "^2.0.0",
|
||||||
"gulp-util": "^3.0.7",
|
"gulp-util": "^3.0.7",
|
||||||
"run-sequence": "^1.2.2"
|
"run-sequence": "^1.2.2"
|
||||||
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.8.0"
|
"node": ">=0.8.0"
|
||||||
|
|
Loading…
Reference in New Issue