Fix user dropdown and mobile nav
This commit is contained in:
14
gulpfile.js
14
gulpfile.js
@@ -9,7 +9,7 @@ let livereload = require('gulp-livereload');
|
|||||||
let plumber = require('gulp-plumber');
|
let plumber = require('gulp-plumber');
|
||||||
let rename = require('gulp-rename');
|
let rename = require('gulp-rename');
|
||||||
let sass = require('gulp-sass');
|
let sass = require('gulp-sass');
|
||||||
//let sourcemaps = require('gulp-sourcemaps');
|
let sourcemaps = require('gulp-sourcemaps');
|
||||||
let uglify = require('gulp-uglify');
|
let uglify = require('gulp-uglify');
|
||||||
|
|
||||||
let enabled = {
|
let enabled = {
|
||||||
@@ -30,10 +30,10 @@ gulp.task('styles', function(done) {
|
|||||||
gulp
|
gulp
|
||||||
.src('src/styles/**/*.sass')
|
.src('src/styles/**/*.sass')
|
||||||
.pipe(gulpif(enabled.failCheck, plumber()))
|
.pipe(gulpif(enabled.failCheck, plumber()))
|
||||||
//.pipe(gulpif(enabled.maps, sourcemaps.init()))
|
.pipe(gulpif(enabled.maps, sourcemaps.init()))
|
||||||
.pipe(sass({outputStyle: 'compressed'}))
|
.pipe(sass({outputStyle: 'compressed'}))
|
||||||
.pipe(autoprefixer("last 3 versions"))
|
.pipe(autoprefixer("last 3 versions"))
|
||||||
//.pipe(gulpif(enabled.maps, sourcemaps.write(".")))
|
.pipe(gulpif(enabled.maps, sourcemaps.write(".")))
|
||||||
.pipe(gulp.dest(destination.css))
|
.pipe(gulp.dest(destination.css))
|
||||||
.pipe(gulpif(argv.livereload, livereload()));
|
.pipe(gulpif(argv.livereload, livereload()));
|
||||||
done();
|
done();
|
||||||
@@ -59,10 +59,10 @@ gulp.task('scripts', function(done) {
|
|||||||
gulp.src('src/scripts/*.js')
|
gulp.src('src/scripts/*.js')
|
||||||
.pipe(gulpif(enabled.failCheck, plumber()))
|
.pipe(gulpif(enabled.failCheck, plumber()))
|
||||||
.pipe(cache('scripting'))
|
.pipe(cache('scripting'))
|
||||||
//.pipe(gulpif(enabled.maps, sourcemaps.init()))
|
.pipe(gulpif(enabled.maps, sourcemaps.init()))
|
||||||
.pipe(gulpif(enabled.uglify, uglify()))
|
.pipe(gulpif(enabled.uglify, uglify()))
|
||||||
.pipe(rename({suffix: '.min'}))
|
.pipe(rename({suffix: '.min'}))
|
||||||
//.pipe(gulpif(enabled.maps, sourcemaps.write(".")))
|
.pipe(gulpif(enabled.maps, sourcemaps.write(".")))
|
||||||
.pipe(gulp.dest(destination.js))
|
.pipe(gulp.dest(destination.js))
|
||||||
.pipe(gulpif(argv.livereload, livereload()));
|
.pipe(gulpif(argv.livereload, livereload()));
|
||||||
done();
|
done();
|
||||||
@@ -74,10 +74,10 @@ gulp.task('scripts', function(done) {
|
|||||||
gulp.task('scripts_tutti', function(done) {
|
gulp.task('scripts_tutti', function(done) {
|
||||||
gulp.src('src/scripts/tutti/**/*.js')
|
gulp.src('src/scripts/tutti/**/*.js')
|
||||||
.pipe(gulpif(enabled.failCheck, plumber()))
|
.pipe(gulpif(enabled.failCheck, plumber()))
|
||||||
//.pipe(gulpif(enabled.maps, sourcemaps.init()))
|
.pipe(gulpif(enabled.maps, sourcemaps.init()))
|
||||||
.pipe(concat("tutti.min.js"))
|
.pipe(concat("tutti.min.js"))
|
||||||
.pipe(gulpif(enabled.uglify, uglify()))
|
.pipe(gulpif(enabled.uglify, uglify()))
|
||||||
//.pipe(gulpif(enabled.maps, sourcemaps.write(".")))
|
.pipe(gulpif(enabled.maps, sourcemaps.write(".")))
|
||||||
.pipe(gulp.dest(destination.js))
|
.pipe(gulp.dest(destination.js))
|
||||||
.pipe(gulpif(argv.livereload, livereload()));
|
.pipe(gulpif(argv.livereload, livereload()));
|
||||||
done();
|
done();
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
background: #fff
|
background: #fff
|
||||||
height: auto
|
height: auto
|
||||||
min-height: 48px
|
min-height: 48px
|
||||||
// height: 48px
|
|
||||||
+media-breakpoint-up(md)
|
+media-breakpoint-up(md)
|
||||||
height: 56px
|
height: 56px
|
||||||
.logo
|
.logo
|
||||||
@@ -10,22 +9,20 @@
|
|||||||
justify-content: center
|
justify-content: center
|
||||||
.navbar-toggler
|
.navbar-toggler
|
||||||
padding: 0
|
padding: 0
|
||||||
|
border-radius: 0
|
||||||
.navbar-nav
|
.navbar-nav
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px
|
||||||
margin-top: 15px;
|
margin-top: 15px
|
||||||
+media-breakpoint-up(md)
|
+media-breakpoint-up(md)
|
||||||
margin: 0
|
margin: 0
|
||||||
.nav-item .nav-link
|
.nav-item .nav-link
|
||||||
font-size: 18px
|
font-size: 18px
|
||||||
color: $dark
|
color: $dark
|
||||||
// padding: 16px 8px 16px 34px
|
|
||||||
padding: 3vh 8px 3vh 34px
|
padding: 3vh 8px 3vh 34px
|
||||||
+media-breakpoint-up(lg)
|
+media-breakpoint-up(lg)
|
||||||
padding: 6px 18px
|
padding: 6px 18px
|
||||||
&:hover
|
&:hover
|
||||||
color: $muted
|
color: $muted
|
||||||
.dropdown-toggle::after
|
|
||||||
display:none
|
|
||||||
.navbar-toggler
|
.navbar-toggler
|
||||||
border: 0
|
border: 0
|
||||||
outline: none
|
outline: none
|
||||||
@@ -40,5 +37,17 @@
|
|||||||
.collapsing
|
.collapsing
|
||||||
transition: none
|
transition: none
|
||||||
display: none
|
display: none
|
||||||
.show
|
#navbarNav
|
||||||
padding-bottom: 75vh
|
.dropdown-toggle::after
|
||||||
|
display:none !important
|
||||||
|
&.show
|
||||||
|
padding-bottom: 75vh
|
||||||
|
.gravatar
|
||||||
|
width: 32px
|
||||||
|
border-radius: 50%
|
||||||
|
#userDropdown
|
||||||
|
.nav-link
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-bottom: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
outline: none;
|
@@ -45,7 +45,6 @@ html(lang="en")
|
|||||||
|
|
||||||
link(href="{{ url_for('static', filename='assets/img/favicon.png') }}", rel="shortcut icon")
|
link(href="{{ url_for('static', filename='assets/img/favicon.png') }}", rel="shortcut icon")
|
||||||
link(href="{{ url_for('static', filename='assets/img/apple-touch-icon-precomposed.png') }}", rel="icon apple-touch-icon-precomposed", sizes="192x192")
|
link(href="{{ url_for('static', filename='assets/img/apple-touch-icon-precomposed.png') }}", rel="icon apple-touch-icon-precomposed", sizes="192x192")
|
||||||
//- link(href="{{ url_for('static_pillar', filename='assets/css/vendor/bootstrap.min.css') }}", rel="stylesheet")
|
|
||||||
link(rel="stylesheet", href="{{ url_for('static', filename='assets/bootstrap/css/bootstrap.min.css') }}")
|
link(rel="stylesheet", href="{{ url_for('static', filename='assets/bootstrap/css/bootstrap.min.css') }}")
|
||||||
link(rel="stylesheet", href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600")
|
link(rel="stylesheet", href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600")
|
||||||
link(href="{{ url_for('static', filename='assets/google-font-roboto/roboto.css') }}", rel="stylesheet")
|
link(href="{{ url_for('static', filename='assets/google-font-roboto/roboto.css') }}", rel="stylesheet")
|
||||||
@@ -82,7 +81,6 @@ html(lang="en")
|
|||||||
| {% endwith %}
|
| {% endwith %}
|
||||||
|
|
||||||
//- Navigation Bar
|
//- Navigation Bar
|
||||||
//- nav.navbar.navbar-expand-md.navbar-light.sticky-top.bg-white
|
|
||||||
nav.navbar.navbar-expand-md.navbar-light.fixed-top
|
nav.navbar.navbar-expand-md.navbar-light.fixed-top
|
||||||
//- Logo
|
//- Logo
|
||||||
a.navbar-brand(href="#")
|
a.navbar-brand(href="#")
|
||||||
@@ -114,8 +112,9 @@ html(lang="en")
|
|||||||
li.nav-item
|
li.nav-item
|
||||||
a.nav-link(href="{{ url_for('cloud.services') }}",
|
a.nav-link(href="{{ url_for('cloud.services') }}",
|
||||||
class="{% if category == 'services' %}active{% endif %}") Services
|
class="{% if category == 'services' %}active{% endif %}") Services
|
||||||
li.nav-item
|
|
||||||
i.search-icon.pi-search
|
//- li.nav-item
|
||||||
|
//- i.search-icon.pi-search
|
||||||
| {% endblock navigation_sections %}
|
| {% endblock navigation_sections %}
|
||||||
|
|
||||||
| {% if current_user.is_anonymous %}
|
| {% if current_user.is_anonymous %}
|
||||||
@@ -230,9 +229,14 @@ html(lang="en")
|
|||||||
link(href='//fonts.googleapis.com/css?family=Roboto:300,400', rel='stylesheet', type='text/css')
|
link(href='//fonts.googleapis.com/css?family=Roboto:300,400', rel='stylesheet', type='text/css')
|
||||||
|
|
||||||
//- script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.bootstrap-3.3.7.min.js') }}")
|
//- script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.bootstrap-3.3.7.min.js') }}")
|
||||||
script(src="{{ url_for('static', filename='assets/jquery/jquery.slim.min.js') }}")
|
|
||||||
script(src="{{ url_for('static', filename='assets/popper.js/popper.min.js') }}")
|
//- local bootstrap js returns error message, investigate later
|
||||||
script(src="{{ url_for('static', filename='assets/bootstrap/js/bootstrap.min.js') }}")
|
//- script(src="{{ url_for('static', filename='assets/jquery/jquery.slim.min.js') }}")
|
||||||
|
//- script(src="{{ url_for('static', filename='assets/popper.js/popper.min.js') }}")
|
||||||
|
//- script(src="{{ url_for('static', filename='assets/bootstrap/js/bootstrap.min.js') }}")
|
||||||
|
script(src="https://code.jquery.com/jquery-3.3.1.min.js", integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=", crossorigin="anonymous")
|
||||||
|
script(src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js", integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49", crossorigin="anonymous")
|
||||||
|
script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js", integrity="sha384-o+RDsa0aLu++PJvFqy8fFScvbHFLtbvScb8AjopnFD+iEQ7wo/CG0xlczd+2O/em", crossorigin="anonymous")
|
||||||
|
|
||||||
| {% if current_user.is_authenticated %}
|
| {% if current_user.is_authenticated %}
|
||||||
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.typewatch-3.0.0.min.js') }}")
|
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.typewatch-3.0.0.min.js') }}")
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
| {% block menu_avatar %}
|
| {% block menu_avatar %}
|
||||||
a.navbar-item.dropdown-toggle(href="#", data-toggle="dropdown", title="{{ current_user.email }}")
|
a.nav-link.dropdown-toggle(href="#", data-toggle="dropdown", title="{{ current_user.email }}", aria-haspopup="true", aria-expanded="false")
|
||||||
img.gravatar(
|
img.gravatar(
|
||||||
src="{{ current_user.gravatar }}",
|
src="{{ current_user.gravatar }}",
|
||||||
class="{{ subscription }}",
|
class="{{ subscription }}",
|
||||||
@@ -26,26 +26,26 @@ a.navbar-item.dropdown-toggle(href="#", data-toggle="dropdown", title="{{ curren
|
|||||||
|
|
||||||
|
|
||||||
| {% block menu_list %}
|
| {% block menu_list %}
|
||||||
li.subscription-status(class="{{ subscription }}")
|
.dropdown-menu.subscription-status(class="{{ subscription }}", aria-labelledby="dropdownMenuLink")
|
||||||
| {% if subscription == 'subscriber' %}
|
| {% if subscription == 'subscriber' %}
|
||||||
a.navbar-item(
|
a.dropdown-item(
|
||||||
href="{{url_for('settings.billing')}}"
|
href="{{url_for('settings.billing')}}"
|
||||||
title="View subscription info")
|
title="View subscription info")
|
||||||
i.pi-grin
|
i.pi-grin
|
||||||
span Your subscription is active!
|
span Your subscription is active!
|
||||||
| {% elif subscription == 'demo' %}
|
| {% elif subscription == 'demo' %}
|
||||||
a.navbar-item(
|
a.dropdown-item(
|
||||||
href="{{url_for('settings.billing')}}"
|
href="{{url_for('settings.billing')}}"
|
||||||
title="View subscription info")
|
title="View subscription info")
|
||||||
i.pi-heart-filled
|
i.pi-heart-filled
|
||||||
span You have a free account.
|
span You have a free account.
|
||||||
| {% elif current_user.has_cap('can-renew-subscription') %}
|
| {% elif current_user.has_cap('can-renew-subscription') %}
|
||||||
a.navbar-item(target='_blank', href="/renew", title="Renew subscription")
|
a.dropdown-item(target='_blank', href="/renew", title="Renew subscription")
|
||||||
i.pi-heart
|
i.pi-heart
|
||||||
span.info Your subscription is not active.
|
span.info Your subscription is not active.
|
||||||
span.renew Click here to renew.
|
span.renew Click here to renew.
|
||||||
| {% else %}
|
| {% else %}
|
||||||
a.navbar-item(
|
a.dropdown-item(
|
||||||
href="https://store.blender.org/product/membership/"
|
href="https://store.blender.org/product/membership/"
|
||||||
title="Renew subscription")
|
title="Renew subscription")
|
||||||
i.pi-unhappy
|
i.pi-unhappy
|
||||||
@@ -56,7 +56,7 @@ li.subscription-status(class="{{ subscription }}")
|
|||||||
| {{ super() }}
|
| {{ super() }}
|
||||||
|
|
||||||
li
|
li
|
||||||
a.navbar-item(
|
a.dropdown-item(
|
||||||
href="{{ url_for('settings.billing') }}"
|
href="{{ url_for('settings.billing') }}"
|
||||||
title="Billing")
|
title="Billing")
|
||||||
i.pi-credit-card
|
i.pi-credit-card
|
||||||
|
1
static/assets/bootstrap/css/bootstrap.min.css.map
Normal file
1
static/assets/bootstrap/css/bootstrap.min.css.map
Normal file
File diff suppressed because one or more lines are too long
1
static/assets/bootstrap/js/bootstrap.min.js.map
Normal file
1
static/assets/bootstrap/js/bootstrap.min.js.map
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user