Skip to content

Commit

Permalink
global: add CSS class to mockup screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppe-steduto committed Sep 15, 2023
1 parent e76a6a2 commit 3659eb3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Go to the _Project members_ tab of your CERN GitLab repository web interface
[reana](https://gitlab.cern.ch/reana) service account as a collaborator with
the "Reporter" role:

![gitlab-authorize-reana](../../../images/gitlab-private-docker-registry.png)
![gitlab-authorize-reana](../../../images/gitlab-private-docker-registry.png){.screenshot-browser-mockup}

This will ensure that the REANA platform will be able to access your private
repositories and pull your images.
Expand Down
Binary file added docs/images/window-buttons-for-mockup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,15 @@ pre > code > .gp {
-webkit-user-select: none;
user-select: none;
}

img.screenshot-browser-mockup {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), 0 0 2px rgba(0, 0, 0, 0.4);
border-radius: 4px;
background:
url('../images/window-buttons-for-mockup.png') no-repeat left top,
#333; /* Dark background for browser bar */
padding-top: 20px; /* This assumes the window bar height is 20px. Adjust if needed */
background-size: auto 20px, 100%;
margin: 10px;
max-width: calc(100% - 20px);
}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ markdown_extensions:
- pymdownx.highlight
- pymdownx.details # collapsible admonitions
- pymdownx.superfences # allows nesting of code blocks inside admonitions
- attr_list

# Plugins
plugins:
Expand Down

0 comments on commit 3659eb3

Please sign in to comment.