Skip to content

Instantly share code, notes, and snippets.

@willium
Last active February 5, 2016 04:50
Show Gist options
  • Save willium/5e353d242f19c2ad9abb to your computer and use it in GitHub Desktop.
Save willium/5e353d242f19c2ad9abb to your computer and use it in GitHub Desktop.
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
width: 200px;
height: 600px;
margin: 0;
padding: 0;
}
body {
height: 100%;
margin: 0 auto;
padding: 0;
font-family: Avenir, Helvetica Neue, Arial, sans-serif;
font-size: 40px;
line-height: 1.4;
position: relative;
transform: rotate(-90deg);
}
.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 {
}
.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