S
S
squadbrodyaga2021-01-27 17:11:56
Sass
squadbrodyaga, 2021-01-27 17:11:56

How can I make the border color be like background?

Hello, in general, I have a button and I need the color of the border to be the same as the color of the background,
while the color of the background I don’t know if this is possible in sass?

Example:

.button {
  background: #какойтоцвет
  border-color: "background";
}
Типо так

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-01-27
@squadbrodyaga

.button {
  background: red;
  border-color: transparent;
  backgroud-clip: border-box; /* это значение по-умолчанию, можно не указывать, если не меняли */
}

https://developer.mozilla.org/en/docs/Web/CSS/back...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question