Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 72ad56b

Browse files
committed
fix: FAQ page CSS
- blockquote CSS update
1 parent 063faa4 commit 72ad56b

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

demo/src/app/f-a-q/f-a-q.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ <h1 class="header center-on-small-only">FAQ</h1>
99
</div>
1010

1111
<div class="container">
12-
<markdown [src]="faqMd" (load)="onLoad($event)"></markdown>
12+
<markdown [className]="'faqMarkdown'" [src]="faqMd" (load)="onLoad($event)"></markdown>
1313
</div>

demo/src/assets/docs/faq.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##### Error encountered resolving symbol values statically.
1+
> Error encountered resolving symbol values statically.
22
33
Please update your `tsconfig.json` as shown below. For more info, check the GitHub issue [here](https://github.com/l-lin/angular-datatables/issues/937)
44

@@ -15,7 +15,7 @@ Please update your `tsconfig.json` as shown below. For more info, check the GitH
1515
}
1616
```
1717

18-
##### Columns do not resize when using ColReorder extension
18+
> Columns do not resize when using ColReorder extension
1919
2020
Grab a copy of [this](https://github.com/shanmukhateja/adt-resize-col-demo) project, update it to suit your needs and see if it works.
2121
If it won't work, check these similar issues:
@@ -24,21 +24,21 @@ If it won't work, check these similar issues:
2424

2525
If it still didn't work, open a GitHub [issue](https://github.com/l-lin/angular-datatables/issues/new) and we'll look into it.
2626

27-
##### Column data doesn't move with column header when re-ordering
27+
> Column data doesn't move with column header when re-ordering
2828
2929
It could be many things but in general it could be because you're using "Angular way" to display data. In this case, look at the suggested changes on this [comment](https://github.com/l-lin/angular-datatables/issues/1496#issuecomment-764692564)
3030

31-
##### 'Warning: Unable to fully load <project> for sourcemap flattening; ENOENT: no such file or directory* '
31+
> 'Warning: Unable to fully load <project> for sourcemap flattening; ENOENT: no such file or directory* '
3232
3333
This has been fixed in newer version of `angular-datatables`. You can find latest releases for your project's Angular version on [Releases](https://github.com/l-lin/angular-datatables/releases) page.
3434

35-
##### 'DataTables warning: table id=xx - Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3*'
35+
> 'DataTables warning: table id=xx - Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3*'
3636
3737
This error occurs when you're trying to change `dtOptions` on a table which has been previously initialised by DataTables.
3838
If you're using a shared table component, just call `destroy()` method on `ngOnDestroy` of the component.
3939
If you're using DataTables v1.10.4 or later, you can add `destroy: true` to `dtOptions` when initialising the table to let the table be destroyed automatically when new changes arrive.
4040

41-
##### 'DataTables warning (table id = x): Requested unknown parameter y from the data source for row z* http://datatables.net/tn/4' or similar
41+
> 'DataTables warning (table id = x): Requested unknown parameter y from the data source for row z* http://datatables.net/tn/4' or similar
4242
4343
This usually occurs when your `dtOptions` are configured incorrectly. Make sure your AJAX response matches to our AJAX example [here](http://localhost:4200/#/basic/with-ajax).
4444
We highly recommend checking out DataTables.net [documentation](https://datatables.net/manual/tech-notes/4) on this issue for more troubleshooting information.

demo/src/styles.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ footer.page-footer {
9393
margin-bottom: 20px;
9494
}
9595

96+
/* blockquote */
97+
98+
blockquote {
99+
background-color: rgba(144, 202, 249, 0.6);
100+
padding: 5px;
101+
color: #666;
102+
margin: 20px 0;
103+
border-left: solid 5px #2196f3;
104+
}
105+
96106
/* Revert DataTables styles, as Materialize override some default styles... */
97107

98108
.dataTables_wrapper label {
@@ -141,6 +151,6 @@ div.code-toolbar > .toolbar button {
141151

142152
/* markdown library stuff */
143153

144-
markdown h5 {
145-
color: #2196f3 !important;
154+
markdown h5:not(markdown.faqMarkdown) {
155+
color: #2196f3;
146156
}

0 commit comments

Comments
 (0)