-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Datahub Search and record view
- Loading branch information
1 parent
91e4058
commit c5507f3
Showing
3 changed files
with
208 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ on: | |
- geocat-gpf | ||
|
||
jobs: | ||
|
||
gh-pages: | ||
name: Deploy geoadmin demo | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,129 @@ | ||
/* You can add global styles to this file, and also import other style files */ | ||
html, | ||
body { | ||
body, | ||
html { | ||
margin: 0; | ||
padding: 0; | ||
height: 100%; | ||
font-family: Arial, sans-serif; | ||
} | ||
body { | ||
margin: 0; | ||
.map-container { | ||
position: relative; | ||
} | ||
|
||
#geoadmin-root { | ||
width: 100%; | ||
height: calc(100% - 4px); | ||
border: 0; | ||
height: 100vh; | ||
} | ||
|
||
.search-input { | ||
.search-container { | ||
position: absolute; | ||
top: 60px; | ||
left: 20px; | ||
top: 55px; | ||
width: 40%; | ||
width: 300px; | ||
z-index: 10; | ||
} | ||
#search { | ||
width: 100%; | ||
padding: 10px; | ||
margin-bottom: 0; | ||
border: 1px solid #ddd; | ||
border-radius: 8px; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
} | ||
#results { | ||
background: white; | ||
border: 1px solid #ddd; | ||
border-radius: 8px; | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
max-height: 400px; | ||
overflow-y: auto; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
width: 100%; | ||
} | ||
|
||
gn-results-list { | ||
position: absolute; | ||
left: 20px; | ||
top: 125px; | ||
bottom: 20px; | ||
width: 40%; | ||
padding: 8px; | ||
background: white; | ||
overflow: auto; | ||
#results li { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 10px; | ||
border-bottom: 1px solid #eee; | ||
transition: background-color 0.2s; | ||
gap: 10px; | ||
} | ||
|
||
#results li div { | ||
flex: 1; | ||
overflow-wrap: break-word; | ||
} | ||
|
||
#results li:hover { | ||
background-color: #f0f8ff; | ||
transform: scale(1.02); | ||
} | ||
|
||
#results li:last-child { | ||
border-bottom: none; | ||
} | ||
|
||
.result-title { | ||
font-size: 14px; | ||
font-weight: bold; | ||
color: #333; | ||
margin-bottom: 5px; | ||
line-height: 1.2; | ||
} | ||
|
||
.open-btn { | ||
flex-shrink: 0; | ||
background-color: #0f4395; | ||
color: white; | ||
border: none; | ||
padding: 5px 10px; | ||
border-radius: 3px; | ||
cursor: pointer; | ||
transition: background-color 0.3s; | ||
} | ||
|
||
gn-record-view { | ||
.open-btn:hover { | ||
background-color: #0e3d84; | ||
} | ||
|
||
#geoadmin-root { | ||
width: 100%; | ||
height: 100vh; | ||
border: none; | ||
} | ||
.gn-record-view-container { | ||
position: absolute; | ||
right: 20px; | ||
top: 125px; | ||
bottom: 20px; | ||
right: 55px; | ||
top: 40px; | ||
bottom: 40px; | ||
width: 40%; | ||
padding: 8px; | ||
background: white; | ||
padding: 20px; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); | ||
border-radius: 8px; | ||
overflow: auto; | ||
z-index: 100; | ||
} | ||
|
||
.close-btn { | ||
position: sticky; | ||
top: 0; | ||
margin-left: auto; | ||
margin-right: 8px; | ||
background: #050505; | ||
color: white; | ||
border: none; | ||
border-radius: 50%; | ||
width: 30px; | ||
height: 30px; | ||
font-size: 16px; | ||
cursor: pointer; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
z-index: 10; | ||
} | ||
|
||
.close-btn:hover { | ||
background: #d32f2f; | ||
} |