Skip to content

Commit

Permalink
0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
BusiMDAnderson committed Sep 17, 2023
1 parent a0e9d03 commit 95583ea
Showing 1 changed file with 54 additions and 44 deletions.
98 changes: 54 additions & 44 deletions styles/base.css
Original file line number Diff line number Diff line change
@@ -1,70 +1,80 @@
/* Base CSS for mobile view */
/* Reset styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Font from Google Fonts API */
/* Global styles */
body {
font-family: 'Open Sans', sans-serif;
}
/* Header */
header {
background-color: lightcoral; /* Light orange background color */
height: 10vh; /* Set the header height to 10% of viewport height */
display: flex;
align-items: center; /* Center vertically */
padding: 0 10px; /* Add padding for spacing */
color: white; /* White text color */
font-family: "Sansita", sans-serif;
}

.header-content {
/* Mobile styles */
header {
background-color: #bbb;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
border: 1px solid rgba(0, 0, 0, 0.1);
}

.imgheadermattjpg {
width: 10%; /* Set the image width to 10% of the header width */
height: auto; /* Let the height adjust proportionally */
margin-right: 10px; /* Add margin to the right of the image */
header,
main {
max-width: 767px;
margin: 0 auto;
}

h1 {
margin: 0; /* Remove margin to prevent extra space around the name */
font-size: 2rem;
}
/* Header and Footer */
header, footer {
background-color: lightcoral; /* Light orange background color */
padding: 10px;
text-align: center;
color: white; /* White text color */

nav {
background-color: #36454f;
margin: 0 auto;
max-width: 800px;
}

/* Navigation with Flexbox */
nav ul {
list-style-type: none;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
background-color: green; /* Green background color for the navbar */
}

nav li {
margin: 10px 0;
nav a {
display: block;
color: #fff;
text-align: center;
padding: 1rem;
text-decoration: none;
}

/* Navbar links text color */
nav a {
color: white; /* White text color for navbar links */
nav a:hover {
border: 1px solid #fff;
}

/* Main element centering */
main {
max-width: 90%;
margin: 0 auto;
.active {
color: yellow;
}

/* Course links list style */
ul.course-links {
list-style: none;
padding: 0;
/* Larger Views */
@media (min-width: 640px) {
nav ul {
display: flex;
}

nav ul li {
flex: 1 1 100%;
}
}

/* Add more styles specific to mobile view as needed */
/* Header image and text positioning */
header .header-content {
display: flex;
align-items: center;
}

.imgheadermattjpg {
width: 10%;
height: auto;
margin-right: 10px;
}

0 comments on commit 95583ea

Please sign in to comment.