Skip to content

Commit 8102655

Browse files
committed
Responsive layout in Adjustments tab
1 parent b7805d7 commit 8102655

File tree

1 file changed

+155
-3
lines changed

1 file changed

+155
-3
lines changed

src/css/tabs/adjustments.less

Lines changed: 155 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,162 @@
8484
@media all and (max-width: 575px) {
8585
.tab-adjustments {
8686
.overflow {
87-
overflow: auto;
87+
overflow: visible;
8888
}
89-
.range {
90-
min-width: 300px;
89+
90+
.adjustments thead {
91+
display: none;
92+
}
93+
94+
.adjustments tbody {
95+
display: block;
96+
}
97+
98+
.adjustment {
99+
display: block;
100+
background-color: var(--surface-200);
101+
margin-bottom: 0.5rem;
102+
border-radius: 0.5rem;
103+
overflow: visible;
104+
width: 100%;
105+
box-sizing: border-box;
106+
107+
&:nth-child(odd) {
108+
background-color: var(--surface-200);
109+
}
110+
111+
td {
112+
display: block;
113+
border: none;
114+
padding: 0.75rem;
115+
text-align: left;
116+
width: 100%;
117+
box-sizing: border-box;
118+
119+
&.info {
120+
padding: 0;
121+
}
122+
123+
&::before {
124+
content: attr(data-label);
125+
font-weight: bold;
126+
display: block;
127+
margin-bottom: 0.5rem;
128+
color: var(--text);
129+
font-size: 0.9em;
130+
}
131+
}
132+
.info {
133+
height: auto;
134+
min-height: 2.5rem;
135+
display: flex;
136+
flex-direction: row;
137+
align-items: center;
138+
justify-content: center;
139+
background-color: var(--surface-300);
140+
padding: 2rem;
141+
gap: 1rem;
142+
143+
.enabling {
144+
display: flex;
145+
align-items: center;
146+
justify-content: center;
147+
gap: 0.75rem;
148+
149+
&::before {
150+
content: "Enable";
151+
font-weight: bold;
152+
color: var(--text);
153+
font-size: 0.9em;
154+
}
155+
}
156+
}
157+
158+
.channelInfo {
159+
&::before {
160+
content: "When Channel";
161+
}
162+
163+
> div:first-child {
164+
margin-bottom: 0.75rem;
165+
166+
select {
167+
width: 100%;
168+
padding: 0.5rem;
169+
border: 1px solid var(--surface-500);
170+
border-radius: 3px;
171+
box-sizing: border-box;
172+
}
173+
}
174+
175+
.limits {
176+
display: flex;
177+
justify-content: space-between;
178+
padding: 0;
179+
margin-top: 0.5rem;
180+
181+
p {
182+
margin: 0;
183+
font-size: 0.875em;
184+
flex: 1;
185+
186+
&.lowerLimit {
187+
text-align: left;
188+
}
189+
190+
&.upperLimit {
191+
text-align: right;
192+
}
193+
}
194+
}
195+
}
196+
197+
.range {
198+
&::before {
199+
content: "Is In Range";
200+
}
201+
202+
padding: 0.75rem;
203+
204+
.channel-slider {
205+
margin-top: 1rem;
206+
margin-bottom: 2.5rem;
207+
width: 100%;
208+
position: relative;
209+
}
210+
211+
.marker {
212+
top: 2.75rem;
213+
}
214+
}
215+
216+
.functionSelection {
217+
&::before {
218+
content: "Then Apply Function";
219+
}
220+
221+
select {
222+
width: 100%;
223+
padding: 0.5rem;
224+
border: 1px solid var(--surface-500);
225+
border-radius: 3px;
226+
box-sizing: border-box;
227+
}
228+
}
229+
230+
.functionSwitchChannel {
231+
&::before {
232+
content: "Via Channel";
233+
}
234+
235+
select {
236+
width: 100%;
237+
padding: 0.5rem;
238+
border: 1px solid var(--surface-500);
239+
border-radius: 3px;
240+
box-sizing: border-box;
241+
}
242+
}
91243
}
92244
}
93245
}

0 commit comments

Comments
 (0)