diff --git a/README.md b/README.md index e9ef85b5..f31211de 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,12 @@ The significant keys in the YAML frontmatter are:
 
-## Join the Layer5 community! +### Uploading Images to the site +To display images in a pop-up modal, use the following syntax: `![alt text](/path/to/image.svg)`. + +**Note-> For images to show correctly on subpages, always provide the complete image path** + +
Our projects are community-built and welcome collaboration. đź‘Ť Be sure to see the Layer5 Community Welcome Guide for a tour of resources available to you and jump into our Slack! diff --git a/assets/scss/_elements_project.scss b/assets/scss/_elements_project.scss index ee370129..cfb59d16 100644 --- a/assets/scss/_elements_project.scss +++ b/assets/scss/_elements_project.scss @@ -76,6 +76,9 @@ div.tip { padding-bottom: 10px; padding-top: 10px; } + .image-center-no-shadow{ + width: 100%; + } .align-right { display: block; diff --git a/assets/scss/_image-modal_project.scss b/assets/scss/_image-modal_project.scss index 965b8033..0c8f72ff 100644 --- a/assets/scss/_image-modal_project.scss +++ b/assets/scss/_image-modal_project.scss @@ -7,20 +7,19 @@ .modal { display: none; position: fixed; - z-index: 1; + z-index: 9999999; padding-top: 4em; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; - background-color: black; + background: rgba(0,0,0,0.85); } /* Modal Content */ -.modal-content { +.modal-cont { position: relative; - background-color: black; margin: auto; padding: 0; width: 90%; @@ -40,16 +39,16 @@ color: white; background-color: black; position: absolute; - top: .5em; - right: .5em; - font-size: 2em; - font-weight: bold; + top: 5px; + right: 5px; + font-size: 2.5em; height: 1em; width: 1em; text-indent: 10em; overflow: hidden; border: 0; -} + z-index: 99; +} .modal-close::after { position: absolute; diff --git a/content/en/cloud/_index.md b/content/en/cloud/_index.md index 0474ab74..60bcd45e 100755 --- a/content/en/cloud/_index.md +++ b/content/en/cloud/_index.md @@ -6,7 +6,7 @@ menu: {main: {weight: 2}} cascade: type: docs --- -{{< figure src="layer5-cloud-provider.svg" class="image-center-shadow" >}} +![layer5-cloud-provider](layer5-cloud-provider.svg "image-center-shadow") {{% pageinfo %}} ## Understanding the Meshery Ecosystem diff --git a/content/en/cloud/concepts/_index.md b/content/en/cloud/concepts/_index.md index 75765b5f..f4ef416a 100644 --- a/content/en/cloud/concepts/_index.md +++ b/content/en/cloud/concepts/_index.md @@ -5,7 +5,7 @@ description: > An overview of Layer5 Cloud concepts and their relationships to one another. --- -{{< figure src="concepts-overview.svg" class="image-center-shadow" >}} +![concepts-overview](concepts-overview.svg "image-center-shadow") - +
- {{ .Text }} + {{ .Text }}
\ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 99c2b22e..9636bab1 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,6 +14,6 @@ {{ partial "footer.html" . }} {{ partialCached "scripts.html" . }} - {{ partialCached "image-modal.html" . }} + {{ partial "image-modal.html" . }} \ No newline at end of file diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 210b6af5..dbc53fa2 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -28,5 +28,6 @@ {{ partial "footer.html" . }} {{ partial "scripts.html" . }} + {{ partial "image-modal.html" . }} \ No newline at end of file diff --git a/layouts/partials/image-modal.html b/layouts/partials/image-modal.html index 2e87799e..03dc1a5a 100644 --- a/layouts/partials/image-modal.html +++ b/layouts/partials/image-modal.html @@ -5,32 +5,32 @@ + + \ No newline at end of file