a lot of progress
This commit is contained in:
47
css/footerstyle.css
Normal file
47
css/footerstyle.css
Normal file
@@ -0,0 +1,47 @@
|
||||
.footer-container {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background-color: white;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.footer-logo-container {
|
||||
margin: 2%;
|
||||
height: 80%;
|
||||
}
|
||||
|
||||
.footer-wrapper {
|
||||
height: 40%;
|
||||
width: 100%;
|
||||
margin: 5%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.footer-link {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.footer-title {
|
||||
font-size: 1.3rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 999px) {
|
||||
.footer-container {
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.footer-wrapper {
|
||||
width: 60%;
|
||||
}
|
||||
}
|
||||
138
css/navstyle.css
Normal file
138
css/navstyle.css
Normal file
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
*
|
||||
* navstyle.css - History project
|
||||
*
|
||||
* Created 2023 by Janis Hutz
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
Default rules that are set for mobile interfaces
|
||||
*/
|
||||
.nav-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.toggle-wrapper {
|
||||
display: inline-flex;
|
||||
height: 100%;
|
||||
width: 80%;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
|
||||
/* Logo image and logo link (aka logo-container)*/
|
||||
.logo-container {
|
||||
margin: 0.5%;
|
||||
height: 80%;
|
||||
display: inline-block;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.mobile-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: block;
|
||||
width: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.listtoggle {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
font-size: 5vh;
|
||||
margin-right: 7%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.active {
|
||||
color: rgba(184, 214, 240, 1);
|
||||
}
|
||||
|
||||
/* Nav menu holder (contains the flex nav menu and has to exist because of jQuery */
|
||||
.nav-menu {
|
||||
background-color: rgba(245, 245, 245, 0.9);
|
||||
display: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* This is the list actually containing the menu items */
|
||||
.nav-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.navitem {
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
color: black;
|
||||
font-size: 1.3rem;
|
||||
padding-top: 2%;
|
||||
padding-bottom: 2%;
|
||||
width: 100%;
|
||||
}
|
||||
/*
|
||||
.navitem:hover {
|
||||
background-color: rgba(184, 214, 240, 1);
|
||||
}*/
|
||||
|
||||
|
||||
/*
|
||||
Media queries to optimise for desktop
|
||||
*/
|
||||
@media only screen and (min-width: 999px) {
|
||||
/* Top navigation bar container */
|
||||
.nav-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* div containing the nav-menu unordered list */
|
||||
.nav-wrapper {
|
||||
height: 100%;
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.listtoggle, .toggle-wrapper {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
display: flex;
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.nav-list {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.mobile-wrapper {
|
||||
width: fit-content;
|
||||
margin-left: 3%;
|
||||
}
|
||||
|
||||
.navitem {
|
||||
font-size: 0.9rem;
|
||||
width: fit-content;
|
||||
padding: 1%;
|
||||
padding-left: 2%;
|
||||
padding-right: 2%
|
||||
}
|
||||
}
|
||||
129
css/style.css
129
css/style.css
@@ -8,7 +8,14 @@ html, body {
|
||||
font-size: calc(15pt + 0.4vw);
|
||||
}
|
||||
|
||||
/*
|
||||
Centered box with slight padding & centering the content
|
||||
*/
|
||||
.centered {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 90%;
|
||||
margin: 3%;
|
||||
margin-top: 0%;
|
||||
@@ -19,6 +26,10 @@ html, body {
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
Title background & title
|
||||
*/
|
||||
|
||||
.heading-wrapper {
|
||||
width: 90%;
|
||||
margin: 3%;
|
||||
@@ -36,4 +47,122 @@ html, body {
|
||||
|
||||
.heading {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Centered text
|
||||
*/
|
||||
|
||||
.text-centered {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Buttons
|
||||
*/
|
||||
|
||||
.button {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
padding: 2%;
|
||||
background-color: rgba(0, 0, 149, 1);
|
||||
width: fit-content;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
border-radius: 50px;
|
||||
}
|
||||
|
||||
|
||||
.code-background {
|
||||
background-image: url( /assets/pageStyle.png );
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.half-height {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
height: 50vh;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.light-color {
|
||||
background-color: rgba(34, 34, 34, 0.9);
|
||||
color: white;
|
||||
padding: 3%;
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.wrap-image-right, .wrap-image-left {
|
||||
border-radius: 20px;
|
||||
margin-top: 3%;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.wrap-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.lightly-written {
|
||||
font-size: 0.7rem;
|
||||
color: rgb(97, 97, 97);
|
||||
margin-top: 7%;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/*
|
||||
Set properties for footer & nav menu
|
||||
*/
|
||||
#nav {
|
||||
height: 15vh;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#footer {
|
||||
height: 80vh;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Media queries to optimise for mobile
|
||||
*/
|
||||
@media only screen and (min-width: 999px) {
|
||||
.heading-wrapper, .centered {
|
||||
width: 70%;
|
||||
padding: 5%;
|
||||
padding-top: 2%;
|
||||
padding-bottom: 2%;
|
||||
margin-left: 10%;
|
||||
}
|
||||
|
||||
.wrap-image-right {
|
||||
float: right;
|
||||
width: 40%;
|
||||
margin: 2%;
|
||||
}
|
||||
|
||||
.wrap-image-left {
|
||||
float: left;
|
||||
width: 30%;
|
||||
margin: 2%;
|
||||
}
|
||||
|
||||
.wrap-container {
|
||||
display: block;
|
||||
}
|
||||
#footer {
|
||||
height: 40vh;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user