Skip to content

Commit a78b0d3

Browse files
Merge pull request #217 from nvisionative/release/2.2.0
Release/2.2.0
2 parents cddad65 + 12b2749 commit a78b0d3

17 files changed

+1147
-6447
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
build/
33
dist/
4+
yarn-error.log

default.ascx

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
</main>
4545

4646
<!-- Footer -->
47-
<!--#include file="partials/_footer.ascx" -->
47+
<!--#include file="partials/_footer.ascx" -->

docs/Commands.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ This command initializes all third-party dependencies utilized within **nvQuickT
1212
* **gulp bsJsInit**
1313

1414
### gulp build
15-
This command error checks, concatenates, compiles and minifies all your JS and SCSS into the `./dist/` folder, as well as copies your containers to the correct folder. More specifically, it executes the following commands in series (completes each task before the next):
15+
This command cleans your `./dist/` folder, then error checks, concatenates, compiles and minifies all your JS and SCSS into the `./dist/` folder, as well as copies your containers to the correct folder. More specifically, it executes the following commands in series (completes each task before the next):
16+
* **gulp cleandist**
1617
* **gulp init**
1718
* **gulp styles**
1819
* **gulp scripts**
@@ -55,6 +56,9 @@ Copies containers to the correct folder within your DNN instance (assuming you a
5556
## Process Commands
5657
These commands are used within other commands and for other special situations. _We recommend use of these only for advanced users._
5758

59+
### gulp cleandist
60+
Deletes contents of `./dist/` folder. This is particularly useful when assets (such as images) are no longer required and removed from `./src/` folder. It is the first task triggered during **gulp build**.
61+
5862
### gulp zipdist
5963
ZIPs contents of `./dist/` folder. Used to prepare for theme packaging.
6064

@@ -67,5 +71,5 @@ ZIPs contents of `./menus/` folder, `./partials/` folder, and all ASCX, XML, HTM
6771
### gulp zippackage
6872
ZIPs all subset ZIP files and other pertinent project files into theme package installation file using the following naming convention: `[project]_[version]_install.zip`
6973

70-
### gulp cleanup
71-
Deletes all temporary ZIP and project files used in package tasks.
74+
### gulp cleantemp
75+
Deletes all temporary ZIP and project files from `./temp/` folder used in package tasks.

docs/_layouts/default.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2>{{ site.description | default: site.github.project_tagline }}</h2>
3333
<div id="content-wrapper">
3434
<div class="inner clearfix">
3535
<section id="main-content">
36-
<a href="https://www.nvquicktheme.com" target="_blank"><img alt="nvQuickTheme" src="https://www.nvquicktheme.com/portals/0/nvQuickTheme_logo.png" /></a>
36+
<a href="https://www.nvquicktheme.com" rel="noopener noreferrer" target="_blank"><img alt="nvQuickTheme" src="https://www.nvquicktheme.com/portals/0/nvQuickTheme_logo.png" /></a>
3737

3838
{{ content }}
3939
</section>
@@ -65,7 +65,7 @@ <h3>{{ item.title }}</h3>
6565
<p>This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</p>
6666
</aside>
6767
<div class="footer">
68-
<a href="https://www.nvisionative.com" target="_blank"><img alt="Brought to the DNN community by nvisionative" src="https://www.nvquicksite.com/Portals/0/broughtBy-nvisionative.png" /></a>
68+
<a href="https://www.nvisionative.com" rel="noopener noreferrer" target="_blank"><img alt="Brought to the DNN community by nvisionative" src="https://www.nvquicksite.com/Portals/0/broughtBy-nvisionative.png" /></a>
6969
</div>
7070
</div>
7171
</div>

gulpfile.js

+29-19
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var bs = require('browser-sync').create(),
1010
replace = require('gulp-replace'),
1111
zip = require('gulp-zip'),
1212
clean = require('gulp-clean'),
13-
cleanCSS = require('gulp-clean-css');
13+
cleanCSS = require('gulp-clean-css'),
1414
details = require('./project-details.json'),
1515
project = details.project,
1616
version = details.version,
@@ -88,8 +88,11 @@ var paths = {
8888
zipfile: project+'\_'+version+'\_install.zip',
8989
dest: './build/'
9090
},
91-
cleanup: {
91+
cleantemp: {
9292
src: './temp/'
93+
},
94+
cleandist: {
95+
src: './dist/'
9396
}
9497
};
9598

@@ -131,18 +134,11 @@ function normalizeInit() {
131134
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
132135
.pipe(cleanCSS())
133136
.pipe(rename({suffix: '.min'}))
134-
.pipe(autoprefixer({browsers: ['last 2 versions', 'ie >= 9', '> 1%']}))
137+
.pipe(autoprefixer())
135138
.pipe(gulp.dest(paths.normalize.dest, { sourcemaps: '.' }))
136139
.pipe(notify({message: '<%= file.relative %> compiled and distributed!', title : 'normalizeInit', sound: false}));
137140
}
138141

139-
// Copy bootstrap CSS from node_modules to dist/css
140-
function bsCssInit() {
141-
return gulp.src(paths.bsCss.src)
142-
.pipe(gulp.dest(paths.bsCss.dest))
143-
.pipe(notify({message: '<%= file.relative %> distributed!', title : 'bsCssInit', sound: false}));
144-
}
145-
146142
// Copy bootstrap JS from node_modules to dist/js
147143
function bsJsInit() {
148144
return gulp.src(paths.bsJs.src)
@@ -183,7 +179,7 @@ function styles() {
183179
.pipe(sass({includePaths: ['./node_modules']},{outputStyle: 'compressed'}).on('error', sass.logError))
184180
.pipe(cleanCSS())
185181
.pipe(rename({suffix: '.min'}))
186-
.pipe(autoprefixer({browsers: ['last 2 versions', 'ie >= 9', '> 1%']}))
182+
.pipe(autoprefixer())
187183
.pipe(gulp.dest(paths.styles.dest, { sourcemaps: '.' }))
188184
.pipe(notify({message: '<%= file.relative %> compiled and distributed!', title : 'styles', sound: false}));
189185
}
@@ -243,6 +239,20 @@ function manifest() {
243239
/*------------------------------------------------------*/
244240

245241

242+
/*------------------------------------------------------*/
243+
/* MAINTENANCE TASKS -----------------------------------*/
244+
/*------------------------------------------------------*/
245+
// Clean up dist folder
246+
function cleandist() {
247+
return gulp.src(paths.cleandist.src, { allowEmpty: true })
248+
.pipe(clean())
249+
.pipe(notify({message: 'dist folder cleaned up!', title : 'cleandist', sound: false}));
250+
}
251+
/*------------------------------------------------------*/
252+
/* END MAINTENANCE TASKS -------------------------------*/
253+
/*------------------------------------------------------*/
254+
255+
246256
/*------------------------------------------------------*/
247257
/* PACKAGING TASKS -------------------------------------*/
248258
/*------------------------------------------------------*/
@@ -284,11 +294,11 @@ function zippackage() {
284294
.pipe(notify({message: '<%= file.relative %> created!', title : 'zippackage', sound: false}));
285295
}
286296

287-
// Cleanup temp folder
288-
function cleanup() {
289-
return gulp.src(paths.cleanup.src)
297+
// Clean temp folder
298+
function cleantemp() {
299+
return gulp.src(paths.cleantemp.src)
290300
.pipe(clean())
291-
.pipe(notify({message: 'temp folder cleaned up!', title : 'cleanup', sound: false}));
301+
.pipe(notify({message: 'temp folder cleaned up!', title : 'cleantemp', sound: false}));
292302
}
293303
/*------------------------------------------------------*/
294304
/* END PACKAGING TASKS ---------------------------------*/
@@ -321,10 +331,10 @@ function watch() {
321331
var init = gulp.series(fontsInit, faFontsInit, faCssInit, slimMenuInit, normalizeInit, bsJsInit);
322332

323333
// gulp build
324-
var build = gulp.series(init, styles, scripts, images, containers, manifest);
334+
var build = gulp.series(cleandist, init, styles, scripts, images, containers, manifest);
325335

326336
// gulp package
327-
var package = gulp.series(build, ziptemp, zippackage, cleanup);
337+
var package = gulp.series(build, ziptemp, zippackage, cleantemp);
328338
/*------------------------------------------------------*/
329339
/* END DEV TASKS ---------------------------------------*/
330340
/*------------------------------------------------------*/
@@ -339,19 +349,19 @@ exports.faFontsInit = faFontsInit;
339349
exports.faCssInit = faCssInit;
340350
exports.slimMenuInit = slimMenuInit;
341351
exports.normalizeInit = normalizeInit;
342-
exports.bsCssInit = bsCssInit;
343352
exports.bsJsInit = bsJsInit;
344353
exports.images = images;
345354
exports.styles = styles;
346355
exports.scripts = scripts;
347356
exports.containers = containers;
348357
exports.manifest = manifest;
358+
exports.cleandist = cleandist;
349359
exports.zipdist = zipdist;
350360
exports.zipcontainers = zipcontainers;
351361
exports.zipelse = zipelse;
352362
exports.ziptemp = ziptemp;
353363
exports.zippackage = zippackage;
354-
exports.cleanup = cleanup;
364+
exports.cleantemp = cleantemp;
355365
exports.serve = serve;
356366
exports.watch = watch;
357367
exports.init = init;

package.json

+15-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"private": true,
99
"dependencies": {
1010
"@fortawesome/fontawesome-free": "^5.9.0",
11-
"bootstrap": "^4.3.1",
11+
"bootstrap": "^4.4.1",
1212
"normalize.css": "^8.0.1"
1313
},
1414
"devDependencies": {
@@ -26,5 +26,18 @@
2626
"gulp-uglify": "^3.0.0",
2727
"gulp-zip": "^4.1.0",
2828
"jshint": "^2.9.5"
29-
}
29+
},
30+
"browserslist": [
31+
"> 1%",
32+
"ie >= 8",
33+
"edge >= 15",
34+
"ie_mob >= 10",
35+
"ff >= 45",
36+
"chrome >= 45",
37+
"safari >= 7",
38+
"opera >= 23",
39+
"ios >= 7",
40+
"android >= 4",
41+
"bb >= 10"
42+
]
3043
}

partials/_footer.ascx

+2
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515
</ul>
1616
</div>
1717
</div>
18+
19+
<dnn:Login runat="server" id="dnnHiddenLogin" CssClass="hiddenLogin" />
1820
</footer>

partials/_includes-popUpSkin.ascx

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<dnn:META ID="mobileScale" runat="server" Name="viewport" Content="width=device-width, initial-scale=1.0" />
2+
3+
<dnn:DnnCssInclude runat="server" FilePath="dist/css/layouts/popUpSkin.min.css" Priority="120" PathNameAlias="SkinPath" />

partials/_registers-popUpSkin.ascx

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<%@ Control Language="C#" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
2+
<%@ Register TagPrefix="dnn" TagName="META" Src="~/Admin/Skins/Meta.ascx" %>

popUpSkin.ascx

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!--#include file="partials/_registers-popUpSkin.ascx" -->
2+
<!--#include file="partials/_includes-popUpSkin.ascx" -->
3+
4+
<div id="ContentPane" runat="server" />

src/scss/components/_login.scss

+13-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
padding-right: .25em;
103103
}
104104

105-
&::nth-child(2) {
105+
&:nth-child(2) {
106106
padding-left: .25em;
107107
}
108108
}
@@ -114,4 +114,16 @@
114114
}
115115
}
116116
}
117+
}
118+
119+
120+
//Hides the #dnnHiddenLogin LOGIN theme object
121+
.hiddenLogin {
122+
bottom: 0;
123+
display: none;
124+
height: 25px;
125+
left: 0;
126+
position: fixed;
127+
text-indent: -1000px;
128+
width: 25px;
117129
}

