mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 19:02:41 +01:00
df3ac50cb7
Summary: The current hovercard of a wiki document has no further information except the title. This commit adds object type, project tags, parent documents, last author and last edited time to the card. Preview: {F313614} Preview in a pessimistic case: {F325478} Closes T15433 Test Plan: Edit a wiki document with/without project tags and parent documents and see the hovercard in the feed. Reviewers: O1 Blessed Committers, valerio.bozzolan, avivey, Cigaryno Reviewed By: O1 Blessed Committers, valerio.bozzolan, avivey, Cigaryno Subscribers: avivey, speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T15433 Differential Revision: https://we.phorge.it/D25303
138 lines
2.5 KiB
CSS
138 lines
2.5 KiB
CSS
/**
|
|
* @provides phui-hovercard-view-css
|
|
*/
|
|
|
|
.jx-hovercard-container {
|
|
position: absolute;
|
|
}
|
|
|
|
.phui-hovercard-wrapper {
|
|
width: 400px;
|
|
}
|
|
|
|
.device-phone .phui-hovercard-wrapper {
|
|
width: 300px;
|
|
}
|
|
|
|
.phui-hovercard-container {
|
|
width: 100%;
|
|
box-shadow: {$dropshadow};
|
|
border: 1px solid {$lightblueborder};
|
|
border-radius: 3px;
|
|
background-color: {$page.content};
|
|
}
|
|
|
|
.phui-hovercard-head .phui-header-shell {
|
|
padding: 6px 8px 6px 12px;
|
|
background-color: {$bluebackground};
|
|
border-top-left-radius: 3px;
|
|
border-top-right-radius: 3px;
|
|
}
|
|
|
|
.phui-hovercard-head .phui-header-header {
|
|
font-size: {$biggerfontsize};
|
|
}
|
|
|
|
.phui-hovercard-head .phui-tag-type-state {
|
|
color: {$darkbluetext};
|
|
text-shadow: none;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.phui-hovercard-tags {
|
|
float: right;
|
|
white-space: normal;
|
|
}
|
|
|
|
.phui-hovercard-body {
|
|
padding: 12px;
|
|
color: {$darkgreytext};
|
|
border-bottom-right-radius: 3px;
|
|
border-bottom-left-radius: 3px;
|
|
position: relative;
|
|
}
|
|
|
|
.phui-hovercard-body-item {
|
|
margin: 4px 0 0 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.phui-hovercard-body-header {
|
|
font-size: 14px;
|
|
padding-bottom: 4px;
|
|
color: {$darkgreytext};
|
|
line-height: 18px;
|
|
}
|
|
|
|
.phui-hovercard-body .phui-hovercard-body-image {
|
|
width: 58px;
|
|
}
|
|
|
|
.phui-hovercard-body .phui-hovercard-body-details {
|
|
margin-left: 58px;
|
|
}
|
|
|
|
.phui-hovercard-body .profile-header-picture-frame {
|
|
float: left;
|
|
width: 50px;
|
|
height: 50px;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.hovercard-badges {
|
|
margin: 6px 0 0 0;
|
|
padding: 4px;
|
|
background: {$page.background};
|
|
border-bottom-left-radius: 3px;
|
|
border-bottom-right-radius: 3px;
|
|
}
|
|
|
|
.hovercard-badges .phui-badge-flex-item {
|
|
float: left;
|
|
}
|
|
|
|
.phui-hovercard-tail {
|
|
width: 396px;
|
|
float: left;
|
|
padding: 2px;
|
|
border-top: 1px solid {$thinblueborder};
|
|
border-bottom-left-radius: 3px;
|
|
border-bottom-right-radius: 3px;
|
|
}
|
|
|
|
.phui-hovercard-tail button,
|
|
.phui-hovercard-tail a.button {
|
|
margin: 3px;
|
|
}
|
|
|
|
.phui-hovercard-wrapper .hovercard-task-view {
|
|
box-shadow: 0px 4px 16px rgba(0,0,0,.2);
|
|
}
|
|
|
|
.hovercard-task-view .phui-oi-disabled.phui-workcard {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.phui-hovercard-object-type {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.phui-hovercard-object-type .phui-icon-view {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.phui-hovercard-object-type .phui-crumb-divider {
|
|
margin: 0px 6px;
|
|
}
|
|
|
|
.phui-hovercard-object-type .phabricator-handle-tag-list {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.phui-hovercard-object-type .phabricator-handle-tag-list-item {
|
|
display: inline-block;
|
|
margin: 0 4px 2px 0;
|
|
}
|