Added ruleset to create project, fixes for Safari

This commit is contained in:
Adina Țeudan 2020-12-11 11:48:48 +02:00
parent 9dab1da115
commit c850f3126b
29 changed files with 153 additions and 51 deletions

View File

@ -1,6 +1,9 @@
.file-actions { .file-actions {
display: flex; display: flex;
gap: 2px;
> *:not(last-child) {
margin-right: 2px;
}
} }
.reviewer { .reviewer {

View File

@ -8,7 +8,10 @@
.actions { .actions {
display: flex; display: flex;
gap: 8px;
> *:not(last-child) {
margin-right: 8px;
}
} }
} }

View File

@ -2,7 +2,7 @@
<div [className]="colorClass + ' oval ' + size" [matTooltipPosition]="'above'" [matTooltip]="username"> <div [className]="colorClass + ' oval ' + size" [matTooltipPosition]="'above'" [matTooltip]="username">
{{ initials }} {{ initials }}
</div> </div>
<div *ngIf="withName" class="clamp-2"> <div *ngIf="withName" class="clamp-2 username">
{{ username || ('initials-avatar.unassigned' | translate) }} {{ username || ('initials-avatar.unassigned' | translate) }}
</div> </div>
</div> </div>

View File

@ -2,5 +2,8 @@
display: flex; display: flex;
align-items: center; align-items: center;
width: fit-content; width: fit-content;
gap: 6px;
.username {
margin-left: 6px;
}
} }

View File

