Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
soberbichler authored Oct 5, 2024
1 parent 528076b commit 6c2360a
Showing 1 changed file with 87 additions and 34 deletions.
121 changes: 87 additions & 34 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,81 +3,134 @@
margin: 0;
padding: 0;
}

body, html {
width: 100%;
overflow-x: hidden;
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f4f4f4;
height: 100%;
}

body {
display: flex;
flex-direction: column;
}

header {
background-color: #8B0000;
color: white;
text-align: center;
padding: 1rem;
width: 100%;
display: flex;
align-items: center;
}

.logo svg {
max-width: 100px;
height: auto;
width: 50px;
height: 50px;
margin-right: 1rem;
}
h1 {
font-size: 1.8em;
margin: 0.5rem 0;

.title h1 {
font-size: 1.2em;
margin-bottom: 0.2rem;
}
ul {
background-color: #f2f2f2;
padding: 20px 20px 20px 40px;
border-radius: 5px;

.title p {
font-size: 0.9em;
opacity: 0.8;
}
main {
width: 100%;
max-width: 800px;
margin: 0 auto;

.content-wrapper {
display: flex;
flex: 1;
}

.sidebar {
width: 250px;
background-color: #f0f0f0;
padding: 1rem;
height: calc(100vh - 80px);
position: fixed;
top: 80px;
left: 0;
overflow-y: auto;
}

.sidebar h2 {
color: #8B0000;
border-bottom: 2px solid #8B0000;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}

.sidebar ul {
list-style-type: none;
}

.sidebar li {
margin-bottom: 0.5rem;
}

.sidebar a {
color: #333;
text-decoration: none;
transition: color 0.3s;
}

.sidebar a:hover {
color: #8B0000;
}

main {
flex: 1;
margin-left: 250px;
padding: 2rem;
}

section {
background-color: white;
margin-bottom: 1rem;
padding: 1rem;
margin-bottom: 2rem;
padding: 2rem;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
color: #8B0000;
border-bottom: 2px solid #8B0000;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}
h3 {
color: #8B0000;
margin-bottom: 0.5rem;
}

ul {
padding-left: 1.5rem;
}

li {
margin-bottom: 0.5rem;
}

footer {
background-color: #333;
color: white;
text-align: center;
padding: 1rem;
width: 100%;
}
@media (max-width: 600px) {
h1 {
font-size: 1.5em;
}
h2 {
font-size: 1.3em;

@media (max-width: 768px) {
.content-wrapper {
flex-direction: column;
}
h3 {
font-size: 1.1em;

.sidebar {
width: 100%;
height: auto;
position: static;
margin-bottom: 1rem;
}
.logo svg {
max-width: 80px;

main {
margin-left: 0;
}
}

0 comments on commit 6c2360a

Please sign in to comment.