Files
Self-Service-Dashboard/static/profile_page.css
T
2026-06-14 08:52:59 -04:00

226 lines
4.0 KiB
CSS

#main_content {
position: fixed;
top: 100px;
}
#profile_picture {
width: 100%;
height: 100%;
border-radius: 50%;
border: 3px solid var(--primary-accent);
object-fit: cover;
display: block;
}
.profile-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 50px;
background-color: var(--bg-main);
min-height: 100vh;
}
#user-card {
width: 100%;
max-width: 500px;
text-align: center;
gap: 0px !important;
position: fixed;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
}
.profile-pic {
width: 120px;
height: 120px;
border-radius: 50%;
border: 3px solid var(--primary-accent);
object-fit: cover;
}
.data-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-muted);
margin-bottom: 4px;
display: block;
}
.data-value {
font-size: 1.1rem;
font-weight: 600;
color: var(--text-main);
margin-bottom: 20px;
}
#edit_picture_button {
position: absolute;
aspect-ratio: 1 / 1;
top: 50%;
left: 50%;
/* move to circle edge at 45° */
transform: translate(-50%, -50%) translate(42px, 42px);
display: flex;
align-items: center;
justify-content: center;
background-color: rgba();
background-color: var(--primary-accent);
border-radius: 50%;
border: none;
padding: 6px;
width: fit-content !important;
}
#edit_picture_button:hover {
background-color: var(--primary-hover);
}
#edit_picture_image {
width: 20px !important;
height: 20px !important;
}
#picture_holder {
position: relative;
display: inline-block;
line-height: 0;
}
.bottom_button:hover {
text-decoration: underline !important;
background: none !important;
}
.bottom_button {
background: none;
border-style: none;
color: var(--primary-accent);
text-decoration: none;
font-weight: bold;
font-size: 20px;
}
#change_password_dialogue {
z-index: 10000;
position: fixed;
}
#resize_photo_dialouge {
z-index: 10000;
}
#change_password_dialogue input {
width: 350px;
}
#close_password_dialogue {
display: inline-block;
aspect-ratio: 1 / 1;
position: absolute;
right: 2.5rem;
padding: 0px;
margin: 0px;
width: 30px;
}
#password_errors {
background-color: var(--error-red);
border-radius: 8px;
padding: 20px;
border-color: var(--error-border-red);
border-width: 2px;
border-style: solid;
color: var(--text-main);
}
#password_warnings {
background-color: var(--warning-yellow);
border-radius: 8px;
padding: 20px;
border-color: var(--warning-border-yellow);
border-width: 2px;
border-style: solid;
color: var(--text-main);
}
#image_container {
position: absolute;
}
#darken_part {
/*background-color: black;*/
z-index: 3;
width: 100vw;
height: 100vh;
}
#confirm_change {
z-index: 2;
}
#new_profile_image {
z-index: 1;
transform: translateX(calc(-50% + var(--x-offset)))
translateY(calc(-50% + var(--y-offset)));
position: absolute;
left: calc(350px / 2);
top: calc(350px / 2);
}
#resize_photo_box {
background-color: rgba(0, 0, 0, 0);
width: 350px;
aspect-ratio: 1 / 1;
border-style: dashed;
border-color: black;
border-width: 5px;
z-index: 4;
}
#resize_photo_box:hover {
background-color: rgba(0, 0, 0, 0);
width: 350px;
aspect-ratio: 1 / 1;
border-style: dashed;
border-color: black;
border-width: 5px;
z-index: 4;
}
.resize_anchor {
background-color: red;
width: 20px;
height: 20px;
position: absolute;
pointer-events: none;
}
#top_left_resize {
transform: translateX(-50%) translateY(-50%);
}
#top_right_resize {
transform: translateX(340px) translateY(-50%);
}
#bottom_left_resize {
transform: translateY(340px) translateX(-50%);
}
#bottom_right_resize {
transform: translateX(340px) translateY(340px);
}