Skip to content

Commit 8a34ea4

Browse files
committed
Merge branch 'develop' of github.com:modularcode/modular-admin-html into develop
2 parents 1643392 + b3ff69a commit 8a34ea4

9 files changed

Lines changed: 54 additions & 21 deletions

File tree

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 ModularCode
4+
https://github.com/modularcode
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

build/tasks/app-pages.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,12 @@ function setFrontMatter(file) {
152152

153153
function getPageContextExternal(file) {
154154

155+
// Initial context
155156
var context = {};
156157

158+
// Package data
159+
context.pkg = require('../../package.json');
160+
157161
var rootDir = path.resolve(config.srcDir);
158162
var pageDir = path.dirname(file.path);
159163

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "ModularAdmin: Free Dashboard Theme; html version",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/modularcode/modular-admin-free-dashboard-theme-html.git"
7+
"url": "https://github.com/modularcode/modular-admin-html.git"
88
},
9-
"author": "",
9+
"author": "ModularCode",
1010
"license": "ISC",
1111
"bugs": {
1212
"url": "https://github.com/modularcode/modular-admin-html/issues"
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
<div class="header-block header-block-buttons">
2-
<a href="https://github.com/modularcode/modular-admin-html" class="btn btn-primary-outline btn-sm rounded-s header-btn">
1+
<div class="header-block header-block-buttons" >
2+
<a href="https://github.com/modularcode/modular-admin-html"
3+
class="btn btn-default btn-sm rounded-s header-btn">
34
<i class="fa fa-github-alt"></i>
45
View on GitHub
56
</a>
6-
<a href="https://github.com/modularcode/modular-admin-html/archive/master.zip" class="btn btn-primary-outline btn-sm rounded-s header-btn">
7+
<a href="https://github.com/modularcode/modular-admin-html/releases/download/v{{pkg.version}}/modular-admin-html-{{pkg.version}}.zip"
8+
class="btn btn-default btn-sm rounded-s header-btn">
79
<i class="fa fa-cloud-download"></i>
810
Download .zip
911
</a>
10-
<button type="button" class="btn btn-primary-outline btn-sm rounded-s buttons header-btn">
12+
{{!-- <button type="button" class="btn btn-default btn-sm rounded-s buttons header-btn">
1113
<i class="fa fa-share-alt"></i>
1214
Share
13-
</button>
15+
</button> --}}
1416
</div>

src/app/_common/header/buttons/buttons.scss

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@
22
text-align: center;
33
margin-left: auto;
44
margin-right: auto;
5+
white-space: nowrap;
56

6-
.header-btn {
7-
border: 1px solid $color-text;
8-
color: $color-text;
9-
}
10-
11-
.header-btn:hover {
12-
border: 1px solid $color-primary;
13-
color: #ffffff;
14-
}
7+
.btn.header-btn {
8+
background-color: transparent;
9+
border: none;
10+
color: lighten($color-text, 10%);
1511

16-
.header-btn:focus {
17-
border: 1px solid $color-primary;
18-
color: #ffffff;
12+
&:hover,
13+
&:focus {
14+
color: darken($color-text, 10%);
15+
}
1916
}
2017
}

src/app/_common/header/nav/nav.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.header .header-block-nav {
22
margin-left: auto;
3+
white-space: nowrap;
34

45
@include clearfix();
56

@@ -14,10 +15,13 @@
1415
list-style: none;
1516
}
1617

18+
& > ul {
19+
display: table;
20+
}
21+
1722
// First level items
1823
& > ul > li {
19-
// display: inline-block;
20-
float: left;
24+
display: table-cell;
2125
position: relative;
2226

2327
&:before {

src/app/_common/header/nav/notifications/notifications.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929

3030
.notifications-dropdown-menu {
31+
white-space: normal;
3132
left: auto;
3233
right: 0;
3334
min-width: 350px;

src/app/_common/header/nav/profile/profile.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
left: auto;
3636
right: 0;
3737
min-width: 180px;
38+
white-space: normal;
3839

3940
&:before {
4041
position: absolute;

src/app/_common/header/search/search.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.header .header-block-search {
22
$line-height: $header-height - 30px;
3+
margin-right: auto;
34

45
// float: left;
56
padding-left: $content-padding-x-md;
@@ -46,6 +47,7 @@
4647
border: none;
4748
padding-left: 25px;
4849
height: 40px;
50+
max-width: 150px;
4951

5052
@include media-down(sm) {
5153
max-width: 140px;

0 commit comments

Comments
 (0)