Skip to content

Commit e082e3f

Browse files
committed
fix corporation basic style
1 parent 8124065 commit e082e3f

File tree

5 files changed

+57
-9
lines changed

5 files changed

+57
-9
lines changed

packages/application-extension/style/base.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,37 @@
2424
border: none;
2525
align-items: center;
2626
}
27+
28+
.ͼ1 .cm-ySelectionCaretDot {
29+
position: absolute;
30+
top: -0.2em;
31+
left: -0.2em;
32+
width: 0;
33+
height: 0;
34+
background-color: inherit;
35+
transition: transform 0.3s ease-in-out;
36+
box-sizing: border-box;
37+
}
38+
39+
.ͼ1 .cm-ySelectionInfo {
40+
position: absolute;
41+
top: -1.05em;
42+
left: -1px;
43+
font-size: 0.75em;
44+
font-family: serif;
45+
font-style: normal;
46+
font-weight: normal;
47+
line-height: normal;
48+
user-select: none;
49+
color: white;
50+
padding-left: 4px;
51+
padding-top: 2px;
52+
padding-right: 4px;
53+
padding-bottom: 2px;
54+
z-index: 101;
55+
transition: opacity 0.3s ease-in-out;
56+
background-color: inherit;
57+
opacity: 1;
58+
transition-delay: 0s;
59+
white-space: nowrap;
60+
}

packages/application/src/shell.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,11 +2137,24 @@ namespace Private {
21372137
const tip = document.createElement('div');
21382138
tip.className = 'jp-title-ext';
21392139

2140-
const tipImg = document.createElement('div');
2141-
tipImg.className = 'jp-title-ext-tip-img';
2142-
tipImg.innerHTML = cloudIcon.svgstr;
2143-
2144-
tip.appendChild(tipImg);
2140+
const titleExtElement = document.getElementById(
2141+
'jp-title-panel-title-ext'
2142+
);
2143+
if (titleExtElement != null) {
2144+
const titleAttr = titleExtElement.title;
2145+
const tipImg = document.createElement('div');
2146+
tipImg.className = 'jp-title-ext-tip-img';
2147+
tipImg.innerHTML = cloudIcon.svgstr;
2148+
2149+
if (titleAttr != null) {
2150+
const saveTip = document.createElement('span');
2151+
saveTip.className = 'jp-title-ext-tip';
2152+
saveTip.innerText = titleAttr.split('\n')[2];
2153+
2154+
tip.appendChild(tipImg);
2155+
tip.appendChild(saveTip);
2156+
}
2157+
}
21452158

21462159
this.node.appendChild(tip);
21472160
this.tip = tip;

packages/notebook/style/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040

4141
.jp-Notebook {
42-
padding: 10px 100px;
42+
padding: 10px 5%;
4343
outline: none;
4444
overflow: auto;
4545
background: var(--jp-layout-color0);

packages/outputarea/style/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
.jp-OutputPrompt {
2424
display: table-cell;
2525
vertical-align: top;
26-
color: var(--jp-cell-outprompt-font-color);
26+
color: var(--jp-success-color1);
2727
font-family: var(--jp-cell-prompt-font-family);
2828
padding: 4px 0;
2929
margin-bottom: var(--jp-code-padding);

packages/rendermime/style/base.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,11 @@
393393
.jp-RenderedHTMLCommon pre,
394394
.jp-RenderedHTMLCommon code {
395395
border: 0;
396-
background-color: var(--jp-layout-color0);
396+
397+
/*background-color: var(--jp-layout-color0);*/
397398
color: var(--jp-content-font-color1);
398399
font-family: var(--jp-code-font-family);
399-
font-size: inherit;
400+
font-size: 13px;
400401
line-height: var(--jp-code-line-height);
401402
padding: 0;
402403
white-space: pre-wrap;

0 commit comments

Comments
 (0)