Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #113 from XhmikosR/patch-1
Browse files Browse the repository at this point in the history
Update badge.css
  • Loading branch information
Francois Marier committed Apr 12, 2016
2 parents 7c1be36 + b716ffa commit b2f7324
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions public/badge/badge.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,29 @@

.sri-test {
display: inline-block;
font-family: "open sans";
font-size: 13px;
}
.sri-test:before {
background-color: yellow;
content: "[Testing SRI support...]";
}

#sri-badge {
display: inline-block;
font-family: "open sans";
font-size: 13px;
}
#sri-badge *[data-sri-status] {
.sri-test *[data-sri-status] {
height: 64px;
width: 224px;
overflow: hidden;
}

#sri-badge *[data-sri-status] * {
.sri-test *[data-sri-status] * {
display: inline-block;
float: left;
}

#sri-badge *[data-sri-status] img {
.sri-test *[data-sri-status] img {
margin-left: 16px;
}

#sri-badge *[data-sri-status] p {
.sri-test *[data-sri-status] p {
position: relative;
text-align: center;
top: calc(-64px + 16px - 4px);
Expand All @@ -44,9 +38,7 @@
z-index: -1;
}

#sri-badge *[data-sri-status="pass"] {
display: none;
}
#sri-badge *[data-sri-status="fail"] {
.sri-test *[data-sri-status="pass"],
.sri-test *[data-sri-status="fail"] {
display: none;
}

0 comments on commit b2f7324

Please sign in to comment.