Last active
November 19, 2018 22:35
-
-
Save mooror/cf0be5815f12b379c091fe38425b905f to your computer and use it in GitHub Desktop.
Iota Css Example Code - Card component file for those who are following along with the "Card Component" iota CSS Tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.c-card { | |
padding: $baseline-x5; | |
background: rgba($color-white, 0.8); | |
border-radius: 2px; | |
box-shadow: 0 1px 2px 0 rgba(28,45,157,0.28); | |
} | |
.c-card--light { | |
background-color: rgba($color-white, 0.5); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Getting started with iotaCSS</title> | |
<link rel="stylesheet" href="css/main.css"> | |
</head> | |
<body> | |
<!-- Card Component--> | |
<div class="c-card"> | |
Normal Card | |
</div> | |
<div class="c-card c-card--light"> | |
Light Card | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
@import 'components/card'; | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment