Completed exercise 05

This commit is contained in:
NetMan 2023-12-29 17:48:46 +01:00
parent 34a0d21b48
commit a1c76bfe40
2 changed files with 37 additions and 6 deletions

View File

@ -9,12 +9,20 @@
</head> </head>
<body> <body>
<div class="modal"> <div class="modal">
<div class="icon">!</div> <div class="warn">
<div class="header">Are you sure you want to do that?</div> <div class="icon">!</div>
<button class="close-button"></button> </div>
<div class="text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur excepturi id soluta, numquam minima rerum doloremque eveniet aspernatur beatae commodi. Cupiditate recusandae ad repellendus quidem consectetur sequi amet aspernatur cumque!</div> <div class="content">
<button class="continue">Continue</button> <div class="subject">
<button class="cancel">Cancel</button> <div class="header">Are you sure you want to do that?</div>
<button class="close-button"></button>
</div>
<div class="text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur excepturi id soluta, numquam minima rerum doloremque eveniet aspernatur beatae commodi. Cupiditate recusandae ad repellendus quidem consectetur sequi amet aspernatur cumque!</div>
<div class="buttons">
<button class="continue">Continue</button>
<button class="cancel">Cancel</button>
</div>
</div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -20,6 +20,9 @@ body {
width: 480px; width: 480px;
border-radius: 10px; border-radius: 10px;
box-shadow: 2px 4px 16px rgba(0,0,0,.2); box-shadow: 2px 4px 16px rgba(0,0,0,.2);
display: flex;
padding: 14px;
gap: 12px;
} }
.icon { .icon {
@ -35,6 +38,10 @@ body {
justify-content: center; justify-content: center;
} }
.subject {
display: flex;
}
.close-button { .close-button {
background: #eee; background: #eee;
border-radius: 50%; border-radius: 50%;
@ -48,6 +55,12 @@ body {
justify-content: center; justify-content: center;
border: 1px solid #eee; border: 1px solid #eee;
padding: 0; padding: 0;
margin-left: auto;
}
.buttons {
display: flex;
gap: 6px;
} }
button { button {
@ -67,3 +80,13 @@ button.cancel {
border: 1px solid #ddd; border: 1px solid #ddd;
color: royalblue; color: royalblue;
} }
.header {
font-size: 1.15rem;
font-weight: bold;
}
.text {
font-size: 0.95rem;
padding: 8px 20px 16px 0;
}