mirror of
https://github.com/liriliri/eruda.git
synced 2026-02-02 09:49:00 +08:00
143 lines
3.1 KiB
SCSS
143 lines
3.1 KiB
SCSS
@import '../style/variable';
|
|
@import '../style/mixin';
|
|
|
|
.container .console-container {
|
|
padding-top: 40px;
|
|
padding-bottom: 24px;
|
|
}
|
|
|
|
.console-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
&.js-input-hidden {
|
|
padding-bottom: 0;
|
|
}
|
|
.control {
|
|
@include absolute(100%, 40px);
|
|
cursor: default;
|
|
font-size: 0;
|
|
padding: 10px 10px 10px 35px;
|
|
background: var(--darker-background);
|
|
color: var(--primary);
|
|
line-height: 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
.icon-clear,
|
|
.icon-search {
|
|
display: inline-block;
|
|
padding: 10px;
|
|
font-size: $font-size-l;
|
|
position: absolute;
|
|
top: 1px;
|
|
cursor: pointer;
|
|
transition: color $anim-duration;
|
|
&:active {
|
|
color: var(--accent);
|
|
}
|
|
}
|
|
.icon-clear {
|
|
padding-right: 0px;
|
|
left: 0;
|
|
}
|
|
.icon-search {
|
|
right: 0;
|
|
}
|
|
.filter {
|
|
cursor: pointer;
|
|
font-size: $font-size-s;
|
|
height: 20px;
|
|
display: inline-block;
|
|
margin: 0 2px;
|
|
padding: 0 4px;
|
|
line-height: 20px;
|
|
transition: background $anim-duration, color $anim-duration;
|
|
&.active {
|
|
background: var(--highlight);
|
|
color: var(--select-foreground);
|
|
}
|
|
}
|
|
.search-keyword {
|
|
position: absolute;
|
|
line-height: 20px;
|
|
max-width: 80px;
|
|
overflow: hidden;
|
|
right: 40px;
|
|
font-size: $font-size;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
.js-input {
|
|
pointer-events: none;
|
|
position: absolute;
|
|
z-index: 100;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
border-top: 1px solid var(--border);
|
|
height: 24px;
|
|
.icon-arrow-right {
|
|
line-height: 23px;
|
|
color: var(--accent);
|
|
position: absolute;
|
|
left: 10px;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
&.active {
|
|
height: 100%;
|
|
padding-top: 40px;
|
|
padding-bottom: 40px;
|
|
border-top: none;
|
|
.icon-arrow-right {
|
|
display: none;
|
|
}
|
|
textarea {
|
|
padding-left: 10px;
|
|
}
|
|
}
|
|
.buttons {
|
|
display: none;
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 40px;
|
|
color: var(--primary);
|
|
background: var(--darker-background);
|
|
font-size: $font-size-s;
|
|
border-top: 1px solid var(--border);
|
|
.button {
|
|
pointer-events: all;
|
|
cursor: pointer;
|
|
width: 50%;
|
|
display: inline-block;
|
|
text-align: center;
|
|
border-right: 1px solid var(--border);
|
|
height: 40px;
|
|
line-height: 40px;
|
|
&:last-child {
|
|
border-right: none;
|
|
}
|
|
transition: background $anim-duration, color $anim-duration;
|
|
&:active {
|
|
color: var(--select-foreground);
|
|
background: var(--highlight);
|
|
}
|
|
}
|
|
}
|
|
textarea {
|
|
pointer-events: all;
|
|
padding: 3px 10px;
|
|
padding-left: 25px;
|
|
outline: none;
|
|
border: none;
|
|
font-size: $font-size;
|
|
width: 100%;
|
|
height: 100%;
|
|
user-select: text;
|
|
resize: none;
|
|
color: var(--primary);
|
|
background: var(--background);
|
|
}
|
|
}
|
|
}
|