forked from hazza/dspace-angular
44112: Upgrade to bootstrap 4 beta
This commit is contained in:
@@ -88,7 +88,7 @@
|
|||||||
"@ngx-translate/core": "7.1.0",
|
"@ngx-translate/core": "7.1.0",
|
||||||
"@ngx-translate/http-loader": "0.1.0",
|
"@ngx-translate/http-loader": "0.1.0",
|
||||||
"body-parser": "1.17.2",
|
"body-parser": "1.17.2",
|
||||||
"bootstrap": "4.0.0-alpha.6",
|
"bootstrap": "v4.0.0-beta",
|
||||||
"cerialize": "0.1.15",
|
"cerialize": "0.1.15",
|
||||||
"compression": "1.7.0",
|
"compression": "1.7.0",
|
||||||
"cookie-parser": "1.4.3",
|
"cookie-parser": "1.4.3",
|
||||||
|
@@ -1,7 +1,4 @@
|
|||||||
@import '../styles/variables.scss';
|
@import '../styles/main.scss';
|
||||||
@import '../../node_modules/bootstrap/scss/bootstrap.scss';
|
|
||||||
@import "../../node_modules/font-awesome/scss/font-awesome.scss";
|
|
||||||
|
|
||||||
html {
|
html {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../styles/variables.scss';
|
@import '../../styles/main.scss';
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../styles/variables.scss';
|
@import '../../styles/main.scss';
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
||||||
@import '../../../../node_modules/bootstrap/scss/_variables.scss';
|
$footer-bg: $gray-100;
|
||||||
$footer-bg: $gray-lighter;
|
|
||||||
$footer-border: 1px solid darken($footer-bg, 10%);
|
$footer-border: 1px solid darken($footer-bg, 10%);
|
||||||
$footer-padding: $spacer * 1.5;
|
$footer-padding: $spacer * 1.5;
|
||||||
|
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav class="navbar navbar-toggleable-sm navbar-inverse bg-inverse">
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
|
||||||
<button class="navbar-toggler navbar-toggler-right" type="button" (click)="toggle()" aria-controls="collapsingNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon fa fa-bars fa-fw" aria-hidden="true"></span>
|
|
||||||
</button>
|
|
||||||
<div [ngClass]="{'clearfix': !(isNavBarCollapsed | async)}">
|
<div [ngClass]="{'clearfix': !(isNavBarCollapsed | async)}">
|
||||||
<a class="navbar-brand" routerLink="/home">{{ 'title' | translate }}</a>
|
<a class="navbar-brand" routerLink="/home">{{ 'title' | translate }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
<button class="navbar-toggler" type="button" (click)="toggle()" aria-controls="collapsingNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon fa fa-bars fa-fw" aria-hidden="true"></span>
|
||||||
|
</button>
|
||||||
<div [ngbCollapse]="(isNavBarCollapsed | async)" class="collapse navbar-collapse" id="collapsingNav">
|
<div [ngbCollapse]="(isNavBarCollapsed | async)" class="collapse navbar-collapse" id="collapsingNav">
|
||||||
<ul class="navbar-nav mr-auto">
|
<ul class="navbar-nav mr-auto">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
@import '../../styles/variables.scss';
|
@import '../../styles/main.scss';
|
||||||
|
|
||||||
header nav.navbar {
|
header nav.navbar {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
@import '../../../styles/mixins.scss';
|
@import '../../../styles/main.scss';
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
@include negate-gutters();
|
margin-right: ($grid-gutter-width / -2);
|
||||||
|
margin-left: ($grid-gutter-width / -2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dspace-logo-container {
|
.dspace-logo-container {
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../styles/variables.scss';
|
@import '../../styles/main.scss';
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
@import '../../../../styles/variables.scss';
|
@import '../../../../styles/main.scss';
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
.simple-view-element {
|
.simple-view-element {
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../../../styles/variables.scss';
|
@import '../../../../styles/main.scss';
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../../../styles/variables.scss';
|
@import '../../../../styles/main.scss';
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
@import '../../../../../styles/variables.scss';
|
@import '../../../../../styles/main.scss';
|
||||||
@import '../../../../../../node_modules/bootstrap/scss/_variables.scss';
|
|
||||||
@media screen and (min-width: map-get($grid-breakpoints, md)) {
|
@media screen and (min-width: map-get($grid-breakpoints, md)) {
|
||||||
dt {
|
dt {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
<ds-item-page-title-field [item]="item.payload | async"></ds-item-page-title-field>
|
<ds-item-page-title-field [item]="item.payload | async"></ds-item-page-title-field>
|
||||||
|
|
||||||
<div class="simple-view-link">
|
<div class="simple-view-link">
|
||||||
<a class="btn btn-secondary col-4" [routerLink]="['/items/' + (item.payload | async)?.id]">
|
<a class="btn btn-outline-primary col-4" [routerLink]="['/items/' + (item.payload | async)?.id]">
|
||||||
{{"item.page.link.simple" | translate}}
|
{{"item.page.link.simple" | translate}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
||||||
:host {
|
:host {
|
||||||
div.simple-view-link {
|
div.simple-view-link {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
<ds-item-page-uri-field [item]="item.payload | async"></ds-item-page-uri-field>
|
<ds-item-page-uri-field [item]="item.payload | async"></ds-item-page-uri-field>
|
||||||
<ds-item-page-collections [item]="item.payload | async"></ds-item-page-collections>
|
<ds-item-page-collections [item]="item.payload | async"></ds-item-page-collections>
|
||||||
<div>
|
<div>
|
||||||
<a class="btn btn-secondary" [routerLink]="['/items/' + (item.payload | async)?.id + '/full']">
|
<a class="btn btn-outline-primary" [routerLink]="['/items/' + (item.payload | async)?.id + '/full']">
|
||||||
{{"item.page.link.full" | translate}}
|
{{"item.page.link.full" | translate}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
@@ -1 +1 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
@@ -1 +1 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
@@ -1,7 +1,6 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
||||||
@import '../../../../node_modules/bootstrap/scss/variables';
|
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: $spacer-y;
|
margin-bottom: $spacer;
|
||||||
}
|
}
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../styles/variables.scss';
|
@import '../../styles/main.scss';
|
@@ -1 +1 @@
|
|||||||
@import '../../styles/variables.scss';
|
@import '../../styles/main.scss';
|
||||||
|
@@ -1 +1 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
@@ -1 +1 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
@@ -1 +1 @@
|
|||||||
@import '../../../styles/variables.scss';
|
@import '../../../styles/main.scss';
|
@@ -1 +1 @@
|
|||||||
@import '../../styles/variables.scss';
|
@import '../../styles/main.scss';
|
||||||
|
4
src/styles/_main.scss
Normal file
4
src/styles/_main.scss
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
@import 'variables.scss';
|
||||||
|
@import '../../node_modules/bootstrap/scss/bootstrap.scss';
|
||||||
|
@import "../../node_modules/font-awesome/scss/font-awesome.scss";
|
||||||
|
@import 'mixins.scss';
|
@@ -1,12 +1 @@
|
|||||||
@import './variables.scss';
|
/* Custom mixins go here */
|
||||||
@import '../../node_modules/bootstrap/scss/variables';
|
|
||||||
@import '../../node_modules/bootstrap/scss/mixins';
|
|
||||||
@mixin negate-gutters($gutters: $grid-gutter-widths) {
|
|
||||||
@each $breakpoint in map-keys($gutters){
|
|
||||||
@include media-breakpoint-up($breakpoint) {
|
|
||||||
$gutter: map-get($gutters, $breakpoint);
|
|
||||||
margin-right: ($gutter / -2);
|
|
||||||
margin-left: ($gutter / -2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -4,17 +4,27 @@ $fa-font-path: "../assets/fonts";
|
|||||||
$image-path: "../assets/images";
|
$image-path: "../assets/images";
|
||||||
/* Colors */
|
/* Colors */
|
||||||
$gray-base: #000 !default;
|
$gray-base: #000 !default;
|
||||||
$gray-darker: lighten($gray-base, 13.5%) !default; // #222
|
$gray-900: lighten($gray-base, 13.5%) !default; // #222
|
||||||
$gray-dark: lighten($gray-base, 26.6%) !default; // #444
|
$gray-800: lighten($gray-base, 26.6%) !default; // #444
|
||||||
$gray: lighten($gray-base, 46.6%) !default; // #777
|
$gray-700: lighten($gray-base, 46.6%) !default; // #777
|
||||||
$gray-light: lighten($gray-base, 73.3%) !default; // #bbb
|
$gray-600: lighten($gray-base, 73.3%) !default; // #bbb
|
||||||
$gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
|
$gray-100: lighten($gray-base, 93.5%) !default; // #eee
|
||||||
/* Reassign color vars to semantic color scheme */
|
/* Reassign color vars to semantic color scheme */
|
||||||
$brand-primary: #2B4E72 !default;
|
$blue: #2B4E72 !default;
|
||||||
$brand-success: #94BA65 !default;
|
$green: #94BA65 !default;
|
||||||
$brand-info: #2790B0 !default;
|
$cyan: #2790B0 !default;
|
||||||
$brand-warning: #EBBB54 !default;
|
$yellow: #EBBB54 !default;
|
||||||
$brand-danger: #CF4444 !default;
|
$red: #CF4444 !default;
|
||||||
$brand-inverse: $brand-primary !default;
|
|
||||||
|
$theme-colors: (
|
||||||
|
primary: $blue,
|
||||||
|
secondary: $gray-600,
|
||||||
|
success: $green,
|
||||||
|
info: $cyan,
|
||||||
|
warning: $yellow,
|
||||||
|
danger: $red,
|
||||||
|
light: $gray-100,
|
||||||
|
dark: $blue
|
||||||
|
) !default;
|
||||||
/* Fonts */
|
/* Fonts */
|
||||||
$link-color: $brand-info !default;
|
$link-color: $cyan !default;
|
||||||
|
17
yarn.lock
17
yarn.lock
@@ -810,12 +810,9 @@ boom@2.x.x:
|
|||||||
dependencies:
|
dependencies:
|
||||||
hoek "2.x.x"
|
hoek "2.x.x"
|
||||||
|
|
||||||
bootstrap@4.0.0-alpha.6:
|
bootstrap@v4.0.0-beta:
|
||||||
version "4.0.0-alpha.6"
|
version "4.0.0-beta"
|
||||||
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.0.0-alpha.6.tgz#4f54dd33ac0deac3b28407bc2df7ec608869c9c8"
|
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.0.0-beta.tgz#dc5928175d2e71310bc668cf9e05a907211b72a6"
|
||||||
dependencies:
|
|
||||||
jquery ">=1.9.1"
|
|
||||||
tether "^1.4.0"
|
|
||||||
|
|
||||||
brace-expansion@^1.1.7:
|
brace-expansion@^1.1.7:
|
||||||
version "1.1.7"
|
version "1.1.7"
|
||||||
@@ -3518,10 +3515,6 @@ jodid25519@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
jsbn "~0.1.0"
|
jsbn "~0.1.0"
|
||||||
|
|
||||||
jquery@>=1.9.1:
|
|
||||||
version "3.2.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.2.1.tgz#5c4d9de652af6cd0a770154a631bba12b015c787"
|
|
||||||
|
|
||||||
js-base64@^2.1.8, js-base64@^2.1.9:
|
js-base64@^2.1.8, js-base64@^2.1.9:
|
||||||
version "2.1.9"
|
version "2.1.9"
|
||||||
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.1.9.tgz#f0e80ae039a4bd654b5f281fc93f04a914a7fcce"
|
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.1.9.tgz#f0e80ae039a4bd654b5f281fc93f04a914a7fcce"
|
||||||
@@ -6893,10 +6886,6 @@ tar@^2.0.0, tar@^2.2.1:
|
|||||||
fstream "^1.0.2"
|
fstream "^1.0.2"
|
||||||
inherits "2"
|
inherits "2"
|
||||||
|
|
||||||
tether@^1.4.0:
|
|
||||||
version "1.4.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/tether/-/tether-1.4.0.tgz#0f9fa171f75bf58485d8149e94799d7ae74d1c1a"
|
|
||||||
|
|
||||||
throttleit@^1.0.0:
|
throttleit@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c"
|
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c"
|
||||||
|
Reference in New Issue
Block a user