scinote-web/app/assets/stylesheets/shared/avatar.scss
Zmago Devetak 4a4c344a3a
Task UX: Update assigning a Task to user(s) (#3429)
* add dynmic select for user assignment on task

* update the user assignment so it looks like tags picker

* fix code style

* Code style fixes [SCI-5871]

* Code style fixes [SCI-5871]

* Destroy and search action fixes [SCI-5871]

Co-authored-by: Martin Artnik <martin@scinote.net>
2021-10-14 11:49:27 +02:00

101 lines
1.6 KiB
SCSS

// scss-lint:disable SelectorDepth SelectorFormat QualifyingElement
// scss-lint:disable NestingDepth ImportantRule
@import "constants";
@import "mixins";
.global-avatar-container {
border-radius: 15px;
display: inline-block;
height: 30px;
overflow: hidden;
position: relative;
width: 30px;
img {
border-radius: 15px;
height: 100%;
object-fit: cover;
width: 100%;
}
}
.new-avatar-preview-container {
height: 200px;
margin-bottom: 45px;
position: relative;
width: 100%;
}
.modal-user-avatar {
.modal-dialog {
width: 350px;
}
.option-text {
margin-bottom: 10px;
text-align: center;
}
.avatar-collection {
display: grid;
grid-template-columns: auto auto auto;
height: 215px;
padding: 5px 35px 0;
position: relative;
.avatar {
border-radius: 5px;
cursor: pointer;
height: 100px;
margin-bottom: 5px;
transition: $md-transaction;
width: 80px;
&:hover {
box-shadow: $md-shadow;
}
}
img {
height: 60px;
margin: 20px 10px;
user-select: none;
width: 60px;
}
}
.upload-block {
align-items: center;
display: flex;
flex-direction: column;
.current-avatar {
height: 150px;
margin: 25px 0 45px;
width: 150px;
img {
border-radius: 50%;
height: 100%;
width: 100%;
}
}
.avatar-preview-container {
height: 150px;
margin: 20px 0 50px;
position: relative;
width: 250px;
}
.upload-photo {
margin-bottom: 10px;
width: 150px;
}
}
.modal-footer {
text-align: center;
}
}