Created
November 20, 2018 00:29
-
-
Save mooror/bb32882fcd09151b0c6f866e04f6118d to your computer and use it in GitHub Desktop.
Iota Css Example Code - Link component file for those who are following along with the "Link 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-link{ | |
text-decoration: none; | |
color:inherit; | |
} | |
.c-link:hover{ | |
opacity: 0.8; | |
} |
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
// Change this | |
$iota-utils-weight-sizes: (); | |
// To this | |
$iota-utils-weight-sizes: ( | |
"bold": 700 | |
); |
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> | |
<!-- Header Section --> | |
<header class="u-bgcolor-purple u-color-white u-p-x3 u-weight-bold"> | |
<div class="o-container o-container--size-small"> | |
<div class="o-media o-media--middle o-media--res"> | |
<div class="o-media__fixed u-text-left u-text-center@sm"> | |
<img src="svg/logo.svg" alt="Logo" class="logo"> | |
</div> | |
<div class="o-media__fluid u-text-center u-text-right@sm"> | |
<nav> | |
<ul class="o-list o-list--inline o-list--gutter-x4"> | |
<li class="o-list__item"> | |
<a class="c-link" href="#">Dashboard</a> | |
</li> | |
<li class="o-list__item"> | |
<a class="c-link" href="#">My Account</a> | |
</li> | |
<li class="o-list__item"> | |
<a class="c-link" href="#">Sign Out</a> | |
</li> | |
</ul> | |
</nav> | |
</div> | |
</div> | |
</div> | |
</header> | |
</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/link'; | |
//.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment