Skip to content
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

Add styling for contact cards #3010

Open
charludo opened this issue Nov 29, 2024 · 0 comments
Open

Add styling for contact cards #3010

charludo opened this issue Nov 29, 2024 · 0 comments
Labels
Native Affects the native project Task waiting-for-cms Web Affects the web project

Comments

@charludo
Copy link
Contributor

charludo commented Nov 29, 2024

Is your feature request related to a problem? Please describe.
Once digitalfabrik/integreat-cms#3169 is merged, regions will be able to insert contact cards into pages. While the CMS/api will provide the HTML markup for the card ready-to-use, due to the reasons discussed here and here, styling should be handled by the app.

Feel free to either copy the styling from the CMS (kudos @PeterNerlich):
image

.contact-card {
    display: inline-block;
    box-sizing: border-box;
    min-width: 50%;
    padding: 0.1em 1em;
    border-radius: 0.3em;
    background: rgba(127, 127, 127, 0.15);
    box-shadow: 0 .1em .1em rgba(0,0,0,0.4);
    cursor: default !important;
    color: initial;
    text-decoration: initial;
    background-image: linear-gradient(to right, rgba(255,255,255,0.9) 0 100%), url({% get_static_prefix %}/svg/contact.svg) !important;
    background-blend-mode: difference;
    background-position: calc(100% + 2em) calc(100% + 1em);
    background-size: 7em;
    background-repeat: no-repeat;
}

or to come up with your own web/app specific styling 😄

Describe the solution you'd like
Add styling for the contact-card class on web and mobile.

Describe alternatives you've considered
None. Styling in the CMS comes with some hurdles we'd rather avoid.

Additional context
CMS issue: digitalfabrik/integreat-cms#2959
Each .contact-card will contain a .marker-link which should receive display: none as its styling.

@charludo charludo added the Task label Nov 29, 2024
@steffenkleinle steffenkleinle added Web Affects the web project Native Affects the native project waiting-for-cms labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Native Affects the native project Task waiting-for-cms Web Affects the web project
Projects
Status: No status
Development

No branches or pull requests

2 participants