6.List Arguments

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/learn-sass/lessons/mixins-and-parent-selector/exercises/mixins-continued

<In what way does your code behave incorrectly? Include ALL error messages.>
Did you include the $stripes mixin and pass in a list defining the arguments as to bottom, 15%, blue, white inside of .definition in main.scss?

Solved by using different browser (e. g. Opera).

```

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

@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 transform($transformation) {
transform: $transformation;
-webkit-transform: $transformation;
-moz-transform: $transformation;
-ms-transform: $transformation;
-o-transform: $transformation;
}

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

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

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

@mixin transition($time){
transition: $time;
-webkit-transition: $time;
-moz-transition: $time;
-o-transition: $time;
}

.notecard {
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);
@include transform-style(preserve-3d);
@include transition(0.4s);

&:hover{
@include transform (rotatey(-180deg));
}

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

.front {
z-index: 3;
font-size: 20px;

.word {
  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%;
    
  .photo {
    width: 60%;
    margin: 0px auto;
      
  }
        @include stripes($stripe-properties...); 
}

}
}

<do not remove the three backticks above>
2 Likes

.definition {
width: 100%;
height: 100%;
@include stripes($stripe-properties…);

Oddly enough, I did this exercise multiple times and I got the error a bunch of times even though my code was exactly the same as what is given to you if you ask for the code after failing it too many times. Probably a glitch on my end.

same here. I also tried deleting the width and height, so it looks like in the instruction, but no success.

2 posts were split to a new topic: 6. invalid syntax on line 8 of main.scss

I passed with the same code as yours, (I’m not sure why) I just indent the code like this.

.definition {
width: 100%;
height: 100%;
@include stripes($stripe-properties…);

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