Skip to content

Commit

Permalink
fix css
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik-durai committed Jul 30, 2024
1 parent 5504e17 commit fdd8707
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/ui/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ const EmailLogin = ({
type="text"
placeholder={'Enter your email'}
/>
<button disabled={disabled} onClick={clickHandler} class="xar-btn">
<button
disabled={disabled}
onClick={clickHandler}
class="xar-btn xar-btn__input-arrow"
>
<img src={MISC_ICONS[mode].arrow} alt="proceed" />
</button>
</div>
Expand Down
25 changes: 20 additions & 5 deletions src/ui/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
--separator-text-color: #74919c;
--error-text-color: #f61d1d;
--more-icon-bg: #47545b;
--email-id-color: #1d2a31;
}

.xar-dark-mode {
Expand All @@ -34,6 +35,7 @@
--separator-text-color: #829299;
--error-text-color: #fa3636;
--more-icon-bg: #47545b;
--email-id-color: #d4d7d8;
}

.compact {
Expand Down Expand Up @@ -143,9 +145,7 @@
.xar-email-login__input-container {
display: flex;
min-height: 45px;
background: var(--bg);
border-radius: 8px;
padding: 0 10px;
position: relative;
}

.xar-email-login__input {
Expand All @@ -159,6 +159,13 @@
background: var(--bg);
border: none;
outline: none;
border-radius: 8px;
padding: 0px 10px;
box-sizing: border-box;
}

input[type='text']:focus {
border: 1px solid var(--sub-text-color);
}

.xar-social-container {
Expand Down Expand Up @@ -296,6 +303,14 @@
text-transform: capitalize;
}

.xar-btn__input-arrow {
position: absolute;
left: 290px;
height: 100%;
display: inline-flex;
justify-content: right;
}

.xar-btn {
background: transparent;
border: none;
Expand Down Expand Up @@ -452,13 +467,13 @@
font-size: 12px;
font-weight: 400;
text-align: center;
color: var(--sub-text-color);
color: var(--text-color);
}

.xar-otp-email {
font-size: 14px;
font-weight: 700;
color: var(--sub-text-color);
color: var(--email-id-color);
}

.xar-otp-error-heading {
Expand Down

0 comments on commit fdd8707

Please sign in to comment.