Skip to content

Commit

Permalink
Style malaitikka.html with the new flex layout
Browse files Browse the repository at this point in the history
Added a Nav Bar and styled the web page to increase user-friendliness
  • Loading branch information
Samar-exe committed May 17, 2024
1 parent f2fc6f3 commit db54cd6
Showing 1 changed file with 143 additions and 3 deletions.
146 changes: 143 additions & 3 deletions recipes/css/malaitikka.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,148 @@
/* General Styling */

* {
box-sizing: border-box;
}

body {
background-color: black;
color: white;

font-family: Verdana, Geneva, Tahoma, sans-serif;
background-color: #1e1e2e;
color: #cdd6f4;
padding: 0;
}

h1 {
color: #a6e3a1;
}

h2 {
color: #fab387;

}

/* Styling the Nav Bar */
nav {
padding: 12px;
border-bottom: 1px solid #cba6f7;
margin-bottom: 20px;
}

.desc {
.nav-ul {
display: flex;
gap: 25px;
align-items: baseline;
margin: 0;
padding: 0;
list-style: none;
}

li a {
text-decoration: none;
color: #74c7ec;
}

.nav-head a {
font-size: 2rem;
}

.contact,
.login {
font-size: 18px;
}

li.nav-head {
flex-grow: 1;
}


/* Styling The Heading */
.main-head {
text-align: center;
margin-bottom: 3em;
color: #f38ba8;
}

/* Style Image And Description */
.desc-box {
display: flex;
gap: 30px;
justify-content: flex-start;
align-items: center;
margin-bottom: 40px;
border-bottom: 1px solid #cba6f7;
padding-bottom: 20px;
}

.desc-box img {
width: 300px;
height: auto;
margin-left: 50px;
}

.desc-box p {
flex-shrink: 2;
}

/* Styling the Ingredients and Steps Section */

.content {
display: flex;
gap: 100px;
justify-content: center;
}

.content .ing {
/* padding-right: 200px; */
/* width: 1000px; */
flex-basis: 1000px;
margin-right: auto;
}

.content .steps {
flex-shrink: 2;
margin-right: 30px;
}

.ing h2,
.ing ul li {
text-align: center;
list-style: none;
}

.steps h2,
.steps ol {
text-align: center;
}

/* Styling The List */
li {
margin-bottom: 9px;
}

/* Styling The Footer */
footer {
background-color: #11111b;
padding-bottom: 20px;
}

footer h3 {
margin-right: -20px;
margin-bottom: 4rem;
}

.contact-list {
display: flex;
gap: 20px;
justify-content: center;
list-style: none;
}

.contact-list li a {
color: #f38ba8;
font-size: 1rem;
}

.contact-list li {
margin: auto;
}

0 comments on commit db54cd6

Please sign in to comment.