@ -3,12 +3,18 @@
.wrapper { .wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px;
margin-top: 10px; margin-top: 10px;
> *:not(last-child) {
margin-bottom: 10px;
}
.comment { .comment {
display: flex; display: flex;
gap: 12px;
> *:not(last-child) {
margin-right: 12px;
}
.owner { .owner {
opacity: 0.7; opacity: 0.7;
@ -45,13 +51,19 @@
.comment-actions-container, .comment-actions-container,
.actions-container { .actions-container {
display: flex; display: flex;
gap: 15px;
align-items: center; align-items: center;
> *:not(last-child) {
margin-right: 15px;
}
} }
.actions-container { .actions-container {
margin-left: 26px; margin-left: 26px;
gap: 5px;
> *:not(last-child) {
margin-right: 5px;
}
> div:not(:last-child):after { > div:not(:last-child):after {
content: ''; content: '';

View File

@ -3,5 +3,8 @@
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
gap: 4px;
> *:not(last-child) {
margin-right: 4px;
}
} }

View File

@ -8,10 +8,19 @@
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 20px;
&:not(.column) {
> *:not(last-child) {
margin-right: 20px;
}
}
&.column { &.column {
flex-direction: column; flex-direction: column;
> *:not(last-child) {
margin-bottom: 20px;
}
} }
} }
@ -33,19 +42,19 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 8px;
margin-left: -8px; margin-left: -8px;
> div { > div {
width: fit-content; width: fit-content;
display: flex;
flex-direction: column;
gap: 8px;
> div { > div {
border-radius: 4px; border-radius: 4px;
padding: 3px 8px; padding: 3px 8px;
&:not(last-child) {
margin-bottom: 8px;
}
&:not(.filter-disabled) { &:not(.filter-disabled) {
cursor: pointer; cursor: pointer;
} }

View File

@ -14,7 +14,10 @@
.section-wrapper { .section-wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 10px;
> *:not(last-child) {
margin-right: 10px;
}
} }
} }

View File

@ -9,7 +9,6 @@
display: flex; display: flex;
width: 100%; width: 100%;
line-height: 11px; line-height: 11px;
gap: 8px;
padding: 0 24px; padding: 0 24px;
} }
@ -20,6 +19,8 @@
.sort-arrows-container { .sort-arrows-container {
display: none; display: none;
color: $primary; color: $primary;
margin-left: 8px;
mat-icon { mat-icon {
height: 14px; height: 14px;
width: 6px; width: 6px;

View File

@ -2,5 +2,8 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: 8px;
redaction-annotation-icon {
margin-right: 8px;
}
} }

View File

@ -10,12 +10,24 @@
<label translate="project-listing.add-edit-dialog.form.name"></label> <label translate="project-listing.add-edit-dialog.form.name"></label>
<input formControlName="projectName" name="projectName" type="text" /> <input formControlName="projectName" name="projectName" type="text" />
</div> </div>
<div class="red-input-group" *ngIf="!project">
<mat-form-field floatLabel="always">
<mat-label>{{ 'project-listing.add-edit-dialog.form.rule-set' | translate }}</mat-label>
<mat-select value="EFSA 1 (Authors by vertebrates)" style="width: 100%;">
<mat-option *ngFor="let type of ['EFSA 1 (Authors by vertebrates)']" [value]="type">
{{ type }}
</mat-option>
</mat-select>
</mat-form-field>
</div>
<div class="red-input-group"> <div class="red-input-group">
<label translate="project-listing.add-edit-dialog.form.description"></label> <label translate="project-listing.add-edit-dialog.form.description"></label>
<textarea formControlName="description" name="description" type="text" rows="5"></textarea> <textarea formControlName="description" name="description" type="text" rows="5"></textarea>
</div> </div>
<mat-form-field class="mt-20"> <mat-form-field>
<mat-label>{{ 'project-listing.add-edit-dialog.form.due-date' | translate }}</mat-label> <mat-label>{{ 'project-listing.add-edit-dialog.form.due-date' | translate }}</mat-label>
<input matInput [matDatepicker]="picker" formControlName="dueDate" /> <input matInput [matDatepicker]="picker" formControlName="dueDate" />
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle> <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>

View File

@ -10,7 +10,6 @@
justify-content: flex-end; justify-content: flex-end;
width: 120px; width: 120px;
padding-right: 16px; padding-right: 16px;
background: linear-gradient(to right, transparent 0%, #f9fafb, #f9fafb, #f9fafb);
.confirm.active { .confirm.active {
background-color: $grey-2; background-color: $grey-2;

View File

@ -99,11 +99,11 @@
.details { .details {
display: flex; display: flex;
gap: 10px;
} }
redaction-annotation-icon { redaction-type-annotation-icon {
margin-top: 6px; margin-top: 6px;
margin-right: 10px;
} }
&:hover { &:hover {
@ -129,8 +129,11 @@
.assign-actions-wrapper { .assign-actions-wrapper {
display: flex; display: flex;
gap: 2px;
margin-left: 8px; margin-left: 8px;
> *:not(last-child) {
margin-right: 2px;
}
} }
.mr-16 { .mr-16 {

View File

@ -21,7 +21,6 @@
.project-stats-item { .project-stats-item {
display: flex; display: flex;
width: fit-content; width: fit-content;
gap: 5px;
margin-top: 25px; margin-top: 25px;
&:first-of-type { &:first-of-type {
@ -31,6 +30,7 @@
mat-icon { mat-icon {
height: 16px; height: 16px;
margin-top: 2px; margin-top: 2px;
margin-right: 5px;
} }
} }
} }

View File

@ -1,5 +1,8 @@
:host { :host {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 2px;
> *:not(last-child) {
margin-right: 2px;
}
} }

View File

@ -8,14 +8,13 @@
redaction-circle-button { redaction-circle-button {
position: absolute; position: absolute;
top: -5px; top: -5px;
left: 277px; left: 290px;
} }
} }
.legend { .legend {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 4px;
margin-left: -8px; margin-left: -8px;
> div { > div {
@ -32,13 +31,20 @@
&.active { &.active {
background-color: rgba($primary, 0.1); background-color: rgba($primary, 0.1);
} }
&:not(:last-of-type) {
margin-bottom: 4px;
}
} }
} }
.stats-subtitle { .stats-subtitle {
gap: 0;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
> * {
margin-right: 0;
}
} }
.mt-8 { .mt-8 {

View File

@ -49,15 +49,16 @@ redaction-table-col-name::ng-deep {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
gap: 4px;
opacity: 0.7; opacity: 0.7;
color: $grey-1; color: $grey-1;
font-size: 11px; font-size: 11px;
letter-spacing: 0; letter-spacing: 0;
line-height: 14px; line-height: 14px;
.mat-icon { .mat-icon {
width: 10px; width: 10px;
height: 10px; height: 10px;
margin-right: 4px;
} }
} }
@ -68,13 +69,13 @@ redaction-table-col-name::ng-deep {
} }
.left-container { .left-container {
width: calc(100vw - 358px); width: calc(100vw - 375px);
} }
.right-container { .right-container {
display: flex; display: flex;
width: 358px; width: 375px;
min-width: 358px; min-width: 375px;
padding: 16px 16px 16px 24px; padding: 16px 16px 16px 24px;
redaction-project-details { redaction-project-details {

View File

@ -165,7 +165,7 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
} }
public get areAllFilesSelected() { public get areAllFilesSelected() {
return this.appStateService.activeProject.files.length !== 0 && this.selectedFileIds.length === this.displayedFiles.length; return this.displayedFiles.length !== 0 && this.selectedFileIds.length === this.displayedFiles.length;
} }
public get areSomeFilesSelected() { public get areSomeFilesSelected() {

View File

@ -101,11 +101,12 @@
"form": { "form": {
"description": "Description", "description": "Description",
"name": "Name", "name": "Name",
"due-date": "Due Date" "due-date": "Due Date",
"rule-set": "Rule Set"
}, },
"actions": { "actions": {
"save": "Save", "save": "Save",
"save-and-add-members": "Save and edit Team" "save-and-add-members": "Save and Edit Team"
} }
}, },
"header": "Projects", "header": "Projects",

View File

@ -4,7 +4,10 @@
.breadcrumbs-container { .breadcrumbs-container {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 6px;
> *:not(last-child) {
margin-right: 6px;
}
.breadcrumb { .breadcrumb {
text-decoration: none; text-decoration: none;

View File

@ -13,7 +13,10 @@
display: flex; display: flex;
align-items: center; align-items: center;
line-height: 34px; line-height: 34px;
gap: 6px;
> *:not(last-child) {
margin-right: 6px;
}
} }
} }
@ -34,6 +37,7 @@ redaction-icon-button,
redaction-chevron-button, redaction-chevron-button,
redaction-circle-button { redaction-circle-button {
position: relative; position: relative;
display: flex;
transition: background-color 0.2s; transition: background-color 0.2s;
button { button {

View File

@ -24,6 +24,9 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px;
> *:not(last-child) {
margin-right: 8px;
}
} }
} }

View File

@ -66,7 +66,6 @@
.stats-subtitle { .stats-subtitle {
display: flex; display: flex;
gap: 12px;
> div { > div {
display: flex; display: flex;
@ -77,6 +76,10 @@
width: 10px; width: 10px;
margin-right: 4px; margin-right: 4px;
} }
&:not(last-child) {
margin-right: 12px;
}
} }
} }

View File

@ -8,15 +8,21 @@
display: flex; display: flex;
align-items: center; align-items: center;
z-index: 1; z-index: 1;
gap: 10px;
border-bottom: 1px solid $separator; border-bottom: 1px solid $separator;
box-sizing: border-box; box-sizing: border-box;
@include inset-shadow; @include inset-shadow;
> *:not(last-child) {
margin-right: 10px;
}
.actions { .actions {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 25px;
> *:not(last-child) {
margin-right: 25px;
}
} }
&.justify-end { &.justify-end {

View File

@ -38,6 +38,10 @@
display: none; display: none;
} }
.mat-form-field-wrapper {
padding-bottom: 0;
}
.mat-form-field-label { .mat-form-field-label {
opacity: 0.7 !important; opacity: 0.7 !important;
color: $grey-1 !important; color: $grey-1 !important;

View File

@ -23,7 +23,10 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px;
> *:not(last-child) {
margin-right: 8px;
}
.arrow-wrapper { .arrow-wrapper {
width: 16px; width: 16px;

View File

@ -23,12 +23,15 @@ body {
background-color: $white; background-color: $white;
.filters { .filters {
gap: 2px;
display: flex; display: flex;
align-items: center; align-items: center;
> *:not(last-child) {
margin-right: 2px;
}
> div:first-child { > div:first-child {
margin-right: 6px; margin-right: 8px;
} }
form { form {
@ -43,7 +46,10 @@ body {
.actions { .actions {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 2px;
> *:not(last-child) {
margin-right: 2px;
}
} }
} }
@ -251,9 +257,12 @@ body {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
gap: 12px;
height: calc(100vh - 61px); height: calc(100vh - 61px);
position: relative; position: relative;
> *:not(last-child) {
margin-bottom: 2px;
}
} }
.fit-content { .fit-content {

View File

@ -8,10 +8,6 @@
line-height: 14px; line-height: 14px;
} }
.mat-form-field-wrapper {
padding-bottom: 0;
}
.mat-form-field-infix { .mat-form-field-infix {
padding: 0; padding: 0;
border: none; border: none;

View File

@ -11,9 +11,12 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
gap: 10px;
box-shadow: none; box-shadow: none;
> *:not(last-child) {
margin-right: 10px;
}
&:hover { &:hover {
box-shadow: none; box-shadow: none;
} }
@ -21,7 +24,10 @@
.actions-wrapper { .actions-wrapper {
margin-top: 24px; margin-top: 24px;
display: flex; display: flex;
gap: 24px;
> *:not(last-child) {
margin-right: 24px;
}
a { a {
font-size: 11px; font-size: 11px;