forked from processing/p5.js-web-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_console.scss
107 lines (97 loc) · 2.12 KB
/
_console.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
@use "sass:math";
.preview-console {
@include themify() {
background: getThemifyVariable('console-background-color');
border-color: getThemifyVariable('ide-border-color');
}
border-left: math.div(1, $base-font-size)rem solid;
border-right: math.div(1, $base-font-size)rem solid;
width: 100%;
height: 100%;
z-index: 1000;
display: flex;
flex-direction: column;
& > * {
position: relative;
text-align: left;
}
}
.preview-console__header {
@include themify() {
background-color: getThemifyVariable('console-header-background-color');
color: getThemifyVariable('console-header-color');
}
min-height: #{math.div(30, $base-font-size)}rem;
padding: #{math.div(5, $base-font-size)}rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.preview-console__header-title {
font-size: #{math.div(12, $base-font-size)}rem;
font-weight: normal;
}
.preview-console__messages {
display: flex;
flex: 1;
flex-direction: column;
overflow-y: auto;
& div div div:first-child {
height: unset;
line-height: unset;
font-size: unset;
}
}
.preview-console__collapse {
padding-top: #{math.div(3, $base-font-size)}rem;
@include icon();
@include themify() {
& g,
& polygon,
& path {
fill: getThemifyVariable('secondary-text-color');
}
}
.preview-console--collapsed & {
display: none;
}
}
.preview-console__expand {
padding-top: #{math.div(3, $base-font-size)}rem;
@include icon();
@include themify() {
& g,
& polygon,
& path {
fill: getThemifyVariable('secondary-text-color');
}
}
display: none;
.preview-console--collapsed & {
display: inline-block;
}
}
.preview-console__header-buttons {
display: flex;
align-items: center;
}
.preview-console__clear {
@include themify() {
@extend %link;
color: getThemifyVariable('secondary-text-color');
&:hover {
color: getThemifyVariable('logo-color');
}
}
background: transparent;
border: none;
padding-right: #{math.div(10, $base-font-size)}rem;
.preview-console--collapsed & {
display: none;
}
}
.preview-console__body {
display: flex;
flex-direction: column;
height: calc(100% - #{math.div(30, $base-font-size)}rem);
}