Add buttons in publication editor.
This commit is contained in:
@@ -28,7 +28,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<button type="button" disabled matTooltip="Click to insert a title 1 section">
|
||||||
|
H1
|
||||||
|
</button>
|
||||||
|
<button type="button" disabled matTooltip="Click to insert a title 2 section">
|
||||||
|
H2
|
||||||
|
</button>
|
||||||
|
<button type="button" disabled matTooltip="Click to insert a title 1 section">
|
||||||
|
H3
|
||||||
|
</button>
|
||||||
|
<button type="button" disabled matTooltip="Click to insert a picture">
|
||||||
|
<mat-icon>image</mat-icon>
|
||||||
|
</button>
|
||||||
|
<button type="button" disabled matTooltip="Click to insert a link">
|
||||||
|
<mat-icon>link</mat-icon>
|
||||||
|
</button>
|
||||||
|
<button type="button" disabled matTooltip="Click to insert a code block">
|
||||||
|
<mat-icon>code</mat-icon>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<mat-form-field class="example-form-field">
|
<mat-form-field class="example-form-field">
|
||||||
<mat-label>Content</mat-label>
|
<mat-label>Content</mat-label>
|
||||||
<textarea matInput formControlName="text" class="text-input"></textarea>
|
<textarea matInput formControlName="text" class="text-input"></textarea>
|
||||||
|
|||||||
@@ -29,30 +29,6 @@
|
|||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
button, a.button {
|
|
||||||
padding: .8em 1.2em;
|
|
||||||
border-radius: 10em;
|
|
||||||
border: none;
|
|
||||||
background-color: #3f51b5;
|
|
||||||
color: white;
|
|
||||||
transition: background-color .2s ease-in-out;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: #5b6ed8;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.secondary {
|
|
||||||
color: #3f51b5;
|
|
||||||
background-color: white;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: #f2f4ff;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -118,8 +94,49 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.actions {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: .5em;
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 3em;
|
||||||
|
height: 3em;
|
||||||
|
box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:host ::ng-deep .test circle {
|
:host ::ng-deep .test circle {
|
||||||
stroke: white;
|
stroke: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
button, a.button {
|
||||||
|
padding: .8em 1.2em;
|
||||||
|
border-radius: 10em;
|
||||||
|
border: none;
|
||||||
|
background-color: #3f51b5;
|
||||||
|
color: white;
|
||||||
|
transition: background-color .2s ease-in-out;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #5b6ed8;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.secondary {
|
||||||
|
color: #3f51b5;
|
||||||
|
background-color: white;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #f2f4ff;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -11,6 +11,7 @@ import {MatDialogModule} from '@angular/material/dialog';
|
|||||||
import { PictureSelectionDialog } from './picture-selection-dialog/picture-selection-dialog.component';
|
import { PictureSelectionDialog } from './picture-selection-dialog/picture-selection-dialog.component';
|
||||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
import { SubmitButtonComponent } from '../../components/submit-button/submit-button.component';
|
import { SubmitButtonComponent } from '../../components/submit-button/submit-button.component';
|
||||||
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-publication-edition',
|
selector: 'app-publication-edition',
|
||||||
@@ -18,6 +19,7 @@ import { SubmitButtonComponent } from '../../components/submit-button/submit-but
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
|
MatIconModule,
|
||||||
MatInputModule,
|
MatInputModule,
|
||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
MatTabsModule,
|
MatTabsModule,
|
||||||
|
|||||||
Reference in New Issue
Block a user