Skip to content

Instantly share code, notes, and snippets.

@andrewvanbeek-okta
Created March 5, 2019 22:24
Show Gist options
  • Save andrewvanbeek-okta/0a9a71a2c740e208277b958869992122 to your computer and use it in GitHub Desktop.
Save andrewvanbeek-okta/0a9a71a2c740e208277b958869992122 to your computer and use it in GitHub Desktop.
Ionic Material Cards with Bootstrap
<link href="https://fonts.googleapis.com/css?family=Nunito:200,300,400,600,700,900" rel="stylesheet">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="card card-1">
<h3>Ionic Native</h3>
<p>A curated set of ES5/ES6/TypeScript wrappers for plugins to easily add any native functionality to your Ionic apps.</p>
</div>
</div>
<div class="col-md-4">
<div class="card card-2">
<h3>UI Components</h3>
<p>Tabs, buttons, inputs, lists, cards, and more! A comprehensive library
of mobile UI components, ready to go.</p>
</div>
</div>
<div class="col-md-4">
<div class="card card-3">
<h3>Theming</h3>
<p>Learn how to easily customize and modify your app’s design to fit your
brand across all mobile platform styles.</p>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
body{
font-family: 'Nunito', sans-serif;
padding: 50px;
}
.card{
border-radius: 4px;
background: #fff;
box-shadow: 0 6px 10px rgba(0,0,0,.08), 0 0 6px rgba(0,0,0,.05);
transition: .3s transform cubic-bezier(.155,1.105,.295,1.12),.3s box-shadow,.3s -webkit-transform cubic-bezier(.155,1.105,.295,1.12);
padding: 14px 80px 18px 36px;
cursor: pointer;
}
.card:hover{
transform: scale(1.05);
box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
}
.card h3{
font-weight: 600;
}
.card img{
position: absolute;
top: 20px;
right: 15px;
max-height: 120px;
}
.card-1{
background-image: url(https://ionicframework.com/img/getting-started/ionic-native-card.png);
background-repeat: no-repeat;
background-position: right;
background-size: 80px;
}
.card-2{
background-image: url(https://ionicframework.com/img/getting-started/components-card.png);
background-repeat: no-repeat;
background-position: right;
background-size: 80px;
}
.card-3{
background-image: url(https://ionicframework.com/img/getting-started/theming-card.png);
background-repeat: no-repeat;
background-position: right;
background-size: 80px;
}
@media(max-width: 990px){
.card{
margin: 20px;
}
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment