-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec9154f
commit aa42e40
Showing
2 changed files
with
92 additions
and
85 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,89 @@ | ||
body { | ||
background-color: lightgray; | ||
margin: 0; | ||
border: 1px solid red; | ||
height: 100vh; | ||
html { | ||
height: 100%; | ||
} | ||
|
||
header { | ||
height: 5rem; | ||
border: 3px solid purple; | ||
} | ||
body { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
header > * { | ||
display: inline-block; | ||
height: 100%; | ||
width: 100%; | ||
padding: 0%; | ||
position: relative; | ||
vertical-align: middle; | ||
} | ||
margin: 0%; | ||
|
||
p { | ||
border: 1px solid blue; | ||
background-color: rgb(101, 101, 101); | ||
} | ||
|
||
/* Header */ | ||
#icon { | ||
margin: 0%; | ||
} | ||
#global-nav { | ||
position: sticky; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
gap: .5em; | ||
|
||
#globalNav { | ||
border: 3px solid black; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
height: 50px; | ||
width: 100%; | ||
background-color: rgb(143, 143, 143) | ||
} | ||
|
||
#globalNav ul { | ||
text-align: center; | ||
list-style: none; | ||
#global-nav-icon { | ||
margin-right: auto; | ||
height: 100%; | ||
} | ||
|
||
#globalNav ul li { | ||
display: inline; | ||
.global-nav-link { | ||
width: 7.5rem; | ||
text-align: center; | ||
vertical-align: middle; | ||
padding: auto; | ||
background-color: lightgray; | ||
} | ||
|
||
/* Article */ | ||
#articleBody { | ||
height: 80; | ||
display: grid; | ||
grid-template-columns: 15% 70% 15%; | ||
border: 5px solid pink; | ||
font-size: 0%; | ||
#global-nav-extra { | ||
width: 10rem; | ||
margin-left: auto; | ||
background-color: red; | ||
} | ||
|
||
#articleBody > * { | ||
margin: 0%; | ||
font-size: 1rem; | ||
#article-body { | ||
display: flex; | ||
flex-grow: 1; | ||
background-color: gray; | ||
} | ||
|
||
#articleBody article { | ||
grid-column: 2; | ||
border: 3px solid black; | ||
padding: 2rem; | ||
#article-nav { | ||
flex-direction: column; | ||
width: 15em; | ||
flex-grow: 0; | ||
flex-shrink: 0; | ||
flex-basis: 15em; | ||
background-color: rgb(169, 169, 169); | ||
} | ||
|
||
#rightNavBar { | ||
grid-column: 1; | ||
grid-row: 1 ; | ||
padding: 0%; | ||
border: 1px solid green; | ||
.article-nav-link { | ||
display: block; | ||
width: 100%; | ||
height: 3em; | ||
background-color: rgb(151, 151, 151); | ||
text-align: center; | ||
} | ||
|
||
#leftNavBar { | ||
grid-column: 3; | ||
border: 1px solid yellow; | ||
.article-nav-link:hover { | ||
background-color: white; | ||
} | ||
|
||
@media screen and (max-width: 800px) { | ||
#articleBody { | ||
display: block; | ||
} | ||
#article-body article { | ||
flex-grow: 1; | ||
padding: 5em; | ||
|
||
#rightNavBar, #leftNavBar { | ||
visibility: hidden; | ||
display: none; | ||
} | ||
background-color: pink; | ||
} | ||
|
||
#articleBody article { | ||
width: auto; | ||
} | ||
#article-bookmarks { | ||
flex-direction: column; | ||
width: 15em; | ||
flex-grow: 0; | ||
flex-shrink: 0; | ||
flex-basis: 15em; | ||
background-color: rgb(169, 169, 169); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,48 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title></title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="./articlestylesheet.css"> | ||
|
||
</head> | ||
|
||
<body> | ||
<header> | ||
<div id="icon"> | ||
This is an icon | ||
</div> | ||
<nav id="globalNav"> | ||
<ul> | ||
<li><a href="">Link1</a></li> | ||
<li><a href="">Link2</a></li> | ||
<li><a href="">Link3</a></li> | ||
</ul> | ||
</nav> | ||
<p> This is a header</p> | ||
</header> | ||
<nav id="global-nav"> | ||
<img id="global-nav-icon" src="https://www.ivins.com/wp-content/uploads/2020/09/placeholder-1.png"> | ||
<a class="global-nav-link" href="">Link1</a> | ||
<a class="global-nav-link" href="">Link2</a> | ||
<a class="global-nav-link" href="">Link3</a> | ||
<div id="global-nav-extra"></div> | ||
</nav> | ||
|
||
<div id="articleBody"> | ||
|
||
<nav id="rightNavBar"> | ||
<a>This is part of the nav bar</a> | ||
<div id="article-body"> | ||
<nav id="article-nav"> | ||
<a href="" class="article-nav-link">Link1</d> | ||
<a href="" class="article-nav-link">Link2</a> | ||
<a href="" class="article-nav-link">Link3</a> | ||
<a href="" class="article-nav-link">Link1</a> | ||
<a href="" class="article-nav-link">Link2</a> | ||
<a href="" class="article-nav-link">Link3</a> | ||
</nav> | ||
|
||
<article> | ||
<p>This is the article</p> | ||
This is some text | ||
</article> | ||
|
||
<nav id="leftNavBar"> | ||
<a href="">Bookmarks</a> | ||
<nav id="article-bookmarks"> | ||
<a href="" class="article-nav-link">Link1</d> | ||
<a href="" class="article-nav-link">Link2</a> | ||
<a href="" class="article-nav-link">Link3</a> | ||
<a href="" class="article-nav-link">Link1</a> | ||
<a href="" class="article-nav-link">Link2</a> | ||
<a href="" class="article-nav-link">Link3</a> | ||
</nav> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |