odin-css-exercises/flex/03-flex-header-2/solution/solution.css

70 lines
1.1 KiB
CSS
Raw Normal View History

2021-08-24 06:32:36 -07:00
/* this is some magical font-importing.
you'll learn about it later. */
@import url('https://fonts.googleapis.com/css2?family=Besley:ital,wght@0,400;1,900&display=swap');
body {
margin: 0;
background: #eee;
font-family: Besley, serif;
}
.header {
background: white;
border-bottom: 1px solid #ddd;
box-shadow: 0 0 8px rgba(0,0,0,.1);
}
.profile-image {
background: rebeccapurple;
box-shadow: inset 2px 2px 4px rgba(0,0,0,.5);
border-radius: 50%;
width: 48px;
height: 48px;
}
.logo {
color: rebeccapurple;
font-size: 32px;
font-weight: 900;
font-style: italic;
}
button {
border: none;
border-radius: 8px;
background: rebeccapurple;
color: white;
padding: 8px 24px;
}
a {
/* this removes the line under our links */
text-decoration: none;
color: rebeccapurple;
}
ul {
list-style-type: none;
2021-08-24 08:03:48 -07:00
}
/* SOLUTION */
.header {
display: flex;
justify-content: space-between;
padding: 8px;
}
ul {
2021-08-24 06:32:36 -07:00
display: flex;
margin: 0;
padding: 0;
gap: 16px;
}
.left, .right {
display: flex;
align-items: center;
gap: 16px;
2022-01-07 03:27:46 -08:00
}