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

Fixed flexibility of form element styling. #21

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

colourgarden
Copy link
Contributor

Added a few variables as some values need to be overwritten in the STIM NEPO project. As they are general, it's better to make the framework here more flexible than add overrides in the STIM project.

@@ -18,7 +20,7 @@ fieldset {

.fieldset {
padding: $fieldset-padding;
border: 1px color(grayscale, light) solid;
border: $fieldset-border-width $fieldset-border-color solid;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also make the border type configurable? Or don't you think we'll use solid all the time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh. We could make that configurable but I cannot actually remember a time where I've used any type other than solid so I very much doubt we will ever need to change it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And does it make sense to have two separate variables rather than using one like here: https://github.com/netzstrategen/stim-nepo/pull/14/files#diff-6bba191bec7e48daae347c11ab028ba2R102?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've now modified the variable (and the override in stim-nepo on the link above). The most likely value to change project-to-project is the border color so this should be customisable without having to repeat the border-width and border-style properties also.

@colourgarden colourgarden merged commit 0e714f2 into master Jun 25, 2018
@colourgarden colourgarden deleted the fix/form-styling-tom branch June 25, 2018 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants