-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from sdl60660/globe-view
Globe View
- Loading branch information
Showing
12 changed files
with
234 additions
and
176 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
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
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,96 +1,101 @@ | ||
<script> | ||
import { createEventDispatcher } from 'svelte'; | ||
import { createEventDispatcher } from "svelte"; | ||
const dispatch = createEventDispatcher(); | ||
const abortRun = () => { | ||
dispatch('abort-run') | ||
} | ||
const dispatch = createEventDispatcher(); | ||
const abortRun = () => { | ||
dispatch("abort-run"); | ||
}; | ||
export let callback = abortRun; | ||
export let callback = abortRun; | ||
</script> | ||
|
||
<!-- style="display: {activeIndex >= 0 ? "block" : "none"};" --> | ||
<button on:click={callback} class="close" /> | ||
|
||
<!-- Styling mostly from here: https://svelte.dev/repl/fdbb69a2c3744cfe956a370c824eb4df?version=3.15.0 --> | ||
<style> | ||
.close { | ||
display: block; | ||
position: absolute; | ||
z-index: 100; | ||
top: 0; | ||
right: 0; | ||
transform: translate(50%, -50%); | ||
cursor: pointer; | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
width: 1.5rem; | ||
height: 1.5rem; | ||
border: 0; | ||
color: black; | ||
border-radius: 1.5rem; | ||
background: white; | ||
box-shadow: 0 0 0 1px black; | ||
/* transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), | ||
<style type="text/scss"> | ||
@import "../settings.scss"; | ||
.close { | ||
display: block; | ||
position: absolute; | ||
z-index: 100; | ||
top: 0; | ||
right: 0; | ||
transform: translate(50%, -50%); | ||
cursor: pointer; | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
width: 1.5rem; | ||
height: 1.5rem; | ||
border: 0; | ||
color: black; | ||
border-radius: 1.5rem; | ||
background: white; | ||
box-shadow: 0 0 0 1px black; | ||
/* transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), | ||
background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); */ | ||
-webkit-appearance: none; | ||
} | ||
-webkit-appearance: none; | ||
} | ||
.close:before, .close:after { | ||
content: ''; | ||
display: block; | ||
box-sizing: border-box; | ||
position: absolute; | ||
top: 50%; | ||
width: 1rem; | ||
height: 1px; | ||
background: black; | ||
transform-origin: center; | ||
/* transition: height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), | ||
.close:before, | ||
.close:after { | ||
content: ""; | ||
display: block; | ||
box-sizing: border-box; | ||
position: absolute; | ||
top: 50%; | ||
width: 1rem; | ||
height: 1px; | ||
background: black; | ||
transform-origin: center; | ||
/* transition: height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), | ||
background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); */ | ||
} | ||
} | ||
.close:before { | ||
-webkit-transform: translate(0, -50%) rotate(45deg); | ||
-moz-transform: translate(0, -50%) rotate(45deg); | ||
transform: translate(0, -50%) rotate(45deg); | ||
left: 0.25rem; | ||
} | ||
.close:before { | ||
-webkit-transform: translate(0, -50%) rotate(45deg); | ||
-moz-transform: translate(0, -50%) rotate(45deg); | ||
transform: translate(0, -50%) rotate(45deg); | ||
left: 0.25rem; | ||
} | ||
.close:after { | ||
-webkit-transform: translate(0, -50%) rotate(-45deg); | ||
-moz-transform: translate(0, -50%) rotate(-45deg); | ||
transform: translate(0, -50%) rotate(-45deg); | ||
left: 0.25rem; | ||
} | ||
.close:after { | ||
-webkit-transform: translate(0, -50%) rotate(-45deg); | ||
-moz-transform: translate(0, -50%) rotate(-45deg); | ||
transform: translate(0, -50%) rotate(-45deg); | ||
left: 0.25rem; | ||
} | ||
.close:hover { | ||
background: black; | ||
} | ||
.close:hover { | ||
background: black; | ||
} | ||
.close:hover:before, .close:hover:after { | ||
height: 2px; | ||
background: white; | ||
} | ||
.close:hover:before, | ||
.close:hover:after { | ||
height: 2px; | ||
background: white; | ||
} | ||
.close:focus { | ||
border-color: #3399ff; | ||
box-shadow: 0 0 0 2px #3399ff; | ||
} | ||
.close:focus { | ||
border-color: #3399ff; | ||
box-shadow: 0 0 0 2px #3399ff; | ||
} | ||
/* .close:active { | ||
/* .close:active { | ||
transform: scale(0.9); | ||
} */ | ||
.close:hover, .close:focus, .close:active { | ||
outline: none; | ||
} | ||
.close:hover, | ||
.close:focus, | ||
.close:active { | ||
outline: none; | ||
} | ||
@media only screen and (max-width: 700px) { | ||
.close { | ||
top: 50%; | ||
} | ||
@media only screen and (max-width: $mobile-breakpoint) { | ||
.close { | ||
top: 50%; | ||
} | ||
} | ||
</style> | ||
|
||
<!-- style="display: {activeIndex >= 0 ? "block" : "none"};" --> | ||
<button on:click={callback} class="close"></button> |
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
Oops, something went wrong.
84a0d75
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
river-runner-global – ./
river-runner-global-samlearner.vercel.app
river-runner-global.vercel.app
river-runner-global-git-main-samlearner.vercel.app
river-runner-global.samlearner.com