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

Using Tachyons to replicate 'Send' form #94

Closed
ZooeyMiller opened this issue Jun 27, 2017 · 2 comments
Closed

Using Tachyons to replicate 'Send' form #94

ZooeyMiller opened this issue Jun 27, 2017 · 2 comments
Assignees

Comments

@ZooeyMiller
Copy link
Collaborator

We are trying to replicate the current UI using Elm and Tachyons (see #86), but are struggling with the form for sending a message.

Currently it uses flexbox to keep the button the same size but have the width of the input vary based on the width of the screen. We would like to not use flexbox so that the Elm/Tachyons example has wider browser compatibility.
At first we looked at using % values on the button and the input to make them responsive and sat next to each other, but because using inline-block adds a small amount of space due to the font-size, this didn't work, as tachyons doesn't allow us to set font-size: 0 on the container.

We're now looking into calculating the window size with elm as a way to deal with this, opening this issue for if anyone has any input and to keep a record of how we solve it.

@ZooeyMiller
Copy link
Collaborator Author

We've use Window.resizes and Window.width in Elm to calculate the width of the window, we now need to calculate the width of the button so that we can calculate what the width of the input should be

@ZooeyMiller
Copy link
Collaborator Author

We've ended up giving the button a width in pixels so that it's easier to calculate the width of the input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants