Skip to content

Instantly share code, notes, and snippets.

@mukulu
Created September 1, 2022 07:44
Show Gist options
  • Save mukulu/5ea62d0f98c98e0499ec62430150ee22 to your computer and use it in GitHub Desktop.
Save mukulu/5ea62d0f98c98e0499ec62430150ee22 to your computer and use it in GitHub Desktop.
Material cards
<section id="sec">
<h2>TEST</h2>
<ul>
<li>
<span class="fa fa-code"></span>
<h3>Music</h3>
<p>Music is an art form whose medium is sound and silence. Generally, a song is considered the smallest standalone work of music, especially when involving singing. </p>
</li>
<li><span class="fa fa-music"></span>
<h3>Music</h3>
<p>Music is an art form whose medium is sound and silence. Generally, a song is considered the smallest standalone work of music, especially when involving singing. </p>
<p>The common elements of music are pitch (which governs melody and harmony), rhythm (and its associated concepts tempo, meter, and articulation), dynamics, and the sonic qualities of timbre and texture.</p>
</li>
<li><span class="fa fa-users"></span>
<h3>Music</h3>
<p>Music is an art form whose medium is sound and silence. Generally, a song is considered the smallest standalone work of music, especially when involving singing. </p>
<p>The common elements of music are pitch (which governs melody and harmony), rhythm (and its associated concepts tempo, meter, and articulation), dynamics, and the sonic qualities of timbre and texture. The word derives from Greek μουσική (mousike; "art of the Muses").</p></li>
</ul>
</section>
$font-color: #A2A2A2;
$primary-color: #63B7E6;
#sec {
font-family: 'Raleway', sans-serif;
padding: 50px 0;
background: #fff;
text-align: center;
word-wrap:break-word;
h2 {
font-weight: 200;
font-size: 30px;
color: $primary-color;
}
ul {
margin: 0;
display: flex;
flex-flow: row wrap;
justify-content: center;
list-style: none;
li {
padding: 40px;
width: 300px;
transition: box-shadow .3s;
&:hover {
box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
&:hover span {
color: $primary-color;
}
&:hover p {
color: #555;
}
&:hover h3 {
color: $primary-color;
}
&:hover h3:after{
width: 25px;
}
span {
font-size: 2.6em;
display: block;
transition: color .3s;
color: $font-color;
&:before, &:after {
position: static;
}
}
h3 {
color: darken($font-color, 20%);
display: inline-block;
font-size: 24px;
font-weight: 100;
transition: color .3s;
&:after {
content: '';
position: relative;
left: 50%;
top: 20px;
transform: translateX(-50%);
display: block;
width: 40px;
height: 1px;
background: darken($font-color, 20%);
transition: width .3s;
}
}
p {
color: $font-color;
text-align: left;
text-indent: 1em;
font-size: 16px;
line-height: 26px;
transition: color .3s;
}
}
}
}
<link href="https://fonts.googleapis.com/css?family=Raleway:400,200" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment