Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.css
3296 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
.monaco-editor .glyph-margin {
7
position: absolute;
8
top: 0;
9
}
10
11
/*
12
Keeping name short for faster parsing.
13
cgmr = core glyph margin rendering (div)
14
*/
15
.monaco-editor .glyph-margin-widgets .cgmr {
16
position: absolute;
17
display: flex;
18
align-items: center;
19
justify-content: center;
20
}
21
22
/*
23
Ensure spinning icons are pixel-perfectly centered and avoid wobble.
24
This is only applied to icons that spin to avoid unnecessary
25
GPU layers and blurry subpixel AA.
26
*/
27
.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin::before {
28
position: absolute;
29
top: 50%;
30
left: 50%;
31
transform: translate(-50%, -50%);
32
}
33
34