Added simple popup to profile icon
modified: src/components/dashboard.rs modified: src/components/personal.rs modified: style/dashboard.scss modified: style/home.scss modified: style/personal.scss
This commit is contained in:
@ -2,4 +2,9 @@
|
||||
|
||||
.dashboard-container {
|
||||
width: calc(100% - 22rem - 16rem);
|
||||
.dashboard-header {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 300;
|
||||
border-bottom: 2px solid white;
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,6 @@
|
||||
background: #1c1c1c;
|
||||
height: 100vh;
|
||||
margin: 2px;
|
||||
padding: 1rem 1.5rem 1.5rem 1.5rem;
|
||||
padding: 0.2rem 1.5rem 1.5rem 1rem;
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
.profile-container {
|
||||
display: flex;
|
||||
border-radius: 0.4rem;
|
||||
margin: 0.3rem;
|
||||
margin: 0.2rem;
|
||||
min-height: 6rem;
|
||||
border: 2px solid rgba(89, 89, 89, 0.199);
|
||||
padding: 0.5rem;
|
||||
@ -34,5 +34,41 @@
|
||||
.profile-icon:active {
|
||||
transform: scale(0.8);
|
||||
}
|
||||
.dropdown-container {
|
||||
position: absolute;
|
||||
top: 3.8rem;
|
||||
right: 0.8rem;
|
||||
background: #1c1c1c;
|
||||
border-radius: 0.5rem;
|
||||
width: 10rem;
|
||||
z-index: 1;
|
||||
background-color: red;
|
||||
border: 1px solid grey;
|
||||
|
||||
.dropdown-not-logged {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
h1 {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.auth-button {
|
||||
}
|
||||
}
|
||||
}
|
||||
.dropdown-container:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -0.4rem;
|
||||
right: 0.92rem;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
transform: rotate(45deg);
|
||||
background-color: red;
|
||||
border-left: 1px solid grey;
|
||||
border-top: 1px solid grey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user