moved shared styles out ot assets

This commit is contained in:
Micah Godbolt
2019-02-15 14:27:00 -08:00
parent 89cd2e3356
commit d43986bfe7
5 changed files with 131 additions and 103 deletions
+24 -7
View File
@@ -2,12 +2,21 @@
/* Targeting an HTML tag */
h1 {
/* Color name */
color: black;
background: #ddd;
border: 1px solid #ababab;
/* 6 digit hex */
background: #ababab;
/* Margin: property for each side */
margin-bottom: 15px;
margin-top: 15px;
/* Shorthand: Padding applies to all sides */
padding: 10px;
/* 3 digit hex and border shorthand */
border: 1px solid #ddd;
}
/* Overriding inherited styles */
@@ -27,11 +36,17 @@ span {
/* Direct decendant selector */
.tiles > div {
/* rgb colors */
background: rgb(10, 10, 10);
color: white;
flex-basis: 100%;
/* Longhand goes clockwise from top
10px - all
10px 20px - top/bottom left/right
10px 20px 15px - top left/right bottom
*/
padding: 10px 20px 15px;
margin-right: 20px;
margin: 10px 20px 10px 0;
}
/* Qualified selector */
@@ -51,18 +66,20 @@ a:hover {
/* Sibling selectors */
a ~ a {
/* Changing elements from inline to block */
display: block;
}
/* Positional Pseudo Selectors */
.tiles > div:last-child {
/* overrides margin-right but leaves other margins alone */
margin-right: 0;
}
/* ID and selector lists */
#contact-form label,
#contact-form input {
display: block;
/* ID selector */
#contact-form {
display: flex;
flex-direction: column;
}
/* Attribute selector */
+1 -2
View File
@@ -2,6 +2,7 @@
<head>
<title>Intro to HTML</title>
<link rel="stylesheet" href="./style.css" />
<style>
a {
color: #333333;
@@ -10,8 +11,6 @@
</head>
<body>
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element">HTML Element Reference</a>
<h2><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Document_metadata">Document Meta Data</a></h2>
<p>head, title, link, style</p>
+15 -2
View File
@@ -1,2 +1,15 @@
<a href="./html-demo.html">HTML Demo</a><br />
<a href="./css-demo.html">CSS Demo</a>
<html>
<head>
<link rel="stylesheet" href="../assets/shared.css" />
<link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/9.6.1/css/fabric.min.css" />
</head>
<body class="ms-Fabric">
<div class="Container">
<ul class="Tiles">
<li class="Tile"><a href="./html-demo.html" class="Tile-link">HTML Demo</a></li>
<li class="Tile"><a href="./css-demo.html" class="Tile-link">CSS Demo</a></li>
</ul>
</div>
</body>
</html>