Add licenses plugin (#118)

This commit is contained in:
Simon Lecoq
2021-02-11 21:39:40 +01:00
committed by GitHub
parent 1f59169b11
commit 783e2b453b
12 changed files with 730 additions and 3 deletions

View File

@@ -635,6 +635,57 @@
border-radius: 7px;
}
/* Licenses */
.licenses {
display: flex;
}
.licenses .column {
align-items: flex-start;
font-size: 12px;
color: #666666;
flex-shrink: 0;
}
.licenses-details {
margin-top: 8px;
}
.field.license.details {
display: flex;
justify-content: space-between;
}
.field.license.details small {
display: flex;
justify-content: space-between;
color: #666666;
text-align: right;
}
.licenses .column:nth-child(1) {
margin-left: 13px;
width: 25%;
}
.licenses .column:nth-child(2) {
width: 25%;
}
.licenses .column:nth-child(3) {
width: 50%;
}
.licenses .column svg {
height: 12px;
width: 12px;
}
.licenses .column .title {
font-weight: 600;
margin-left: 15px;
}
.licenses .column .permission svg {
fill: #56d364;
}
.licenses .column .limitation svg {
fill: #f85149;
}
.licenses .column .condition svg {
fill: #58a6ff;
}
/* Fade animation */
.af {
opacity: 0;