-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlight selected page #91
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
130250e
add: highlightening selected menu item
jo47011 8e90389
remove css part, now using semantic defaults
jo47011 2a309c4
nop: try trigger github actions
jo47011 67d03df
add: test for menu selection
jo47011 97ed155
fix: flake and mypy issues
jo47011 1d1d5c5
fix: flake and mypy issues
jo47011 85f6b4a
remove: legacy code
jo47011 5f68432
fix test: add hover action
jo47011 2125048
fix test: add hover action
jo47011 6c5d216
move: active logic from jinja template to interface.py using dataclasses
jo47011 f51148c
fix: mypy & flake issues
jo47011 440da0e
fix: mypy & flake issues
jo47011 5a3e539
remove: auto open menu on-hover
jo47011 430aad7
fix: docs
jo47011 d09ed56
fix: use page name instead of path
jo47011 2956f34
fix: mypy issues
jo47011 da842f7
fix: docs reference page and add_menu_entry
jo47011 08e412d
remove: package-lock.json (sorry)
jo47011 8b84b07
fix: doc
jo47011 14d3982
fix: use fomantic css for new `activated` class
jo47011 8a96460
fix: use fomantic css for new `activated` class
jo47011 e36f320
fix: flake issue
jo47011 0c6b95d
fix: typo in type hint
jo47011 ab85ae3
fix: doc, remove is_active flag
jo47011 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -100,6 +100,39 @@ body.pushable>.pusher, body:not(.pushable) { | |
} | ||
} | ||
|
||
/* ************************** | ||
* Menu things | ||
* | ||
* Fomantic-UI active class for menus conflicts w/ the submenu active class usage. | ||
* Thus we define our own `activated` class. Below is a adjusted copy from the Fomantic-UI project. | ||
* See https://github.com/mhthies/smarthomeconnect/pull/91 for details | ||
* ***************************/ | ||
|
||
.ui.menu .ui.dropdown .menu > .activated.item { | ||
background: rgba(0, 0, 0, 0.03) !important; | ||
font-weight: bold !important; | ||
color: rgba(0, 0, 0, 0.95) !important; | ||
} | ||
|
||
.ui.vertical.menu .dropdown.activated.item { | ||
box-shadow: none; | ||
} | ||
/* -------------- | ||
Active | ||
--------------- */ | ||
.ui.menu .activated.item { | ||
background: rgba(50, 50, 50, 0.8); | ||
font-weight: normal; | ||
box-shadow: none; | ||
} | ||
.ui.menu .activated.item > i.icon { | ||
opacity: 1; | ||
} | ||
|
||
.ui.menu .ui.dropdown .menu > .selected.item { | ||
background: rgba(0, 0, 0, 0.15) !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed transparency as w/ the values from fomantic it was really hard to see the difference. |
||
} | ||
|
||
/* Fix divided lists in divided lists and segments */ | ||
.ui.divided.list .item .divided.list>.item { | ||
border-top: 1px solid rgba(34,36,38,.15); | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Made this is a little bit lighter as w/ the values from fomatic it was really hard to see the difference.