Skip to content

Commit e36f747

Browse files
authored
Merge pull request #93 from dustinrb/result-blocks
Result block stylesheet improvements
2 parents e1d6777 + 86f8ba3 commit e36f747

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

styles/ink.less

+32-31
Original file line numberDiff line numberDiff line change
@@ -66,43 +66,19 @@ atom-text-editor::shadow {
6666
}
6767
}
6868

69-
// TODO: more CSS sharing
70-
71-
.ink.under {
72-
font-family: @font-family;
73-
color: @text-color;
74-
75-
cursor: default;
76-
77-
&.error {
78-
color: @text-color-error;
79-
}
80-
81-
background-color: @inset-panel-background-color;
82-
83-
border-top: 1px solid @syntax-wrap-guide-color;
84-
border-bottom: 1px solid @syntax-wrap-guide-color;
85-
padding-left: 5px;
86-
}
87-
88-
89-
.ink.inline {
69+
.result-mixin() {
9070
color: @syntax-text-color;
91-
position: relative;
92-
left: 1em;
93-
9471
pointer-events: auto;
9572

9673
&.error {
9774
color: @text-color-error;
9875
border-left: 2px solid @background-color-error;
9976
}
10077

101-
background: @syntax-background-color;
10278
border-left: 2px solid @background-color-info;
10379
border-right: 2px solid contrast(@syntax-background-color,
104-
darken(@syntax-background-color, 4%),
105-
lighten(@syntax-background-color, 4%));
80+
darken(@syntax-background-color, 4%),
81+
lighten(@syntax-background-color, 4%));
10682

10783
border-radius: 3px;
10884

@@ -111,14 +87,18 @@ atom-text-editor::shadow {
11187
opacity: 1;
11288
cursor: default;
11389

114-
max-width: 400px;
11590
overflow: hidden;
11691
white-space: pre;
11792

11893
* {
11994
vertical-align: top;
12095
}
12196

97+
a {
98+
color: @syntax-text-color;
99+
opacity: 0.65;
100+
}
101+
122102
p {
123103
margin: 0;
124104
padding: 0;
@@ -157,9 +137,7 @@ atom-text-editor::shadow {
157137
opacity: 1;
158138
}
159139
}
160-
> .tree > .body {
161-
max-height: 250px;
162-
}
140+
163141

164142
.editor.editor-colors {
165143
color: @syntax-text-color;
@@ -170,6 +148,29 @@ atom-text-editor::shadow {
170148
}
171149
}
172150

151+
.ink.inline {
152+
.result-mixin;
153+
background: @syntax-background-color;
154+
position: relative;
155+
left: 1em;
156+
max-width: 400px;
157+
158+
> .tree > .body {
159+
max-height: 250px;
160+
}
161+
}
162+
163+
.ink.under {
164+
.result-mixin;
165+
background: contrast(@syntax-background-color,
166+
darken(@syntax-background-color, 3%),
167+
lighten(@syntax-background-color, 3%));
168+
font-size: 0.9em;
169+
max-width: 100%;
170+
white-space: pre-line;
171+
padding: 0.5em 0.5em 0.5em 1em;
172+
}
173+
173174
.ink.stepper {
174175
.ink.inline();
175176
max-width: initial;

0 commit comments

Comments
 (0)