I can't restart this exercize, it tip me "something went wrong"


#1

I deleted main.scss, html and all of it.


#2

main.scss

@mixin stripes($direction, $width-percent, $stripe-color, $stripe-background: #FFF) {
  background: repeating-linear-gradient(
    $direction,
    $stripe-background,
    $stripe-background ($width-percent - 1),
    $stripe-color 1%,
    $stripe-background $width-percent
  );
}

@mixin hover-color($color) {
   &:hover{
       color: $color;
   }
}

@mixin transform($transformation) {
  transform: $transformation;
  -webkit-transform: $transformation;
  -moz-transform: $transformation;
  -ms-transform: $transformation;
  -o-transform: $transformation;  
}

@mixin photo-content {
  object-fit: cover;
}

@mixin transform-style($style){
   transform-style: $style;
  -moz-transform-style: $style;
  -o-transform-style: $style;
  -ms-transform-style: $style;
  -webkit-transform-style: $style;
}
//Add your own mixins here
@mixin transition($time){
  transition: $time;
  -webkit-transition: $time;
  -moz-transition: $time;
  -o-transition: $time;
}

@mixin backface-visibility($visibility: hidden) {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -o-backface-visibility: hidden;
}

@mixin photo-content($file) {
  content: url(#{$file}.jpg);
  object-fit: cover;
}

$stripe-properties: to bottom, 15%, blue, white;

.front, .back {
  width: 100%;
  height: 100%;
  position: absolute;
    @include backface-visibility();
}

.notecard {
  &:hover{
  @include transform (rotatey(-180deg));  
}
  @include transform-style(preserve-3d);
  @include transition(0.4s);
  width: 300px;
  height: 180px;
  border: 1px solid black;
  display: inline-block;
  margin: 20px;
  font-family: Roboto, sans-serif;
  box-shadow: 1px 1px 2px 2px rgba(0,0,0,.2);
  
  .front, .back {
    width: 100%;
    height: 100%;
    position: absolute;
  }
  
  .front {
  z-index: 3;
  font-size: 20px;

    .word {
      @include hover-color(red);
      display: block;
      text-align: center;
      position: relative;
      top: 40%;
    }    
  }
  
  
  .back {
  z-index: 1;
  word-wrap: break-word;
  line-height: 1.6;
    
    @include transform(rotatey(-180deg));
    
    .definition {
      width: 100%;
      height: 100%;
    @include stripes($stripe-properties...);
            
      .photo {
        width: 60%;
        margin: 0px auto;
         @include photo-content('titanosaur');
      }
    }
  }
}

html

<link rel="stylesheet" type="text/css" href="main.css">

<div id="notecards">
  <div class="notecard">
    <div class="front">
      <span class="word">Titanosaur</span>
    </div>
    <div class="back">
      <div class="definition">
        122 ft, 70 tons, Herbivore, Patagonia about 100 to 95 million years ago
        <div class="photo"></div>
      </div>
    </div>
  </div>
 
</div>

Hope that helps :smiley:


#3

Thanks for your help! I just sign up another account.Thank you again!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.