Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix sass warnings due to sass upgrade

Oliver Günther4522b33a053a
diff --git a/frontend/src/global_styles/content/_calendars.sass b/frontend/src/global_styles/content/_calendars.sass
index 7cda0e0f0a7..139564aa0df 100644
--- a/frontend/src/global_styles/content/_calendars.sass
+++ b/frontend/src/global_styles/content/_calendars.sass
@@ -19,7 +19,7 @@ full-calendar
padding: 0.4em 0.65em
.fc-button-active
- @extend .button.-active
+ @extend .button, .-active
.fc-title
max-width: 100%
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index ba71eadae08..0b3581ed323 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -374,7 +374,7 @@ fieldset.form--fieldset
color: $form-label-color
.form.-wide-labels &,
- .form--field.-wide-label &,
+ .form--field.-wide-label &
@include grid-size(4)
.form--field.-vertical &,
@@ -481,7 +481,7 @@ fieldset.form--fieldset
&.-no-italic
font-style: normal
-.form--inline-instructions,
+.form--inline-instructions
font-style: italic
display: inline
@@ -528,14 +528,6 @@ fieldset.form--fieldset
max-width: 1100px
.form--select-container
- &.-tiny,
- &.-xslim,
- &.-slim,
- &.-middle,
- &.-wide,
- &.-xwide,
- &.-xxwide
-
&.-auto
select
width: auto
diff --git a/frontend/src/global_styles/content/_forms_mobile.sass b/frontend/src/global_styles/content/_forms_mobile.sass
index db52755eb3b..6c563e19741 100644
--- a/frontend/src/global_styles/content/_forms_mobile.sass
+++ b/frontend/src/global_styles/content/_forms_mobile.sass
@@ -78,5 +78,5 @@
input[type="url"],
input[type="search"],
input[type="tel"],
- input[type="color"],
+ input[type="color"]
font-size: 16px !important
diff --git a/frontend/src/global_styles/content/_user.sass b/frontend/src/global_styles/content/_user.sass
index a1c342655af..7cfa8f28e89 100644
--- a/frontend/src/global_styles/content/_user.sass
+++ b/frontend/src/global_styles/content/_user.sass
@@ -35,7 +35,6 @@
border-radius: var(--user-avatar-mini-border-radius)
width: var(--user-avatar-mini-width)
height: var(--user-avatar-mini-height)
- vertical-align:
margin-right: 10px -5px
&.avatar-default
diff --git a/frontend/src/global_styles/content/work_packages/_table_relations.sass b/frontend/src/global_styles/content/work_packages/_table_relations.sass
index 9d5857797ee..61b8d420813 100644
--- a/frontend/src/global_styles/content/work_packages/_table_relations.sass
+++ b/frontend/src/global_styles/content/work_packages/_table_relations.sass
@@ -23,7 +23,7 @@ body
background: white
// Override default left-align of cells
-.wp-table--relation-cell-td,
+.wp-table--relation-cell-td
text-align: center !important
// Fix padding on additional row/id field
diff --git a/frontend/src/global_styles/content/work_packages/single_view/_inplace_esque_fields.sass b/frontend/src/global_styles/content/work_packages/single_view/_inplace_esque_fields.sass
index 5c7972fad91..45a917b8c61 100644
--- a/frontend/src/global_styles/content/work_packages/single_view/_inplace_esque_fields.sass
+++ b/frontend/src/global_styles/content/work_packages/single_view/_inplace_esque_fields.sass
@@ -5,7 +5,7 @@
// need to specify the a explicitly as otherwise
// the default class will win
a.inplace-editing--trigger-link,
-.inplace-editing--trigger-link,
+.inplace-editing--trigger-link
&:hover,
&:focus,
&.-focus
diff --git a/frontend/src/typings/observable-array.d.ts b/frontend/src/typings/observable-array.d.ts
new file mode 100644
index 00000000000..49771e8c3ff
--- /dev/null
+++ b/frontend/src/typings/observable-array.d.ts
@@ -0,0 +1,58 @@
+// Declare some globals
+// to work around previously magical global constants
+// provided by typings@global
+
+// Active issue
+// https://github.com/Microsoft/TypeScript/issues/10178
+
+/// <reference path="../../node_modules/@types/jquery/index.d.ts" />
+/// <reference path="../../node_modules/@types/jqueryui/index.d.ts" />
+/// <reference path="../../node_modules/@types/mousetrap/index.d.ts" />
+/// <reference path="../../node_modules/@types/moment-timezone/index.d.ts" />
+/// <reference path="../../node_modules/@types/urijs/index.d.ts" />
+/// <reference path="../../node_modules/@types/webpack-env/index.d.ts" />
+/// <reference path="../../node_modules/@types/es6-shim/index.d.ts" />
+/// <reference path="../../node_modules/@types/dragula/index.d.ts" />
+
+import {ErrorReporter} from "core-app/sentry/sentry-reporter";
+import {Injector} from '@angular/core';
+
+import {OpenProject} from 'core-app/globals/openproject';
+import * as TLodash from 'lodash';
+import * as TMoment from 'moment';
+import {GlobalI18n} from "core-app/modules/common/i18n/i18n.service";
+import {Dragula} from "dragula";
+
+declare module 'observable-array';
+declare module 'dom-autoscroller';
+declare module 'core-vendor/enjoyhint';
+
+declare global {
+ const _:typeof TLodash;
+ const moment:typeof TMoment;
+ const I18n:GlobalI18n;
+ const dragula:Dragula;
+}
+
+declare global {
+ interface Window {
+ appBasePath:string;
+ ng2Injector:Injector;
+ OpenProject:OpenProject;
+ ErrorReporter:ErrorReporter;
+ onboardingTourInstance:any;
+ }
+
+ interface JQuery {
+ topShelf:any;
+ mark:any;
+ tablesorter:any;
+ }
+
+ interface JQueryStatic {
+ metadata:any;
+ tablesorter:any;
+ }
+}
+
+export {};