Skip to content

Commit a79083f

Browse files
committed
update
1 parent f31e976 commit a79083f

File tree

2 files changed

+35
-12
lines changed

2 files changed

+35
-12
lines changed

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h2>Check SubDomain Availability</h2>
6868
</div>
6969
</div>
7070
<div class="search-result-cntnr">
71-
<div id="result-card" class="hiddens" style="width:100%;margin:4-x;padding:8px">
71+
<div id="result-card" class="hiddens result-card" style="width:100%;margin:4px;padding:8px">
7272
<div style="display:flex; align-items:center;justify-content:start;gap:1rem;width:100%">
7373
<img id="user-avatar" alt="user-avatar" src="http://github.com/wdhdev.png?size=64">
7474
<div style="display:flex;flex-direction:column;width:100%">
@@ -147,7 +147,6 @@ <h2>Donations</h2>
147147
result_none.classList.toggle('hidden');
148148
})
149149
.catch(()=>{
150-
print(1111);
151150
if (result_error.classList.contains('hidden')) result_error.classList.toggle('hidden');
152151
}).finally(()=>{
153152
is_searching=false;

styles/main.css

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
html,
22
body {
3-
--header-bg: linear-gradient(90deg, #1a1331, #4e3aa3);
3+
--header-bg: linear-gradient(90deg, #1a1331, var(--hover-bg));
44
--accent: #7041ff;
55
--body-fg: #d1c4ff;
66
--hover-bg: #4e3aa3;
77
--hover-accent: #9b7dff;
8+
--card-border: linear-gradient(to right,#1a1331 0%,#4e3aa3 100%) 1;
89

910
margin: 0;
1011
padding: 0;
@@ -126,8 +127,16 @@ input{
126127
color: var(--body-fg);
127128
font-size: 1.2rem;
128129
padding: 4px;
129-
border: 0 solid #0f0c19;
130-
background-image: linear-gradient(#0f0c19, #0f0c19);
130+
border-top-right-radius: 0;
131+
border-bottom-right-radius: 0;
132+
border-width: 5px;
133+
border-image: var(--card-border);
134+
background-color:#0f0c19;
135+
/* background-image: linear-gradient(#0f0c19, #0f0c19); */
136+
}
137+
138+
input:focus{
139+
outline-style: none;
131140
}
132141

133142
input::placeholder{
@@ -138,25 +147,40 @@ input::placeholder{
138147
font-family: "Ubuntu Mono Regular";
139148
display: flex;
140149
flex-direction: row;
141-
justify-content: space-evenly;
142-
align-items: center;
143-
gap: 8px;
150+
justify-content: center;
151+
align-items: stretch;
144152
padding: 4px;
145-
background: var(--header-bg);
146-
border-radius: 4px;
147153
}
148154
.search-btn{
149155
cursor: pointer;
150-
padding-right: 8px;
151-
font-weight: 700;
156+
padding-right: 16px;
157+
font-weight: 400;
152158
font-size: 1rem;
159+
padding-left: 24px;
160+
background-color: var(--hover-bg);
161+
align-items: center;
162+
align-content: center;
163+
border-top-right-radius: 8px;
164+
border-bottom-right-radius: 8px;
153165
/* make unselectable text */
154166
-webkit-user-select: none;
155167
-moz-user-select: none;
156168
-ms-user-select: none;
157169
user-select: none;
158170
}
159171

172+
.result-card{
173+
padding: 1rem;
174+
border: double 1em transparent;
175+
border-style: solid;
176+
border-image: var(--card-border);
177+
border-style: solid;
178+
border-width: 4px;
179+
border-radius: 1rem;
180+
background-clip: padding-box, border-box;
181+
background-origin: border-box;
182+
}
183+
160184
.hidden{
161185
display: none;
162186
}

0 commit comments

Comments
 (0)