Skip to content

Commit

Permalink
Update dialog styles
Browse files Browse the repository at this point in the history
  • Loading branch information
besseddrest committed Jul 19, 2023
1 parent e8bc129 commit 5c43000
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="stylesheet" href="./styles/styles.css" title="Portfolio Styles">
</head>
<body>
<dialog id="modal"></dialog>
<dialog id="modal" class="modal"></dialog>
<div class="container">
<main>
<section class="intro">
Expand Down
16 changes: 16 additions & 0 deletions styles/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion styles/styles.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,23 @@ h1 {
height: auto;
}
}
}

.modal {
background: transparent;
border: 0;

&:focus {
border: 0;
outline: none;
}

&::backdrop {
background-color: rgba(0, 0, 0, 0.6);
}

img {
width: auto;
height: calc(100vh - 4rem);
}
}

0 comments on commit 5c43000

Please sign in to comment.