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

Gradient border not working (Multiple borders) #207

Open
softmarshmallow opened this issue Apr 2, 2023 · 0 comments
Open

Gradient border not working (Multiple borders) #207

softmarshmallow opened this issue Apr 2, 2023 · 0 comments

Comments

@softmarshmallow
Copy link
Member

softmarshmallow commented Apr 2, 2023

image

Source of design

The Invalid output

.out{
	width: 961px;
	height: 474px;
	min-height: 100vh;
	overflow: hidden;
	background-color: rgba(104, 104, 104, 0.12);
	border: solid 2px undefined;
	border-radius: 11px;
	position: relative;
	backdrop-filter: blur(32px);
}

Which should be done like below.

  /* border styles */
  ::before {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, var(--g-1), var(--g-2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
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

1 participant