-
Notifications
You must be signed in to change notification settings - Fork 2
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 #239 from lnu-norge/open-spaces-over-map
Open spaces over map
- Loading branch information
Showing
12 changed files
with
125 additions
and
60 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
7 changes: 7 additions & 0 deletions
7
app/assets/stylesheets/show-only-if-inside-space-open-in-sidebar.css
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.show-only-if-inside-space-open-in-sidebar { | ||
display: none; | ||
} | ||
|
||
.space-open-in-sidebar .show-only-if-inside-space-open-in-sidebar { | ||
display: inherit; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div class="hidden md:block h-0 w-fit sticky top-2 inset-x-auto mx-auto md:right-2 md:mr-0 z-100"> | ||
<%= link_to spaces_path, | ||
data: { | ||
"turbo-frame": "spaces-open-here", # This updates the spaces-open-here frame | ||
"turbo-action": "advance" # And updates browser history | ||
}, | ||
class:" | ||
show-only-if-inside-space-open-in-sidebar | ||
inline-block | ||
unstyled-link | ||
rounded-xl | ||
bg-white | ||
hover:bg-lnu-pink focus:bg-lnu-pink | ||
hover:text-white focus:text-white | ||
hover:fill-white focus:fill-white | ||
shadow-xl" do %> | ||
<span class="inline-flex md:hidden gap-0.5 items-center py-2 pl-3 pr-4"> | ||
<%= inline_svg "search" %> Tilbake til søket | ||
</span> | ||
<span class="hidden md:inline-flex gap-0.5 items-center py-2 pl-3 pr-4"> | ||
<%= inline_svg "x" %> Lukk | ||
</span> | ||
<% end %> | ||
|
||
</div> |
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
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