[Feature Request] Negative elevation
See original GitHub issueProblem to solve
The elevation-classes are an excellent helper. However in some cases, it would be useful to create an ‘negative’ elevation (lets call it depression).
My use-case is a container for search-results, that has limited height and is scrolling on overflow. I want the container to behave like elevated but with shadow set to inset instead.
Proposed solution
Create new Classes for ‘negative’ elevation, mirroring the behavior of already present elevetion-classes but with box-shadow set to inset
instead of outset
.
Example Naming pattern:
- positive elevation (unchanged):
elevation-{n}
(n: 0-24) - negative elevation:
elevation--{n}
(n: 0-24) - negative elevation (alternative):
depression-{n}
(n: 0-24)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
distinguish between negative elevation values for sea vs. land ...
Issue 35824695 · Feature request: distinguish between negative elevation values for sea vs. land locations · Issue summary · Add comment · Issue...
Read more >The elevation surface in a 3D scene blocks some features
Features may be blocked by the elevation surface in a 3D scene because those features contain negative elevations.
Read more >Sweet Home 3D / Feature Requests / #166 Elevation of walls
It would be great to have positive and negative elevation of walls. This would allow to draw cellars, overlays, staricases, etc.
Read more >Add a link to Google Earth for altitude information
Platform(s): website Description of need: When identifying observations, the altidude is ofthen an essential information. Feature request ...
Read more >Elevation Service | Maps JavaScript API - Google Developers
The ElevationService object communicates with the Google Maps API Elevation Service which receives elevation requests and returns elevation data.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sense-it-gmbh I’m not a maintainer of this excellent library, but I’d guess the reasoning is as follows:
That said: you can use
inset
as described here to make inset box shadows. For example:Here I’ve taken the
.elevation-1
style and just addedinset
to the beginning of each shadow in thebox-shadow
value.I’d like to have this feature as well but I understand that this is not a priority.
@sense-it-gmbh You say that you already have the solution. Why don’t you just submit a PR that adds the feature? Your name says that you’re a company, so you profit from using this free stuff. Would be a nice to give some thing back every once in a while.