fix css
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
@import url('./style.css');
|
||||||
|
|
||||||
.pds-container {
|
.pds-container {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19,7 +21,7 @@
|
|||||||
.pds-search-form {
|
.pds-search-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0px 20px;
|
padding: 0px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group {
|
.form-group {
|
||||||
@@ -28,19 +30,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-group input {
|
.form-group input {
|
||||||
padding: 10px;
|
padding: 8px;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-radius: 4px;
|
border-radius: 4px 0 0 4px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
width: 600px;
|
width: 600px;
|
||||||
|
outline: none;
|
||||||
|
transition: box-shadow 0.2s, border-color 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group input:focus {
|
||||||
|
border-color: var(--theme-color, #f40);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group button {
|
.form-group button {
|
||||||
padding: 10px 15px;
|
padding: 9px 15px;
|
||||||
background: #1976d2;
|
background: #1976d2;
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 0 4px 4px 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@@ -139,7 +139,7 @@ a.view-markdown:any-link {
|
|||||||
grid-area: header;
|
grid-area: header;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-bottom: 1px solid #d1d9e0;
|
border-bottom: 1px solid #d1d9e0;
|
||||||
padding: 16px 24px;
|
padding: 17px 24px;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
@@ -723,7 +723,7 @@ article.article-content {
|
|||||||
.footer-social a {
|
.footer-social a {
|
||||||
color: var(--dark-gray) !important;
|
color: var(--dark-gray) !important;
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
font-size: 20px;
|
font-size: 25px;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -126,11 +126,11 @@ body {
|
|||||||
|
|
||||||
/* Header */
|
/* Header */
|
||||||
.oauth-app-header {
|
.oauth-app-header {
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.oauth-header-content {
|
.oauth-header-content {
|
||||||
@@ -139,7 +139,7 @@ body {
|
|||||||
/* align-items: center; */
|
/* align-items: center; */
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 25px 0;
|
padding: 30px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -287,7 +287,6 @@ body {
|
|||||||
.auth-section {
|
.auth-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-section.search-bar-layout {
|
.auth-section.search-bar-layout {
|
||||||
@@ -302,10 +301,10 @@ body {
|
|||||||
.auth-section.search-bar-layout .handle-input {
|
.auth-section.search-bar-layout .handle-input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 10px 15px;
|
padding: 9px 15px;
|
||||||
font-size: 16px;
|
font-size: 13px;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 8px 0 0 8px;
|
border-radius: 4px 0 0 4px;
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
outline: none;
|
outline: none;
|
||||||
transition: border-color 0.2s;
|
transition: border-color 0.2s;
|
||||||
@@ -319,12 +318,13 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.auth-section.search-bar-layout .auth-button {
|
.auth-section.search-bar-layout .auth-button {
|
||||||
border-radius: 0 6px 6px 0;
|
border-radius: 0 4px 4px 0;
|
||||||
border: 1px solid var(--primary);
|
border: 1px solid var(--primary);
|
||||||
border-left: none;
|
border-left: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 10px 15px;
|
padding: 9px 15px;
|
||||||
height: 40px;
|
min-width: 50px;
|
||||||
|
min-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Auth Button */
|
/* Auth Button */
|
||||||
@@ -332,15 +332,26 @@ body {
|
|||||||
background: var(--primary);
|
background: var(--primary);
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 6px;
|
border-radius: 4px;
|
||||||
padding: 8px 16px;
|
padding: 9px 15px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.2s;
|
transition: background 0.2s;
|
||||||
height: 40px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
min-width: 50px;
|
||||||
|
min-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Loading spinner for auth button */
|
||||||
|
.auth-button.loading i {
|
||||||
|
animation: spin 1s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
from { transform: rotate(0deg); }
|
||||||
|
to { transform: rotate(360deg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-button:hover {
|
.auth-button:hover {
|
||||||
|
@@ -68,9 +68,9 @@ export default function AuthButton({ user, onLogin, onLogout, loading }) {
|
|||||||
type="button"
|
type="button"
|
||||||
onClick={handleSubmit}
|
onClick={handleSubmit}
|
||||||
disabled={isLoading || !handleInput.trim()}
|
disabled={isLoading || !handleInput.trim()}
|
||||||
className="auth-button"
|
className={`auth-button ${isLoading ? 'loading' : ''}`}
|
||||||
>
|
>
|
||||||
{isLoading ? 'Loading...' : <i className="fab fa-bluesky"></i>}
|
<i className={isLoading ? "fas fa-spinner" : "fab fa-bluesky"}></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user