Skip to content

Instantly share code, notes, and snippets.

@kjkta
Created December 7, 2015 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjkta/97ab498785311da868a9 to your computer and use it in GitHub Desktop.
Save kjkta/97ab498785311da868a9 to your computer and use it in GitHub Desktop.
Overview Table
<table class="plan_cp unlimited">
<thead>
<tr>
<th></th>
<th>
<span class="lighter">3</span> XL<sup>1</sup>
</th>
<th>
<span class="lighter">5</span> XL<sup>1</sup>
<!--Money Magazine sticker-->
<img id="mm" src="https://www.koganmobile.com.au/wp-content/uploads/2015/11/money-magazine.png">
</th>
</tr>
</thead>
<tbody>
<caption>
WITHIN OZ
</caption>
<tr>
<th>
<span>CALLS</span>
<span class="desc">Standard calls</span>
</th>
<td>UNLIMITED</td>
<td>UNLIMITED</td>
</tr>
<tr>
<th>
<span>TEXT</span>
<span class="desc">SMS &amp; MMS</span>
</th>
<td>UNLIMITED</td>
<td>UNLIMITED</td>
</tr>
<tr>
<th>
<span>DATA<sup>2</sup></span>
<span class="desc">Data per 30 days</span>
</th>
<td>3GB</td>
<td class="special">
<st>5GB</st>
<div>
<span class="limited">LIMITED TIME*</span>
<span class="value">6GB</span>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td></td>
<td>
<sup>Only</sup>
<span class="price">$29<sup>.95</sup></span>
<sub>/30d</sub>
<a href="/mobile/">
<button>View Details</button>
</a>
</td>
<td>
<sup>Only</sup>
<span class="price">$36<sup>.95</sup></span>
<sub>/30d</sub>
<a href="/mobile/#5gb">
<button>View Details</button>
</a>
</td>
</tr>
</tfoot>
</table>
<table class="plan_cp data">
<thead>
<tr>
<th></th>
<th>
<span class="lighter">DATA</span> 2GB PACK
</th>
</tr>
</thead>
<tbody>
<caption>
WITHIN OZ
</caption>
<tr>
<th>
<span>DATA</span>
<span class="desc">Data pack</span>
</th>
<td>2GB</td>
</tr>
<tr>
<th>
<span>DURATION</span>
<span class="desc">Days you have to use data</span>
</th>
<td>30 days</td>
</tr>
</tbody>
<tfoot>
<tr>
<td></td>
<td>
<span class="price">$14<sup>.95</sup></span>
<a href="/data-2gb-pack/">
<button>View Details</button>
</a>
</td>
</tr>
</tfoot>
</table>
@import url(http://fonts.googleapis.com/css?family=Raleway:400,500,700);
@import url(http://fonts.googleapis.com/css?family=Montserrat);
html,
body {
background: #f6f6f6;
font-family: 'Raleway', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 1em;
margin: 20px;
}
table.plan_cp {
margin: 25px auto;
color: #fff;
width: auto;
border-spacing: 3px;
border-collapse: separate;
font-size: 1.4em;
font-weight: 400;
}
table.plan_cp #mm {
position: absolute;
width: 110px;
top: -40px;
right: -40px;
}
em {
font-weight: bold;
font-style: normal
}
.lighter {
font-weight: lighter
}
table.plan_cp tr td {
width: 260px;
padding: 25px 0;
font-weight: bold;
}
table.plan_cp th sup {
font-weight: 400;
font-size: .5em;
}
table.plan_cp tr th,
table.plan_cp td {
vertical-align: middle;
position: relative;
}
table.plan_cp tbody th {
background: #77818A;
text-align: left;
padding: 5px 10px;
font-size: 0.9em;
}
table.plan_cp tr {
text-align: center;
height: 75px;
}
table.plan_cp tfoot tr td {
font-weight: 400;
line-height: normal;
}
sup {
vertical-align: super;
}
sub {
vertical-align: bottom;
}
table.plan_cp td sub,
table.plan_cp sup {
font-size: .5em;
}
table.plan_cp tbody th:nth-child(1) {
background: #ECECEC;
color: #333;
}
table.plan_cp th:nth-child(1) span.desc {
display: block;
font-weight: lighter;
}
table.plan_cp th:nth-child(2),
table.plan_cp td:nth-child(2){
background: #5398D3;
}
table.plan_cp th:nth-child(3),
table.plan_cp td:nth-child(3){
background: #7A75B7;
}
table.data td:nth-child(2),
table.data th:nth-child(2) {
background: #EBBF37
}
table.plan_cp tbody .special st {
display: block;
}
table.plan_cp tbody .special st::after {
position: absolute;
display: block;
content: '';
top: 56%;
left: 37%;
width: 68px;
height: .15em;
border-radius: 1em;
background-color: #ed193a;
transform-origin: 0% 0%;
transform: rotateZ(-6deg);
opacity: .6
}
table.plan_cp tbody .special div {
width: 40%;
background: #ed193a;
height: 75%;
position: absolute;
bottom: 10%;
right: -10%;
border-radius: 0 7px 7px 7px;
box-shadow: 3px 1px 2px rgba(0, 0, 0, 0.25);
}
table.plan_cp tbody .special span.limited {
display:block;
border-radius: 0 7px 0 0;
font-size: 0.55em;
line-height: 1.4em
}
table.plan_cp tbody .special span.value {
font-size: 1.2em;
line-height: 1.2em
}
table.plan_cp span.desc {
font-size: 0.75em;
}
.price {
font-size: 1.5em;
font-family: 'Montserrat', sans-serif;
}
table.plan_cp button {
color: rgb(255, 255, 255);
background: transparent;
font-size: 14px;
height: 45px;
font-style: normal;
font-weight: 400;
-webkit-border-radius: 0px;
letter-spacing: 1px;
text-transform: uppercase;
padding: 0 25px;
border: 1px solid #fff;
display: inline-block;
margin: 20px 10px 0px 10px;
transition: 0.5s all cubic-bezier(0.39, 0.1, 0, 0.99);
cursor: pointer;
}
table.plan_cp button:hover {
background: rgba(255, 255, 255, 0.5);
}
table.plan_cp td .callout {
position: absolute;
display: block;
background: #CF0A2C;
width: 100%;
box-shadow: 0px 4px 5px #ccc;
top: 95%;
}
table.plan_cp caption {
background: #40A281;
-webkit-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
width: 234px;
margin: 109px -131px;
position: absolute;
color: #293037;
font-weight: 400;
font-size: 0.65em;
line-height: 1.4em;
font-family: 'Montserrat';
word-spacing: 3px;
}
table.data caption {
width: 155px;
margin: 69px -92px;
}
@media only screen and (max-width: 700px) {
table.plan_cp {
font-size: 80%;
line-height: 1em;
}
table.plan_cp tr {
height: 50px;
}
table.plan_cp tr td {
padding: 10px 0;
}
table.plan_cp .price,
table.plan_cp sub {
display: block;
}
table.plan_cp button {
padding: 0 10px;
background: rgba(255, 255, 255, 0.3);
font-size: 12px;
line-height: 16px;
}
table.plan_cp caption {
width: 199px;
margin: 94px -112px;
}
table.data caption {
width: 117px;
margin: 53px -70px;
}
table.plan_cp #mm {
width: 50px;
top: 0px;
right: -5px;
}
}
/*HIDE LIMITED TIME OFFER*/
/*st::after,
.special div{
visibility: hidden;
}*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment