Skip to content

Commit

Permalink
Merge pull request #12 from wethmiranasinghe/main
Browse files Browse the repository at this point in the history
Flexbox Layout
  • Loading branch information
wethmiranasinghe authored Jun 10, 2024
2 parents c64b384 + 35c2405 commit 4841852
Showing 1 changed file with 115 additions and 10 deletions.
125 changes: 115 additions & 10 deletions front-end/src/Header.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;

color-scheme: light dark;
Expand All @@ -22,7 +20,7 @@
}
a {
font-weight: 600;
font-size: 1em;
font-size: 0.9em;
color: #646cff;
text-decoration: inherit;
}
Expand Down Expand Up @@ -63,15 +61,17 @@

.Erasmus-plus-Logo{
margin-top: 20px;
max-width: 45%;
margin-left: 40px;
width: 150px;
margin-left: 100px;
margin-right: 70px;
height: auto;
}

.Cycle-Logo{
max-width: 20%;
width: 280px;
height: auto;
margin-right: 20px;
margin-right: 30px;
margin-top: 20px
}

nav {
Expand All @@ -92,7 +92,7 @@
padding: 10px 30px;
display: block;
text-align: center;
width: 188px;
width: 185px;
}

.headerNavBar a:hover{
Expand All @@ -109,7 +109,6 @@
border-color: hsla(214, 54%, 60%);
background-color: hsla(214, 85%, 71%);
box-shadow: rgba(0,0,0,0.2);
min-width: 160px;
z-index: 1;
}

Expand All @@ -127,4 +126,110 @@

.headerDropDown:hover .dropdown-content{
display: block;
}
}

/* Media queries for responsiveness */
@media screen and (max-width: 1400px) {
.logo-block {
display: flex;
justify-content: space-between;
align-items: center;
}

.Erasmus-plus-Logo {
width: 100px; /* smaller width for medium screens */
}

.Cycle-Logo {
width: 200px; /* smaller width for medium screens */
}
h1 {
font-size: 4em;
font-weight: 600;
}

h2 {
font-size: 0.9em;
font-weight: 400;
}

nav ul {
flex-direction: column;
align-items: center;
}

.headerNavBar a {
padding: 10px 25px;
text-align: center;
width: 150px;
}

.dropdown-content a{
padding: 10px 25px;
}

.nav-toggle {
display: block;
margin: 10px;
}

a {
font-weight: 500;
font-size: 0.8em;
color: #646cff;
text-decoration: inherit;
}

}

@media screen and (max-width: 768px) {
h1 {
font-size: 2em;
font-weight: 600;
}

h2 {
font-size: 0.6em;
font-weight: 400;
}

.logo-block {
flex-direction: column;
align-items: center;
}

.Erasmus-plus-Logo {
display: none;
}

.Cycle-Logo {
display: none;
}

nav ul {
flex-direction: column;
align-items: center;
}

.headerNavBar a {
padding: 10px 25px;
text-align: center;
width: 130px;
}

.dropdown-content a{
padding: 10px 25px;
}

.nav-toggle {
display: block;
margin: 10px;
}

a {
font-weight: 500;
font-size: 0.8em;
color: #646cff;
text-decoration: inherit;
}
}

0 comments on commit 4841852

Please sign in to comment.