p5.js-web-editor/client/styles/components/_console.scss

71 lines
1.2 KiB
SCSS
Raw Normal View History

.preview-console {
2016-07-21 04:05:47 +00:00
width: 100%;
2016-08-11 19:41:13 +00:00
height: 100%;
2016-07-21 04:05:47 +00:00
background: $console-light-background-color;
z-index: 1000;
overflow: hidden;
display: flex;
flex-direction: column;
& > {
position:relative;
text-align:left;
}
2016-07-18 00:49:38 +00:00
// assign styles to different types of console messages
2016-07-18 23:10:42 +00:00
.preview-console__log {
color: $dark-secondary-text-color;
flex: 1 0 auto;
2016-07-18 00:49:38 +00:00
}
2016-07-18 23:10:42 +00:00
.preview-console__error {
color: $console-error-color;
flex: 1 0 auto;
2016-07-18 00:49:38 +00:00
}
2016-07-18 23:10:42 +00:00
.preview-console__warn {
color: $console-warn-color;
flex: 1 0 auto;
2016-07-18 00:49:38 +00:00
}
2016-07-21 04:05:47 +00:00
}
.preview-console__header {
background-color: $console-header-background-color;
color: $console-header-color;
padding: #{5 / $base-font-size}rem;
display: flex;
justify-content: space-between;
}
.preview-console__header-title {
2016-07-21 04:05:47 +00:00
font-size: #{16 / $base-font-size}rem;
font-weight: normal;
}
.preview-console__messages {
display: flex;
flex-direction: column;
overflow-y: auto;
flex: 1 0 0%;
2016-07-21 04:05:47 +00:00
}
.preview-console__collapse {
@include themify() {
@extend %icon;
2016-09-13 21:05:42 +00:00
}
.preview-console--collapsed & {
display: none;
}
}
.preview-console__expand {
@include themify() {
@extend %icon;
2016-09-13 21:05:42 +00:00
}
display: none;
.preview-console--collapsed & {
display: inline-block;
}
2016-08-01 01:38:46 +00:00
}