Skip to content

releases.jquery.com: make the SRI modal responsive #445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions themes/jquery/css/sri-modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
* Added for SRI Modal
*/
.sri-modal {
padding: 0;
padding: 20px;
border: none;
background: #fff;
border-radius: 0;

/* Resize with window */
width: calc(100% - 40px) !important;
max-width: 830px;
left: 50% !important;
transform: translateX(-50%);
}

.sri-modal .ui-dialog-titlebar {
Expand All @@ -17,7 +23,6 @@
}

.sri-modal .ui-dialog-title {
padding-top: 20px;
text-align: center;
font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
font-weight: 400;
Expand All @@ -43,23 +48,23 @@
}

.sri-modal-link {
width: 810px;
width: 100%;
word-wrap: break-word;
word-break: break-all;
display: inline-block;
background-color: #f8fbfb;
padding: 0 10px;
/* Leave room for button */
padding: 10px 45px 10px 10px;
position: relative;
}

.sri-modal-link code {
width: 765px;
display: inline-block;
white-space: pre-line;
background-color: transparent;
padding: 0;
font-size: 13px;
line-height: 16px;
padding: 0;
}

.sri-modal-copy-btn {
Expand All @@ -71,6 +76,7 @@
cursor: pointer;
position: absolute;
top: 5px;
right: 0;
}

.sri-modal-copy-btn > i {
Expand Down
1 change: 0 additions & 1 deletion themes/jquery/js/sri-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ $( function() {
} ) ).removeAttr( "id" ).appendTo( "body" ).dialog( {
modal: true,
resizable: false,
width: 830,
dialogClass: "sri-modal",
draggable: false,
close: function() {
Expand Down