Compare commits
2 Commits
3b4003ff01
...
c4e60bee2a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4e60bee2a | ||
|
|
6a37419cf6 |
@@ -1,6 +1,7 @@
|
|||||||
<div class="left">
|
<div class="left">
|
||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="sideMenu.open()"
|
(click)="sideMenu.open()"
|
||||||
|
class="cod-btn icon"
|
||||||
matTooltip="Click to show side menu"
|
matTooltip="Click to show side menu"
|
||||||
matRipple
|
matRipple
|
||||||
i18n-matTooltip>
|
i18n-matTooltip>
|
||||||
@@ -18,8 +19,8 @@
|
|||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
@if (isAuthenticated) {
|
@if (isAuthenticated) {
|
||||||
<button mat-button
|
<button type="button"
|
||||||
class="button"
|
class="cod-btn icon"
|
||||||
[matMenuTriggerFor]="authenticatedUserMenu"
|
[matMenuTriggerFor]="authenticatedUserMenu"
|
||||||
matRipple>
|
matRipple>
|
||||||
<mat-icon>more_vert</mat-icon>
|
<mat-icon>more_vert</mat-icon>
|
||||||
|
|||||||
@@ -26,25 +26,6 @@ $headerHeight: 3.5em;
|
|||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
button {
|
|
||||||
background-color: #3f51b5;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
border-radius: 10em;
|
|
||||||
transition: background-color .2s ease-in-out;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
$buttonSize: 2.5em;
|
|
||||||
width: $buttonSize;
|
|
||||||
height: $buttonSize;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
background-color: #5c6bc0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -120,45 +101,10 @@ $headerHeight: 3.5em;
|
|||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
margin-right: .5em;
|
||||||
|
|
||||||
a {
|
a, button {
|
||||||
display: flex;
|
margin: .5em;
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-width: 5em;
|
|
||||||
color: white;
|
|
||||||
margin: 0.5em 0.5em;
|
|
||||||
border-radius: 10em;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 0 .8em;
|
|
||||||
background-color: #3f51b5;
|
|
||||||
transition: background-color .2s ease-in-out;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: #5c6bc0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-width: 2.5em;
|
|
||||||
color: white;
|
|
||||||
margin: 0.5em 0.5em;
|
|
||||||
border-radius: 10em;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 0;
|
|
||||||
background-color: #3f51b5;
|
|
||||||
transition: background-color .2s ease-in-out;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: #5c6bc0;
|
|
||||||
}
|
|
||||||
|
|
||||||
mat-icon {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
<button type="button" class="close" (click)="closeDialog()" matRipple>
|
<button type="button"
|
||||||
|
(click)="closeDialog()"
|
||||||
|
class="cod-btn icon secondary close"
|
||||||
|
matTooltip="Close"
|
||||||
|
matRipple
|
||||||
|
i18n-matTooltip>
|
||||||
<mat-icon>close</mat-icon>
|
<mat-icon>close</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -6,20 +6,6 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
max-height: 90vh;
|
max-height: 90vh;
|
||||||
|
|
||||||
.close {
|
|
||||||
position: absolute;
|
|
||||||
top: 1em;
|
|
||||||
right: 1em;
|
|
||||||
width: 2.5em;
|
|
||||||
height: 2.5em;
|
|
||||||
border-radius: 10em;
|
|
||||||
border: none;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
header {
|
header {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { MatFormFieldModule } from "@angular/material/form-field";
|
|||||||
import { MatIcon } from "@angular/material/icon";
|
import { MatIcon } from "@angular/material/icon";
|
||||||
import { MatInputModule } from "@angular/material/input";
|
import { MatInputModule } from "@angular/material/input";
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
import { MatTooltip } from "@angular/material/tooltip";
|
||||||
|
|
||||||
export interface ProgramingLanguage {
|
export interface ProgramingLanguage {
|
||||||
code: string;
|
code: string;
|
||||||
@@ -94,6 +95,7 @@ export const PROGRAMMING_LANGUAGES: ProgramingLanguage[] = [
|
|||||||
MatInputModule,
|
MatInputModule,
|
||||||
MatRippleModule,
|
MatRippleModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
|
MatTooltip,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
<button type="button" class="close" (click)="closeDialog()" matRipple>
|
<button type="button"
|
||||||
|
(click)="closeDialog()"
|
||||||
|
class="cod-btn icon secondary close"
|
||||||
|
matTooltip="Close"
|
||||||
|
matRipple
|
||||||
|
i18n-matTooltip>
|
||||||
<mat-icon>close</mat-icon>
|
<mat-icon>close</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -6,20 +6,6 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
max-height: 90vh;
|
max-height: 90vh;
|
||||||
|
|
||||||
.close {
|
|
||||||
position: absolute;
|
|
||||||
top: 1em;
|
|
||||||
right: 1em;
|
|
||||||
width: 2.5em;
|
|
||||||
height: 2.5em;
|
|
||||||
border-radius: 10em;
|
|
||||||
border: none;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
header {
|
header {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -58,13 +58,6 @@
|
|||||||
i18n-matTooltip>
|
i18n-matTooltip>
|
||||||
H3
|
H3
|
||||||
</button>
|
</button>
|
||||||
<button type="button"
|
|
||||||
(click)="selectAPicture()"
|
|
||||||
matTooltip="Click to insert a picture"
|
|
||||||
matRipple
|
|
||||||
i18n-matTooltip>
|
|
||||||
<mat-icon>image</mat-icon>
|
|
||||||
</button>
|
|
||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="insertLink()"
|
(click)="insertLink()"
|
||||||
matTooltip="Click to insert a link"
|
matTooltip="Click to insert a link"
|
||||||
@@ -72,6 +65,13 @@
|
|||||||
i18n-matTooltip>
|
i18n-matTooltip>
|
||||||
<mat-icon>link</mat-icon>
|
<mat-icon>link</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
<button type="button"
|
||||||
|
(click)="selectAPicture()"
|
||||||
|
matTooltip="Click to insert a picture"
|
||||||
|
matRipple
|
||||||
|
i18n-matTooltip>
|
||||||
|
<mat-icon>image</mat-icon>
|
||||||
|
</button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="displayCodeBlockDialog()"
|
(click)="displayCodeBlockDialog()"
|
||||||
matTooltip="Click to insert a code block"
|
matTooltip="Click to insert a code block"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
(click)="close()"
|
(click)="close()"
|
||||||
|
class="cod-btn icon"
|
||||||
matTooltip="Close the menu"
|
matTooltip="Close the menu"
|
||||||
matRipple
|
matRipple
|
||||||
i18n-matTooltip>
|
i18n-matTooltip>
|
||||||
|
|||||||
@@ -41,24 +41,6 @@
|
|||||||
height: $imageSize;
|
height: $imageSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
|
||||||
border-radius: 10em;
|
|
||||||
border: none;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 2.5em;
|
|
||||||
height: 2.5em;
|
|
||||||
color: white;
|
|
||||||
background-color: #3f51b5;
|
|
||||||
transition: background-color .2s ease-in-out;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
background-color: #5c6bc0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<button type="submit"
|
<button type="submit"
|
||||||
class="cod-button {{color}}"
|
class="cod-btn {{color}}"
|
||||||
[disabled]="disabled || requestPending"
|
[disabled]="disabled || requestPending"
|
||||||
(click)="click.emit()"
|
(click)="click.emit()"
|
||||||
matRipple>
|
matRipple>
|
||||||
|
|||||||
@@ -18,6 +18,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="actions reversed">
|
<div class="actions reversed">
|
||||||
<app-submit-button [requestPending]="false" [disabled]="false" i18n>Send</app-submit-button>
|
<app-submit-button [requestPending]="false" [disabled]="false" i18n>Send</app-submit-button>
|
||||||
<a [routerLink]="['/signin']" class="cod-button secondary" matRipple i18n>Create an account</a>
|
<a [routerLink]="['/signin']" class="cod-btn secondary" matRipple i18n>Create an account</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
class="new-publication"
|
class="new-publication"
|
||||||
matTooltip="Add a new publication"
|
matTooltip="Add a new publication"
|
||||||
matTooltipPosition="left"
|
matTooltipPosition="left"
|
||||||
|
matRipple
|
||||||
i18n-matTooltip>
|
i18n-matTooltip>
|
||||||
+
|
+
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { Publication } from "../../core/rest-services/publications/model/publica
|
|||||||
import { CommonModule } from "@angular/common";
|
import { CommonModule } from "@angular/common";
|
||||||
import { RouterModule } from "@angular/router";
|
import { RouterModule } from "@angular/router";
|
||||||
import { MatTooltipModule } from "@angular/material/tooltip";
|
import { MatTooltipModule } from "@angular/material/tooltip";
|
||||||
|
import { MatRippleModule } from "@angular/material/core";
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -17,8 +18,9 @@ import { MatTooltipModule } from "@angular/material/tooltip";
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
PublicationListComponent,
|
MatRippleModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
|
PublicationListComponent,
|
||||||
RouterModule
|
RouterModule
|
||||||
],
|
],
|
||||||
providers: [MyPublicationsService]
|
providers: [MyPublicationsService]
|
||||||
|
|||||||
@@ -34,6 +34,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="actions reversed">
|
<div class="actions reversed">
|
||||||
<app-submit-button [requestPending]="false" [disabled]="false" i18n>Send</app-submit-button>
|
<app-submit-button [requestPending]="false" [disabled]="false" i18n>Send</app-submit-button>
|
||||||
<a [routerLink]="['/login']" class="cod-button secondary" matRipple i18n>I already have an account</a>
|
<a [routerLink]="['/login']" class="cod-btn secondary" matRipple i18n>I already have an account</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -1,10 +1,13 @@
|
|||||||
button.cod-btn, a.cod-button {
|
button.cod-btn, a.cod-btn {
|
||||||
padding: .8em 1.2em;
|
padding: .8em 1.2em;
|
||||||
border-radius: 10em;
|
border-radius: 10em;
|
||||||
border: none;
|
border: none;
|
||||||
background-color: #3f51b5;
|
background-color: #3f51b5;
|
||||||
color: white;
|
color: white;
|
||||||
transition: background-color .2s ease-in-out;
|
transition: background-color .2s ease-in-out;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #5b6ed8;
|
background-color: #5b6ed8;
|
||||||
@@ -19,8 +22,22 @@ button.cod-btn, a.cod-button {
|
|||||||
background-color: #f2f4ff;
|
background-color: #f2f4ff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.icon {
|
||||||
|
$buttonSize: 2.5em;
|
||||||
|
width: $buttonSize;
|
||||||
|
height: $buttonSize;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
&.close {
|
||||||
|
position: absolute;
|
||||||
|
top: 1em;
|
||||||
|
right: 1em;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a.cod-button {
|
a.cod-btn {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user