Skip to content

Instantly share code, notes, and snippets.

@joshuacronemeyer
Created March 4, 2015 23:36
Show Gist options
  • Save joshuacronemeyer/e6851036953b87f9db04 to your computer and use it in GitHub Desktop.
Save joshuacronemeyer/e6851036953b87f9db04 to your computer and use it in GitHub Desktop.
responsive widget
/******* START APPLAUZE WIDGET *********/
.az-widget-container{
color: #ccc;
width: 968px;
margin: 0 auto;
margin-top: 55px;
margin-bottom: 55px;
font-size: 14px;
}
.az-widget-custom-td{
background: rgba(0, 0, 0, 0.6);
padding: 12px 12px;
text-align: left;
line-height: 0.7em;
vertical-align: middle;
box-sizing: border-box;
margin-bottom: 12px;
min-height: 52px;
border-bottom: 1px solid rgba(255,255,255,.1);
}
.az-widget-custom-td-date{
color: #FFF;
overflow: hidden;
padding: 5px 5px 3px 5px;
text-align: center;
text-transform: uppercase;
width: 104px;
line-height: 23px;
}
.az-widget-custom-narrow-venue{
color: #FFF;
}
.az-widget-custom-td-venue-and-locality{
margin-bottom: 12px;
min-height: 52px;
font-size: 2em;
width: 690px;
}
.az-widget-custom-td-venue-and-locality .az-widget-narrow-locality{
font-size: .8em;
}
.az-widget-custom-td-venue-and-locality p:nth-child(2), .az-widget-custom-td-venue-and-locality p:nth-child(3){
display: inline;
}
.az-widget-narrow-notes{
font-size: .8em;
}
.az-widget-custom-table, .az-widget-custom-table th, .az-widget-custom-table td{
border-collapse: collapse;
border-width:0;
border-spacing: 0;
border-style: none;
border: none;
}
.az-widget-custom-tr{
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-style: inherit;
font-size: 100%;
font-family: "geosanslight", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
vertical-align: baseline;
}
.az-widget-custom-td-date-range{
position: relative;
}
.az-widget-custom-start-date{
position: absolute;
left: 0;
top: 16%;
padding-left: 10px;
}
.az-widget-custom-seperator{
position: absolute;
left: 50%;
top: 40%;
}
.az-widget-custom-end-date{
position: absolute;
right: 0;
top: 16%;
padding-right: 10px;
}
.az-widget-custom-day{
font-size: 2em;
display: block;
text-align: center;
}
.az-widget-custom-month{
display: block;
text-align: center;
}
.az-widget-custom-year{
display: block;
text-align: center;
}
.az-widget-custom-td-tickets{
text-align: center;
}
.az-widget-buy-tickets{
cursor: pointer;
display: inline-block;
padding: 7px 14px 8px;
margin: 0;
min-width:90px;
text-align: center;
background: #ddd;
border-radius: 2px;
}
.az-widget-buy-tickets a{
text-decoration: none;
color: #000;
}
.az-widget-custom-td p{
margin: 0.5em 0;
}
.az-widget-custom-presale a{
line-height: 18px;
color: white;
}
@media (max-width: 768px){
.az-widget-container{
width: 100%;
margin-top: 50px;
}
.az-widget-custom-table{
border-collapse: separate;
border-spacing: 0 40px;
width: 100%;
}
.az-widget-custom-tr{
border-bottom: 1px solid rgba(255,255,255,.05);
}
.az-widget-custom-td p{
margin: 10px 0;
}
.az-widget-custom-td{
width: 100%;
display: block;
text-align: center;
margin-bottom: 0;
border-bottom: none;
}
.az-widget-buy-tickets{
width: 93%;
}
.az-widget-custom-td-date-range{
height: 77px;
}
.az-widget-custom-start-date{
left: 39%;
top: 0;
}
.az-widget-custom-seperator{
left: 51%;
top: 44%;
}
.az-widget-custom-end-date{
right: 36%;
top: 0;
}
/******* END APPLAUZE WIDGET *********/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment