Skip to content

Commit e12ed0e

Browse files
Merge pull request #851 from supertokens/fix/text-issue
2 parents 582fbb3 + 5528283 commit e12ed0e

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

v2/src/components/appInfoForm/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,7 @@ export default class AppInfoForm extends React.PureComponent<PropsWithChildren<P
578578
marginRight: "10px"
579579
}}
580580
/>
581-
<span style={{
582-
color: 'white !important'
583-
}}>
581+
<span className="nextjs-api-route-text">
584582
I am using NextJS' <a target="_blank" rel="nofollow noopener noreferrer" href="https://nextjs.org/docs/api-routes/introduction">API route</a>
585583
</span>
586584
</label>

v2/src/components/appInfoForm/style.css

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
padding: 1rem;
66
margin-bottom: 1.25rem;
77
color: #ffffff;
8-
background: #2A2A2A;
8+
background: #2a2a2a;
99
border: 0.0625rem solid #404040;
1010
}
1111

1212
.app-info-form-container {
13-
background: #2A2A2A;
13+
background: #2a2a2a;
1414
border: 0.0625rem solid #404040;
1515
color: white;
1616
border-radius: 0.375rem;
@@ -77,7 +77,7 @@
7777
font-size: 0.875rem;
7878
border: 0.0625rem solid #404040;
7979
pointer-events: none;
80-
transition: opacity .2s ease-out, transform .2s ease-out;
80+
transition: opacity 0.2s ease-out, transform 0.2s ease-out;
8181
opacity: 0;
8282
}
8383

@@ -90,8 +90,9 @@
9090
transform: translateX(-50%) translateY(0rem);
9191
}
9292

93-
.app-info-form-explanation::before, .app-info-form-explanation::after {
94-
content: "";
93+
.app-info-form-explanation::before,
94+
.app-info-form-explanation::after {
95+
content: '';
9596
display: block;
9697
background-color: #363636;
9798
position: absolute;
@@ -163,24 +164,26 @@
163164
color: rgb(255, 255, 255);
164165
box-shadow: 0px 0px 0px 0px transparent;
165166
outline: none;
166-
transition: border .15s, box-shadow .15s;
167+
transition: border 0.15s, box-shadow 0.15s;
167168
padding: 8px 20px;
168169
font-family: Roboto;
169170
}
170171

171-
.app-info-form-field-input:focus {
172+
.app-info-form-field-input:focus {
172173
border-color: rgb(255, 153, 51);
173174
box-shadow: 0px 0px 3px 1px rgb(255, 153, 51, 0.8);
174175
}
175176

176-
.app-info-form-field-input::placeholder, .app-info-form-field-input:-ms-input-placeholder, .app-info-form-field-input::-ms-input-placeholder {
177+
.app-info-form-field-input::placeholder,
178+
.app-info-form-field-input:-ms-input-placeholder,
179+
.app-info-form-field-input::-ms-input-placeholder {
177180
color: rgb(90, 90, 90);
178181
}
179182

180183
input.app-info-form-field-input:focus::placeholder {
181184
color: transparent;
182185
}
183-
.app-info-form-field-input:focus:-ms-input-placeholder{
186+
.app-info-form-field-input:focus:-ms-input-placeholder {
184187
color: transparent;
185188
}
186189
.app-info-form-field-input:focus::-ms-input-placeholder {
@@ -199,7 +202,7 @@ input.app-info-form-field-input:focus::placeholder {
199202
}
200203

201204
.app-info-form-question .app-info-form-label {
202-
margin-bottom: .3125rem;
205+
margin-bottom: 0.3125rem;
203206
margin-right: 0rem;
204207
}
205208

@@ -210,4 +213,7 @@ input.app-info-form-field-input:focus::placeholder {
210213
.app-info-form-field-container {
211214
max-width: 100%;
212215
}
213-
}
216+
}
217+
span.nextjs-api-route-text {
218+
color: white !important;
219+
}

0 commit comments

Comments
 (0)