src/scss/layouts/popUpSkin.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
html {
2+
height: auto;
3+
}

src/scss/style.scss

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@import 'variables/bs-overrides';
12
@import 'autoload/autoload';
23
@import 'variables/variables';
34
@import 'mixins/mixins';

src/scss/variables/_bs-overrides.scss

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/* Bootstrap Overrides */
2+
3+
// Bootstrap colors
4+
$bs-colors: (
5+
'primary':#ec3d46,
6+
'secondary':#00a5e1,
7+
'success':#28a745,
8+
'info':#17a2b8,
9+
'warning':#ffc107,
10+
'danger':#dc3545,
11+
'light':#f8f9fa,
12+
'dark':#343a40
13+
);
14+
15+
$primary:map-get($bs-colors, 'primary');
16+
$secondary:map-get($bs-colors, 'secondary');
17+
$success:map-get($bs-colors, 'success');
18+
$info:map-get($bs-colors, 'info');
19+
$warning:map-get($bs-colors, 'warning');
20+
$danger:map-get($bs-colors, 'danger');
21+
$light:map-get($bs-colors, 'light');
22+
$dark:map-get($bs-colors, 'dark');
23+
24+
// Grid breakpoints (changed to relative units to fix cross-platform inconsistencies)
25+
$grid-breakpoints: (
26+
xs: 0,
27+
sm: 36rem,
28+
md: 48rem,
29+
lg: 62rem,
30+
xl: 75rem
31+
);
32+
33+
// Grid containers (changed to relative units to fix cross-platform inconsistencies)
34+
$container-max-widths: (
35+
sm: 33.75rem,
36+
md: 45rem,
37+
lg: 60rem,
38+
xl: 71.25rem
39+
);
40+
41+
// Override Bootstrap spacers for more options
42+
$spacer:1rem;
43+
$spacers: (
44+
0: 0,
45+
1: $spacer,
46+
2: ($spacer * 2),
47+
3: ($spacer * 3),
48+
4: ($spacer * 4),
49+
5: ($spacer * 5),
50+
6: ($spacer * 6),
51+
7: ($spacer * 7),
52+
8: ($spacer * 8)
53+
);
54+
55+
// Get rid of deprecated warnings
56+
$enable-deprecation-messages: false;
57+
58+
// Change gutter width
59+
$grid-gutter-width: 22px !default;
60+
61+
// Form Control changes
62+
$input-height:2rem;
63+
$input-color:#444;
64+
$input-font-size:13;
65+
$input-border-radius:2px;
66+
$input-padding-y:.25rem;
67+
$input-padding-x:.75rem;
68+
69+
$form-check-input-margin-y:3px;
70+
71+
$custom-file-height-inner:unset;
72+
$custom-file-line-height:1.61539;
73+
74+
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
75+
// $yiq-contrasted-threshold: 195 !default;

src/scss/variables/_colors.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ $light-grey: #e6e6e6 !default;
33
$grey:#7d7d7d !default;
44
$dark-grey: #333333 !default;
55

6-
$primary-color: rgb(236, 61, 70) !default;
7-
$secondary-color: rgb(0, 165, 225) !default;
8-
$tertiary-color: rgb(70, 42, 43) !default;
6+
$primary-color: map-get($bs-colors, 'primary') !default;
7+
$secondary-color: map-get($bs-colors, 'secondary') !default;
8+
$tertiary-color: #462a2b !default;
99

1010
$border-color: #bbb !default;
1111
$link-color: $primary-color !default;

0 commit comments

Comments
 (0)