Now I want to ask about the CSS vs SCSS. Are the properties in the codepen css or scss? I wonder if the syntax($,/,%) is germaine to scss and is not pure css.Can you convert scss to pure css properies?
Can you explain the grid template repeat property, how do you get these values and is this pure css? Do these values(of the grid template repeat property) change for each puzzle or stay the same?
Other examples with syntax($,/,%): $color-valid-item,all properties with $ sign in front, % sign and / in grid-template repeat and the (crossword -item-size * crossword-column/row-count), does this remain the same?
I guess Im trying to say is this pure css or scss syntax and would it be better to use css syntax?
You can only use SCSS if you have set up your environment to use it as SCSS is a preprocessor and the SCSS is then compiled into normal CSS. Browsers donāt understand SCSS at all.
If you look at the codepen and then choose āView compiled CSSā you will see the real CSS that the browser will use. SCSS allows you to do things that CSS canāt such as looping through code and applying incremental variables when you have repetitive constructs such as those used in the crossword example.
Personally I donāt use a preprocessor as I rarely see a benefit (unless creating a convoluted demo) but a lot of users will swear by it. In the end I hate anything getting between me and my CSS.
As Paul said, itās basically preference how you code. Some people find it faster/better . There are definitely advantages and disadvantages to it. If itās something you have set up already, and thereās no real āsetupā work you need to make SCSS work, then I say go for that, but it just compiles into CSS so itās not the end of the world to just code in straight CSS.
I was against SCSS but these past few years have changed my view on it. Since itās set up on my machine and I know how to easily use/compile the code, itās been great. But I could see how for someone, with a small project, who doesnāt have it set upā¦it might be too much, or not worth it, to go through with using SCSS.
I think I messed up. I lost the active focus box, the one that moves when you enter a letter. I used the following code and the yellow active square is not there. Can you help?
think I messed up. I lost the active yellow focus square. When I click a square the background isnāt yellow,however the cursor will move with the arrow. How can I get the active square back to yellow?
Also the clues hover yellow; they do not turn green when right, but the answer on the grid does.