This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial style updates * First pass content management design overhaul
- Loading branch information
1 parent
f4dc416
commit 887eb9b
Showing
7 changed files
with
164 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,53 @@ | ||
/* Badges | ||
/* ---------------------------------------------------------- */ | ||
|
||
.badge { | ||
.gh-badge { | ||
display: inline-block; | ||
padding: 2px 4px; | ||
min-width: 10px; | ||
background-color: #777; | ||
border-radius: 10px; | ||
box-shadow: 0 0 0 1px #777; | ||
padding: 2px 4px 3px; | ||
border: color(var(--green) blackness(+8%)) 1px solid; | ||
color: #fff; | ||
vertical-align: baseline; | ||
font-size: 0.8em; | ||
line-height: 1em; | ||
font-weight: 400; | ||
text-align: center; | ||
text-shadow: 0 -1px 0 rgba(0,0,0,0.1); | ||
white-space: nowrap; | ||
font-size: 1rem; | ||
line-height: 1; | ||
font-weight: inherit; | ||
} | ||
|
||
.badge:empty { | ||
display: none; | ||
} | ||
|
||
.btn .badge { | ||
position: relative; | ||
top: -1px; | ||
} | ||
|
||
.btn-xs .badge { | ||
top: 0; | ||
padding: 1px 5px; | ||
} | ||
|
||
p .badge { | ||
position: relative; | ||
top: -2px; | ||
margin-left: -1px; | ||
padding: 0 4px 3px; | ||
} | ||
|
||
.nav-pills > li > a > .badge { | ||
margin-left: 3px; | ||
} | ||
|
||
.nav-item .badge { | ||
margin-top: -5px; | ||
margin-left: 3px; | ||
} | ||
|
||
a.badge:hover, | ||
a.badge:focus { | ||
color: #fff; | ||
text-decoration: none; | ||
cursor: pointer; | ||
} | ||
|
||
|
||
/* Colour variations | ||
/* ---------------------------------------------------------- */ | ||
|
||
.badge.badge-blue { | ||
background-color: var(--blue); | ||
box-shadow: 0 0 0 1px var(--blue); | ||
} | ||
|
||
.badge.badge-green { | ||
background-color: var(--green); | ||
box-shadow: 0 0 0 1px var(--green); | ||
} | ||
|
||
.badge.badge-red { | ||
background-color: var(--red); | ||
box-shadow: 0 0 0 1px var(--red); | ||
user-select: none; | ||
background: linear-gradient( | ||
color(var(--green) whiteness(+4%)), | ||
color(var(--green) blackness(+4%)) | ||
); | ||
border-radius: 3px; | ||
} | ||
|
||
.gh-badge-blue { | ||
border: color(var(--blue) blackness(+8%)) 1px solid; | ||
background: linear-gradient( | ||
color(var(--blue) whiteness(+10%)), | ||
color(var(--blue) blackness(+4%)) | ||
); | ||
} | ||
|
||
.gh-badge-red { | ||
border: color(var(--red) blackness(+8%)) 1px solid; | ||
background: linear-gradient( | ||
color(var(--red) whiteness(+10%)), | ||
color(var(--red) blackness(+4%)) | ||
); | ||
} | ||
|
||
.gh-badge-black { | ||
border: color(var(--darkgrey) blackness(+8%)) 1px solid; | ||
background: linear-gradient( | ||
color(var(--darkgrey) whiteness(+10%)), | ||
color(var(--darkgrey) blackness(+4%)) | ||
); | ||
} | ||
|
||
.gh-badge-outline { | ||
border-color: color(var(--midgrey) l(+35%)); | ||
color: color(var(--midgrey) l(+25%)); | ||
font-weight: 400; | ||
background: transparent; | ||
box-shadow: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.