Skip to content

Commit edd386a

Browse files
authored
Fixed styles after last packages update (#2694)
* Fixed styles after last packages update * Returned default styles from style guide
1 parent 6a3912d commit edd386a

File tree

5 files changed

+119
-33
lines changed

5 files changed

+119
-33
lines changed

src/components/operations/operation-details/ko/runtime/operation-console.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,14 @@ <h3>
391391
</summary>
392392

393393
<!-- ko ifnot: operation().request.isFormData() -->
394-
<select aria-label="Programming language" id="requestLanguages" class="form-control"
395-
data-bind="value: $component.selectedLanguage">
396-
<!-- ko foreach: { data: requestLanguages, as: 'requestLanguage' } -->
397-
<option data-bind="value: requestLanguage.value, text: requestLanguage.text"></option>
398-
<!-- /ko -->
399-
</select>
394+
<div class="form-group">
395+
<select aria-label="Programming language" id="requestLanguages" class="form-control"
396+
data-bind="value: $component.selectedLanguage">
397+
<!-- ko foreach: { data: requestLanguages, as: 'requestLanguage' } -->
398+
<option data-bind="value: requestLanguage.value, text: requestLanguage.text"></option>
399+
<!-- /ko -->
400+
</select>
401+
</div>
400402

401403
<div class="code-snippet">
402404
<div class="code-snippet-heading">

src/components/operations/operation-list/ko/runtime/operation-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<!-- ko ifnot: apiType() === 'websocket' || apiType() === 'graphql'-->
2121
<div class="form-inline max-w-500">
22-
<div class="d-block flex-grow mw-170">
22+
<div class="form-group d-block flex-grow mw-170">
2323
<input type="search" class="form-control form-control-light" aria-label="Search operations"
2424
placeholder="Search operations" spellcheck="false" data-bind="textInput: pattern" />
2525
<tag-input params="{ scope: $component.tagScope, onChange: onTagsChange }"></tag-input>

src/themes/website/styles/forms.scss

Lines changed: 108 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,21 @@ form {
55
flex-grow: 1;
66
}
77

8+
.form-label {
9+
padding: .375rem .75rem;
10+
}
11+
812
.form-control {
13+
display: block;
14+
background-clip: padding-box;
915
width: 100%;
16+
17+
&.form-control-light {
18+
border-top: none;
19+
border-left: none;
20+
border-right: none;
21+
background-color: transparent;
22+
}
1023
}
1124

1225
.form-inline {
@@ -98,6 +111,72 @@ input[type="range"] {
98111
}
99112
}
100113

114+
input[type=search] {
115+
white-space: nowrap;
116+
overflow: hidden;
117+
text-overflow: ellipsis;
118+
@extend .icon-svg-magnifier;
119+
background-position: 5px center;
120+
background-size: 1em;
121+
background-repeat: no-repeat;
122+
padding-left: calc(1em + 10px) !important;
123+
}
124+
125+
.switch {
126+
position: relative;
127+
display: inline-block;
128+
width: $switch-width;
129+
height: $switch-height;
130+
margin: 10px;
131+
132+
input[type=checkbox] {
133+
opacity: 0;
134+
width: 0;
135+
height: 0;
136+
137+
&:checked + .slider {
138+
background: $switch-background-color-on;
139+
}
140+
141+
&:checked + .slider:before {
142+
transform: translateX(26px);
143+
}
144+
}
145+
146+
.slider {
147+
position: absolute;
148+
cursor: pointer;
149+
border: 1px solid #ffffff;
150+
top: 0;
151+
left: 0;
152+
right: 0;
153+
bottom: 0;
154+
background: $switch-background-color-off;
155+
transition: .4s;
156+
157+
&.round {
158+
border-radius: 34px;
159+
160+
&:before {
161+
border-radius: 50%;
162+
}
163+
}
164+
165+
&:before {
166+
position: absolute;
167+
content: "";
168+
height: $switch-trigger-size;
169+
width: $switch-trigger-size;
170+
left: $switch-trigger-gap;
171+
bottom: $switch-trigger-gap + 1px;
172+
background: #ffffff;
173+
forced-color-adjust: none;
174+
border: 1px solid #ffffff;
175+
transition: .4s;
176+
}
177+
}
178+
}
179+
101180
.input-group {
102181
padding: 0;
103182
display: flex;
@@ -130,6 +209,10 @@ input[type="range"] {
130209
background-color: #fff;
131210
color: #000;
132211
border: 1px solid #000;
212+
padding-top: 7px;
213+
padding-left: 10px;
214+
padding-right: 10px;
215+
padding-bottom: 5px;
133216
}
134217

135218
.dropdown {
@@ -141,31 +224,31 @@ input[type="range"] {
141224
left: 0;
142225
right: 0;
143226
}
227+
}
144228

145-
.select-badge {
146-
margin: 0 .5em;
147-
font-family: $font-family-base;
148-
font-size: 13px;
149-
150-
select {
151-
padding: .625em 1em;
152-
padding-right: 2.75em;
153-
border: solid white 1px;
154-
border-radius: .875em;
155-
background: #D9D9D9;
156-
outline: none;
157-
-webkit-appearance: none;
158-
-moz-appearance: none;
159-
}
160-
161-
.arrow {
162-
position: absolute;
163-
width: 2em;
164-
height: 100%;
165-
top: 1px;
166-
right: 2px;
167-
border-left: solid white 1px;
168-
pointer-events: none;
169-
}
229+
.select-badge {
230+
margin: 0 .5em;
231+
font-family: $font-family-base;
232+
font-size: 13px;
233+
234+
select {
235+
padding: .625em 1em;
236+
padding-right: 2.75em;
237+
border: solid white 1px;
238+
border-radius: .875em;
239+
background: #D9D9D9;
240+
outline: none;
241+
-webkit-appearance: none;
242+
-moz-appearance: none;
243+
}
244+
245+
.arrow {
246+
position: absolute;
247+
width: 2em;
248+
height: 100%;
249+
top: 1px;
250+
right: 2px;
251+
border-left: solid white 1px;
252+
pointer-events: none;
170253
}
171254
}

src/themes/website/styles/navs.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
&.show {
3131
display: block;
32+
max-height: 500px;
33+
overflow-x: auto;
3234
}
3335
}
3436

src/themes/website/styles/reboot.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
::before {
44
box-sizing: border-box;
55
min-width: 0;
6-
min-height: 0;
76
}
87
html {
98
font-family: sans-serif;

0 commit comments

Comments
 (0)