Switch avatars to be built out of CSS and only overlayed with the gravatar when a non-default exists
This commit is contained in:
parent
2d8d0c6fd3
commit
27a9b84587
94 changed files with 663 additions and 303 deletions
23
static/css/directives/ui/avatar.css
Normal file
23
static/css/directives/ui/avatar.css
Normal file
|
@ -0,0 +1,23 @@
|
|||
.avatar-element {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
color: white !important;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
background: white;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.avatar-element.team {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.avatar-element img {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
.avatar-element .letter {
|
||||
cursor: default !important;
|
||||
}
|
7
static/css/directives/ui/entity-reference.css
Normal file
7
static/css/directives/ui/entity-reference.css
Normal file
|
@ -0,0 +1,7 @@
|
|||
.entity-reference .new-entity-reference .entity-name {
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
.entity-reference .new-entity-reference .fa-wrench {
|
||||
width: 16px;
|
||||
}
|
52
static/css/directives/ui/entity-search.css
Normal file
52
static/css/directives/ui/entity-search.css
Normal file
|
@ -0,0 +1,52 @@
|
|||
.entity-search-element {
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.entity-search-element .entity-reference {
|
||||
position: absolute !important;
|
||||
top: 7px;
|
||||
left: 8px;
|
||||
right: 36px;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.entity-search-element .entity-reference .entity-reference-element {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.entity-search-element .entity-reference-element i.fa-exclamation-triangle {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.entity-search-element .entity-reference .entity-name {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.entity-search-element input {
|
||||
vertical-align: middle;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.entity-search-element.persistent input {
|
||||
padding-left: 28px;
|
||||
padding-right: 28px;
|
||||
}
|
||||
|
||||
.entity-search-element .twitter-typeahead {
|
||||
vertical-align: middle;
|
||||
display: block !important;
|
||||
margin-right: 36px;
|
||||
}
|
||||
|
||||
.entity-search-element .dropdown {
|
||||
vertical-align: middle;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
.entity-search-element .menuitem .avatar {
|
||||
margin-right: 4px;
|
||||
}
|
|
@ -1,3 +1,55 @@
|
|||
.teams-manager .popup-input-button {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
.teams-manager .manager-header {
|
||||
border-bottom: 1px solid #eee;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.teams-manager .cor-options-menu {
|
||||
display: inline-block;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.teams-manager .header-col .info-icon {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.teams-manager .header-col .header-text {
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
color: #aaa !important;
|
||||
display: inline-block;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.teams-manager .control-col {
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.teams-manager .team-listing {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.teams-manager .team-listing .avatar {
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.teams-manager .team-member-list .fa {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.teams-manager .team-member-list {
|
||||
position: relative;
|
||||
min-height: 20px;
|
||||
padding: 4px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.teams-manager .team-member-list .team-member-more {
|
||||
vertical-align: middle;
|
||||
padding-left: 6px;
|
||||
color: #aaa;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
|
Reference in a new issue