Path: blob/main/src/vs/workbench/contrib/comments/browser/media/review.css
3296 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: 0 7px 0 5px;71padding: 0 16px 0 10px;72border-left-width: 5px;73border-left-style: solid;74}7576.review-widget .body .review-comment .avatar-container {77margin-top: 4px !important;78}7980.review-widget .body .avatar-container img.avatar {81height: 28px;82width: 28px;83display: inline-block;84overflow: hidden;85line-height: 1;86vertical-align: middle;87border-radius: 3px;88border-style: none;89}9091.review-widget .body .comment-reactions .monaco-text-button {92margin: 0 7px 0 0;93width: 30px;94background-color: transparent;95border: 1px solid grey;96border-radius: 3px;97}9899.review-widget .body .review-comment .review-comment-contents {100padding-left: 20px;101user-select: text;102-webkit-user-select: text;103width: 100%;104overflow: hidden;105}106107.review-widget .body pre {108overflow: auto;109word-wrap: normal;110white-space: pre;111}112113114.review-widget .body .review-comment .review-comment-contents .author {115line-height: 22px;116}117118119.review-widget .body .review-comment .review-comment-contents .isPending {120line-height: 22px;121margin: 0 5px 0 5px;122padding: 0 2px 0 2px;123font-style: italic;124}125126.review-widget .body .review-comment .review-comment-contents .timestamp {127line-height: 22px;128margin: 0 5px 0 5px;129padding: 0 2px 0 2px;130}131132.review-widget .body .review-comment .review-comment-contents .comment-body .comment-body-plainstring {133white-space: pre-wrap;134}135136.review-widget .body .review-comment .review-comment-contents .comment-body {137padding-top: 4px;138}139140.review-widget .body .review-comment .review-comment-contents .comment-body-max-height {141max-height: 20em;142}143144.review-widget .body .review-comment .review-comment-contents .comment-reactions {145margin-top: 8px;146min-height: 25px;147}148149.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item .action-label {150padding: 1px 4px;151white-space: pre;152text-align: center;153font-size: 12px;154display: flex;155}156157.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item .action-label .reaction-icon {158background-size: 14px;159background-position: left center;160background-repeat: no-repeat;161width: 14px;162-webkit-font-smoothing: antialiased;163-moz-osx-font-smoothing: grayscale;164display: inline-block;165margin-right: 4px;166}167168.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item .action-label .reaction-label {169line-height: 20px;170margin-right: 4px;171}172173.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label.toolbar-toggle-pickReactions {174background-size: 16px;175font-size: 16px;176width: 26px;177height: 16px;178background-repeat: no-repeat;179background-position: center;180margin-top: 3px;181border: none;182}183184.review-widget .body .review-comment .comment-title .action-label {185display: block;186height: 16px;187line-height: 16px;188background-size: 16px;189background-position: center center;190background-repeat: no-repeat;191}192193.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label {194border: 1px solid;195}196197.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label.disabled {198opacity: 0.6;199}200201.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label.active:hover {202background-color: var(--vscode-statusBarItem-hoverBackground);203}204205.review-widget .body .review-comment .review-comment-contents .comment-reactions .action-item a.action-label:active {206background-color: var(--vscode-statusBarItem-activeBackground);207border: 1px solid transparent;208}209.review-widget .body .review-comment .review-comment-contents .comment-body a {210cursor: pointer;211}212213.review-widget .body .comment-body p,214.review-widget .body .comment-body ul {215margin: 8px 0;216}217218.review-widget .body .comment-body p:first-child,219.review-widget .body .comment-body ul:first-child {220margin-top: 0;221}222223.review-widget .body .comment-body p:last-child,224.review-widget .body.comment-body ul:last-child {225margin-bottom: 0;226}227228.review-widget .body .comment-body ul {229padding-left: 20px;230}231232.review-widget .body .comment-body li > p {233margin-bottom: 0;234}235236.review-widget .body .comment-body li > ul {237margin-top: 0;238}239240.review-widget .body .comment-body span {241white-space: pre;242}243244.review-widget .body .comment-body img {245max-width: 100%;246}247248.review-widget .body .comment-form-container {249margin: 8px 20px;250}251252.review-widget .validation-error {253display: inline-block;254overflow: hidden;255text-align: left;256width: 100%;257box-sizing: border-box;258padding: 0.4em;259font-size: 12px;260line-height: 17px;261min-height: 34px;262margin-top: -1px;263margin-left: -1px;264word-wrap: break-word;265}266267268.review-widget .body .comment-additional-actions {269margin: 10px 20px;270}271272.review-widget .body .comment-additional-actions .section-separator {273border-top: 1px solid var(--vscode-menu-separatorBackground);274margin: 10px 0 14px;275}276277.review-widget .body .comment-additional-actions .button-bar {278display: flex;279white-space: nowrap;280}281282.review-widget .body .comment-additional-actions .monaco-button,283.review-widget .body .comment-additional-actions .monaco-text-button,284.review-widget .body .comment-additional-actions .monaco-button-dropdown {285display: flex;286width: auto;287}288289.review-widget .body .comment-additional-actions .button-bar > .monaco-text-button,290.review-widget .body .comment-additional-actions .button-bar > .monaco-button-dropdown {291margin: 0 10px 0 0;292}293294.review-widget .body .comment-additional-actions .button-bar .monaco-text-button {295padding: 4px 10px;296}297298.review-widget .body .comment-additional-actions .codicon-drop-down-button {299align-items: center;300}301302.review-widget .body .monaco-editor {303color: var(--vscode-editor-foreground);304}305306.review-widget .body .comment-form-container .comment-form {307display: flex;308flex-direction: row;309}310311.review-widget .body .comment-form-container .comment-form .avatar-container {312padding-right: 20px;313}314315.review-widget .body .comment-form-container.expand .review-thread-reply-button {316display: none;317}318319.review-widget .body .comment-form-container.expand .monaco-editor,320.review-widget .body .comment-form-container.expand .form-actions {321display: block;322box-sizing: content-box;323}324325.review-widget .body .comment-form-container .review-thread-reply-button {326text-align: left;327display: block;328width: 100%;329resize: vertical;330border-radius: 0;331box-sizing: border-box;332padding: 6px 12px;333font-weight: 600;334line-height: 20px;335white-space: nowrap;336border: 0px;337outline: 1px solid transparent;338background-color: var(--vscode-editorCommentsWidget-replyInputBackground);339color: var(--vscode-editor-foreground);340font-size: inherit;341font-family: var(--monaco-monospace-font);342}343344.review-widget .body .comment-form-container .review-thread-reply-button:focus {345outline-style: solid;346outline-width: 1px;347}348349.review-widget .body .comment-form-container .monaco-editor,350.review-widget .body .comment-form-container .monaco-editor .monaco-editor-background,351.review-widget .body .edit-container .monaco-editor .monaco-editor-background {352background-color: var(--vscode-editorCommentsWidget-replyInputBackground);353}354355.review-widget .body .comment-form-container .monaco-editor,356.review-widget .body .edit-container .monaco-editor {357width: 100%;358min-height: 90px;359max-height: 500px;360border-radius: 3px;361border: 0px;362box-sizing: content-box;363padding: 6px 0 6px 12px;364}365366.review-widget .body .comment-form-container .monaco-editor,367.review-widget .body .comment-form-container .form-actions {368display: none;369}370371.review-widget .body .comment-form-container .form-actions,372.review-widget .body .edit-container .form-actions {373overflow: auto;374margin: 10px 0;375}376377.review-widget .body .edit-container .form-actions {378padding-top: 10px;379}380381.review-widget .body .edit-textarea {382margin: 5px 0 10px 0;383margin-right: 12px;384}385386.review-widget .body .comment-form-container .form-actions .monaco-text-button,387.review-widget .body .edit-container .monaco-text-button {388width: auto;389padding: 4px 10px;390margin-left: 5px;391}392393.review-widget .body .form-actions .monaco-text-button {394float: right;395}396397.review-widget .head {398box-sizing: border-box;399display: flex;400height: 100%;401}402403.review-widget .head .review-title {404display: inline-block;405font-size: 13px;406margin-left: 20px;407cursor: default;408overflow: hidden;409text-overflow: ellipsis;410white-space: nowrap;411}412413.review-widget .head .review-title .dirname:not(:empty) {414font-size: 0.9em;415margin-left: 0.5em;416}417418.review-widget .head .review-actions {419flex: 1;420text-align: right;421padding-right: 2px;422}423424.review-widget .head .review-actions > .monaco-action-bar {425display: inline-block;426}427428.review-widget .head .review-actions > .monaco-action-bar,429.review-widget .head .review-actions > .monaco-action-bar > .actions-container {430height: 100%;431}432433.review-widget .action-item {434min-width: 18px;435min-height: 20px;436margin-left: 4px;437}438439.review-widget .head .review-actions > .monaco-action-bar .action-label {440margin: 0;441line-height: inherit;442background-repeat: no-repeat;443background-position: center center;444}445446.review-widget .head .review-actions > .monaco-action-bar .action-label.codicon {447margin: 0;448}449450.review-widget > .body {451border-top: 1px solid;452position: relative;453}454455.monaco-editor .comment-range-glyph {456margin-left: 10px;457width: 4px !important;458cursor: pointer;459z-index: 10;460}461462div.preview.inline .monaco-editor .comment-range-glyph {463display: none !important;464}465466.monaco-editor .comment-diff-added {467border-left-width: 3px;468border-left-style: solid;469}470471.monaco-editor .comment-diff-added,472.monaco-editor .comment-range-glyph.multiline-add {473border-left-color: var(--vscode-editorGutter-commentRangeForeground);474}475476.monaco-editor .comment-diff-added:before,477.monaco-editor .comment-range-glyph.line-hover:before {478background: var(--vscode-editorGutter-commentRangeForeground);479}480481.monaco-editor .comment-thread:before,482.monaco-editor .comment-thread-unresolved:before {483background: var(--vscode-editorGutter-commentRangeForeground);484}485486.monaco-editor .comment-thread-range {487background-color: var(--vscode-editorCommentsWidget-rangeBackground);488}489490.monaco-editor .comment-thread-range-current {491background-color: var(--vscode-editorCommentsWidget-rangeActiveBackground);492}493494.monaco-editor .margin-view-overlays .comment-range-glyph.line-hover,495.monaco-editor .margin-view-overlays .comment-range-glyph.comment-thread,496.monaco-editor .margin-view-overlays .comment-range-glyph.comment-thread-unresolved {497margin-left: 13px;498}499500.monaco-editor .margin-view-overlays > div:hover > .comment-range-glyph.comment-diff-added:before,501.monaco-editor .margin-view-overlays .comment-range-glyph.line-hover:before,502.monaco-editor .comment-range-glyph.comment-thread:before,503.monaco-editor .comment-range-glyph.comment-thread-unresolved:before {504position: absolute;505height: 100%;506width: 9px;507left: -6px;508z-index: 10;509color: var(--vscode-editorGutter-commentGlyphForeground);510text-align: center;511display: flex;512flex-direction: row;513align-items: center;514justify-content: center;515}516517.monaco-editor .comment-range-glyph.comment-thread-unresolved:before {518color: var(--vscode-editorGutter-commentUnresolvedGlyphForeground);519}520521.monaco-editor .margin-view-overlays .comment-range-glyph.multiline-add {522border-left-width: 3px;523border-left-style: dotted;524height: 16px;525margin-top: 2px;526}527528.monaco-editor .margin-view-overlays > div:hover > .comment-range-glyph.comment-diff-added:before,529.monaco-editor .margin-view-overlays .comment-range-glyph.line-hover:before {530content: var(--vscode-icon-plus-content);531font-family: var(--vscode-icon-plus-font-family);532font-family: "codicon";533border-radius: 3px;534width: 18px !important;535margin-left: -5px;536padding-left: 1px;537}538539.monaco-editor .comment-range-glyph.comment-thread,540.monaco-editor .comment-range-glyph.comment-thread-unresolved {541z-index: 20;542}543544.monaco-editor .comment-range-glyph.comment-thread:before,545.monaco-editor .comment-range-glyph.comment-thread-unresolved:before {546font-family: "codicon";547font-size: 13px;548width: 18px !important;549line-height: 100%;550border-radius: 3px;551z-index: 20;552margin-left: -5px;553padding-top: 1px;554padding-left: 1px;555}556557.monaco-editor .comment-range-glyph.comment-thread:before {558content: var(--vscode-icon-comment-add-content);559font-family: var(--vscode-icon-comment-add-font-family);560561}562.monaco-editor .comment-range-glyph.comment-thread-unresolved:before {563content: var(--vscode-icon-comment-unresolved-content);564font-family: var(--vscode-icon-comment-unresolved-font-family);565}566567.monaco-editor.inline-comment .margin-view-overlays .codicon-folding-expanded,568.monaco-editor.inline-comment .margin-view-overlays .codicon-folding-collapsed {569margin-left: 11px;570}571572.monaco-editor.inline-comment .margin-view-overlays .dirty-diff-glyph {573margin-left: 25px;574}575576577