/
commands.less
112 lines (99 loc) 路 2.12 KB
/
commands.less
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
108
109
110
111
112
@import "variables.less";
.commands {
display: flex;
justify-content: space-between;
height: 50px;
padding: 10px;
box-sizing: border-box;
font-family: @fonts-common;
button,
input,
select {
-webkit-app-region: no-drag;
margin-bottom: 0;
}
select {
width: 100px;
font-size: 12px;
height: 28px;
background-color: white;
margin-left: 5px;
line-height: 15px;
}
& > div {
display: flex;
&:last-of-type {
margin-right: 10px;
button {
margin-left: 5px;
}
}
}
.address-bar {
height: 28px;
width: 360px;
transition: width 0.4s;
display: flex;
input,
span {
font-family: @fonts-common;
font-weight: 300;
font-size: 11px;
cursor: auto;
-webkit-app-region: no-drag;
}
input {
flex-grow: 1;
background: white;
border-left: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding-left: 0;
height: 2.6rem;
&:focus {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-left: 0;
}
}
span {
background: white;
color: #1d1d1d;
border-bottom-color: rgb(209, 209, 209);
border-bottom-style: solid;
border-bottom-left-radius: 4px;
border-bottom-width: 1px;
border-image-outset: 0;
border-image-repeat: stretch;
border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(209, 209, 209);
border-left-style: solid;
border-left-width: 1px;
border-top-color: rgb(209, 209, 209);
border-top-left-radius: 4px;
border-top-style: solid;
border-top-width: 1px;
display: inline-block;
height: 1.2rem;
letter-spacing: normal;
margin: 0;
padding: 6px 0 10px 10px;
user-select: text;
width: 132px;
text-rendering: auto;
text-shadow: none;
text-transform: none;
}
&.empty {
width: 200px;
}
&:focus-within {
span,
input {
border-color: @foreground-bright;
}
}
}
}