Answers for "extend class sass"

CSS
2

sass class with another class

.myclass {
  font-weight: bold;
  font-size: 90px;
}

.myotherclass {
  @extend .myclass;
  color: #000000;
}
Posted by: Guest on March-27-2020
5

scss extend

.error:hover {
  background-color: #fee;
}

.error--serious {
  @extend .error;
  border-width: 3px;
}
Posted by: Guest on October-08-2020
1

extend scss

%blue-hr {
  content: '';
  position: absolute;
  height: 1px;
  max-width: 1550px;
  width: calc(100% - 1.5rem);
  left: 0;
  right: 0;
  margin: 0 auto;
  background-color: #0086FF;
}

.blue-hr-top {
  position: relative;
  
  &::before {
    @extend %blue-hr;
    top: 0;
  }
}
Posted by: Guest on March-11-2021

Browse Popular Code Answers by Language