assignment 1
This commit is contained in:
50
practices/24-9-19/css/index.css
Normal file
50
practices/24-9-19/css/index.css
Normal file
@@ -0,0 +1,50 @@
|
||||
@import 'common.css';
|
||||
|
||||
header {
|
||||
color: white;
|
||||
background-color: var(--color-gray-800);
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 1rem;
|
||||
position: relative;
|
||||
|
||||
.links {
|
||||
display: flex;
|
||||
|
||||
a {
|
||||
padding: 1rem;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--color-gray-900);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
display: none;
|
||||
background-color: var(--color-gray-800);
|
||||
padding: 1rem;
|
||||
border-radius: 1rem;
|
||||
position: absolute;
|
||||
right: 1rem;
|
||||
top: calc(100% + 0.5rem);
|
||||
flex-direction: column;
|
||||
|
||||
a {
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--color-gray-900);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a:hover + .dropdown {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user