Created
December 19, 2015 02:53
-
-
Save alexbaldwin/547b7f612ca4f8b34e2f to your computer and use it in GitHub Desktop.
Envoy's default badge CSS
This file contains hidden or 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
* { | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
html { | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
width: 1050px; | |
height: 100%; | |
margin: 0 auto; | |
padding: 0; | |
font-family: Avenir, Helvetica Neue, Arial, sans-serif; | |
font-size: 40px; | |
line-height: 1.4; | |
position: relative; | |
} | |
.badge {} | |
/* Header | |
-----------------------------------*/ | |
.header { | |
margin: 50px 0; | |
text-align: center; | |
height: 100px; | |
position: relative; | |
} | |
.header:after { | |
content: ''; | |
position: absolute; | |
top: 50%; | |
left: 0; | |
right: 0; | |
border-top: 5px dotted #000; | |
z-index: 1; | |
} | |
.header .logo img { | |
height: 100px; | |
width: auto; | |
filter: grayscale(100%); | |
-webkit-filter: grayscale(100%); | |
z-index: 2; | |
position: relative; | |
border-left: 50px solid #fff; | |
border-right: 50px solid #fff; | |
background: #fff; | |
} | |
.header .company-name { | |
line-height: 100px; | |
font-size: 44px; | |
font-weight: bold; | |
z-index: 2; | |
position: relative; | |
border-left: 30px solid #fff; | |
border-right: 30px solid #fff; | |
background: #fff; | |
} | |
/* Visitor Information | |
-----------------------------------*/ | |
.content { | |
position: absolute; | |
top: 50%; | |
-webkit-transform: translateY(-40%); | |
transform: translateY(-40%); | |
width: 100%; | |
} | |
.photo { | |
float: left; | |
margin-right: 40px; | |
} | |
.photo img { | |
width: 230px; | |
border-radius: 50%; | |
filter: grayscale(100%); | |
-webkit-filter: grayscale(100%); | |
} | |
.visitor-info { | |
width: 100%; | |
text-align: center; | |
} | |
.photo + .visitor-info { | |
width: 770px; | |
text-align: left; | |
float: right; | |
} | |
.name { | |
font-size: 74px; | |
font-weight: 300; | |
word-wrap: break-word; | |
line-height: 1.1; | |
margin-bottom: 30px; | |
} | |
.name:first-line { | |
font-size: 100px; | |
font-weight: 700; | |
} | |
.custom {} | |
.custom .label { | |
font-weight: 500; | |
} | |
.custom .extra-field {} | |
.custom-a {} | |
.custom-b {} | |
.entryDateTime {} | |
.note {} | |
/* Did Not Sign NDA | |
------------------------------------*/ | |
.did-not-sign { | |
position: absolute; | |
bottom: 80px; | |
right: 0; | |
width: 150px; | |
height: 150px; | |
background: #000; | |
border-radius: 50%; | |
color: #fff; | |
font-weight: bold; | |
text-align: center; | |
padding-top: 25px; | |
line-height: 50px; | |
font-size: 50px; | |
z-index: 1000000; | |
} | |
/* Continuous roll badges (205 and 244) | |
------------------------------------*/ | |
@media screen and (max-width: 950px) { | |
.header { | |
margin: 30px 0; | |
} | |
body { | |
width: 100%; | |
} | |
.content { | |
-webkit-transform: translateY(-38%); | |
transform: translateY(-38%); | |
} | |
.photo { | |
margin-right: 30px; | |
} | |
.photo img { | |
width: 200px; | |
} | |
.photo + .visitor-info { | |
width: calc(100% - 230px); | |
} | |
.name:first-line { | |
font-size: 74px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment