Path: blob/main/src/vs/workbench/contrib/comments/browser/media/review.css
5284 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45.review-widget {6width: 100%;7position: absolute;8}910.monaco-editor .review-widget,11.monaco-editor .review-widget {12background-color: var(--vscode-peekViewResult-background);13}14.review-widget .hidden {15display: none !important;16}1718.review-widget .body {19overflow: hidden;20}2122.review-widget .body .review-comment {23padding: 8px 16px 8px 20px;24display: flex;25}2627@keyframes monaco-review-widget-focus {280% {29background: var(--vscode-peekViewResult-selectionBackground);30}3132100% {33background: transparent;34}35}3637.review-widget .body .review-comment.focus {38animation: monaco-review-widget-focus 3s ease 0s;39}40.review-widget .body .review-comment .comment-actions {41margin-left: auto;42}4344.review-widget .body .review-comment .comment-actions .monaco-toolbar {45height: 22px;46}4748.review-widget .body .review-comment .comment-title .comment-header-info {49overflow: hidden;50text-overflow: ellipsis;51}5253.review-widget .body .review-comment .comment-title {54display: flex;55width: 100%;56}5758.review-widget .body .review-comment .comment-title .action-label.codicon {59line-height: 18px;60}6162.review-widget .body .review-comment .comment-title .monaco-dropdown .toolbar-toggle-more {63width: 16px;64height: 18px;65line-height: 18px;66vertical-align: middle;67}6869.review-widget .body .comment-body blockquote {70margin: 8px 7px 8px 5px;71padding: 2px 16px 2px 10px;72border-left-width: 5px;73border-left-style: solid;74border-left-color: var(--vscode-textBlockQuote-border);75}7677.review-widget .body .review-comment blockquote {78background: var(--vscode-textBlockQuote-background);79}8081.review-widget .body .review-comment .avatar-container {82margin-top: 4px !important;83}8485.review-widget .body .avatar-container img.avatar {86height: 28px;87width: 28px;88display: inline-block;89overflow: hidden;90line-height: 1;91vertical-align: middle;92border-radius: 3px;93border-style: none;94}9596.review-widget .body .comment-reactions .monaco-text-button {97margin: 0 7px 0 0;98width: 30px;99background-color: transparent;100border: 1px solid grey;101border-radius: 3px;102}103104.review-widget .body .review-comment .review-comment-contents {105padding-left: 20px;106user-select: text;107-webkit-user-select: text;108width: 100%;109overflow: hidden;110}111112.review-widget .body pre {113overflow: auto;114word-wrap: normal;115white-space: pre;116}117118119.review-widget .body .review-comment .review-comment-contents .author {120line-height: 22px;121}122123124.review-widget .body .review-comment .review-comment-contents .isPending {125line-height: 22px;126margin: 0 5px 0 5px;127padding: 0 2px 0 2px;128font-style: italic;129}130131.review-widget .body .review-comment .review-comment-contents .timestamp {132line-height: 22px;133margin: 0 5px 0 5px;134padding: 0 2px 0 2px;135}136137.review-widget .body .review-comment .review-comment-contents .comment-body .comment-body-plainstring {138white-space: pre-wrap;139}140141.review-widget .body .review-comment .review-comment-contents .comment-body {142padding-top: 4px;143}144145.review-widget .body .review-comment .review-comment-contents .comment-body-max-height {146max-height: 20em;147}148149.review-widget .body .review-comment .review-comment-contents .comment-reactions {150margin-top: 8px;151min-height: 25px;152}153154.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item .action-label {155padding: 1px 4px;156white-space: pre;157text-align: center;158font-size: 12px;159display: flex;160}161162.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item .action-label .reaction-icon {163background-size: 14px;164background-position: left center;165background-repeat: no-repeat;166width: 14px;167-webkit-font-smoothing: antialiased;168-moz-osx-font-smoothing: grayscale;169display: inline-block;170margin-right: 4px;171}172173.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item .action-label .reaction-label {174line-height: 20px;175margin-right: 4px;176}177178.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label.toolbar-toggle-pickReactions {179background-size: 16px;180font-size: 16px;181width: 26px;182height: 16px;183background-repeat: no-repeat;184background-position: center;185margin-top: 3px;186border: none;187}188189.review-widget .body .review-comment .comment-title .action-label {190display: block;191height: 16px;192line-height: 16px;193background-size: 16px;194background-position: center center;195background-repeat: no-repeat;196}197198.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label {199border: 1px solid;200border-color: var(--vscode-panel-border);201}202203.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label.disabled {204opacity: 0.6;205}206207.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label.active:hover {208background-color: var(--vscode-statusBarItem-hoverBackground);209}210211.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label:active {212background-color: var(--vscode-statusBarItem-activeBackground);213border: 1px solid transparent;214}215.review-widget .body .review-comment .review-comment-contents .comment-body a {216cursor: pointer;217color: var(--vscode-textLink-foreground);218}219220.review-widget .body .comment-body a:hover,221.review-widget .body .comment-body a:active {222color: var(--vscode-textLink-activeForeground);223}224225.review-widget .body .comment-body a:focus {226outline: 1px solid var(--vscode-focusBorder);227}228229.review-widget .body .comment-body p,230.review-widget .body .comment-body ul {231margin: 8px 0;232}233234.review-widget .body .comment-body p:first-child,235.review-widget .body .comment-body ul:first-child {236margin-top: 0;237}238239.review-widget .body .comment-body p:last-child,240.review-widget .body.comment-body ul:last-child {241margin-bottom: 0;242}243244.review-widget .body .comment-body ul {245padding-left: 20px;246}247248.review-widget .body .comment-body li > p {249margin-bottom: 0;250}251252.review-widget .body .comment-body li > ul {253margin-top: 0;254}255256.review-widget .body .comment-body span {257white-space: pre;258}259260.review-widget .body .comment-body img {261max-width: 100%;262}263264.review-widget .body .comment-body .monaco-tokenized-source {265font-size: inherit !important;266line-height: auto !important;267}268269.review-widget .body .comment-form-container {270margin: 8px 20px;271}272273.review-widget .validation-error {274display: inline-block;275overflow: hidden;276text-align: left;277width: 100%;278box-sizing: border-box;279padding: 0.4em;280font-size: 12px;281line-height: 17px;282min-height: 34px;283margin-top: -1px;284margin-left: -1px;285word-wrap: break-word;286border: 1px solid var(--vscode-inputValidation-errorBorder);287background: var(--vscode-inputValidation-errorBackground);288}289290.review-widget .body .comment-form .validation-error {291color: var(--vscode-inputValidation-errorForeground);292}293294295.review-widget .body .comment-additional-actions {296margin: 10px 20px;297}298299.review-widget .body .comment-additional-actions .section-separator {300border-top: 1px solid var(--vscode-menu-separatorBackground);301margin: 10px 0 14px;302}303304.review-widget .body .comment-additional-actions .button-bar {305display: flex;306white-space: nowrap;307}308309.review-widget .body .comment-additional-actions .monaco-button,310.review-widget .body .comment-additional-actions .monaco-text-button,311.review-widget .body .comment-additional-actions .monaco-button-dropdown {312display: flex;313width: auto;314}315316.review-widget .body .comment-additional-actions .button-bar > .monaco-text-button,317.review-widget .body .comment-additional-actions .button-bar > .monaco-button-dropdown {318margin: 0 10px 0 0;319}320321.review-widget .body .comment-additional-actions .codicon-drop-down-button {322align-items: center;323}324325.review-widget .body .monaco-editor {326color: var(--vscode-editor-foreground);327}328329.review-widget .body code {330font-family: var(--comment-thread-editor-font-family);331font-weight: var(--comment-thread-editor-font-weight);332}333334.review-widget .body .comment-form-container .comment-form {335display: flex;336flex-direction: row;337}338339.review-widget .body .comment-form-container .comment-form .avatar-container {340padding-right: 20px;341}342343.review-widget .body .comment-form-container.expand .review-thread-reply-button {344display: none;345}346347.review-widget .body .comment-form-container.expand .monaco-editor,348.review-widget .body .comment-form-container.expand .form-actions {349display: block;350box-sizing: content-box;351}352353.review-widget .body .comment-form-container .review-thread-reply-button {354text-align: left;355display: block;356width: 100%;357resize: vertical;358border-radius: 0;359box-sizing: border-box;360padding: 6px 12px;361font-weight: 600;362line-height: 20px;363white-space: nowrap;364border: 0px;365outline: 1px solid transparent;366outline-color: var(--vscode-contrastBorder);367background-color: var(--vscode-editorCommentsWidget-replyInputBackground);368color: var(--vscode-editor-foreground);369font-size: inherit;370font-family: var(--monaco-monospace-font);371}372373.review-widget .body .comment-form-container .review-thread-reply-button:focus {374outline-style: solid;375outline-width: 1px;376}377378.review-widget .body .comment-form-container .monaco-editor,379.review-widget .body .comment-form-container .monaco-editor .monaco-editor-background,380.review-widget .body .edit-container .monaco-editor .monaco-editor-background {381background-color: var(--vscode-editorCommentsWidget-replyInputBackground);382}383384.review-widget .body .comment-form-container .monaco-editor,385.review-widget .body .edit-container .monaco-editor {386width: 100%;387min-height: 90px;388max-height: 500px;389border-radius: 3px;390border: 0px;391box-sizing: content-box;392padding: 6px 0 6px 12px;393outline: 1px solid var(--vscode-contrastBorder);394}395396.review-widget .body .monaco-editor.focused {397outline: 1px solid var(--vscode-focusBorder);398}399400.review-widget .body .comment-form-container .monaco-editor,401.review-widget .body .comment-form-container .form-actions {402display: none;403}404405.review-widget .body .comment-form-container .form-actions,406.review-widget .body .edit-container .form-actions {407overflow: auto;408margin: 10px 0;409}410411.review-widget .body .edit-container .form-actions {412padding-top: 10px;413}414415.review-widget .body .edit-textarea {416margin: 5px 0 10px 0;417margin-right: 12px;418}419420.review-widget .body .comment-form-container .form-actions .monaco-text-button,421.review-widget .body .edit-container .monaco-text-button {422width: auto;423margin-left: 5px;424}425426.review-widget .body .form-actions .monaco-text-button {427float: right;428}429430.review-widget .head {431box-sizing: border-box;432display: flex;433height: 100%;434}435436.review-widget .head .review-title {437display: inline-block;438font-size: 13px;439margin-left: 20px;440cursor: default;441overflow: hidden;442text-overflow: ellipsis;443white-space: nowrap;444}445446.review-widget .head .review-title .dirname:not(:empty) {447font-size: 0.9em;448margin-left: 0.5em;449}450451.review-widget .head .review-actions {452flex: 1;453text-align: right;454padding-right: 2px;455}456457.review-widget .head .review-actions > .monaco-action-bar {458display: inline-block;459}460461.review-widget .head .review-actions > .monaco-action-bar,462.review-widget .head .review-actions > .monaco-action-bar > .actions-container {463height: 100%;464}465466.review-widget .action-item {467min-width: 18px;468min-height: 20px;469margin-left: 4px;470}471472.review-widget .head .review-actions > .monaco-action-bar .action-label {473margin: 0;474line-height: inherit;475background-repeat: no-repeat;476background-position: center center;477}478479.review-widget .head .review-actions > .monaco-action-bar .action-label.codicon {480margin: 0;481}482483.monaco-editor .review-widget > .body {484border-top: 1px solid var(--comment-thread-state-color);485}486487.monaco-editor .review-widget > .head {488background-color: var(--comment-thread-state-background-color);489}490491.review-widget > .body {492border-top: 1px solid;493position: relative;494}495496.monaco-editor .comment-range-glyph {497margin-left: 10px;498width: 4px !important;499cursor: pointer;500z-index: 10;501}502503div.preview.inline .monaco-editor .comment-range-glyph {504display: none !important;505}506507.monaco-editor .comment-diff-added {508border-left-width: 3px;509border-left-style: solid;510}511512.monaco-editor .comment-diff-added,513.monaco-editor .comment-range-glyph.multiline-add {514border-left-color: var(--vscode-editorGutter-commentRangeForeground);515}516517.monaco-editor .comment-diff-added:before,518.monaco-editor .comment-range-glyph.line-hover:before {519background: var(--vscode-editorGutter-commentRangeForeground);520}521522.monaco-editor .comment-thread:before,523.monaco-editor .comment-thread-unresolved:before,524.monaco-editor .comment-thread-draft:before {525background: var(--vscode-editorGutter-commentRangeForeground);526}527528.monaco-editor .comment-thread-range {529background-color: var(--vscode-editorCommentsWidget-rangeBackground);530}531532.monaco-editor .comment-thread-range-current {533background-color: var(--vscode-editorCommentsWidget-rangeActiveBackground);534}535536.monaco-editor .margin-view-overlays .comment-range-glyph.line-hover,537.monaco-editor .margin-view-overlays .comment-range-glyph.comment-thread,538.monaco-editor .margin-view-overlays .comment-range-glyph.comment-thread-unresolved,539.monaco-editor .margin-view-overlays .comment-range-glyph.comment-thread-draft {540margin-left: 13px;541}542543.monaco-editor .margin-view-overlays > div:hover > .comment-range-glyph.comment-diff-added:before,544.monaco-editor .margin-view-overlays .comment-range-glyph.line-hover:before,545.monaco-editor .comment-range-glyph.comment-thread:before,546.monaco-editor .comment-range-glyph.comment-thread-unresolved:before,547.monaco-editor .comment-range-glyph.comment-thread-draft:before {548position: absolute;549height: 100%;550width: 9px;551left: -6px;552z-index: 10;553color: var(--vscode-editorGutter-commentGlyphForeground);554text-align: center;555display: flex;556flex-direction: row;557align-items: center;558justify-content: center;559}560561.monaco-editor .comment-range-glyph.comment-thread-unresolved:before {562color: var(--vscode-editorGutter-commentUnresolvedGlyphForeground);563}564565.monaco-editor .comment-range-glyph.comment-thread-draft:before {566color: var(--vscode-editorGutter-commentDraftGlyphForeground);567}568569.monaco-editor .margin-view-overlays .comment-range-glyph.multiline-add {570border-left-width: 3px;571border-left-style: dotted;572height: 16px;573margin-top: 2px;574}575576.monaco-editor .margin-view-overlays > div:hover > .comment-range-glyph.comment-diff-added:before,577.monaco-editor .margin-view-overlays .comment-range-glyph.line-hover:before {578content: var(--vscode-icon-plus-content);579font-family: var(--vscode-icon-plus-font-family);580font-family: "codicon";581border-radius: 3px;582width: 18px !important;583margin-left: -5px;584padding-left: 1px;585}586587.monaco-editor .comment-range-glyph.comment-thread,588.monaco-editor .comment-range-glyph.comment-thread-unresolved,589.monaco-editor .comment-range-glyph.comment-thread-draft {590z-index: 20;591}592593.monaco-editor .comment-range-glyph.comment-thread:before,594.monaco-editor .comment-range-glyph.comment-thread-unresolved:before,595.monaco-editor .comment-range-glyph.comment-thread-draft:before {596font-family: "codicon";597font-size: 13px;598width: 18px !important;599line-height: 100%;600border-radius: 3px;601z-index: 20;602margin-left: -5px;603padding-top: 1px;604padding-left: 1px;605}606607.monaco-editor .comment-range-glyph.comment-thread:before {608content: var(--vscode-icon-comment-add-content);609font-family: var(--vscode-icon-comment-add-font-family);610611}612.monaco-editor .comment-range-glyph.comment-thread-unresolved:before {613content: var(--vscode-icon-comment-unresolved-content);614font-family: var(--vscode-icon-comment-unresolved-font-family);615}616.monaco-editor .comment-range-glyph.comment-thread-draft:before {617content: var(--vscode-icon-comment-draft-content);618font-family: var(--vscode-icon-comment-draft-font-family);619}620621.monaco-editor.inline-comment .margin-view-overlays .codicon-folding-expanded,622.monaco-editor.inline-comment .margin-view-overlays .codicon-folding-collapsed {623margin-left: 11px;624}625626.monaco-editor.inline-comment .margin-view-overlays .dirty-diff-glyph {627margin-left: 25px;628}629630631