Skip to content

Commit

Permalink
Changed warning class to only apply to DIV elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Dec 29, 2024
1 parent 564bce7 commit f7f2393
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions assets/css/250.less
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ span.filtered {
.filtered();
}

.warning {
div.warning {
margin: 1em auto;
padding: 1em;
width: 86%;
Expand All @@ -399,29 +399,32 @@ span.filtered {
border: 1px dotted #754000;
border-top-color: #a86009;
border-radius: 6px;
}
.warning:before {
content: '!';
float: left;
margin: 0 .7rem .5rem 0;
width: 60px;
height: 54px;

font: 270%/65px Lobster;
clip-path: polygon(50% 0, 100% 100%, 0 100%);
color: #ffe9ce;
text-shadow: 2px 2px 0 #d57500;
background: #e0990b;
&:before {
content: '!';
float: left;
margin: 0 .7rem .5rem 0;
width: 60px;
height: 54px;

/* Manually center text */
box-sizing: border-box;
padding-left: 23px;
}
.warning > p:first-child {
margin-top: 0;
}
.warning > p:last-child {
margin-bottom: 0;
font: 270%/65px Lobster;
clip-path: polygon(50% 0, 100% 100%, 0 100%);
color: #ffe9ce;
text-shadow: 2px 2px 0 #d57500;
background: #e0990b;

/* Manually center text */
box-sizing: border-box;
padding-left: 23px;
}

>p:first-child {
margin-top: 0;
}

>p:last-child {
margin-bottom: 0;
}
}

#body {
Expand Down

0 comments on commit f7f2393

Please sign in to comment.