Skip to content

Commit

Permalink
Global: Implement Dark Mode πŸŒ™ (inveniosoftware#669)
Browse files Browse the repository at this point in the history
* Feat: Set up dark mode πŸŒ™

* Implement dark mode
* Remove outdated overrides

* Remove redundant overrides.
* Seems like these overrides has no effect with the new version see https://squidfunk.github.io/mkdocs-material/upgrade/#changes-to-html-files_1

* frontpage: remove hard coded values in wave-svg

* footer:  remove Made with Material for MkDocs

* css: adapt custom css to the dark mode

* css: cleanup duplicates

* Automatic light / dark mode

* css: clean up

* update btn colors
* remove duplicates

* css colors: replace hard coded values with vars and cleanup duplicates

* footer: bring back made with MKDocs

* home: fix toggle not showing on frontpage and features

* Remove frontpage_base.html override as we are extending from main
* Still need to fix gradient color cut and style diffrence between dark and light mode

* fix line showing on screen resize

* Update CSS styles to fix gradiant without affecting other pages

* Fix homepage gradients without the need to override base.html

* fix size change on theme toggle

* css: show Github stars and forks

* fix transform value

* css: cleanup rules and refactor duplicates

* Update CSS styles to isolate changes to specific pages

* fix console warnings

* remove 'Home' on frontpage + adjust indentation

---------

Co-authored-by: Guillaume Viger <[email protected]>
  • Loading branch information
Samk13 and fenekku authored Jun 24, 2024
1 parent dadd928 commit 5a7ef8b
Show file tree
Hide file tree
Showing 11 changed files with 283 additions and 603 deletions.
2 changes: 1 addition & 1 deletion docs/customize/metadata/custom_fields/records.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ You should add the `my_template.html` file in the `my-site/templates` folder in
- `field_value`: the value of the field, as it is stored in the record after the UI serialization i.e. what is returned from the `ui_field` method when you [define your custom field](../../../develop/howtos/custom_fields.md).
- `field_cfg`: the UI configuration for that specific field as it is defined in the `RDM_CUSTOM_FIELDS_UI` config.

See the example in the [How-to](../../../develop/howtos/custom_fields.md#define-the-template-for-the-record-landing-page).
See the example in the [How-to](../../../develop/howtos/custom_fields.md).

### Search

Expand Down
4 changes: 2 additions & 2 deletions docs/reference/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ External PIDs are persistent identifiers managed via [Invenio-PIDStore](https://
with external registration services.

Persistent identifiers are globally unique in the system, thus you cannot have two records
with the same system-managed persistent identifier (see also [Metadata > Identifiers](#identifiers-0-n)).
with the same system-managed persistent identifier (see also [Metadata > Identifiers](#alternate-identifiers-0-n)).

You can add a DOI that is not managed by InvenioRDM by using the provider `external`. You are not able to add `external` DOIs that have a prefix that is configured as part of a different PID provider.

Expand Down Expand Up @@ -1091,7 +1091,7 @@ Example:
IIIF links are only returned for files who are compatible with IIIF.
Those formats are defined by the `IIIF_FORMATS` configuration variable.
By default _gif_, _jp2_, _jpeg_, _jpg_, _png_, _tif_, and _tiff_.

### Default preview (0-1)

The default preview field names the filename of the file which should by default
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/rest_api_drafts_records.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Content-Type: application/json
| Name | Type | Location | Description |
| ---------- | ------ | -------- | ------------------------------------------------------------ |
| `id` | string | path | Identifier of the record, e.g. `4d0ns-ntd89` |
| `access` | object | body | [Access options](metadata.md#access-information) for the record. |
| `access` | object | body | [Access options](metadata.md#access) for the record. |
| `files` | object | body | [Files options](#files-options) for the record. |
| `metadata` | object | body | [Metadata](metadata.md#metadata) of the record. |
| `custom_fields` | object | body | [Custom fields](../customize/metadata/custom_fields/records.md#declaring-custom-fields) metadata for the record. (v10 and newer) |
Expand Down
Loading

0 comments on commit 5a7ef8b

Please sign in to comment.