-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract notebook insert toolbar, status bar and title toolbar css.
- Loading branch information
Showing
5 changed files
with
221 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container { | ||
padding-top: 1px !important; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container.emptyNotebook { | ||
opacity: 1 !important; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container, | ||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container { | ||
position: absolute; | ||
display: flex; | ||
justify-content: center; | ||
z-index: var(--z-index-notebook-cell-bottom-toolbar-container); | ||
width: calc(100% - 32px); | ||
opacity: 0; | ||
transition: opacity 0.3s ease-in-out; | ||
padding: 0; | ||
margin: 0 16px 0 16px; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container { | ||
top: 0px; | ||
height: 33px; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-drag-image .cell-bottom-toolbar-container { | ||
display: none; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container:focus-within, | ||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container:hover, | ||
.monaco-workbench .notebookOverlay.notebook-editor-editable > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container:hover, | ||
.monaco-workbench .notebookOverlay.notebook-editor-editable > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container:focus-within { | ||
opacity: 1; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-toolbar { | ||
margin-top: 3px; /* This is the minimum to keep the top edge from being cut off at the top of the editor */ | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-toolbar .action-item, | ||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .monaco-toolbar .action-item { | ||
display: flex; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-toolbar .action-item.active, | ||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .monaco-toolbar .action-item.active { | ||
transform: none; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-toolbar .action-label, | ||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .monaco-toolbar .action-label { | ||
font-size: 12px; | ||
margin: 0px; | ||
display: inline-flex; | ||
padding: 0px 4px; | ||
border-radius: 0; | ||
align-items: center; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-toolbar .action-label .codicon, | ||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .monaco-toolbar .action-label .codicon { | ||
margin-right: 3px; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-action-bar, | ||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .monaco-action-bar { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .action-item:first-child, | ||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .action-item:first-child { | ||
margin-right: 16px; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container span.codicon, | ||
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container span.codicon { | ||
text-align: center; | ||
font-size: 14px; | ||
} |
70 changes: 70 additions & 0 deletions
70
src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container { | ||
height: 22px; | ||
font-size: 12px; | ||
display: flex; | ||
position: relative; | ||
overflow: hidden; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-hidden .cell-statusbar-container { | ||
display: none; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-status-left { | ||
display: flex; | ||
flex-grow: 1; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-status-left, | ||
.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-status-right { | ||
display: flex; | ||
z-index: var(--z-index-notebook-cell-status); | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-status-right .cell-contributed-items { | ||
justify-content: flex-end; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-contributed-items { | ||
display: flex; | ||
flex-wrap: wrap; | ||
overflow: hidden; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-status-item { | ||
display: flex; | ||
align-items: center; | ||
white-space: pre; | ||
|
||
height: 21px; /* Editor outline is -1px in, don't overlap */ | ||
margin: 0px 3px; | ||
padding: 0px 3px; | ||
overflow: hidden; | ||
text-overflow: clip; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-status-item.cell-status-item-has-command { | ||
cursor: pointer; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-status-left > .cell-contributed-items { | ||
margin-left: 10px; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container .codicon { | ||
font-size: 14px; | ||
color: unset; /* Inherit from parent cell-status-item */ | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-status-item-show-when-active { | ||
display: none; | ||
} | ||
|
||
.monaco-workbench .notebookOverlay .cell-statusbar-container.is-active-cell .cell-status-item-show-when-active { | ||
display: initial; | ||
} |
Oops, something went wrong.