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

triangle-framed (non-filled) #9

Open
lkraav opened this issue Feb 4, 2017 · 5 comments
Open

triangle-framed (non-filled) #9

lkraav opened this issue Feb 4, 2017 · 5 comments

Comments

@lkraav
Copy link

lkraav commented Feb 4, 2017

This may be a tricky one, requiring both pseudo element positions and other magic.
screenshot from 2017-02-04 22-34-39

@ismamz
Copy link
Owner

ismamz commented Feb 13, 2017

Hi @lkraav! Sorry for the delay. How do you think it should be? Something like @util triangle-framed([parameters]) or another name?

There are many parameters to consider:

  • background-color
  • border-color
  • border-size
  • width
  • height
  • direction

@marcustisater
Copy link
Collaborator

This is a tricky one, sometimes you would want to adjust the position of the arrow as well (left,right,top,bottom)

@ismamz
Copy link
Owner

ismamz commented Feb 15, 2017

But maybe the position should be defined outside the utility.

.element {
  @util triangle-framed(20px, 10px, #000, 1px solid #000, up);
  top: 10px;
  left: 5px;
}

In this case, we need to think how parameters should be declared,

  • width
  • height
  • background-color
  • border (size, style, color)
  • direction

it could be an option.

@marcustisater
Copy link
Collaborator

Good idea.

I still find this one a little bit tricky, the attached screenshot uses a border width which would require more psuedo elements to be defined but maybe that's not always the case for the user. Why don't we start with a pen to illustrate how we would style the arrow in different scenarios?

@ismamz
Copy link
Owner

ismamz commented Feb 15, 2017

This could be a good starting point: http://www.cssarrowplease.com/

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

No branches or pull requests

3 participants